projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* bugfix from http://tracker.ardour.org/view.php?id=2155 thanks to kristian: fix...
[ardour.git]
/
gtk2_ardour
/
time_axis_view_item.h
diff --git
a/gtk2_ardour/time_axis_view_item.h
b/gtk2_ardour/time_axis_view_item.h
index d41ad5a327894c187367bd4890f219d5a0cb0a60..18d6638738cab141d121db24249593da17462e28 100644
(file)
--- a/
gtk2_ardour/time_axis_view_item.h
+++ b/
gtk2_ardour/time_axis_view_item.h
@@
-176,6
+176,9
@@
class TimeAxisViewItem : public Selectable
* @param yn true if this item should show its selected status
*/
virtual void set_should_show_selection (bool yn) ;
* @param yn true if this item should show its selected status
*/
virtual void set_should_show_selection (bool yn) ;
+
+ void set_sensitive (bool yn) { _sensitive = yn; }
+ bool sensitive () const { return _sensitive; }
//---------------------------------------------------------------------------------------//
// Parent Component Methods
//---------------------------------------------------------------------------------------//
// Parent Component Methods
@@
-196,14
+199,9
@@
class TimeAxisViewItem : public Selectable
*
* @param new_name the new name text to display
*/
*
* @param new_name the new name text to display
*/
- void set_name_text(
std::string
new_name) ;
+ void set_name_text(
const Glib::ustring&
new_name) ;
- /**
- * Set the height of this item
- *
- * @param h the new height
- */
- virtual void set_height(double h) ;
+ virtual void set_y_position_and_height(double y, double h) ;
/**
*
/**
*
@@
-263,7
+261,7
@@
class TimeAxisViewItem : public Selectable
bool name_active() const { return name_connected; }
// Default sizes, font and spacing
bool name_active() const { return name_connected; }
// Default sizes, font and spacing
- static Pango::FontDescription NAME_FONT ;
+ static Pango::FontDescription
*
NAME_FONT ;
static bool have_name_font;
static const double NAME_X_OFFSET ;
static const double GRAB_HANDLE_LENGTH ;
static bool have_name_font;
static const double NAME_X_OFFSET ;
static const double GRAB_HANDLE_LENGTH ;
@@
-359,7
+357,7
@@
class TimeAxisViewItem : public Selectable
/**
* Sets the frame color depending on whether this item is selected
*/
/**
* Sets the frame color depending on whether this item is selected
*/
- void set_frame_color() ;
+ v
irtual v
oid set_frame_color() ;
/**
* Sets the colors of the start and end trim handle depending on object state
/**
* Sets the colors of the start and end trim handle depending on object state
@@
-412,6
+410,9
@@
class TimeAxisViewItem : public Selectable
/** should the item show its selected status */
bool should_show_selection;
/** should the item show its selected status */
bool should_show_selection;
+
+ /** should the item respond to events */
+ bool _sensitive;
/**
* The unique item name of this Item
/**
* The unique item name of this Item
@@
-455,6
+456,11
@@
class TimeAxisViewItem : public Selectable
ArdourCanvas::SimpleRect* frame_handle_start;
ArdourCanvas::SimpleRect* frame_handle_end;
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;
}; /* class TimeAxisViewItem */
Visibility visibility;
}; /* class TimeAxisViewItem */