diff options
author | Carl Hetherington <carl@carlh.net> | 2010-01-01 22:11:15 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-01-01 22:11:15 +0000 |
commit | f5acf936728c721bc556b7b3dfe69ebf0c3d63ed (patch) | |
tree | 0041127f99ecc339917c530ac4cf339c740f6af8 /gtk2_ardour/editor_selection.cc | |
parent | 6572f421a40b30112dbe11a4eace115a6af1c83e (diff) |
First cut of some Pro-tools inspired editing features; linked play/play range
and linked object/range modes.
git-svn-id: svn://localhost/ardour2/branches/3.0@6431 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_selection.cc')
-rw-r--r-- | gtk2_ardour/editor_selection.cc | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_selection.cc b/gtk2_ardour/editor_selection.cc index 4e66847ba2..59be957138 100644 --- a/gtk2_ardour/editor_selection.cc +++ b/gtk2_ardour/editor_selection.cc @@ -171,6 +171,9 @@ Editor::select_all_tracks () selection->set (visible_views); } +/** Select clicked_routeview, unless there are no currently selected + * tracks, in which case nothing will happen unless `force' is true. + */ void Editor::set_selected_track_as_side_effect (bool force) { @@ -1392,4 +1395,12 @@ Editor::deselect_all () selection->clear (); } - +void +Editor::select_range_around_region (RegionView* rv) +{ + selection->set (&rv->get_time_axis_view()); + + selection->time.clear (); + boost::shared_ptr<Region> r = rv->region (); + selection->set (r->position(), r->position() + r->length()); +} |