Add select-all-tracks mixer-shortcut (following editor)
authorRobin Gareus <robin@gareus.org>
Sat, 8 Jul 2017 14:07:42 +0000 (16:07 +0200)
committerRobin Gareus <robin@gareus.org>
Sat, 8 Jul 2017 14:07:42 +0000 (16:07 +0200)
gtk2_ardour/mixer.bindings
gtk2_ardour/mixer_ui.cc
gtk2_ardour/mixer_ui.h

index 6056cdcd6444be4146dc4368f401ae0f1409c2f1..b650974aedd6657595dd8d8436937a64ef35b342 100644 (file)
@@ -4,6 +4,7 @@
    <Binding key="m" action="Mixer/mute" group="Operations on the selected strip(s)"/>
    <Binding key="Secondary-i" action="Mixer/toggle-midi-input-active" group="Operations on the selected strip(s)"/>
    <Binding key="r" action="Mixer/recenable" group="Operations on the selected strip(s)"/>
+   <Binding key="Primary-t" action="Mixer/select-all-tracks" group="Operations on the selected strip(s)"/>
    <Binding key="0" action="Mixer/unity-gain" group="Operations on the selected strip(s)"/>
    <Binding key="Up" action="Mixer/increment-gain" group="Operations on the selected strip(s)"/>
    <Binding key="Down" action="Mixer/decrement-gain" group="Operations on the selected strip(s)"/>
index c775b9b2b9b4dc8b16d4bee92d6a9d276370ab92..35e8ecd516c88bcc62cd89b39950f989855ecb02 100644 (file)
@@ -631,6 +631,12 @@ Mixer_UI::deselect_all_strip_processors ()
        }
 }
 
+void
+Mixer_UI::select_all_tracks ()
+{
+       PublicEditor::instance().select_all_tracks ();
+}
+
 void
 Mixer_UI::select_none ()
 {
@@ -2924,6 +2930,7 @@ Mixer_UI::register_actions ()
        myactions.register_action (group, "toggle-processors", _("Toggle Selected Processors"), sigc::mem_fun (*this, &Mixer_UI::toggle_processors));
        myactions.register_action (group, "ab-plugins", _("Toggle Selected Plugins"), sigc::mem_fun (*this, &Mixer_UI::ab_plugins));
        myactions.register_action (group, "select-none", _("Deselect all strips and processors"), sigc::mem_fun (*this, &Mixer_UI::select_none));
+       myactions.register_action (group, "select-all-tracks", _("Select All Tracks"), sigc::mem_fun (*this, &Mixer_UI::select_all_tracks));
 
        myactions.register_action (group, "scroll-left", _("Scroll Mixer Window to the left"), sigc::mem_fun (*this, &Mixer_UI::scroll_left));
        myactions.register_action (group, "scroll-right", _("Scroll Mixer Window to the right"), sigc::mem_fun (*this, &Mixer_UI::scroll_right));
index 24e457cf72019b66ce8601fab71af89a7939c47f..adf86b09d25770f96c8338b8d8eb7b5be90b56e2 100644 (file)
@@ -110,6 +110,7 @@ public:
        void deselect_all_strip_processors();
        void delete_processors();
        void select_none ();
+       void select_all_tracks ();
 
        void do_vca_assign (boost::shared_ptr<ARDOUR::VCA>);
        void do_vca_unassign (boost::shared_ptr<ARDOUR::VCA>);