Mixer page: ESC should deselect all mixer strips and processors
This commit is contained in:
parent
02af7cb418
commit
10747bc980
@ -18,5 +18,6 @@
|
|||||||
<Binding key="Return" action="Mixer/toggle-processors"/>
|
<Binding key="Return" action="Mixer/toggle-processors"/>
|
||||||
<Binding key="Primary-a" action="Mixer/select-all-processors"/>
|
<Binding key="Primary-a" action="Mixer/select-all-processors"/>
|
||||||
<Binding key="Slash" action="Mixer/ab-plugins"/>
|
<Binding key="Slash" action="Mixer/ab-plugins"/>
|
||||||
|
<Binding key="Escape" action="Mixer/select-none"/>
|
||||||
</Press>
|
</Press>
|
||||||
</Bindings>
|
</Bindings>
|
||||||
|
@ -67,7 +67,7 @@ MixerActor::register_actions ()
|
|||||||
myactions.register_action ("Mixer", "select-all-processors", _("Select All (visible) Processors"), sigc::mem_fun (*this, &MixerActor::select_all_processors));
|
myactions.register_action ("Mixer", "select-all-processors", _("Select All (visible) Processors"), sigc::mem_fun (*this, &MixerActor::select_all_processors));
|
||||||
myactions.register_action ("Mixer", "toggle-processors", _("Toggle Selected Processors"), sigc::mem_fun (*this, &MixerActor::toggle_processors));
|
myactions.register_action ("Mixer", "toggle-processors", _("Toggle Selected Processors"), sigc::mem_fun (*this, &MixerActor::toggle_processors));
|
||||||
myactions.register_action ("Mixer", "ab-plugins", _("Toggle Selected Plugins"), sigc::mem_fun (*this, &MixerActor::ab_plugins));
|
myactions.register_action ("Mixer", "ab-plugins", _("Toggle Selected Plugins"), sigc::mem_fun (*this, &MixerActor::ab_plugins));
|
||||||
|
myactions.register_action ("Mixer", "select-none", _("Deselect all srips and processors"), sigc::mem_fun (*this, &MixerActor::select_none));
|
||||||
|
|
||||||
myactions.register_action ("Mixer", "scroll-left", _("Scroll Mixer Window to the left"), sigc::mem_fun (*this, &MixerActor::scroll_left));
|
myactions.register_action ("Mixer", "scroll-left", _("Scroll Mixer Window to the left"), sigc::mem_fun (*this, &MixerActor::scroll_left));
|
||||||
myactions.register_action ("Mixer", "scroll-right", _("Scroll Mixer Window to the left"), sigc::mem_fun (*this, &MixerActor::scroll_right));
|
myactions.register_action ("Mixer", "scroll-right", _("Scroll Mixer Window to the left"), sigc::mem_fun (*this, &MixerActor::scroll_right));
|
||||||
|
@ -66,6 +66,9 @@ class MixerActor : virtual public sigc::trackable
|
|||||||
//BUT... note that we have used mixerstrip's "Enter" to enforce the rule that only one strip will have an active selection
|
//BUT... note that we have used mixerstrip's "Enter" to enforce the rule that only one strip will have an active selection
|
||||||
virtual void delete_processors () = 0;
|
virtual void delete_processors () = 0;
|
||||||
|
|
||||||
|
virtual void select_none () = 0;
|
||||||
|
|
||||||
|
|
||||||
/* these actions need access to a Session, do defer to
|
/* these actions need access to a Session, do defer to
|
||||||
a derived class
|
a derived class
|
||||||
*/
|
*/
|
||||||
|
@ -412,6 +412,16 @@ Mixer_UI::deselect_all_strip_processors ()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
Mixer_UI::select_none ()
|
||||||
|
{
|
||||||
|
for (list<MixerStrip *>::iterator i = strips.begin(); i != strips.end(); ++i) {
|
||||||
|
(*i)->set_selected(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
deselect_all_strip_processors();
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
Mixer_UI::delete_processors ()
|
Mixer_UI::delete_processors ()
|
||||||
{
|
{
|
||||||
|
@ -90,6 +90,8 @@ class Mixer_UI : public Gtk::Window, public PBD::ScopedConnectionList, public AR
|
|||||||
void deselect_all_strip_processors();
|
void deselect_all_strip_processors();
|
||||||
void delete_processors();
|
void delete_processors();
|
||||||
|
|
||||||
|
void select_none ();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void set_route_targets_for_operation ();
|
void set_route_targets_for_operation ();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user