mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 00:04:56 +01:00
make new action to bind BackSpace to in processors box
This commit is contained in:
parent
a0fad16648
commit
301000c94e
3 changed files with 7 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
<Bindings name="Processor Box">
|
<Bindings name="Processor Box">
|
||||||
<Press>
|
<Press>
|
||||||
<Binding key="Delete" action="ProcessorMenu/delete"/>
|
<Binding key="Delete" action="ProcessorMenu/delete"/>
|
||||||
|
<Binding key="BackSpace" action="ProcessorMenu/backspace"/>
|
||||||
</Press>
|
</Press>
|
||||||
</Bindings>
|
</Bindings>
|
||||||
|
|
|
||||||
|
|
@ -109,6 +109,7 @@ RefPtr<Action> ProcessorBox::cut_action;
|
||||||
RefPtr<Action> ProcessorBox::copy_action;
|
RefPtr<Action> ProcessorBox::copy_action;
|
||||||
RefPtr<Action> ProcessorBox::rename_action;
|
RefPtr<Action> ProcessorBox::rename_action;
|
||||||
RefPtr<Action> ProcessorBox::delete_action;
|
RefPtr<Action> ProcessorBox::delete_action;
|
||||||
|
RefPtr<Action> ProcessorBox::backspace_action;
|
||||||
RefPtr<Action> ProcessorBox::manage_pins_action;
|
RefPtr<Action> ProcessorBox::manage_pins_action;
|
||||||
RefPtr<Action> ProcessorBox::edit_action;
|
RefPtr<Action> ProcessorBox::edit_action;
|
||||||
RefPtr<Action> ProcessorBox::edit_generic_action;
|
RefPtr<Action> ProcessorBox::edit_generic_action;
|
||||||
|
|
@ -2122,6 +2123,7 @@ ProcessorBox::show_processor_menu (int arg)
|
||||||
cut_action->set_sensitive (sensitive && can_cut ());
|
cut_action->set_sensitive (sensitive && can_cut ());
|
||||||
copy_action->set_sensitive (sensitive);
|
copy_action->set_sensitive (sensitive);
|
||||||
delete_action->set_sensitive (sensitive || stub_processor_selected ());
|
delete_action->set_sensitive (sensitive || stub_processor_selected ());
|
||||||
|
backspace_action->set_sensitive (sensitive || stub_processor_selected ());
|
||||||
|
|
||||||
edit_action->set_sensitive (one_processor_can_be_edited ());
|
edit_action->set_sensitive (one_processor_can_be_edited ());
|
||||||
edit_generic_action->set_sensitive (one_processor_can_be_edited ());
|
edit_generic_action->set_sensitive (one_processor_can_be_edited ());
|
||||||
|
|
@ -3638,10 +3640,13 @@ ProcessorBox::register_actions ()
|
||||||
sigc::ptr_fun (ProcessorBox::rb_copy));
|
sigc::ptr_fun (ProcessorBox::rb_copy));
|
||||||
delete_action = myactions.register_action (processor_box_actions, X_("delete"), _("Delete"),
|
delete_action = myactions.register_action (processor_box_actions, X_("delete"), _("Delete"),
|
||||||
sigc::ptr_fun (ProcessorBox::rb_delete));
|
sigc::ptr_fun (ProcessorBox::rb_delete));
|
||||||
|
backspace_action = myactions.register_action (processor_box_actions, X_("backspace"), _("Delete"),
|
||||||
|
sigc::ptr_fun (ProcessorBox::rb_delete));
|
||||||
|
|
||||||
ActionManager::plugin_selection_sensitive_actions.push_back (cut_action);
|
ActionManager::plugin_selection_sensitive_actions.push_back (cut_action);
|
||||||
ActionManager::plugin_selection_sensitive_actions.push_back (copy_action);
|
ActionManager::plugin_selection_sensitive_actions.push_back (copy_action);
|
||||||
ActionManager::plugin_selection_sensitive_actions.push_back (delete_action);
|
ActionManager::plugin_selection_sensitive_actions.push_back (delete_action);
|
||||||
|
ActionManager::plugin_selection_sensitive_actions.push_back (backspace_action);
|
||||||
|
|
||||||
paste_action = myactions.register_action (processor_box_actions, X_("paste"), _("Paste"),
|
paste_action = myactions.register_action (processor_box_actions, X_("paste"), _("Paste"),
|
||||||
sigc::ptr_fun (ProcessorBox::rb_paste));
|
sigc::ptr_fun (ProcessorBox::rb_paste));
|
||||||
|
|
|
||||||
|
|
@ -551,6 +551,7 @@ class ProcessorBox : public Gtk::HBox, public PluginInterestedObject, public ARD
|
||||||
static Glib::RefPtr<Gtk::Action> paste_action;
|
static Glib::RefPtr<Gtk::Action> paste_action;
|
||||||
static Glib::RefPtr<Gtk::Action> rename_action;
|
static Glib::RefPtr<Gtk::Action> rename_action;
|
||||||
static Glib::RefPtr<Gtk::Action> delete_action;
|
static Glib::RefPtr<Gtk::Action> delete_action;
|
||||||
|
static Glib::RefPtr<Gtk::Action> backspace_action;
|
||||||
static Glib::RefPtr<Gtk::Action> manage_pins_action;
|
static Glib::RefPtr<Gtk::Action> manage_pins_action;
|
||||||
static Glib::RefPtr<Gtk::Action> edit_action;
|
static Glib::RefPtr<Gtk::Action> edit_action;
|
||||||
static Glib::RefPtr<Gtk::Action> edit_generic_action;
|
static Glib::RefPtr<Gtk::Action> edit_generic_action;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue