diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-05-16 02:17:58 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-05-16 02:17:58 +0000 |
commit | 0a9cef7720ed9bd83442d284d18831437b80a482 (patch) | |
tree | 73f8b7e6780bbaf57bcf14dccb6d759556220cef /gtk2_ardour/route_time_axis.cc | |
parent | 88a6513e76e397bdd19d4e76eaf44da8170cf73a (diff) |
very basic Join (regions) editing operation. not finished yet, no undoable, no sensible name for new region, etc. etc
git-svn-id: svn://localhost/ardour2/branches/3.0@9518 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/route_time_axis.cc')
-rw-r--r-- | gtk2_ardour/route_time_axis.cc | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gtk2_ardour/route_time_axis.cc b/gtk2_ardour/route_time_axis.cc index 8871b7bbe1..449718d15a 100644 --- a/gtk2_ardour/route_time_axis.cc +++ b/gtk2_ardour/route_time_axis.cc @@ -2477,3 +2477,24 @@ RouteTimeAxisView::create_gain_automation_child (const Evoral::Parameter& param, add_automation_child (Evoral::Parameter(GainAutomation), gain_track, show); } + +static +void add_region_to_list (RegionView* rv, Playlist::RegionList* l) +{ + l->push_back (rv->region()); +} + +void +RouteTimeAxisView::join_regions () +{ + assert (is_track()); + + if (!_view) { + return; + } + + Playlist::RegionList selected_regions; + + _view->foreach_selected_regionview (sigc::bind (sigc::ptr_fun (add_region_to_list), &selected_regions)); + track()->playlist()->join (selected_regions, "foshizzle"); +} |