#define __gtk_ardour_time_axis_view_item_h__
#include <sigc++/signal.h>
-#include <gtk-canvas.h>
+
#include <jack/jack.h>
#include <string>
+#include <libgnomecanvasmm/text.h>
+
#include "selectable.h"
+#include "simplerect.h"
+#include "canvas.h"
class TimeAxisView;
/**
*
*/
- void set_color(GdkColor& color) ;
+ void set_color(Gdk::Color& color) ;
/**
*
*/
- GtkCanvasItem* get_canvas_frame() ;
+ ArdourCanvas::Item* get_canvas_frame() ;
/**
*
*/
- GtkCanvasItem* get_canvas_group();
+ ArdourCanvas::Item* get_canvas_group();
/**
*
*/
- GtkCanvasItem* get_name_highlight();
+ ArdourCanvas::Item* get_name_highlight();
/**
*
*/
- GtkCanvasItem* 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, GtkCanvasGroup* parent, TimeAxisView& tv, double spu, GdkColor& base_color,
+ TimeAxisViewItem(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));
/**
*
* @param color the base color of the item
*/
- virtual void compute_colors(GdkColor& color) ;
+ virtual void compute_colors(Gdk::Color& color) ;
/**
* convenience method to set the various canvas item colors
uint32_t lock_handle_color_g ;
uint32_t lock_handle_color_b ;
- GtkCanvasItem* group ; /* the group */
- GtkCanvasItem* vestigial_frame ; /* simplerect */
- GtkCanvasItem* frame ; /* simplerect */
- GtkCanvasItem* name_text ; /* text */
- GtkCanvasItem* name_highlight ; /* simplerect */
- GtkCanvasItem* frame_handle_start ; /* simplerect */
- GtkCanvasItem* 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 */