diff options
author | Carl Hetherington <carl@carlh.net> | 2011-03-07 13:04:46 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-03-07 13:04:46 +0000 |
commit | 8f45604f277f07cbde4c73a6fe3aeb802df19eab (patch) | |
tree | 4a0f62813dafb11bc266d49b9a9be9800a0f4666 /gtk2_ardour/track_selection.h | |
parent | 92a5e4da48b85017647fb2c55d2d76fff47243e1 (diff) |
Make Active apply to the selection.
git-svn-id: svn://localhost/ardour2/branches/3.0@9089 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/track_selection.h')
-rw-r--r-- | gtk2_ardour/track_selection.h | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/gtk2_ardour/track_selection.h b/gtk2_ardour/track_selection.h index e61e62958f..5f85bcfd58 100644 --- a/gtk2_ardour/track_selection.h +++ b/gtk2_ardour/track_selection.h @@ -23,6 +23,7 @@ #include "track_view_list.h" #include "route_ui.h" #include "audio_time_axis.h" +#include "midi_time_axis.h" class PublicEditor; @@ -47,7 +48,9 @@ public: void foreach_route_ui (Function f) { for (iterator i = begin(); i != end(); ++i) { RouteUI* t = dynamic_cast<RouteUI*> (*i); - f (t); + if (t) { + f (t); + } } } @@ -55,7 +58,9 @@ public: void foreach_route_time_axis (Function f) { for (iterator i = begin(); i != end(); ++i) { RouteTimeAxisView* t = dynamic_cast<RouteTimeAxisView*> (*i); - f (t); + if (t) { + f (t); + } } } @@ -63,7 +68,19 @@ public: void foreach_audio_time_axis (Function f) { for (iterator i = begin(); i != end(); ++i) { AudioTimeAxisView* t = dynamic_cast<AudioTimeAxisView*> (*i); - f (t); + if (t) { + f (t); + } + } + } + + template <typename Function> + void foreach_midi_time_axis (Function f) { + for (iterator i = begin(); i != end(); ++i) { + MidiTimeAxisView* t = dynamic_cast<MidiTimeAxisView*> (*i); + if (t) { + f (t); + } } } |