add Config variable for trigger enable
This commit is contained in:
parent
f7792cb425
commit
21ed6a2626
@ -505,6 +505,7 @@ private:
|
|||||||
void repack_transport_hbox ();
|
void repack_transport_hbox ();
|
||||||
void update_clock_visibility ();
|
void update_clock_visibility ();
|
||||||
void toggle_follow_edits ();
|
void toggle_follow_edits ();
|
||||||
|
void toggle_triggers ();
|
||||||
|
|
||||||
void set_transport_controllable_state (const XMLNode&);
|
void set_transport_controllable_state (const XMLNode&);
|
||||||
XMLNode& get_transport_controllable_state ();
|
XMLNode& get_transport_controllable_state ();
|
||||||
|
@ -972,6 +972,13 @@ ARDOUR_UI::toggle_follow_edits ()
|
|||||||
UIConfiguration::instance().set_follow_edits (tact->get_active ());
|
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
|
void
|
||||||
ARDOUR_UI::update_title ()
|
ARDOUR_UI::update_title ()
|
||||||
{
|
{
|
||||||
|
@ -497,6 +497,9 @@ ARDOUR_UI::install_actions ()
|
|||||||
ActionManager::session_sensitive_actions.push_back (act);
|
ActionManager::session_sensitive_actions.push_back (act);
|
||||||
ActionManager::transport_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));
|
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);
|
ActionManager::session_sensitive_actions.push_back (act);
|
||||||
|
|
||||||
|
@ -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_track, "meter-type-track", MeterPeak)
|
||||||
CONFIG_VARIABLE (MeterType, meter_type_bus, "meter-type-bus", MeterPeak)
|
CONFIG_VARIABLE (MeterType, meter_type_bus, "meter-type-bus", MeterPeak)
|
||||||
|
|
||||||
|
/* triggers */
|
||||||
|
CONFIG_VARIABLE (bool, enable_triggers, "enable-triggers", false)
|
||||||
|
|
||||||
/* miscellany */
|
/* miscellany */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user