summaryrefslogtreecommitdiff
path: root/gtk2_ardour/audio_region_view.h
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2012-07-04 21:09:32 +0000
committerCarl Hetherington <carl@carlh.net>2012-07-04 21:09:32 +0000
commit392a7fd2384ef2f77742b34b3b941b37ee505449 (patch)
tree4447340a0cd0e92900a500c5895fa172872c2565 /gtk2_ardour/audio_region_view.h
parente35a84a32bedcb02396622b0b97dc0510aa11b91 (diff)
Don't show previously hidden xfades when finishing a region
drag; should fix #4982. git-svn-id: svn://localhost/ardour2/branches/3.0@12987 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/audio_region_view.h')
-rw-r--r--gtk2_ardour/audio_region_view.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/gtk2_ardour/audio_region_view.h b/gtk2_ardour/audio_region_view.h
index ee03fdbc80..5e3240670d 100644
--- a/gtk2_ardour/audio_region_view.h
+++ b/gtk2_ardour/audio_region_view.h
@@ -119,7 +119,19 @@ class AudioRegionView : public RegionView
void redraw_end_xfade ();
void hide_xfades ();
+ void hide_start_xfade ();
+ void hide_end_xfade ();
void show_xfades ();
+ void show_start_xfade ();
+ void show_end_xfade ();
+
+ bool start_xfade_visible () const {
+ return _start_xfade_visible;
+ }
+
+ bool end_xfade_visible () const {
+ return _end_xfade_visible;
+ }
protected:
@@ -149,10 +161,12 @@ class AudioRegionView : public RegionView
ArdourCanvas::Line *start_xfade_in;
ArdourCanvas::Line *start_xfade_out;
ArdourCanvas::SimpleRect* start_xfade_rect;
+ bool _start_xfade_visible;
ArdourCanvas::Line *end_xfade_in;
ArdourCanvas::Line *end_xfade_out;
ArdourCanvas::SimpleRect* end_xfade_rect;
+ bool _end_xfade_visible;
boost::shared_ptr<AudioRegionGainLine> gain_line;
@@ -203,8 +217,10 @@ private:
*/
std::vector<PBD::ScopedConnection*> _data_ready_connections;
- /** RegionViews that we hid the xfades for at the start of the current drag */
- std::list<AudioRegionView*> _hidden_xfades;
+ /** RegionViews that we hid the xfades for at the start of the current drag;
+ * first list is for start xfades, second list is for end xfades.
+ */
+ std::pair<std::list<AudioRegionView*>, std::list<AudioRegionView*> > _hidden_xfades;
};
#endif /* __gtk_ardour_audio_region_view_h__ */