diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-01-04 22:46:51 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-01-04 22:46:51 +0000 |
commit | 72393f101ba2cae980838dd0d857719719ecc3d7 (patch) | |
tree | a54069a53df9879b75bfd6ae3455fd60cc1a1d30 /libs/ardour/playlist.cc | |
parent | 1f6684237c1711858c4853016131a70a6ef0edf9 (diff) |
allow region list selection of whole file regions to select every instance of a region that has any source relationship with that whole file region (from a logic feature that came up while writing the manual)
git-svn-id: svn://localhost/ardour2/branches/3.0@13779 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/playlist.cc')
-rw-r--r-- | libs/ardour/playlist.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libs/ardour/playlist.cc b/libs/ardour/playlist.cc index 4e731ee06c..c5d52f7345 100644 --- a/libs/ardour/playlist.cc +++ b/libs/ardour/playlist.cc @@ -845,6 +845,17 @@ Playlist::flush_notifications (bool from_undo) } void + Playlist::get_source_equivalent_regions (boost::shared_ptr<Region> other, vector<boost::shared_ptr<Region> >& results) + { + for (RegionList::iterator i = regions.begin(); i != regions.end(); ++i) { + + if ((*i) && (*i)->any_source_equivalent (other)) { + results.push_back (*i); + } + } + } + + void Playlist::partition (framepos_t start, framepos_t end, bool cut) { RegionList thawlist; |