#define __gtk_ardour_time_axis_view_item_h__
#include <sigc++/signal.h>
-#include <libgnomecanvas/libgnomecanvas.h>
+
#include <jack/jack.h>
#include <string>
+#include <libgnomecanvasmm/text.h>
+
#include "selectable.h"
+#include "simplerect.h"
+#include "canvas.h"
class TimeAxisView;
/**
*
*/
- GnomeCanvasItem* get_canvas_frame() ;
+ ArdourCanvas::Item* get_canvas_frame() ;
/**
*
*/
- GnomeCanvasItem* get_canvas_group();
+ ArdourCanvas::Item* get_canvas_group();
/**
*
*/
- GnomeCanvasItem* get_name_highlight();
+ ArdourCanvas::Item* get_name_highlight();
/**
*
*/
- GnomeCanvasItem* get_name_text();
+ ArdourCanvas::Text* get_name_text();
+
/**
* Sets the samples per unit of this item.
bool name_active() const { return name_connected; }
// Default sizes, font and spacing
- static std::string NAME_FONT ;
+ static Pango::FontDescription NAME_FONT ;
+ static bool have_name_font;
static const double NAME_X_OFFSET ;
static const double NAME_Y_OFFSET ;
static const double NAME_HIGHLIGHT_SIZE ;
* @param start the start point of this item
* @param duration the duration of this item
*/
- TimeAxisViewItem(std::string it_name, GnomeCanvasGroup* parent, TimeAxisView& tv, double spu, Gdk::Color& base_color,
+ TimeAxisViewItem(const std::string & it_name, ArdourCanvas::Group& parent, TimeAxisView& tv, double spu, Gdk::Color& base_color,
jack_nframes_t start, jack_nframes_t duration, Visibility v = Visibility (0));
/**
uint32_t lock_handle_color_g ;
uint32_t lock_handle_color_b ;
- GnomeCanvasItem* group ; /* the group */
- GnomeCanvasItem* vestigial_frame ; /* simplerect */
- GnomeCanvasItem* frame ; /* simplerect */
- GnomeCanvasItem* name_text ; /* text */
- GnomeCanvasItem* name_highlight ; /* simplerect */
- GnomeCanvasItem* frame_handle_start ; /* simplerect */
- GnomeCanvasItem* frame_handle_end ; /* simplerect */
+ ArdourCanvas::Group* group;
+ ArdourCanvas::SimpleRect* vestigial_frame;
+ ArdourCanvas::SimpleRect* frame;
+ ArdourCanvas::Text* name_text;
+ ArdourCanvas::SimpleRect* name_highlight;
+ ArdourCanvas::SimpleRect* frame_handle_start;
+ ArdourCanvas::SimpleRect* frame_handle_end;
}; /* class TimeAxisViewItem */