summaryrefslogtreecommitdiff
path: root/gtk2_ardour/track_selection.h
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2011-02-23 02:08:57 +0000
committerCarl Hetherington <carl@carlh.net>2011-02-23 02:08:57 +0000
commit65e17100872e515e8a6a50b8213fa7ed99a1455f (patch)
tree9a887c551c0b78ebc141a494d2459165b78a108d /gtk2_ardour/track_selection.h
parented93d47e7cbf467161d89c84297e19c26039a6ff (diff)
Make layer menu items apply to the selection.
git-svn-id: svn://localhost/ardour2/branches/3.0@8940 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/track_selection.h')
-rw-r--r--gtk2_ardour/track_selection.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk2_ardour/track_selection.h b/gtk2_ardour/track_selection.h
index 0c4f364c4e..e61e62958f 100644
--- a/gtk2_ardour/track_selection.h
+++ b/gtk2_ardour/track_selection.h
@@ -52,6 +52,14 @@ public:
}
template <typename Function>
+ void foreach_route_time_axis (Function f) {
+ for (iterator i = begin(); i != end(); ++i) {
+ RouteTimeAxisView* t = dynamic_cast<RouteTimeAxisView*> (*i);
+ f (t);
+ }
+ }
+
+ template <typename Function>
void foreach_audio_time_axis (Function f) {
for (iterator i = begin(); i != end(); ++i) {
AudioTimeAxisView* t = dynamic_cast<AudioTimeAxisView*> (*i);