summaryrefslogtreecommitdiff
path: root/libs/ardour/playlist.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-07-23 12:03:19 +0000
committerDavid Robillard <d@drobilla.net>2006-07-23 12:03:19 +0000
commit60454cc8dc1ca5e1819b853b55916d52497d495c (patch)
tree3251e582556d511da71aa4c89835b333570004ea /libs/ardour/playlist.cc
parent2f7622e72cfaf83661a68d9abcf61f353efc557d (diff)
Split pretty much the entire GUI in 3. Audio and Midi "editor strips" and
associated stuff are now separated (with common things in base classes). Extremely dirty and in progress, but builds, runs, and audio/midi tracks/busses all look (and really are) distinct in the GUI. git-svn-id: svn://localhost/ardour2/branches/midi@691 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/playlist.cc')
-rw-r--r--libs/ardour/playlist.cc25
1 files changed, 25 insertions, 0 deletions
diff --git a/libs/ardour/playlist.cc b/libs/ardour/playlist.cc
index fc1dd84066..6d5e8f7847 100644
--- a/libs/ardour/playlist.cc
+++ b/libs/ardour/playlist.cc
@@ -599,6 +599,31 @@ Playlist::remove_region_internal (Region *region, bool delay_sort)
}
void
+Playlist::get_equivalent_regions (const Region& other, vector<Region*>& results)
+{
+ for (RegionList::iterator i = regions.begin(); i != regions.end(); ++i) {
+ if (Config->get_use_overlap_equivalency()) {
+ if ((*i)->overlap_equivalent (other)) {
+ results.push_back ((*i));
+ } else if ((*i)->equivalent (other)) {
+ results.push_back ((*i));
+ }
+ }
+ }
+}
+
+void
+Playlist::get_region_list_equivalent_regions (const Region& other, vector<Region*>& results)
+{
+ for (RegionList::iterator i = regions.begin(); i != regions.end(); ++i) {
+
+ if ((*i) && (*i)->region_list_equivalent (other)) {
+ results.push_back (*i);
+ }
+ }
+}
+
+void
Playlist::partition (jack_nframes_t start, jack_nframes_t end, bool just_top_level)
{
RegionList thawlist;