summaryrefslogtreecommitdiff
path: root/gtk2_ardour/region_selection.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-04-10 18:57:52 +0200
committerRobin Gareus <robin@gareus.org>2016-04-10 20:56:53 +0200
commit2b943ea36c128819d808087f853977fdd8e5c09d (patch)
treea87684823e1c05c55953006c7b8bddb780f7ed1e /gtk2_ardour/region_selection.cc
parent9609ef77642cef5654bb245328c2b40992ac2686 (diff)
convenient API to access track and region selection
Diffstat (limited to 'gtk2_ardour/region_selection.cc')
-rw-r--r--gtk2_ardour/region_selection.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/gtk2_ardour/region_selection.cc b/gtk2_ardour/region_selection.cc
index 1536dd61e4..2a3a307459 100644
--- a/gtk2_ardour/region_selection.cc
+++ b/gtk2_ardour/region_selection.cc
@@ -303,3 +303,13 @@ RegionSelection::n_midi_regions () const
return count;
}
+
+ARDOUR::RegionList
+RegionSelection::regionlist () const
+{
+ ARDOUR::RegionList rl;
+ for (const_iterator r = begin (); r != end (); ++r) {
+ rl.push_back ((*r)->region ());
+ }
+ return rl;
+}