#include <jack/jack.h>
#include <string>
-#include <libgnomecanvasmm/text.h>
+#include <libgnomecanvasmm/pixbuf.h>
#include "selectable.h"
#include "simplerect.h"
/**
*
*/
- void set_color(Gdk::Color& color) ;
+ void set_color (Gdk::Color const &);
/**
*
/**
*
*/
- ArdourCanvas::Text* get_name_text();
+ ArdourCanvas::Pixbuf* get_name_pixbuf();
/**
* @param start the start point of this item
* @param duration the duration of this item
*/
- TimeAxisViewItem(const std::string & it_name, ArdourCanvas::Group& parent, TimeAxisView& tv, double spu, Gdk::Color& base_color,
+ TimeAxisViewItem(const std::string & it_name, ArdourCanvas::Group& parent, TimeAxisView& tv, double spu, Gdk::Color const & base_color,
nframes_t start, nframes_t duration, bool recording = false, Visibility v = Visibility (0));
TimeAxisViewItem (const TimeAxisViewItem& other);
- void init (const std::string& it_name, double spu, Gdk::Color& base_color, nframes_t start, nframes_t duration, Visibility vis);
+ void init (const std::string& it_name, double spu, Gdk::Color const & base_color, nframes_t start, nframes_t duration, Visibility vis);
/**
* Calculates some contrasting color for displaying various parts of this item, based upon the base color
*
* @param color the base color of the item
*/
- virtual void compute_colors(Gdk::Color& color) ;
+ virtual void compute_colors (Gdk::Color const & color);
/**
* convenience method to set the various canvas item colors
ArdourCanvas::Group* group;
ArdourCanvas::SimpleRect* vestigial_frame;
ArdourCanvas::SimpleRect* frame;
- ArdourCanvas::Text* name_text;
+ ArdourCanvas::Pixbuf* name_pixbuf;
ArdourCanvas::SimpleRect* name_highlight;
ArdourCanvas::SimpleRect* frame_handle_start;
ArdourCanvas::SimpleRect* frame_handle_end;
- int name_text_width;
- double last_name_text_width;
-
- std::map<Glib::ustring::size_type,int> name_text_size_cache;
-
Visibility visibility;
- bool _recregion;
+ bool _recregion;
}; /* class TimeAxisViewItem */