summaryrefslogtreecommitdiff
path: root/gtk2_ardour/track_selection.h
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2011-02-23 01:03:51 +0000
committerCarl Hetherington <carl@carlh.net>2011-02-23 01:03:51 +0000
commitf9e3a8b59fe3af25665d257601874166c8f722d6 (patch)
treec17b8717ad491a53cacd6d76ab5e7ee9e233b105 /gtk2_ardour/track_selection.h
parent1b8a919f572166fdd4746e8e06b067f8debb9466 (diff)
Make track context colour menu apply to all selected tracks.
git-svn-id: svn://localhost/ardour2/branches/3.0@8934 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/track_selection.h')
-rw-r--r--gtk2_ardour/track_selection.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk2_ardour/track_selection.h b/gtk2_ardour/track_selection.h
index 4fb1187369..46c04183a4 100644
--- a/gtk2_ardour/track_selection.h
+++ b/gtk2_ardour/track_selection.h
@@ -21,6 +21,7 @@
#define __ardour_gtk_track_selection_h__
#include "track_view_list.h"
+#include "route_ui.h"
class PublicEditor;
@@ -34,6 +35,14 @@ public:
TrackViewList add (TrackViewList const &);
+ template <typename Function>
+ void foreach_route_ui (Function f) {
+ for (iterator i = begin(); i != end(); ++i) {
+ RouteUI* t = dynamic_cast<RouteUI*> (*i);
+ f (t);
+ }
+ }
+
private:
PublicEditor const * _editor;
};