From 822ee79d840f20036b5729277f90e641cb0bb06f Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 20 Aug 2010 22:43:10 +0000 Subject: Limit region-based automation to the edges of regions. Fixes #3201. git-svn-id: svn://localhost/ardour2/branches/3.0@7662 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/automation_line.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gtk2_ardour/automation_line.h') diff --git a/gtk2_ardour/automation_line.h b/gtk2_ardour/automation_line.h index 6578e12ea4..3e23729e67 100644 --- a/gtk2_ardour/automation_line.h +++ b/gtk2_ardour/automation_line.h @@ -137,6 +137,11 @@ class AutomationLine : public sigc::trackable, public PBD::StatefulDestructible const Evoral::TimeConverter& time_converter () const { return _time_converter; } + + void set_maximum_time (ARDOUR::framepos_t); + ARDOUR::framepos_t maximum_time () const { + return _maximum_time; + } protected: @@ -217,6 +222,9 @@ class AutomationLine : public sigc::trackable, public PBD::StatefulDestructible void model_representation (ControlPoint&, ModelRepresentation&); PBD::ScopedConnectionList _list_connections; + + /** maximum time that a point on this line can be at, relative to the start of its region or track */ + ARDOUR::framecnt_t _maximum_time; friend class AudioRegionGainLine; }; -- cgit v1.2.3