13
0

trigger_ui: implement clear_all_triggers in Master button context menu

This commit is contained in:
Ben Loftis 2021-12-23 22:18:56 -06:00
parent e87c7d96fb
commit 42069bc7e2
2 changed files with 10 additions and 1 deletions

View File

@ -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)
{

View File

@ -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&);