13
0

add Config variable for trigger enable

This commit is contained in:
Paul Davis 2021-12-16 10:38:25 -07:00
parent f7792cb425
commit 21ed6a2626
4 changed files with 13 additions and 0 deletions

View File

@ -505,6 +505,7 @@ private:
void repack_transport_hbox ();
void update_clock_visibility ();
void toggle_follow_edits ();
void toggle_triggers ();
void set_transport_controllable_state (const XMLNode&);
XMLNode& get_transport_controllable_state ();

View File

@ -972,6 +972,13 @@ ARDOUR_UI::toggle_follow_edits ()
UIConfiguration::instance().set_follow_edits (tact->get_active ());
}
void
ARDOUR_UI::toggle_triggers ()
{
RefPtr<ToggleAction> tact = ActionManager::get_toggle_action (X_("Common"), X_("toggle-triggers"));
Config->set_enable_triggers (tact->get_active ());
}
void
ARDOUR_UI::update_title ()
{

View File

@ -497,6 +497,9 @@ ARDOUR_UI::install_actions ()
ActionManager::session_sensitive_actions.push_back (act);
ActionManager::transport_sensitive_actions.push_back (act);
act = ActionManager::register_toggle_action (common_actions, X_("toggle-triggers"), _("Enable Triggers Drom"), sigc::mem_fun (*this, &ARDOUR_UI::toggle_triggers));
ActionManager::session_sensitive_actions.push_back (act);
act = ActionManager::register_toggle_action (main_actions, X_("ToggleLatencyCompensation"), _("Disable Latency Compensation"), sigc::mem_fun(*this, &ARDOUR_UI::toggle_latency_switch));
ActionManager::session_sensitive_actions.push_back (act);

View File

@ -191,6 +191,8 @@ CONFIG_VARIABLE (MeterType, meter_type_master, "meter-type-master", MeterK14)
CONFIG_VARIABLE (MeterType, meter_type_track, "meter-type-track", MeterPeak)
CONFIG_VARIABLE (MeterType, meter_type_bus, "meter-type-bus", MeterPeak)
/* triggers */
CONFIG_VARIABLE (bool, enable_triggers, "enable-triggers", false)
/* miscellany */