diff options
author | Robin Gareus <robin@gareus.org> | 2017-07-08 16:07:42 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-07-08 16:07:42 +0200 |
commit | 9a0ab26fbf31f8c2e4ccab325019f588fe8a9350 (patch) | |
tree | 6e4c01b4fa2f4d67bbad5251e2b842bbce6ab02e | |
parent | b7dc46951599320ef64809539cfd5fc156e26354 (diff) |
Add select-all-tracks mixer-shortcut (following editor)
-rw-r--r-- | gtk2_ardour/mixer.bindings | 1 | ||||
-rw-r--r-- | gtk2_ardour/mixer_ui.cc | 7 | ||||
-rw-r--r-- | gtk2_ardour/mixer_ui.h | 1 |
3 files changed, 9 insertions, 0 deletions
diff --git a/gtk2_ardour/mixer.bindings b/gtk2_ardour/mixer.bindings index 6056cdcd64..b650974aed 100644 --- a/gtk2_ardour/mixer.bindings +++ b/gtk2_ardour/mixer.bindings @@ -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)"/> diff --git a/gtk2_ardour/mixer_ui.cc b/gtk2_ardour/mixer_ui.cc index c775b9b2b9..35e8ecd516 100644 --- a/gtk2_ardour/mixer_ui.cc +++ b/gtk2_ardour/mixer_ui.cc @@ -632,6 +632,12 @@ Mixer_UI::deselect_all_strip_processors () } void +Mixer_UI::select_all_tracks () +{ + PublicEditor::instance().select_all_tracks (); +} + +void Mixer_UI::select_none () { _selection.clear_routes(); @@ -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)); diff --git a/gtk2_ardour/mixer_ui.h b/gtk2_ardour/mixer_ui.h index 24e457cf72..adf86b09d2 100644 --- a/gtk2_ardour/mixer_ui.h +++ b/gtk2_ardour/mixer_ui.h @@ -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>); |