#define __ardour_marker_time_axis_view_h__
#include <list>
-
-#include <gtk--.h>
-#include <gtk-canvas.h>
+#include <gdkmm/color.h>
+#include <libgnomecanvasmm/group.h>
#include <ardour/location.h>
+#include "simplerect.h"
+#include "canvas.h"
class PublicEditor;
class MarkerTimeAxis;
* This object is responsible for the time axis canvas view, and
* maintains the list of items that have been added to it
*/
-class MarkerTimeAxisView : public SigC::Object
+class MarkerTimeAxisView : public sigc::trackable
{
public:
//---------------------------------------------------------------------------------------//
/**
*
*/
- GtkCanvasItem *canvas_item() { return canvas_group; }
+ ArdourCanvas::Item *canvas_item() { return canvas_group; }
//---------------------------------------------------------------------------------------//
*
* @param color the new base color
*/
- void apply_color(GdkColor& color) ;
+ void apply_color(Gdk::Color& color) ;
//---------------------------------------------------------------------------------------//
// Child MarkerView Accessors/Mutators
// Emitted Signals
/** Emitted when a MarkerView is Added */
- SigC::Signal2<void,MarkerView*,void*> MarkerViewAdded ;
+ sigc::signal<void,MarkerView*,void*> MarkerViewAdded ;
/** Emitted when a MarkerView Item is removed */
- SigC::Signal2<void,std::string,void*> MarkerViewRemoved ;
+ sigc::signal<void,std::string,void*> MarkerViewRemoved ;
private:
/**
/* the TimeAxisView that this object is acting as the view helper for */
MarkerTimeAxis& _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 MarkerTimeAxisView */