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 action = X_("FileDataFormat16bit");
142 fatal << string_compose (_("programming error: %1"), "illegal file data format in ::set_native_file_data_format") << endmsg;
146 Glib::RefPtr<Action> act = ActionManager::get_action ("options", action);
149 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
150 if (ract && ract->get_active() && Config->get_native_file_data_format() != sf) {
151 Config->set_native_file_data_format (sf);
157 ARDOUR_UI::set_input_auto_connect (AutoConnectOption option)
162 case AutoConnectPhysical:
163 action = X_("InputAutoConnectPhysical");
166 action = X_("InputAutoConnectManual");
169 Glib::RefPtr<Action> act = ActionManager::get_action ("options", action);
172 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
174 if (ract && ract->get_active() && Config->get_input_auto_connect() != option) {
175 Config->set_input_auto_connect (option);
181 ARDOUR_UI::set_output_auto_connect (AutoConnectOption option)
186 case AutoConnectPhysical:
187 action = X_("OutputAutoConnectPhysical");
189 case AutoConnectMaster:
190 action = X_("OutputAutoConnectMaster");
193 action = X_("OutputAutoConnectManual");
196 Glib::RefPtr<Action> act = ActionManager::get_action ("options", action);
199 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
201 if (ract && ract->get_active() && Config->get_output_auto_connect() != option) {
202 Config->set_output_auto_connect (option);
208 ARDOUR_UI::set_solo_model (SoloModel model)
210 const char* action = 0;
214 action = X_("SoloViaBus");
218 action = X_("SoloInPlace");
221 fatal << string_compose (_("programming error: unknown solo model in ARDOUR_UI::set_solo_model: %1"), model) << endmsg;
225 Glib::RefPtr<Action> act = ActionManager::get_action ("options", action);
228 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
230 if (ract && ract->get_active() && Config->get_solo_model() != model) {
231 Config->set_solo_model (model);
238 ARDOUR_UI::set_remote_model (RemoteModel model)
240 const char* action = 0;
244 action = X_("RemoteUserDefined");
247 action = X_("RemoteMixerDefined");
250 action = X_("RemoteEditorDefined");
254 fatal << string_compose (_("programming error: unknown remote model in ARDOUR_UI::set_remote_model: %1"), model) << endmsg;
258 Glib::RefPtr<Action> act = ActionManager::get_action ("options", action);
261 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
263 if (ract && ract->get_active() && Config->get_remote_model() != model) {
264 Config->set_remote_model (model);
271 ARDOUR_UI::set_monitor_model (MonitorModel model)
273 const char* action = 0;
276 case HardwareMonitoring:
277 action = X_("UseHardwareMonitoring");
280 case SoftwareMonitoring:
281 action = X_("UseSoftwareMonitoring");
283 case ExternalMonitoring:
284 action = X_("UseExternalMonitoring");
288 fatal << string_compose (_("programming error: unknown monitor model in ARDOUR_UI::set_monitor_model: %1"), model) << endmsg;
292 Glib::RefPtr<Action> act = ActionManager::get_action ("options", action);
295 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
297 if (ract && ract->get_active() && Config->get_monitoring_model() != model) {
298 Config->set_monitoring_model (model);
305 ARDOUR_UI::set_denormal_model (DenormalModel model)
307 const char* action = 0;
311 action = X_("DenormalNone");
315 action = X_("DenormalFTZ");
319 action = X_("DenormalDAZ");
323 action = X_("DenormalFTZDAZ");
327 fatal << string_compose (_("programming error: unknown denormal model in ARDOUR_UI::set_denormal_model: %1"), model) << endmsg;
331 Glib::RefPtr<Action> act = ActionManager::get_action ("options", action);
334 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
336 if (ract && ract->get_active() && Config->get_denormal_model() != model) {
337 Config->set_denormal_model (model);
344 ARDOUR_UI::toggle_auto_input ()
346 ActionManager::toggle_config_state ("Transport", "ToggleAutoInput", &Configuration::set_auto_input, &Configuration::get_auto_input);
350 ARDOUR_UI::toggle_auto_play ()
352 ActionManager::toggle_config_state ("Transport", "ToggleAutoPlay", &Configuration::set_auto_play, &Configuration::get_auto_play);
356 ARDOUR_UI::toggle_auto_return ()
358 ActionManager::toggle_config_state ("Transport", "ToggleAutoReturn", &Configuration::set_auto_return, &Configuration::get_auto_return);
362 ARDOUR_UI::toggle_click ()
364 ActionManager::toggle_config_state ("Transport", "ToggleClick", &Configuration::set_clicking, &Configuration::get_clicking);
368 ARDOUR_UI::toggle_session_auto_loop ()
371 if (session->get_play_loop()) {
372 if (session->transport_rolling()) {
375 session->request_play_loop (false);
378 session->request_play_loop (true);
384 ARDOUR_UI::toggle_punch_in ()
386 ActionManager::toggle_config_state ("Transport", "TogglePunchIn", &Configuration::set_punch_in, &Configuration::get_punch_in);
390 ARDOUR_UI::toggle_punch_out ()
392 ActionManager::toggle_config_state ("Transport", "TogglePunchOut", &Configuration::set_punch_out, &Configuration::get_punch_out);
396 ARDOUR_UI::toggle_video_sync()
398 Glib::RefPtr<Action> act = ActionManager::get_action ("Transport", "ToggleVideoSync");
400 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
401 Config->set_use_video_sync (tact->get_active());
406 ARDOUR_UI::toggle_editing_space()
408 Glib::RefPtr<Action> act = ActionManager::get_action ("Common", "ToggleMaximalEditor");
410 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
411 if (tact->get_active()) {
412 maximise_editing_space ();
414 restore_editing_space ();
420 ARDOUR_UI::toggle_StopPluginsWithTransport()
422 ActionManager::toggle_config_state ("options", "StopPluginsWithTransport", &Configuration::set_plugins_stop_with_transport, &Configuration::get_plugins_stop_with_transport);
426 ARDOUR_UI::toggle_LatchedRecordEnable()
428 ActionManager::toggle_config_state ("options", "LatchedRecordEnable", &Configuration::set_latched_record_enable, &Configuration::get_latched_record_enable);
432 ARDOUR_UI::toggle_RegionEquivalentsOverlap()
434 ActionManager::toggle_config_state ("options", "RegionEquivalentsOverlap", &Configuration::set_use_overlap_equivalency, &Configuration::get_use_overlap_equivalency);
438 ARDOUR_UI::toggle_DoNotRunPluginsWhileRecording()
440 ActionManager::toggle_config_state ("options", "DoNotRunPluginsWhileRecording", &Configuration::set_do_not_record_plugins, &Configuration::get_do_not_record_plugins);
444 ARDOUR_UI::toggle_VerifyRemoveLastCapture()
446 ActionManager::toggle_config_state ("options", "VerifyRemoveLastCapture", &Configuration::set_verify_remove_last_capture, &Configuration::get_verify_remove_last_capture);
450 ARDOUR_UI::toggle_PeriodicSafetyBackups()
452 ActionManager::toggle_config_state ("options", "PeriodicSafetyBackups", &Configuration::set_periodic_safety_backups, &Configuration::get_periodic_safety_backups);
456 ARDOUR_UI::toggle_StopRecordingOnXrun()
458 ActionManager::toggle_config_state ("options", "StopRecordingOnXrun", &Configuration::set_stop_recording_on_xrun, &Configuration::get_stop_recording_on_xrun);
462 ARDOUR_UI::toggle_StopTransportAtEndOfSession()
464 ActionManager::toggle_config_state ("options", "StopTransportAtEndOfSession", &Configuration::set_stop_at_session_end, &Configuration::get_stop_at_session_end);
468 ARDOUR_UI::toggle_GainReduceFastTransport()
470 ActionManager::toggle_config_state ("options", "GainReduceFastTransport", &Configuration::set_quieten_at_speed, &Configuration::get_quieten_at_speed);
474 ARDOUR_UI::toggle_LatchedSolo()
476 ActionManager::toggle_config_state ("options", "LatchedSolo", &Configuration::set_solo_latched, &Configuration::get_solo_latched);
480 ARDOUR_UI::toggle_ShowSoloMutes()
482 ActionManager::toggle_config_state ("options", "ShowSoloMutes", &Configuration::set_show_solo_mutes, &Configuration::get_show_solo_mutes);
486 ARDOUR_UI::toggle_PrimaryClockDeltaEditCursor()
488 ActionManager::toggle_config_state ("options", "PrimaryClockDeltaEditCursor", &Configuration::set_primary_clock_delta_edit_cursor, &Configuration::get_primary_clock_delta_edit_cursor);
492 ARDOUR_UI::toggle_SecondaryClockDeltaEditCursor()
494 ActionManager::toggle_config_state ("options", "SecondaryClockDeltaEditCursor", &Configuration::set_secondary_clock_delta_edit_cursor, &Configuration::get_secondary_clock_delta_edit_cursor);
498 ARDOUR_UI::mtc_port_changed ()
503 if (session->mtc_port()) {
512 positional_sync_strings.clear ();
513 positional_sync_strings.push_back (slave_source_to_string (None));
515 positional_sync_strings.push_back (slave_source_to_string (MTC));
517 positional_sync_strings.push_back (slave_source_to_string (JACK));
519 set_popdown_strings (sync_option_combo, positional_sync_strings);
523 ARDOUR_UI::setup_session_options ()
527 Config->ParameterChanged.connect (mem_fun (*this, &ARDOUR_UI::parameter_changed));
532 ARDOUR_UI::map_solo_model ()
536 if (Config->get_solo_model() == InverseMute) {
537 on = X_("SoloInPlace");
539 on = X_("SoloViaBus");
542 Glib::RefPtr<Action> act = ActionManager::get_action ("options", on);
544 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
546 if (tact && !tact->get_active()) {
547 tact->set_active (true);
553 ARDOUR_UI::map_monitor_model ()
557 switch (Config->get_monitoring_model()) {
558 case HardwareMonitoring:
559 on = X_("UseHardwareMonitoring");
561 case SoftwareMonitoring:
562 on = X_("UseSoftwareMonitoring");
564 case ExternalMonitoring:
565 on = X_("UseExternalMonitoring");
569 Glib::RefPtr<Action> act = ActionManager::get_action ("options", on);
571 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
573 if (tact && !tact->get_active()) {
574 tact->set_active (true);
580 ARDOUR_UI::map_denormal_model ()
584 switch (Config->get_denormal_model()) {
586 on = X_("DenormalNone");
589 on = X_("DenormalFTZ");
592 on = X_("DenormalDAZ");
595 on = X_("DenormalFTZDAZ");
599 Glib::RefPtr<Action> act = ActionManager::get_action ("options", on);
601 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
603 if (tact && !tact->get_active()) {
604 tact->set_active (true);
610 ARDOUR_UI::map_remote_model ()
614 switch (Config->get_remote_model()) {
616 on = X_("RemoteUserDefined");
619 on = X_("RemoteMixerDefined");
622 on = X_("RemoteEditorDefined");
626 Glib::RefPtr<Action> act = ActionManager::get_action ("options", on);
628 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
630 if (tact && !tact->get_active()) {
631 tact->set_active (true);
637 ARDOUR_UI::map_file_header_format ()
639 const char* action = 0;
641 switch (Config->get_native_file_header_format()) {
643 action = X_("FileHeaderFormatBWF");
647 action = X_("FileHeaderFormatWAVE");
651 action = X_("FileHeaderFormatWAVE64");
655 action = X_("FileHeaderFormatiXML");
659 action = X_("FileHeaderFormatRF64");
663 action = X_("FileHeaderFormatCAF");
667 fatal << string_compose (_("programming error: unknown file header format passed to ARDOUR_UI::map_file_data_format: %1"),
668 Config->get_native_file_header_format()) << endmsg;
673 Glib::RefPtr<Action> act = ActionManager::get_action ("options", action);
676 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
678 if (tact && !tact->get_active()) {
679 tact->set_active (true);
685 ARDOUR_UI::map_file_data_format ()
687 const char* action = 0;
689 switch (Config->get_native_file_data_format()) {
691 action = X_("FileDataFormatFloat");
695 action = X_("FileDataFormat24bit");
699 action = X_("FileDataFormat16bit");
703 fatal << string_compose (_("programming error: unknown file data format passed to ARDOUR_UI::map_file_data_format: %1"),
704 Config->get_native_file_data_format()) << endmsg;
709 Glib::RefPtr<Action> act = ActionManager::get_action ("options", action);
712 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
714 if (tact && !tact->get_active()) {
715 tact->set_active (true);
721 ARDOUR_UI::map_input_auto_connect ()
725 if (Config->get_input_auto_connect() == (AutoConnectOption) 0) {
726 on = "InputAutoConnectManual";
728 on = "InputAutoConnectPhysical";
731 Glib::RefPtr<Action> act = ActionManager::get_action ("options", on);
733 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
735 if (tact && !tact->get_active()) {
736 tact->set_active (true);
742 ARDOUR_UI::map_output_auto_connect ()
746 if (Config->get_output_auto_connect() == (AutoConnectOption) 0) {
747 on = "OutputAutoConnectManual";
748 } else if (Config->get_output_auto_connect() == AutoConnectPhysical) {
749 on = "OutputAutoConnectPhysical";
751 on = "OutputAutoConnectMaster";
754 Glib::RefPtr<Action> act = ActionManager::get_action ("options", on);
756 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
758 if (tact && !tact->get_active()) {
759 tact->set_active (true);
765 ARDOUR_UI::map_meter_falloff ()
767 const char* action = X_("MeterFalloffMedium");
769 float val = Config->get_meter_falloff ();
770 MeterFalloff code = meter_falloff_from_float(val);
773 case MeterFalloffOff:
774 action = X_("MeterFalloffOff");
776 case MeterFalloffSlowest:
777 action = X_("MeterFalloffSlowest");
779 case MeterFalloffSlow:
780 action = X_("MeterFalloffSlow");
782 case MeterFalloffMedium:
783 action = X_("MeterFalloffMedium");
785 case MeterFalloffFast:
786 action = X_("MeterFalloffFast");
788 case MeterFalloffFaster:
789 action = X_("MeterFalloffFaster");
791 case MeterFalloffFastest:
792 action = X_("MeterFalloffFastest");
796 Glib::RefPtr<Action> act = ActionManager::get_action (X_("options"), action);
799 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
800 if (ract && !ract->get_active()) {
801 ract->set_active (true);
807 ARDOUR_UI::map_meter_hold ()
809 const char* action = X_("MeterHoldMedium");
811 /* XXX hack alert. Fix this. Please */
813 float val = Config->get_meter_hold ();
814 MeterHold code = (MeterHold) (int) (floor (val));
818 action = X_("MeterHoldOff");
821 action = X_("MeterHoldShort");
823 case MeterHoldMedium:
824 action = X_("MeterHoldMedium");
827 action = X_("MeterHoldLong");
831 Glib::RefPtr<Action> act = ActionManager::get_action (X_("options"), action);
834 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
835 if (ract && !ract->get_active()) {
836 ract->set_active (true);
842 ARDOUR_UI::set_meter_hold (MeterHold val)
844 const char* action = 0;
847 fval = meter_hold_to_float (val);
851 action = X_("MeterHoldOff");
854 action = X_("MeterHoldShort");
856 case MeterHoldMedium:
857 action = X_("MeterHoldMedium");
860 action = X_("MeterHoldLong");
864 Glib::RefPtr<Action> act = ActionManager::get_action (X_("options"), action);
867 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
868 if (ract && ract->get_active() && Config->get_meter_hold() != fval) {
869 Config->set_meter_hold (fval);
875 ARDOUR_UI::set_meter_falloff (MeterFalloff val)
877 const char* action = 0;
880 fval = meter_falloff_to_float (val);
883 case MeterFalloffOff:
884 action = X_("MeterFalloffOff");
886 case MeterFalloffSlowest:
887 action = X_("MeterFalloffSlowest");
889 case MeterFalloffSlow:
890 action = X_("MeterFalloffSlow");
892 case MeterFalloffMedium:
893 action = X_("MeterFalloffMedium");
895 case MeterFalloffFast:
896 action = X_("MeterFalloffFast");
898 case MeterFalloffFaster:
899 action = X_("MeterFalloffFaster");
901 case MeterFalloffFastest:
902 action = X_("MeterFalloffFastest");
906 Glib::RefPtr<Action> act = ActionManager::get_action (X_("options"), action);
909 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
910 if (ract && ract->get_active() && Config->get_meter_falloff () != fval) {
911 Config->set_meter_falloff (fval);
917 ARDOUR_UI::parameter_changed (const char* parameter_name)
919 ENSURE_GUI_THREAD (bind (mem_fun (*this, &ARDOUR_UI::parameter_changed), parameter_name));
921 #define PARAM_IS(x) (!strcmp (parameter_name, (x)))
923 if (PARAM_IS ("slave-source")) {
925 sync_option_combo.set_active_text (slave_source_to_string (Config->get_slave_source()));
927 switch (Config->get_slave_source()) {
929 ActionManager::get_action ("Transport", "ToggleAutoPlay")->set_sensitive (true);
930 ActionManager::get_action ("Transport", "ToggleAutoReturn")->set_sensitive (true);
934 /* XXX need to make auto-play is off as well as insensitive */
935 ActionManager::get_action ("Transport", "ToggleAutoPlay")->set_sensitive (false);
936 ActionManager::get_action ("Transport", "ToggleAutoReturn")->set_sensitive (false);
940 } else if (PARAM_IS ("send-mtc")) {
942 ActionManager::map_some_state ("options", "SendMTC", &Configuration::get_send_mtc);
944 } else if (PARAM_IS ("send-mmc")) {
946 ActionManager::map_some_state ("options", "SendMMC", &Configuration::get_send_mmc);
948 } else if (PARAM_IS ("use-osc")) {
951 if (Config->get_use_osc()) {
958 ActionManager::map_some_state ("options", "UseOSC", &Configuration::get_use_osc);
960 } else if (PARAM_IS ("mmc-control")) {
961 ActionManager::map_some_state ("options", "UseMMC", &Configuration::get_mmc_control);
962 } else if (PARAM_IS ("midi-feedback")) {
963 ActionManager::map_some_state ("options", "SendMIDIfeedback", &Configuration::get_midi_feedback);
964 } else if (PARAM_IS ("do-not-record-plugins")) {
965 ActionManager::map_some_state ("options", "DoNotRunPluginsWhileRecording", &Configuration::get_do_not_record_plugins);
966 } else if (PARAM_IS ("latched-record-enable")) {
967 ActionManager::map_some_state ("options", "LatchedRecordEnable", &Configuration::get_latched_record_enable);
968 } else if (PARAM_IS ("solo-latched")) {
969 ActionManager::map_some_state ("options", "LatchedSolo", &Configuration::get_solo_latched);
970 } else if (PARAM_IS ("show-solo-mutes")) {
971 ActionManager::map_some_state ("options", "ShowSoloMutes", &Configuration::get_show_solo_mutes);
972 } else if (PARAM_IS ("solo-model")) {
974 } else if (PARAM_IS ("auto-play")) {
975 ActionManager::map_some_state ("Transport", "ToggleAutoPlay", &Configuration::get_auto_play);
976 } else if (PARAM_IS ("auto-return")) {
977 ActionManager::map_some_state ("Transport", "ToggleAutoReturn", &Configuration::get_auto_return);
978 } else if (PARAM_IS ("auto-input")) {
979 ActionManager::map_some_state ("Transport", "ToggleAutoInput", &Configuration::get_auto_input);
980 } else if (PARAM_IS ("punch-out")) {
981 ActionManager::map_some_state ("Transport", "TogglePunchOut", &Configuration::get_punch_out);
982 } else if (PARAM_IS ("punch-in")) {
983 ActionManager::map_some_state ("Transport", "TogglePunchIn", &Configuration::get_punch_in);
984 } else if (PARAM_IS ("clicking")) {
985 ActionManager::map_some_state ("Transport", "ToggleClick", &Configuration::get_clicking);
986 } else if (PARAM_IS ("jack-time-master")) {
987 ActionManager::map_some_state ("Transport", "ToggleTimeMaster", &Configuration::get_jack_time_master);
988 } else if (PARAM_IS ("plugins-stop-with-transport")) {
989 ActionManager::map_some_state ("options", "StopPluginsWithTransport", &Configuration::get_plugins_stop_with_transport);
990 } else if (PARAM_IS ("latched-record-enable")) {
991 ActionManager::map_some_state ("options", "LatchedRecordEnable", &Configuration::get_latched_record_enable);
992 } else if (PARAM_IS ("verify-remove-last-capture")) {
993 ActionManager::map_some_state ("options", "VerifyRemoveLastCapture", &Configuration::get_verify_remove_last_capture);
994 } else if (PARAM_IS ("periodic-safety-backups")) {
995 ActionManager::map_some_state ("options", "PeriodicSafetyBackups", &Configuration::get_periodic_safety_backups);
996 } else if (PARAM_IS ("stop-recording-on-xrun")) {
997 ActionManager::map_some_state ("options", "StopRecordingOnXrun", &Configuration::get_stop_recording_on_xrun);
998 } else if (PARAM_IS ("stop-at-session-end")) {
999 ActionManager::map_some_state ("options", "StopTransportAtEndOfSession", &Configuration::get_stop_at_session_end);
1000 } else if (PARAM_IS ("monitoring-model")) {
1001 map_monitor_model ();
1002 } else if (PARAM_IS ("denormal-model")) {
1003 map_denormal_model ();
1004 } else if (PARAM_IS ("remote-model")) {
1005 map_remote_model ();
1006 } else if (PARAM_IS ("use-video-sync")) {
1007 ActionManager::map_some_state ("Transport", "ToggleVideoSync", &Configuration::get_use_video_sync);
1008 } else if (PARAM_IS ("quieten-at-speed")) {
1009 ActionManager::map_some_state ("options", "GainReduceFastTransport", &Configuration::get_quieten_at_speed);
1010 } else if (PARAM_IS ("shuttle-behaviour")) {
1012 switch (Config->get_shuttle_behaviour ()) {
1014 shuttle_style_button.set_active_text (_("sprung"));
1015 shuttle_fract = 0.0;
1016 shuttle_box.queue_draw ();
1018 if (session->transport_rolling()) {
1019 shuttle_fract = SHUTTLE_FRACT_SPEED1;
1020 session->request_transport_speed (1.0);
1025 shuttle_style_button.set_active_text (_("wheel"));
1029 } else if (PARAM_IS ("shuttle-units")) {
1031 switch (Config->get_shuttle_units()) {
1033 shuttle_units_button.set_label("% ");
1036 shuttle_units_button.set_label(_("ST"));
1039 } else if (PARAM_IS ("input-auto-connect")) {
1040 map_input_auto_connect ();
1041 } else if (PARAM_IS ("output-auto-connect")) {
1042 map_output_auto_connect ();
1043 } else if (PARAM_IS ("native-file-header-format")) {
1044 map_file_header_format ();
1045 } else if (PARAM_IS ("native-file-data-format")) {
1046 map_file_data_format ();
1047 } else if (PARAM_IS ("meter-hold")) {
1049 } else if (PARAM_IS ("meter-falloff")) {
1050 map_meter_falloff ();
1051 } else if (PARAM_IS ("video-pullup") || PARAM_IS ("smpte-format")) {
1053 primary_clock.set (session->audible_frame(), true);
1054 secondary_clock.set (session->audible_frame(), true);
1056 primary_clock.set (0, true);
1057 secondary_clock.set (0, true);
1059 } else if (PARAM_IS ("use-overlap-equivalency")) {
1060 ActionManager::map_some_state ("options", "RegionEquivalentsOverlap", &Configuration::get_use_overlap_equivalency);
1061 } else if (PARAM_IS ("primary-clock-delta-edit-cursor")) {
1062 ActionManager::map_some_state ("options", "PrimaryClockDeltaEditCursor", &Configuration::get_primary_clock_delta_edit_cursor);
1063 } else if (PARAM_IS ("secondary-clock-delta-edit-cursor")) {
1064 ActionManager::map_some_state ("options", "SecondaryClockDeltaEditCursor", &Configuration::get_secondary_clock_delta_edit_cursor);