convert property_foo().set_value(bar) to property_foo() = bar
[ardour.git] / gtk2_ardour / imageframe_time_axis_view.h
index 37b98b33c3fa2e033f3e02f990cffc5403c8ab4b..46403167c42c61fe596aad92d3a4bcf4b9a6de60 100644 (file)
 #include <list>
 #include <cmath>
 
-#include <gtkmm.h>
-#include <gtk-canvas.h>
 #include <jack/jack.h>
+#include <gtkmm.h>
+#include <libgnomecanvasmm/libgnomecanvasmm.h>
+#include "canvas.h"
+#include "simplerect.h"
+
 
 class PublicEditor ;
 class ImageFrameTimeAxis ;
@@ -71,7 +74,7 @@ class ImageFrameTimeAxisView : public sigc::trackable
                /**
                 *
                 */
-               GtkCanvasItem* canvas_item() { return canvas_group; }
+               ArdourCanvas::Group * canvas_item() { return &canvas_group; }
                
                
                //---------------------------------------------------------------------------------------//
@@ -112,7 +115,7 @@ class ImageFrameTimeAxisView : public sigc::trackable
                 *
                 * @param color the new base color
                 */
-               void apply_color (GdkColor&) ;
+               void apply_color (Gdk::Color&) ;
                
                //---------------------------------------------------------------------------------------//
                // Child ImageFrameTimeAxisGroup Accessors/Mutators
@@ -256,14 +259,14 @@ class ImageFrameTimeAxisView : public sigc::trackable
                /* the TimeAxisView that this object is acting as the view helper for */
                ImageFrameTimeAxis& _trackview ;
                
-               GtkCanvasItem *canvas_group ;
-               GtkCanvasItem *canvas_rect; /* frame around the whole thing */
+               ArdourCanvas::Group       canvas_group ;
+               ArdourCanvas::SimpleRect  canvas_rect; /* frame around the whole thing */
                
                /** the current samples per unit */
                double _samples_per_unit ;
                
                /* XXX why are these different? */
-               GdkColor region_color ;
+               Gdk::Color region_color ;
                uint32_t stream_base_color ;
                
 } ; /* class ImageFrameTimeAxisView */