along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id$
*/
#ifndef __ardour_imageframe_time_axis_view_h__
#include <list>
#include <cmath>
-#include <gtk--.h>
-#include <gtk-canvas.h>
+#include <gdkmm/color.h>
+
#include <jack/jack.h>
+#include <libgnomecanvasmm.h>
+#include "canvas.h"
+#include "simplerect.h"
+
+
class PublicEditor ;
class ImageFrameTimeAxis ;
class ImageFrameView ;
* maintains the list of items that have been added to it
*
*/
-class ImageFrameTimeAxisView : public SigC::Object
+class ImageFrameTimeAxisView : public sigc::trackable
{
public:
//---------------------------------------------------------------------------------------//
/**
*
*/
- GtkCanvasItem* canvas_item() { return canvas_group; }
+ ArdourCanvas::Group * canvas_item() { return &canvas_group; }
//---------------------------------------------------------------------------------------//
*
* @param color the new base color
*/
- void apply_color (GdkColor&) ;
+ void apply_color (Gdk::Color&) ;
//---------------------------------------------------------------------------------------//
// Child ImageFrameTimeAxisGroup Accessors/Mutators
// Emitted Signals
/** Emitted when and ImageFrameGroup is added to this time axis */
- SigC::Signal2<void,ImageFrameTimeAxisGroup*,void*> ImageFrameGroupAdded ;
+ sigc::signal<void,ImageFrameTimeAxisGroup*,void*> ImageFrameGroupAdded ;
/** Emitted when an ImageFrameGroup is removed from this time axis */
- SigC::Signal2<void,std::string,void*> ImageFrameGroupRemoved ;
+ sigc::signal<void,std::string,void*> ImageFrameGroupRemoved ;
protected:
/* 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 */