diff options
author | Carl Hetherington <carl@carlh.net> | 2010-08-04 15:41:55 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-08-04 15:41:55 +0000 |
commit | cc6016400bbd903e5d2a1720708ecde8d71f44d3 (patch) | |
tree | 41166df0d8ac89193d4b6bc3c45897267d86e36e /gtk2_ardour/automation_streamview.cc | |
parent | aa72da4f9ffc2f7011c2e7f801fb5c04ecbfa58f (diff) |
Allow rubberband selection of MIDI automation points. Fixes
git-svn-id: svn://localhost/ardour2/branches/3.0@7535 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/automation_streamview.cc')
-rw-r--r-- | gtk2_ardour/automation_streamview.cc | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gtk2_ardour/automation_streamview.cc b/gtk2_ardour/automation_streamview.cc index 76e565d414..1f07aaaba7 100644 --- a/gtk2_ardour/automation_streamview.cc +++ b/gtk2_ardour/automation_streamview.cc @@ -273,3 +273,23 @@ AutomationStreamView::clear () arv->line()->clear (); } } + +void +AutomationStreamView::get_selectables (nframes_t start, nframes_t end, double botfrac, double topfrac, list<Selectable*>& results) +{ + for (list<RegionView*>::iterator i = region_views.begin(); i != region_views.end(); ++i) { + AutomationRegionView* arv = dynamic_cast<AutomationRegionView*> (*i); + assert (arv); + arv->line()->get_selectables (start - (*i)->region()->position(), end - (*i)->region()->position(), botfrac, topfrac, results); + } +} + +void +AutomationStreamView::set_selected_points (PointSelection& ps) +{ + for (list<RegionView*>::iterator i = region_views.begin(); i != region_views.end(); ++i) { + AutomationRegionView* arv = dynamic_cast<AutomationRegionView*> (*i); + assert (arv); + arv->line()->set_selected_points (ps); + } +} |