From 50fea864dbbba2a6be3ddf3346afce5d1778902e Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 13 Jun 2014 10:56:46 -0400 Subject: rationalize and coordinate handle of region (time axis view item) opacity. There are still some bugs with this because of the waveview image cache - fixes coming soon. --- gtk2_ardour/time_axis_view_item.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to '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 9e8651fa39..3536baa222 100644 --- a/gtk2_ardour/time_axis_view_item.h +++ b/gtk2_ardour/time_axis_view_item.h @@ -74,7 +74,6 @@ class TimeAxisViewItem : public Selectable, public PBD::ScopedConnectionList void set_y (double); void set_color (uint32_t); void set_name_text_color (); - void set_opacity_for_drag (bool drag_starting); uint32_t get_fill_color () const; @@ -86,8 +85,8 @@ class TimeAxisViewItem : public Selectable, public PBD::ScopedConnectionList double get_samples_per_pixel () const; - virtual void drag_start() { _dragging = true; } - virtual void drag_end() { _dragging = false; } + virtual void drag_start(); + virtual void drag_end(); bool dragging() const { return _dragging; } virtual void raise () { return; } @@ -230,9 +229,9 @@ class TimeAxisViewItem : public Selectable, public PBD::ScopedConnectionList /** true if a small vestigial rect should be shown when the item gets very narrow */ bool show_vestigial; - uint32_t fill_opacity; uint32_t fill_color; - uint32_t pre_drag_fill_color; + + virtual uint32_t fill_opacity() const; uint32_t last_item_width; int name_text_width; -- cgit v1.2.3