summaryrefslogtreecommitdiff
path: root/gtk2_ardour/automation_line.h
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-08-20 22:43:10 +0000
committerCarl Hetherington <carl@carlh.net>2010-08-20 22:43:10 +0000
commit822ee79d840f20036b5729277f90e641cb0bb06f (patch)
tree404c5ce1e05c0b3fdca2473910974de5ddf9aed7 /gtk2_ardour/automation_line.h
parentb2bf4eee3d9ca63a34415c75e877b8c97d6b5f13 (diff)
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
Diffstat (limited to 'gtk2_ardour/automation_line.h')
-rw-r--r--gtk2_ardour/automation_line.h8
1 files changed, 8 insertions, 0 deletions
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<double, ARDOUR::sframes_t>& 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;
};