diff options
author | Ben Loftis <ben@harrisonconsoles.com> | 2018-12-03 18:55:52 -0600 |
---|---|---|
committer | Ben Loftis <ben@harrisonconsoles.com> | 2018-12-07 12:57:26 -0600 |
commit | 65bda27d4218d9d4ebf809d91e716c892e1f1d8b (patch) | |
tree | 7254c9cb111d64912c78ce62023986d2fe9668a7 /gtk2_ardour/ardour_ui2.cc | |
parent | 19cb8cf13803b52f2e6956ed24d4e328e61bb1b2 (diff) |
Tweaks to Mixer and Monitor keybindings:
Add Mixer-specific view keybindings for list, vca, mon. (thanks to: the_CLA)
Move monitor keybindings (mute, dim, mono) to be globally-accessible.
Implement new mixer-specific actions to show/hide monitor,vcas,mixbuses (the_CLA)
Move monitor funcs (mute,dim,mono) to globally-accessible actions.
Make a new Monitor group insted of using Transport group.
Allow use-monitor-section to be controlled by both menu and session-options dialog.
Diffstat (limited to 'gtk2_ardour/ardour_ui2.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui2.cc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gtk2_ardour/ardour_ui2.cc b/gtk2_ardour/ardour_ui2.cc index 431f094ca7..97d639fc1b 100644 --- a/gtk2_ardour/ardour_ui2.cc +++ b/gtk2_ardour/ardour_ui2.cc @@ -817,3 +817,21 @@ ARDOUR_UI::update_title () } } + +void +ARDOUR_UI::toggle_use_monitor_section () +{ + RefPtr<Action> act = ActionManager::get_action (X_("Monitor"), "UseMonitorSection"); + assert (act); RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic (act); + assert (tact); + + bool yn = tact->get_active (); + + if (yn) { + _session->add_monitor_section (); + } else { + _session->remove_monitor_section (); + } + + Config->set_use_monitor_bus (yn); +} |