summaryrefslogtreecommitdiff
path: root/gtk2_ardour/selection_templates.h
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2007-05-10 11:53:35 +0000
committerCarl Hetherington <carl@carlh.net>2007-05-10 11:53:35 +0000
commitaa3bb18b173fdd8bc7f9611f3dbe52e36cfe6215 (patch)
tree15217bff4c9ed78a865967850c6e0c9c417c0dfd /gtk2_ardour/selection_templates.h
parent4342f2aeb0510ec272144c9523663df3ba0c38af (diff)
Re-work main right-click context menu to operate on the selection, and remove some confusion about what region(s) will be affected by menu selections.
git-svn-id: svn://localhost/ardour2/trunk@1831 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/selection_templates.h')
-rw-r--r--gtk2_ardour/selection_templates.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk2_ardour/selection_templates.h b/gtk2_ardour/selection_templates.h
index 4e02ab9061..3ab8505b72 100644
--- a/gtk2_ardour/selection_templates.h
+++ b/gtk2_ardour/selection_templates.h
@@ -38,6 +38,13 @@ Selection::foreach_region (void (ARDOUR::Region::*method)(void)) {
}
}
+inline void
+Selection::foreach_regionview (void (RegionView::*method)(void)) {
+ for (RegionSelection::iterator i = regions.begin(); i != regions.end(); ++i) {
+ ((*i)->*(method))();
+ }
+}
+
template<class A> inline void
Selection::foreach_region (void (ARDOUR::Region::*method)(A), A arg) {
for (RegionSelection::iterator i = regions.begin(); i != regions.end(); ++i) {