summaryrefslogtreecommitdiff
path: root/gtk2_ardour/automation_time_axis.h
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-09-09 21:35:28 +0000
committerCarl Hetherington <carl@carlh.net>2010-09-09 21:35:28 +0000
commit86244875a40206694c142af8fe1128f28293c467 (patch)
tree7a643215fa39e9538fff5fc282139866c44fe529 /gtk2_ardour/automation_time_axis.h
parent5f27e70016a88cbb9a77275ce3e5798540f9bbdf (diff)
Allow drags of automation in time ranges where the automation is on a MIDI track and may span different regions. Fixes #3366.
git-svn-id: svn://localhost/ardour2/branches/3.0@7765 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/automation_time_axis.h')
-rw-r--r--gtk2_ardour/automation_time_axis.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk2_ardour/automation_time_axis.h b/gtk2_ardour/automation_time_axis.h
index 55fcb14202..798a144cab 100644
--- a/gtk2_ardour/automation_time_axis.h
+++ b/gtk2_ardour/automation_time_axis.h
@@ -75,8 +75,13 @@ class AutomationTimeAxisView : public TimeAxisView {
void add_automation_event (ArdourCanvas::Item *item, GdkEvent *event, nframes_t, double);
void clear_lines ();
+
+ /** @return Our AutomationLine, if this view has one, or 0 if it uses AutomationRegionViews */
boost::shared_ptr<AutomationLine> line() { return _line; }
+ /** @return All AutomationLines associated with this view */
+ std::list<boost::shared_ptr<AutomationLine> > lines () const;
+
void set_selected_points (PointSelection&);
void get_selectables (ARDOUR::framepos_t start, ARDOUR::framepos_t end, double top, double bot, std::list<Selectable *>&);
void get_inverted_selectables (Selection&, std::list<Selectable*>& results);