define new actions for stopping triggers/slots
This commit is contained in:
parent
c2c23172bd
commit
303f838a53
|
@ -3137,4 +3137,15 @@ ARDOUR_UI::trigger_cue_row (int r)
|
|||
_basic_ui->trigger_cue_row (r);
|
||||
}
|
||||
|
||||
void
|
||||
ARDOUR_UI::stop_all_cues (bool immediately)
|
||||
{
|
||||
_basic_ui->trigger_stop_all (immediately);
|
||||
}
|
||||
|
||||
void
|
||||
ARDOUR_UI::stop_cues (int col, bool immediately)
|
||||
{
|
||||
_basic_ui->trigger_stop_col (col, immediately);
|
||||
}
|
||||
|
||||
|
|
|
@ -295,6 +295,8 @@ public:
|
|||
|
||||
void trigger_slot (int c, int r);
|
||||
void trigger_cue_row (int r);
|
||||
void stop_all_cues (bool immediately);
|
||||
void stop_cues (int c, bool immediately);
|
||||
|
||||
void save_ardour_state ();
|
||||
gboolean configure_handler (GdkEventConfigure* conf);
|
||||
|
|
|
@ -787,5 +787,11 @@ TriggerPage::register_actions ()
|
|||
|
||||
ActionManager::register_action (trigger_actions, action_name.c_str (), display_name.c_str (), sigc::bind (sigc::mem_fun (ARDOUR_UI::instance(), &ARDOUR_UI::trigger_slot), c, n));
|
||||
}
|
||||
|
||||
ActionManager::register_action (trigger_actions, string_compose ("stop-cues-%1-now", c).c_str(), string_compose (_("Stop Cues %1"), c).c_str(), sigc::bind (sigc::mem_fun (ARDOUR_UI::instance(), &ARDOUR_UI::stop_cues), c, true));
|
||||
ActionManager::register_action (trigger_actions, string_compose ("stop-cues-%1-soon", c).c_str(), string_compose (_("Stop Cues %1"), c).c_str(), sigc::bind (sigc::mem_fun (ARDOUR_UI::instance(), &ARDOUR_UI::stop_cues), c, false));
|
||||
}
|
||||
|
||||
ActionManager::register_action (trigger_actions, X_("stop-all-cues-now"), _("Stop all cues now"), sigc::bind (sigc::mem_fun (ARDOUR_UI::instance(), &ARDOUR_UI::stop_all_cues), true));
|
||||
ActionManager::register_action (trigger_actions, X_("stop-all-cues-soon"), _("Stop all cues soon"), sigc::bind (sigc::mem_fun (ARDOUR_UI::instance(), &ARDOUR_UI::stop_all_cues), false));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user