2 Copyright (C) 2005 Paul Davis
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 #include <pbd/convert.h>
21 #include <pbd/stacktrace.h>
23 #include <gtkmm2ext/utils.h>
25 #include <ardour/configuration.h>
26 #include <ardour/session.h>
27 #include <ardour/osc.h>
28 #include <ardour/audioengine.h>
30 #include "ardour_ui.h"
32 #include "gui_thread.h"
37 using namespace Gtkmm2ext;
38 using namespace ARDOUR;
43 ARDOUR_UI::toggle_time_master ()
45 ActionManager::toggle_config_state ("Transport", "ToggleTimeMaster", &Configuration::set_jack_time_master, &Configuration::get_jack_time_master);
49 ARDOUR_UI::toggle_send_mtc ()
51 ActionManager::toggle_config_state ("options", "SendMTC", &Configuration::set_send_mtc, &Configuration::get_send_mtc);
55 ARDOUR_UI::toggle_send_mmc ()
57 ActionManager::toggle_config_state ("options", "SendMMC", &Configuration::set_send_mmc, &Configuration::get_send_mmc);
61 ARDOUR_UI::toggle_use_mmc ()
63 ActionManager::toggle_config_state ("options", "UseMMC", &Configuration::set_mmc_control, &Configuration::get_mmc_control);
67 ARDOUR_UI::toggle_use_osc ()
69 ActionManager::toggle_config_state ("options", "UseOSC", &Configuration::set_use_osc, &Configuration::get_use_osc);
73 ARDOUR_UI::toggle_send_midi_feedback ()
75 ActionManager::toggle_config_state ("options", "SendMIDIfeedback", &Configuration::set_midi_feedback, &Configuration::get_midi_feedback);
79 ARDOUR_UI::toggle_denormal_protection ()
81 ActionManager::toggle_config_state ("options", "DenormalProtection", &Configuration::set_denormal_protection, &Configuration::get_denormal_protection);
85 ARDOUR_UI::set_native_file_header_format (HeaderFormat hf)
87 const char *action = 0;
91 action = X_("FileHeaderFormatBWF");
94 action = X_("FileHeaderFormatWAVE");
97 action = X_("FileHeaderFormatWAVE64");
100 action = X_("FileHeaderFormatiXML");
103 action = X_("FileHeaderFormatRF64");
106 action = X_("FileHeaderFormatCAF");
109 action = X_("FileHeaderFormatAIFF");
112 fatal << string_compose (_("programming error: %1"), "illegal file header format in ::set_native_file_header_format") << endmsg;
116 Glib::RefPtr<Action> act = ActionManager::get_action ("options", action);
119 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
120 if (ract && ract->get_active() && Config->get_native_file_header_format() != hf) {
121 Config->set_native_file_header_format (hf);
127 ARDOUR_UI::set_native_file_data_format (SampleFormat sf)
129 const char* action = 0;
133 action = X_("FileDataFormatFloat");
136 action = X_("FileDataFormat24bit");
139 fatal << string_compose (_("programming error: %1"), "illegal file data format in ::set_native_file_data_format") << endmsg;
143 Glib::RefPtr<Action> act = ActionManager::get_action ("options", action);
146 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
147 if (ract && ract->get_active() && Config->get_native_file_data_format() != sf) {
148 Config->set_native_file_data_format (sf);
154 ARDOUR_UI::set_input_auto_connect (AutoConnectOption option)
159 case AutoConnectPhysical:
160 action = X_("InputAutoConnectPhysical");
163 action = X_("InputAutoConnectManual");
166 Glib::RefPtr<Action> act = ActionManager::get_action ("options", action);
169 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
171 if (ract && ract->get_active() && Config->get_input_auto_connect() != option) {
172 Config->set_input_auto_connect (option);
178 ARDOUR_UI::set_output_auto_connect (AutoConnectOption option)
183 case AutoConnectPhysical:
184 action = X_("OutputAutoConnectPhysical");
186 case AutoConnectMaster:
187 action = X_("OutputAutoConnectMaster");
190 action = X_("OutputAutoConnectManual");
193 Glib::RefPtr<Action> act = ActionManager::get_action ("options", action);
196 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
198 if (ract && ract->get_active() && Config->get_output_auto_connect() != option) {
199 Config->set_output_auto_connect (option);
205 ARDOUR_UI::set_solo_model (SoloModel model)
207 const char* action = 0;
211 action = X_("SoloViaBus");
215 action = X_("SoloInPlace");
218 fatal << string_compose (_("programming error: unknown solo model in ARDOUR_UI::set_solo_model: %1"), model) << endmsg;
222 Glib::RefPtr<Action> act = ActionManager::get_action ("options", action);
225 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
227 if (ract && ract->get_active() && Config->get_solo_model() != model) {
228 Config->set_solo_model (model);
235 ARDOUR_UI::set_remote_model (RemoteModel model)
237 const char* action = 0;
241 action = X_("RemoteUserDefined");
244 action = X_("RemoteMixerDefined");
247 action = X_("RemoteEditorDefined");
251 fatal << string_compose (_("programming error: unknown remote model in ARDOUR_UI::set_remote_model: %1"), model) << endmsg;
255 Glib::RefPtr<Action> act = ActionManager::get_action ("options", action);
258 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
260 if (ract && ract->get_active() && Config->get_remote_model() != model) {
261 Config->set_remote_model (model);
268 ARDOUR_UI::set_monitor_model (MonitorModel model)
270 const char* action = 0;
273 case HardwareMonitoring:
274 action = X_("UseHardwareMonitoring");
277 case SoftwareMonitoring:
278 action = X_("UseSoftwareMonitoring");
280 case ExternalMonitoring:
281 action = X_("UseExternalMonitoring");
285 fatal << string_compose (_("programming error: unknown monitor model in ARDOUR_UI::set_monitor_model: %1"), model) << endmsg;
289 Glib::RefPtr<Action> act = ActionManager::get_action ("options", action);
292 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
294 if (ract && ract->get_active() && Config->get_monitoring_model() != model) {
295 Config->set_monitoring_model (model);
302 ARDOUR_UI::set_denormal_model (DenormalModel model)
304 const char* action = 0;
308 action = X_("DenormalNone");
312 action = X_("DenormalFTZ");
316 action = X_("DenormalDAZ");
320 action = X_("DenormalFTZDAZ");
324 fatal << string_compose (_("programming error: unknown denormal model in ARDOUR_UI::set_denormal_model: %1"), model) << endmsg;
328 Glib::RefPtr<Action> act = ActionManager::get_action ("options", action);
331 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
333 if (ract && ract->get_active() && Config->get_denormal_model() != model) {
334 Config->set_denormal_model (model);
341 ARDOUR_UI::toggle_auto_input ()
343 ActionManager::toggle_config_state ("Transport", "ToggleAutoInput", &Configuration::set_auto_input, &Configuration::get_auto_input);
347 ARDOUR_UI::toggle_auto_play ()
349 ActionManager::toggle_config_state ("Transport", "ToggleAutoPlay", &Configuration::set_auto_play, &Configuration::get_auto_play);
353 ARDOUR_UI::toggle_auto_return ()
355 ActionManager::toggle_config_state ("Transport", "ToggleAutoReturn", &Configuration::set_auto_return, &Configuration::get_auto_return);
359 ARDOUR_UI::toggle_click ()
361 ActionManager::toggle_config_state ("Transport", "ToggleClick", &Configuration::set_clicking, &Configuration::get_clicking);
365 ARDOUR_UI::toggle_session_auto_loop ()
368 if (session->get_play_loop()) {
369 if (session->transport_rolling()) {
372 session->request_play_loop (false);
375 session->request_play_loop (true);
381 ARDOUR_UI::toggle_punch_in ()
383 ActionManager::toggle_config_state ("Transport", "TogglePunchIn", &Configuration::set_punch_in, &Configuration::get_punch_in);
387 ARDOUR_UI::toggle_punch_out ()
389 ActionManager::toggle_config_state ("Transport", "TogglePunchOut", &Configuration::set_punch_out, &Configuration::get_punch_out);
393 ARDOUR_UI::toggle_video_sync()
395 Glib::RefPtr<Action> act = ActionManager::get_action ("Transport", "ToggleVideoSync");
397 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
398 Config->set_use_video_sync (tact->get_active());
403 ARDOUR_UI::toggle_editing_space()
405 Glib::RefPtr<Action> act = ActionManager::get_action ("Common", "ToggleMaximalEditor");
407 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
408 if (tact->get_active()) {
409 maximise_editing_space ();
411 restore_editing_space ();
417 ARDOUR_UI::toggle_StopPluginsWithTransport()
419 ActionManager::toggle_config_state ("options", "StopPluginsWithTransport", &Configuration::set_plugins_stop_with_transport, &Configuration::get_plugins_stop_with_transport);
423 ARDOUR_UI::toggle_LatchedRecordEnable()
425 ActionManager::toggle_config_state ("options", "LatchedRecordEnable", &Configuration::set_latched_record_enable, &Configuration::get_latched_record_enable);
429 ARDOUR_UI::toggle_RegionEquivalentsOverlap()
431 ActionManager::toggle_config_state ("options", "RegionEquivalentsOverlap", &Configuration::set_use_overlap_equivalency, &Configuration::get_use_overlap_equivalency);
435 ARDOUR_UI::toggle_DoNotRunPluginsWhileRecording()
437 ActionManager::toggle_config_state ("options", "DoNotRunPluginsWhileRecording", &Configuration::set_do_not_record_plugins, &Configuration::get_do_not_record_plugins);
441 ARDOUR_UI::toggle_VerifyRemoveLastCapture()
443 ActionManager::toggle_config_state ("options", "VerifyRemoveLastCapture", &Configuration::set_verify_remove_last_capture, &Configuration::get_verify_remove_last_capture);
447 ARDOUR_UI::toggle_PeriodicSafetyBackups()
449 ActionManager::toggle_config_state ("options", "PeriodicSafetyBackups", &Configuration::set_periodic_safety_backups, &Configuration::get_periodic_safety_backups);
453 ARDOUR_UI::toggle_StopRecordingOnXrun()
455 ActionManager::toggle_config_state ("options", "StopRecordingOnXrun", &Configuration::set_stop_recording_on_xrun, &Configuration::get_stop_recording_on_xrun);
459 ARDOUR_UI::toggle_StopTransportAtEndOfSession()
461 ActionManager::toggle_config_state ("options", "StopTransportAtEndOfSession", &Configuration::set_stop_at_session_end, &Configuration::get_stop_at_session_end);
465 ARDOUR_UI::toggle_GainReduceFastTransport()
467 ActionManager::toggle_config_state ("options", "GainReduceFastTransport", &Configuration::set_quieten_at_speed, &Configuration::get_quieten_at_speed);
471 ARDOUR_UI::toggle_LatchedSolo()
473 ActionManager::toggle_config_state ("options", "LatchedSolo", &Configuration::set_solo_latched, &Configuration::get_solo_latched);
477 ARDOUR_UI::toggle_ShowSoloMutes()
479 ActionManager::toggle_config_state ("options", "ShowSoloMutes", &Configuration::set_show_solo_mutes, &Configuration::get_show_solo_mutes);
483 ARDOUR_UI::toggle_PrimaryClockDeltaEditCursor()
485 ActionManager::toggle_config_state ("options", "PrimaryClockDeltaEditCursor", &Configuration::set_primary_clock_delta_edit_cursor, &Configuration::get_primary_clock_delta_edit_cursor);
489 ARDOUR_UI::toggle_SecondaryClockDeltaEditCursor()
491 ActionManager::toggle_config_state ("options", "SecondaryClockDeltaEditCursor", &Configuration::set_secondary_clock_delta_edit_cursor, &Configuration::get_secondary_clock_delta_edit_cursor);
495 ARDOUR_UI::mtc_port_changed ()
500 if (session->mtc_port()) {
509 positional_sync_strings.clear ();
510 positional_sync_strings.push_back (slave_source_to_string (None));
512 positional_sync_strings.push_back (slave_source_to_string (MTC));
514 positional_sync_strings.push_back (slave_source_to_string (JACK));
516 set_popdown_strings (sync_option_combo, positional_sync_strings);
520 ARDOUR_UI::setup_session_options ()
524 Config->ParameterChanged.connect (mem_fun (*this, &ARDOUR_UI::parameter_changed));
529 ARDOUR_UI::map_solo_model ()
533 if (Config->get_solo_model() == InverseMute) {
534 on = X_("SoloInPlace");
536 on = X_("SoloViaBus");
539 Glib::RefPtr<Action> act = ActionManager::get_action ("options", on);
541 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
543 if (tact && !tact->get_active()) {
544 tact->set_active (true);
550 ARDOUR_UI::map_monitor_model ()
554 switch (Config->get_monitoring_model()) {
555 case HardwareMonitoring:
556 on = X_("UseHardwareMonitoring");
558 case SoftwareMonitoring:
559 on = X_("UseSoftwareMonitoring");
561 case ExternalMonitoring:
562 on = X_("UseExternalMonitoring");
566 Glib::RefPtr<Action> act = ActionManager::get_action ("options", on);
568 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
570 if (tact && !tact->get_active()) {
571 tact->set_active (true);
577 ARDOUR_UI::map_denormal_model ()
581 switch (Config->get_denormal_model()) {
583 on = X_("DenormalNone");
586 on = X_("DenormalFTZ");
589 on = X_("DenormalDAZ");
592 on = X_("DenormalFTZDAZ");
596 Glib::RefPtr<Action> act = ActionManager::get_action ("options", on);
598 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
600 if (tact && !tact->get_active()) {
601 tact->set_active (true);
607 ARDOUR_UI::map_remote_model ()
611 switch (Config->get_remote_model()) {
613 on = X_("RemoteUserDefined");
616 on = X_("RemoteMixerDefined");
619 on = X_("RemoteEditorDefined");
623 Glib::RefPtr<Action> act = ActionManager::get_action ("options", on);
625 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
627 if (tact && !tact->get_active()) {
628 tact->set_active (true);
634 ARDOUR_UI::map_file_header_format ()
636 const char* action = 0;
638 switch (Config->get_native_file_header_format()) {
640 action = X_("FileHeaderFormatBWF");
644 action = X_("FileHeaderFormatWAVE");
648 action = X_("FileHeaderFormatWAVE64");
652 action = X_("FileHeaderFormatiXML");
656 action = X_("FileHeaderFormatRF64");
660 action = X_("FileHeaderFormatCAF");
664 fatal << string_compose (_("programming error: unknown file header format passed to ARDOUR_UI::map_file_data_format: %1"),
665 Config->get_native_file_header_format()) << endmsg;
670 Glib::RefPtr<Action> act = ActionManager::get_action ("options", action);
673 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
675 if (tact && !tact->get_active()) {
676 tact->set_active (true);
682 ARDOUR_UI::map_file_data_format ()
684 const char* action = 0;
686 switch (Config->get_native_file_data_format()) {
688 action = X_("FileDataFormatFloat");
692 action = X_("FileDataFormat24bit");
696 fatal << string_compose (_("programming error: unknown file data format passed to ARDOUR_UI::map_file_data_format: %1"),
697 Config->get_native_file_data_format()) << endmsg;
702 Glib::RefPtr<Action> act = ActionManager::get_action ("options", action);
705 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
707 if (tact && !tact->get_active()) {
708 tact->set_active (true);
714 ARDOUR_UI::map_input_auto_connect ()
718 if (Config->get_input_auto_connect() == (AutoConnectOption) 0) {
719 on = "InputAutoConnectManual";
721 on = "InputAutoConnectPhysical";
724 Glib::RefPtr<Action> act = ActionManager::get_action ("options", on);
726 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
728 if (tact && !tact->get_active()) {
729 tact->set_active (true);
735 ARDOUR_UI::map_output_auto_connect ()
739 if (Config->get_output_auto_connect() == (AutoConnectOption) 0) {
740 on = "OutputAutoConnectManual";
741 } else if (Config->get_output_auto_connect() == AutoConnectPhysical) {
742 on = "OutputAutoConnectPhysical";
744 on = "OutputAutoConnectMaster";
747 Glib::RefPtr<Action> act = ActionManager::get_action ("options", on);
749 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
751 if (tact && !tact->get_active()) {
752 tact->set_active (true);
758 ARDOUR_UI::map_meter_falloff ()
760 const char* action = X_("MeterFalloffMedium");
762 float val = Config->get_meter_falloff ();
763 MeterFalloff code = meter_falloff_from_float(val);
766 case MeterFalloffOff:
767 action = X_("MeterFalloffOff");
769 case MeterFalloffSlowest:
770 action = X_("MeterFalloffSlowest");
772 case MeterFalloffSlow:
773 action = X_("MeterFalloffSlow");
775 case MeterFalloffMedium:
776 action = X_("MeterFalloffMedium");
778 case MeterFalloffFast:
779 action = X_("MeterFalloffFast");
781 case MeterFalloffFaster:
782 action = X_("MeterFalloffFaster");
784 case MeterFalloffFastest:
785 action = X_("MeterFalloffFastest");
789 Glib::RefPtr<Action> act = ActionManager::get_action (X_("options"), action);
792 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
793 if (ract && !ract->get_active()) {
794 ract->set_active (true);
800 ARDOUR_UI::map_meter_hold ()
802 const char* action = X_("MeterHoldMedium");
804 /* XXX hack alert. Fix this. Please */
806 float val = Config->get_meter_hold ();
807 MeterHold code = (MeterHold) (int) (floor (val));
811 action = X_("MeterHoldOff");
814 action = X_("MeterHoldShort");
816 case MeterHoldMedium:
817 action = X_("MeterHoldMedium");
820 action = X_("MeterHoldLong");
824 Glib::RefPtr<Action> act = ActionManager::get_action (X_("options"), action);
827 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
828 if (ract && !ract->get_active()) {
829 ract->set_active (true);
835 ARDOUR_UI::set_meter_hold (MeterHold val)
837 const char* action = 0;
840 fval = meter_hold_to_float (val);
844 action = X_("MeterHoldOff");
847 action = X_("MeterHoldShort");
849 case MeterHoldMedium:
850 action = X_("MeterHoldMedium");
853 action = X_("MeterHoldLong");
857 Glib::RefPtr<Action> act = ActionManager::get_action (X_("options"), action);
860 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
861 if (ract && ract->get_active() && Config->get_meter_hold() != fval) {
862 Config->set_meter_hold (fval);
868 ARDOUR_UI::set_meter_falloff (MeterFalloff val)
870 const char* action = 0;
873 fval = meter_falloff_to_float (val);
876 case MeterFalloffOff:
877 action = X_("MeterFalloffOff");
879 case MeterFalloffSlowest:
880 action = X_("MeterFalloffSlowest");
882 case MeterFalloffSlow:
883 action = X_("MeterFalloffSlow");
885 case MeterFalloffMedium:
886 action = X_("MeterFalloffMedium");
888 case MeterFalloffFast:
889 action = X_("MeterFalloffFast");
891 case MeterFalloffFaster:
892 action = X_("MeterFalloffFaster");
894 case MeterFalloffFastest:
895 action = X_("MeterFalloffFastest");
899 Glib::RefPtr<Action> act = ActionManager::get_action (X_("options"), action);
902 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
903 if (ract && ract->get_active() && Config->get_meter_falloff () != fval) {
904 Config->set_meter_falloff (fval);
910 ARDOUR_UI::parameter_changed (const char* parameter_name)
912 ENSURE_GUI_THREAD (bind (mem_fun (*this, &ARDOUR_UI::parameter_changed), parameter_name));
914 #define PARAM_IS(x) (!strcmp (parameter_name, (x)))
916 if (PARAM_IS ("slave-source")) {
918 sync_option_combo.set_active_text (slave_source_to_string (Config->get_slave_source()));
920 switch (Config->get_slave_source()) {
922 ActionManager::get_action ("Transport", "ToggleAutoPlay")->set_sensitive (true);
923 ActionManager::get_action ("Transport", "ToggleAutoReturn")->set_sensitive (true);
927 /* XXX need to make auto-play is off as well as insensitive */
928 ActionManager::get_action ("Transport", "ToggleAutoPlay")->set_sensitive (false);
929 ActionManager::get_action ("Transport", "ToggleAutoReturn")->set_sensitive (false);
933 } else if (PARAM_IS ("send-mtc")) {
935 ActionManager::map_some_state ("options", "SendMTC", &Configuration::get_send_mtc);
937 } else if (PARAM_IS ("send-mmc")) {
939 ActionManager::map_some_state ("options", "SendMMC", &Configuration::get_send_mmc);
941 } else if (PARAM_IS ("use-osc")) {
944 if (Config->get_use_osc()) {
951 ActionManager::map_some_state ("options", "UseOSC", &Configuration::get_use_osc);
953 } else if (PARAM_IS ("mmc-control")) {
954 ActionManager::map_some_state ("options", "UseMMC", &Configuration::get_mmc_control);
955 } else if (PARAM_IS ("midi-feedback")) {
956 ActionManager::map_some_state ("options", "SendMIDIfeedback", &Configuration::get_midi_feedback);
957 } else if (PARAM_IS ("do-not-record-plugins")) {
958 ActionManager::map_some_state ("options", "DoNotRunPluginsWhileRecording", &Configuration::get_do_not_record_plugins);
959 } else if (PARAM_IS ("latched-record-enable")) {
960 ActionManager::map_some_state ("options", "LatchedRecordEnable", &Configuration::get_latched_record_enable);
961 } else if (PARAM_IS ("solo-latched")) {
962 ActionManager::map_some_state ("options", "LatchedSolo", &Configuration::get_solo_latched);
963 } else if (PARAM_IS ("show-solo-mutes")) {
964 ActionManager::map_some_state ("options", "ShowSoloMutes", &Configuration::get_show_solo_mutes);
965 } else if (PARAM_IS ("solo-model")) {
967 } else if (PARAM_IS ("auto-play")) {
968 ActionManager::map_some_state ("Transport", "ToggleAutoPlay", &Configuration::get_auto_play);
969 } else if (PARAM_IS ("auto-return")) {
970 ActionManager::map_some_state ("Transport", "ToggleAutoReturn", &Configuration::get_auto_return);
971 } else if (PARAM_IS ("auto-input")) {
972 ActionManager::map_some_state ("Transport", "ToggleAutoInput", &Configuration::get_auto_input);
973 } else if (PARAM_IS ("punch-out")) {
974 ActionManager::map_some_state ("Transport", "TogglePunchOut", &Configuration::get_punch_out);
975 } else if (PARAM_IS ("punch-in")) {
976 ActionManager::map_some_state ("Transport", "TogglePunchIn", &Configuration::get_punch_in);
977 } else if (PARAM_IS ("clicking")) {
978 ActionManager::map_some_state ("Transport", "ToggleClick", &Configuration::get_clicking);
979 } else if (PARAM_IS ("jack-time-master")) {
980 ActionManager::map_some_state ("Transport", "ToggleTimeMaster", &Configuration::get_jack_time_master);
981 } else if (PARAM_IS ("plugins-stop-with-transport")) {
982 ActionManager::map_some_state ("options", "StopPluginsWithTransport", &Configuration::get_plugins_stop_with_transport);
983 } else if (PARAM_IS ("latched-record-enable")) {
984 ActionManager::map_some_state ("options", "LatchedRecordEnable", &Configuration::get_latched_record_enable);
985 } else if (PARAM_IS ("verify-remove-last-capture")) {
986 ActionManager::map_some_state ("options", "VerifyRemoveLastCapture", &Configuration::get_verify_remove_last_capture);
987 } else if (PARAM_IS ("periodic-safety-backups")) {
988 ActionManager::map_some_state ("options", "PeriodicSafetyBackups", &Configuration::get_periodic_safety_backups);
989 } else if (PARAM_IS ("stop-recording-on-xrun")) {
990 ActionManager::map_some_state ("options", "StopRecordingOnXrun", &Configuration::get_stop_recording_on_xrun);
991 } else if (PARAM_IS ("stop-at-session-end")) {
992 ActionManager::map_some_state ("options", "StopTransportAtEndOfSession", &Configuration::get_stop_at_session_end);
993 } else if (PARAM_IS ("monitoring-model")) {
994 map_monitor_model ();
995 } else if (PARAM_IS ("denormal-model")) {
996 map_denormal_model ();
997 } else if (PARAM_IS ("remote-model")) {
999 } else if (PARAM_IS ("use-video-sync")) {
1000 ActionManager::map_some_state ("Transport", "ToggleVideoSync", &Configuration::get_use_video_sync);
1001 } else if (PARAM_IS ("quieten-at-speed")) {
1002 ActionManager::map_some_state ("options", "GainReduceFastTransport", &Configuration::get_quieten_at_speed);
1003 } else if (PARAM_IS ("shuttle-behaviour")) {
1005 switch (Config->get_shuttle_behaviour ()) {
1007 shuttle_style_button.set_active_text (_("sprung"));
1008 shuttle_fract = 0.0;
1009 shuttle_box.queue_draw ();
1011 if (session->transport_rolling()) {
1012 shuttle_fract = SHUTTLE_FRACT_SPEED1;
1013 session->request_transport_speed (1.0);
1018 shuttle_style_button.set_active_text (_("wheel"));
1022 } else if (PARAM_IS ("shuttle-units")) {
1024 switch (Config->get_shuttle_units()) {
1026 shuttle_units_button.set_label("% ");
1029 shuttle_units_button.set_label(_("ST"));
1032 } else if (PARAM_IS ("input-auto-connect")) {
1033 map_input_auto_connect ();
1034 } else if (PARAM_IS ("output-auto-connect")) {
1035 map_output_auto_connect ();
1036 } else if (PARAM_IS ("native-file-header-format")) {
1037 map_file_header_format ();
1038 } else if (PARAM_IS ("native-file-data-format")) {
1039 map_file_data_format ();
1040 } else if (PARAM_IS ("meter-hold")) {
1042 } else if (PARAM_IS ("meter-falloff")) {
1043 map_meter_falloff ();
1044 } else if (PARAM_IS ("video-pullup") || PARAM_IS ("smpte-format")) {
1046 primary_clock.set (session->audible_frame(), true);
1047 secondary_clock.set (session->audible_frame(), true);
1049 primary_clock.set (0, true);
1050 secondary_clock.set (0, true);
1052 } else if (PARAM_IS ("use-overlap-equivalency")) {
1053 ActionManager::map_some_state ("options", "RegionEquivalentsOverlap", &Configuration::get_use_overlap_equivalency);
1054 } else if (PARAM_IS ("primary-clock-delta-edit-cursor")) {
1055 ActionManager::map_some_state ("options", "PrimaryClockDeltaEditCursor", &Configuration::get_primary_clock_delta_edit_cursor);
1056 } else if (PARAM_IS ("secondary-clock-delta-edit-cursor")) {
1057 ActionManager::map_some_state ("options", "SecondaryClockDeltaEditCursor", &Configuration::get_secondary_clock_delta_edit_cursor);