trigger_ui: implement clear_all_triggers in Master button context menu
This commit is contained in:
parent
e87c7d96fb
commit
42069bc7e2
@ -409,7 +409,8 @@ TriggerMaster::context_menu ()
|
||||
items.push_back (MenuElem (_("Set All Follow Actions..."), *follow_menu));
|
||||
items.push_back (MenuElem (_("Set All Launch Styles..."), *launch_menu));
|
||||
items.push_back (MenuElem (_("Set All Quantizations..."), *quant_menu));
|
||||
items.push_back (MenuElem (_("Clear All..."), sigc::mem_fun (*this, &TriggerMaster::maybe_update))); // TODO
|
||||
items.push_back (SeparatorElem());
|
||||
items.push_back (MenuElem (_("Clear All..."), sigc::mem_fun (*this, &TriggerMaster::clear_all_triggers)));
|
||||
|
||||
_context_menu->popup (1, gtk_get_current_event_time ());
|
||||
}
|
||||
@ -424,6 +425,12 @@ TriggerMaster::toggle_thru ()
|
||||
_triggerbox->set_pass_thru (!_triggerbox->pass_thru ());
|
||||
}
|
||||
|
||||
void
|
||||
TriggerMaster::clear_all_triggers ()
|
||||
{
|
||||
_triggerbox->clear_all_triggers();
|
||||
}
|
||||
|
||||
void
|
||||
TriggerMaster::set_all_follow_action (Trigger::FollowAction fa)
|
||||
{
|
||||
|
@ -81,6 +81,8 @@ public:
|
||||
|
||||
private:
|
||||
void context_menu ();
|
||||
|
||||
void clear_all_triggers();
|
||||
void set_all_follow_action (ARDOUR::Trigger::FollowAction);
|
||||
void set_all_launch_style (ARDOUR::Trigger::LaunchStyle);
|
||||
void set_all_quantization (Temporal::BBT_Offset const&);
|
||||
|
Loading…
Reference in New Issue
Block a user