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::set_native_file_header_format (HeaderFormat hf)
81 const char *action = 0;
85 action = X_("FileHeaderFormatBWF");
88 action = X_("FileHeaderFormatWAVE");
91 action = X_("FileHeaderFormatWAVE64");
94 action = X_("FileHeaderFormatiXML");
97 action = X_("FileHeaderFormatRF64");
100 action = X_("FileHeaderFormatCAF");
103 action = X_("FileHeaderFormatAIFF");
106 fatal << string_compose (_("programming error: %1"), "illegal file header format in ::set_native_file_header_format") << endmsg;
110 Glib::RefPtr<Action> act = ActionManager::get_action ("options", action);
113 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
114 if (ract && ract->get_active() && Config->get_native_file_header_format() != hf) {
115 Config->set_native_file_header_format (hf);
121 ARDOUR_UI::set_native_file_data_format (SampleFormat sf)
123 const char* action = 0;
127 action = X_("FileDataFormatFloat");
130 action = X_("FileDataFormat24bit");
133 fatal << string_compose (_("programming error: %1"), "illegal file data format in ::set_native_file_data_format") << endmsg;
137 Glib::RefPtr<Action> act = ActionManager::get_action ("options", action);
140 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
141 if (ract && ract->get_active() && Config->get_native_file_data_format() != sf) {
142 Config->set_native_file_data_format (sf);
148 ARDOUR_UI::set_input_auto_connect (AutoConnectOption option)
153 case AutoConnectPhysical:
154 action = X_("InputAutoConnectPhysical");
157 action = X_("InputAutoConnectManual");
160 Glib::RefPtr<Action> act = ActionManager::get_action ("options", action);
163 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
165 if (ract && ract->get_active() && Config->get_input_auto_connect() != option) {
166 Config->set_input_auto_connect (option);
172 ARDOUR_UI::set_output_auto_connect (AutoConnectOption option)
177 case AutoConnectPhysical:
178 action = X_("OutputAutoConnectPhysical");
180 case AutoConnectMaster:
181 action = X_("OutputAutoConnectMaster");
184 action = X_("OutputAutoConnectManual");
187 Glib::RefPtr<Action> act = ActionManager::get_action ("options", action);
190 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
192 if (ract && ract->get_active() && Config->get_output_auto_connect() != option) {
193 Config->set_output_auto_connect (option);
199 ARDOUR_UI::set_solo_model (SoloModel model)
201 const char* action = 0;
205 action = X_("SoloViaBus");
209 action = X_("SoloInPlace");
212 fatal << string_compose (_("programming error: unknown solo model in ARDOUR_UI::set_solo_model: %1"), model) << endmsg;
216 Glib::RefPtr<Action> act = ActionManager::get_action ("options", action);
219 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
221 if (ract && ract->get_active() && Config->get_solo_model() != model) {
222 Config->set_solo_model (model);
229 ARDOUR_UI::set_remote_model (RemoteModel model)
231 const char* action = 0;
235 action = X_("RemoteUserDefined");
238 action = X_("RemoteMixerDefined");
241 action = X_("RemoteEditorDefined");
245 fatal << string_compose (_("programming error: unknown remote model in ARDOUR_UI::set_remote_model: %1"), model) << endmsg;
249 Glib::RefPtr<Action> act = ActionManager::get_action ("options", action);
252 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
254 if (ract && ract->get_active() && Config->get_remote_model() != model) {
255 Config->set_remote_model (model);
262 ARDOUR_UI::set_monitor_model (MonitorModel model)
264 const char* action = 0;
267 case HardwareMonitoring:
268 action = X_("UseHardwareMonitoring");
271 case SoftwareMonitoring:
272 action = X_("UseSoftwareMonitoring");
274 case ExternalMonitoring:
275 action = X_("UseExternalMonitoring");
279 fatal << string_compose (_("programming error: unknown monitor model in ARDOUR_UI::set_monitor_model: %1"), model) << endmsg;
283 Glib::RefPtr<Action> act = ActionManager::get_action ("options", action);
286 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
288 if (ract && ract->get_active() && Config->get_monitoring_model() != model) {
289 Config->set_monitoring_model (model);
296 ARDOUR_UI::toggle_auto_input ()
298 ActionManager::toggle_config_state ("Transport", "ToggleAutoInput", &Configuration::set_auto_input, &Configuration::get_auto_input);
302 ARDOUR_UI::toggle_auto_play ()
304 ActionManager::toggle_config_state ("Transport", "ToggleAutoPlay", &Configuration::set_auto_play, &Configuration::get_auto_play);
308 ARDOUR_UI::toggle_auto_return ()
310 ActionManager::toggle_config_state ("Transport", "ToggleAutoReturn", &Configuration::set_auto_return, &Configuration::get_auto_return);
314 ARDOUR_UI::toggle_click ()
316 ActionManager::toggle_config_state ("Transport", "ToggleClick", &Configuration::set_clicking, &Configuration::get_clicking);
320 ARDOUR_UI::toggle_session_auto_loop ()
323 if (session->get_play_loop()) {
324 if (session->transport_rolling()) {
327 session->request_play_loop (false);
330 session->request_play_loop (true);
336 ARDOUR_UI::toggle_punch_in ()
338 ActionManager::toggle_config_state ("Transport", "TogglePunchIn", &Configuration::set_punch_in, &Configuration::get_punch_in);
342 ARDOUR_UI::toggle_punch_out ()
344 ActionManager::toggle_config_state ("Transport", "TogglePunchOut", &Configuration::set_punch_out, &Configuration::get_punch_out);
348 ARDOUR_UI::toggle_video_sync()
350 Glib::RefPtr<Action> act = ActionManager::get_action ("Transport", "ToggleVideoSync");
352 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
353 Config->set_use_video_sync (tact->get_active());
358 ARDOUR_UI::toggle_editing_space()
360 Glib::RefPtr<Action> act = ActionManager::get_action ("Common", "ToggleMaximalEditor");
362 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
363 if (tact->get_active()) {
364 maximise_editing_space ();
366 restore_editing_space ();
372 ARDOUR_UI::toggle_StopPluginsWithTransport()
374 ActionManager::toggle_config_state ("options", "StopPluginsWithTransport", &Configuration::set_plugins_stop_with_transport, &Configuration::get_plugins_stop_with_transport);
378 ARDOUR_UI::toggle_LatchedRecordEnable()
380 ActionManager::toggle_config_state ("options", "LatchedRecordEnable", &Configuration::set_latched_record_enable, &Configuration::get_latched_record_enable);
384 ARDOUR_UI::toggle_RegionEquivalentsOverlap()
386 ActionManager::toggle_config_state ("options", "RegionEquivalentsOverlap", &Configuration::set_use_overlap_equivalency, &Configuration::get_use_overlap_equivalency);
390 ARDOUR_UI::toggle_DoNotRunPluginsWhileRecording()
392 ActionManager::toggle_config_state ("options", "DoNotRunPluginsWhileRecording", &Configuration::set_do_not_record_plugins, &Configuration::get_do_not_record_plugins);
396 ARDOUR_UI::toggle_VerifyRemoveLastCapture()
398 ActionManager::toggle_config_state ("options", "VerifyRemoveLastCapture", &Configuration::set_verify_remove_last_capture, &Configuration::get_verify_remove_last_capture);
402 ARDOUR_UI::toggle_PeriodicSafetyBackups()
404 ActionManager::toggle_config_state ("options", "PeriodicSafetyBackups", &Configuration::set_periodic_safety_backups, &Configuration::get_periodic_safety_backups);
408 ARDOUR_UI::toggle_StopRecordingOnXrun()
410 ActionManager::toggle_config_state ("options", "StopRecordingOnXrun", &Configuration::set_stop_recording_on_xrun, &Configuration::get_stop_recording_on_xrun);
414 ARDOUR_UI::toggle_StopTransportAtEndOfSession()
416 ActionManager::toggle_config_state ("options", "StopTransportAtEndOfSession", &Configuration::set_stop_at_session_end, &Configuration::get_stop_at_session_end);
420 ARDOUR_UI::toggle_GainReduceFastTransport()
422 ActionManager::toggle_config_state ("options", "GainReduceFastTransport", &Configuration::set_quieten_at_speed, &Configuration::get_quieten_at_speed);
426 ARDOUR_UI::toggle_LatchedSolo()
428 ActionManager::toggle_config_state ("options", "LatchedSolo", &Configuration::set_solo_latched, &Configuration::get_solo_latched);
432 ARDOUR_UI::toggle_ShowSoloMutes()
434 ActionManager::toggle_config_state ("options", "ShowSoloMutes", &Configuration::set_show_solo_mutes, &Configuration::get_show_solo_mutes);
438 ARDOUR_UI::toggle_PrimaryClockDeltaEditCursor()
440 ActionManager::toggle_config_state ("options", "PrimaryClockDeltaEditCursor", &Configuration::set_primary_clock_delta_edit_cursor, &Configuration::get_primary_clock_delta_edit_cursor);
444 ARDOUR_UI::toggle_SecondaryClockDeltaEditCursor()
446 ActionManager::toggle_config_state ("options", "SecondaryClockDeltaEditCursor", &Configuration::set_secondary_clock_delta_edit_cursor, &Configuration::get_secondary_clock_delta_edit_cursor);
450 ARDOUR_UI::mtc_port_changed ()
455 if (session->mtc_port()) {
464 positional_sync_strings.clear ();
465 positional_sync_strings.push_back (slave_source_to_string (None));
467 positional_sync_strings.push_back (slave_source_to_string (MTC));
469 positional_sync_strings.push_back (slave_source_to_string (JACK));
471 set_popdown_strings (sync_option_combo, positional_sync_strings);
475 ARDOUR_UI::setup_session_options ()
479 Config->ParameterChanged.connect (mem_fun (*this, &ARDOUR_UI::parameter_changed));
484 ARDOUR_UI::map_solo_model ()
488 if (Config->get_solo_model() == InverseMute) {
489 on = X_("SoloInPlace");
491 on = X_("SoloViaBus");
494 Glib::RefPtr<Action> act = ActionManager::get_action ("options", on);
496 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
498 if (tact && !tact->get_active()) {
499 tact->set_active (true);
505 ARDOUR_UI::map_monitor_model ()
509 switch (Config->get_monitoring_model()) {
510 case HardwareMonitoring:
511 on = X_("UseHardwareMonitoring");
513 case SoftwareMonitoring:
514 on = X_("UseSoftwareMonitoring");
516 case ExternalMonitoring:
517 on = X_("UseExternalMonitoring");
521 Glib::RefPtr<Action> act = ActionManager::get_action ("options", on);
523 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
525 if (tact && !tact->get_active()) {
526 tact->set_active (true);
532 ARDOUR_UI::map_remote_model ()
536 switch (Config->get_remote_model()) {
538 on = X_("RemoteUserDefined");
541 on = X_("RemoteMixerDefined");
544 on = X_("RemoteEditorDefined");
548 Glib::RefPtr<Action> act = ActionManager::get_action ("options", on);
550 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
552 if (tact && !tact->get_active()) {
553 tact->set_active (true);
559 ARDOUR_UI::map_file_header_format ()
561 const char* action = 0;
563 switch (Config->get_native_file_header_format()) {
565 action = X_("FileHeaderFormatBWF");
569 action = X_("FileHeaderFormatWAVE");
573 action = X_("FileHeaderFormatWAVE64");
577 action = X_("FileHeaderFormatiXML");
581 action = X_("FileHeaderFormatRF64");
585 action = X_("FileHeaderFormatCAF");
589 fatal << string_compose (_("programming error: unknown file header format passed to ARDOUR_UI::map_file_data_format: %1"),
590 Config->get_native_file_header_format()) << endmsg;
595 Glib::RefPtr<Action> act = ActionManager::get_action ("options", action);
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_file_data_format ()
609 const char* action = 0;
611 switch (Config->get_native_file_data_format()) {
613 action = X_("FileDataFormatFloat");
617 action = X_("FileDataFormat24bit");
621 fatal << string_compose (_("programming error: unknown file data format passed to ARDOUR_UI::map_file_data_format: %1"),
622 Config->get_native_file_data_format()) << endmsg;
627 Glib::RefPtr<Action> act = ActionManager::get_action ("options", action);
630 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
632 if (tact && !tact->get_active()) {
633 tact->set_active (true);
639 ARDOUR_UI::map_input_auto_connect ()
643 if (Config->get_input_auto_connect() == (AutoConnectOption) 0) {
644 on = "InputAutoConnectManual";
646 on = "InputAutoConnectPhysical";
649 Glib::RefPtr<Action> act = ActionManager::get_action ("options", on);
651 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
653 if (tact && !tact->get_active()) {
654 tact->set_active (true);
660 ARDOUR_UI::map_output_auto_connect ()
664 if (Config->get_output_auto_connect() == (AutoConnectOption) 0) {
665 on = "OutputAutoConnectManual";
666 } else if (Config->get_output_auto_connect() == AutoConnectPhysical) {
667 on = "OutputAutoConnectPhysical";
669 on = "OutputAutoConnectMaster";
672 Glib::RefPtr<Action> act = ActionManager::get_action ("options", on);
674 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
676 if (tact && !tact->get_active()) {
677 tact->set_active (true);
683 ARDOUR_UI::map_meter_falloff ()
685 const char* action = X_("MeterFalloffMedium");
687 float val = Config->get_meter_falloff ();
688 MeterFalloff code = meter_falloff_from_float(val);
691 case MeterFalloffOff:
692 action = X_("MeterFalloffOff");
694 case MeterFalloffSlowest:
695 action = X_("MeterFalloffSlowest");
697 case MeterFalloffSlow:
698 action = X_("MeterFalloffSlow");
700 case MeterFalloffMedium:
701 action = X_("MeterFalloffMedium");
703 case MeterFalloffFast:
704 action = X_("MeterFalloffFast");
706 case MeterFalloffFaster:
707 action = X_("MeterFalloffFaster");
709 case MeterFalloffFastest:
710 action = X_("MeterFalloffFastest");
714 Glib::RefPtr<Action> act = ActionManager::get_action (X_("options"), action);
717 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
718 if (ract && !ract->get_active()) {
719 ract->set_active (true);
725 ARDOUR_UI::map_meter_hold ()
727 const char* action = X_("MeterHoldMedium");
729 /* XXX hack alert. Fix this. Please */
731 float val = Config->get_meter_hold ();
732 MeterHold code = (MeterHold) (int) (floor (val));
736 action = X_("MeterHoldOff");
739 action = X_("MeterHoldShort");
741 case MeterHoldMedium:
742 action = X_("MeterHoldMedium");
745 action = X_("MeterHoldLong");
749 Glib::RefPtr<Action> act = ActionManager::get_action (X_("options"), action);
752 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
753 if (ract && !ract->get_active()) {
754 ract->set_active (true);
760 ARDOUR_UI::set_meter_hold (MeterHold val)
762 const char* action = 0;
765 fval = meter_hold_to_float (val);
769 action = X_("MeterHoldOff");
772 action = X_("MeterHoldShort");
774 case MeterHoldMedium:
775 action = X_("MeterHoldMedium");
778 action = X_("MeterHoldLong");
782 Glib::RefPtr<Action> act = ActionManager::get_action (X_("options"), action);
785 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
786 if (ract && ract->get_active() && Config->get_meter_hold() != fval) {
787 Config->set_meter_hold (fval);
793 ARDOUR_UI::set_meter_falloff (MeterFalloff val)
795 const char* action = 0;
798 fval = meter_falloff_to_float (val);
801 case MeterFalloffOff:
802 action = X_("MeterFalloffOff");
804 case MeterFalloffSlowest:
805 action = X_("MeterFalloffSlowest");
807 case MeterFalloffSlow:
808 action = X_("MeterFalloffSlow");
810 case MeterFalloffMedium:
811 action = X_("MeterFalloffMedium");
813 case MeterFalloffFast:
814 action = X_("MeterFalloffFast");
816 case MeterFalloffFaster:
817 action = X_("MeterFalloffFaster");
819 case MeterFalloffFastest:
820 action = X_("MeterFalloffFastest");
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() && Config->get_meter_falloff () != fval) {
829 Config->set_meter_falloff (fval);
835 ARDOUR_UI::parameter_changed (const char* parameter_name)
837 ENSURE_GUI_THREAD (bind (mem_fun (*this, &ARDOUR_UI::parameter_changed), parameter_name));
839 #define PARAM_IS(x) (!strcmp (parameter_name, (x)))
841 if (PARAM_IS ("slave-source")) {
843 sync_option_combo.set_active_text (slave_source_to_string (Config->get_slave_source()));
845 switch (Config->get_slave_source()) {
847 ActionManager::get_action ("Transport", "ToggleAutoPlay")->set_sensitive (true);
848 ActionManager::get_action ("Transport", "ToggleAutoReturn")->set_sensitive (true);
852 /* XXX need to make auto-play is off as well as insensitive */
853 ActionManager::get_action ("Transport", "ToggleAutoPlay")->set_sensitive (false);
854 ActionManager::get_action ("Transport", "ToggleAutoReturn")->set_sensitive (false);
858 } else if (PARAM_IS ("send-mtc")) {
860 ActionManager::map_some_state ("options", "SendMTC", &Configuration::get_send_mtc);
862 } else if (PARAM_IS ("send-mmc")) {
864 ActionManager::map_some_state ("options", "SendMMC", &Configuration::get_send_mmc);
866 } else if (PARAM_IS ("use-osc")) {
869 if (Config->get_use_osc()) {
876 ActionManager::map_some_state ("options", "UseOSC", &Configuration::get_use_osc);
878 } else if (PARAM_IS ("mmc-control")) {
879 ActionManager::map_some_state ("options", "UseMMC", &Configuration::get_mmc_control);
880 } else if (PARAM_IS ("midi-feedback")) {
881 ActionManager::map_some_state ("options", "SendMIDIfeedback", &Configuration::get_midi_feedback);
882 } else if (PARAM_IS ("do-not-record-plugins")) {
883 ActionManager::map_some_state ("options", "DoNotRunPluginsWhileRecording", &Configuration::get_do_not_record_plugins);
884 } else if (PARAM_IS ("latched-record-enable")) {
885 ActionManager::map_some_state ("options", "LatchedRecordEnable", &Configuration::get_latched_record_enable);
886 } else if (PARAM_IS ("solo-latched")) {
887 ActionManager::map_some_state ("options", "LatchedSolo", &Configuration::get_solo_latched);
888 } else if (PARAM_IS ("show-solo-mutes")) {
889 ActionManager::map_some_state ("options", "ShowSoloMutes", &Configuration::get_show_solo_mutes);
890 } else if (PARAM_IS ("solo-model")) {
892 } else if (PARAM_IS ("auto-play")) {
893 ActionManager::map_some_state ("Transport", "ToggleAutoPlay", &Configuration::get_auto_play);
894 } else if (PARAM_IS ("auto-return")) {
895 ActionManager::map_some_state ("Transport", "ToggleAutoReturn", &Configuration::get_auto_return);
896 } else if (PARAM_IS ("auto-input")) {
897 ActionManager::map_some_state ("Transport", "ToggleAutoInput", &Configuration::get_auto_input);
898 } else if (PARAM_IS ("punch-out")) {
899 ActionManager::map_some_state ("Transport", "TogglePunchOut", &Configuration::get_punch_out);
900 } else if (PARAM_IS ("punch-in")) {
901 ActionManager::map_some_state ("Transport", "TogglePunchIn", &Configuration::get_punch_in);
902 } else if (PARAM_IS ("clicking")) {
903 ActionManager::map_some_state ("Transport", "ToggleClick", &Configuration::get_clicking);
904 } else if (PARAM_IS ("jack-time-master")) {
905 ActionManager::map_some_state ("Transport", "ToggleTimeMaster", &Configuration::get_jack_time_master);
906 } else if (PARAM_IS ("plugins-stop-with-transport")) {
907 ActionManager::map_some_state ("options", "StopPluginsWithTransport", &Configuration::get_plugins_stop_with_transport);
908 } else if (PARAM_IS ("latched-record-enable")) {
909 ActionManager::map_some_state ("options", "LatchedRecordEnable", &Configuration::get_latched_record_enable);
910 } else if (PARAM_IS ("verify-remove-last-capture")) {
911 ActionManager::map_some_state ("options", "VerifyRemoveLastCapture", &Configuration::get_verify_remove_last_capture);
912 } else if (PARAM_IS ("periodic-safety-backups")) {
913 ActionManager::map_some_state ("options", "PeriodicSafetyBackups", &Configuration::get_periodic_safety_backups);
914 } else if (PARAM_IS ("stop-recording-on-xrun")) {
915 ActionManager::map_some_state ("options", "StopRecordingOnXrun", &Configuration::get_stop_recording_on_xrun);
916 } else if (PARAM_IS ("stop-at-session-end")) {
917 ActionManager::map_some_state ("options", "StopTransportAtEndOfSession", &Configuration::get_stop_at_session_end);
918 } else if (PARAM_IS ("monitoring-model")) {
919 map_monitor_model ();
920 } else if (PARAM_IS ("remote-model")) {
922 } else if (PARAM_IS ("use-video-sync")) {
923 ActionManager::map_some_state ("Transport", "ToggleVideoSync", &Configuration::get_use_video_sync);
924 } else if (PARAM_IS ("quieten-at-speed")) {
925 ActionManager::map_some_state ("options", "GainReduceFastTransport", &Configuration::get_quieten_at_speed);
926 } else if (PARAM_IS ("shuttle-behaviour")) {
928 switch (Config->get_shuttle_behaviour ()) {
930 shuttle_style_button.set_active_text (_("sprung"));
932 shuttle_box.queue_draw ();
934 if (session->transport_rolling()) {
935 shuttle_fract = SHUTTLE_FRACT_SPEED1;
936 session->request_transport_speed (1.0);
941 shuttle_style_button.set_active_text (_("wheel"));
945 } else if (PARAM_IS ("shuttle-units")) {
947 switch (Config->get_shuttle_units()) {
949 shuttle_units_button.set_label("% ");
952 shuttle_units_button.set_label(_("ST"));
955 } else if (PARAM_IS ("input-auto-connect")) {
956 map_input_auto_connect ();
957 } else if (PARAM_IS ("output-auto-connect")) {
958 map_output_auto_connect ();
959 } else if (PARAM_IS ("native-file-header-format")) {
960 map_file_header_format ();
961 } else if (PARAM_IS ("native-file-data-format")) {
962 map_file_data_format ();
963 } else if (PARAM_IS ("meter-hold")) {
965 } else if (PARAM_IS ("meter-falloff")) {
966 map_meter_falloff ();
967 } else if (PARAM_IS ("video-pullup") || PARAM_IS ("smpte-format")) {
969 primary_clock.set (session->audible_frame(), true);
970 secondary_clock.set (session->audible_frame(), true);
972 primary_clock.set (0, true);
973 secondary_clock.set (0, true);
975 } else if (PARAM_IS ("use-overlap-equivalency")) {
976 ActionManager::map_some_state ("options", "RegionEquivalentsOverlap", &Configuration::get_use_overlap_equivalency);
977 } else if (PARAM_IS ("primary-clock-delta-edit-cursor")) {
978 ActionManager::map_some_state ("options", "PrimaryClockDeltaEditCursor", &Configuration::get_primary_clock_delta_edit_cursor);
979 } else if (PARAM_IS ("secondary-clock-delta-edit-cursor")) {
980 ActionManager::map_some_state ("options", "SecondaryClockDeltaEditCursor", &Configuration::get_secondary_clock_delta_edit_cursor);