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_protection ()
582 Glib::RefPtr<Action> act = ActionManager::get_action ("options", X_("DenormalProtection"));
584 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
586 if (tact && !tact->get_active()) {
587 tact->set_active (Config->get_denormal_protection());
593 ARDOUR_UI::map_denormal_model ()
597 switch (Config->get_denormal_model()) {
599 on = X_("DenormalNone");
602 on = X_("DenormalFTZ");
605 on = X_("DenormalDAZ");
608 on = X_("DenormalFTZDAZ");
612 Glib::RefPtr<Action> act = ActionManager::get_action ("options", on);
614 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
616 if (tact && !tact->get_active()) {
617 tact->set_active (true);
623 ARDOUR_UI::map_remote_model ()
627 switch (Config->get_remote_model()) {
629 on = X_("RemoteUserDefined");
632 on = X_("RemoteMixerDefined");
635 on = X_("RemoteEditorDefined");
639 Glib::RefPtr<Action> act = ActionManager::get_action ("options", on);
641 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
643 if (tact && !tact->get_active()) {
644 tact->set_active (true);
650 ARDOUR_UI::map_file_header_format ()
652 const char* action = 0;
654 switch (Config->get_native_file_header_format()) {
656 action = X_("FileHeaderFormatBWF");
660 action = X_("FileHeaderFormatWAVE");
664 action = X_("FileHeaderFormatWAVE64");
668 action = X_("FileHeaderFormatiXML");
672 action = X_("FileHeaderFormatRF64");
676 action = X_("FileHeaderFormatCAF");
680 fatal << string_compose (_("programming error: unknown file header format passed to ARDOUR_UI::map_file_data_format: %1"),
681 Config->get_native_file_header_format()) << endmsg;
686 Glib::RefPtr<Action> act = ActionManager::get_action ("options", action);
689 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
691 if (tact && !tact->get_active()) {
692 tact->set_active (true);
698 ARDOUR_UI::map_file_data_format ()
700 const char* action = 0;
702 switch (Config->get_native_file_data_format()) {
704 action = X_("FileDataFormatFloat");
708 action = X_("FileDataFormat24bit");
712 action = X_("FileDataFormat16bit");
716 fatal << string_compose (_("programming error: unknown file data format passed to ARDOUR_UI::map_file_data_format: %1"),
717 Config->get_native_file_data_format()) << endmsg;
722 Glib::RefPtr<Action> act = ActionManager::get_action ("options", action);
725 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
727 if (tact && !tact->get_active()) {
728 tact->set_active (true);
734 ARDOUR_UI::map_input_auto_connect ()
738 if (Config->get_input_auto_connect() == (AutoConnectOption) 0) {
739 on = "InputAutoConnectManual";
741 on = "InputAutoConnectPhysical";
744 Glib::RefPtr<Action> act = ActionManager::get_action ("options", on);
746 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
748 if (tact && !tact->get_active()) {
749 tact->set_active (true);
755 ARDOUR_UI::map_output_auto_connect ()
759 if (Config->get_output_auto_connect() == (AutoConnectOption) 0) {
760 on = "OutputAutoConnectManual";
761 } else if (Config->get_output_auto_connect() == AutoConnectPhysical) {
762 on = "OutputAutoConnectPhysical";
764 on = "OutputAutoConnectMaster";
767 Glib::RefPtr<Action> act = ActionManager::get_action ("options", on);
769 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
771 if (tact && !tact->get_active()) {
772 tact->set_active (true);
778 ARDOUR_UI::map_meter_falloff ()
780 const char* action = X_("MeterFalloffMedium");
782 float val = Config->get_meter_falloff ();
783 MeterFalloff code = meter_falloff_from_float(val);
786 case MeterFalloffOff:
787 action = X_("MeterFalloffOff");
789 case MeterFalloffSlowest:
790 action = X_("MeterFalloffSlowest");
792 case MeterFalloffSlow:
793 action = X_("MeterFalloffSlow");
795 case MeterFalloffMedium:
796 action = X_("MeterFalloffMedium");
798 case MeterFalloffFast:
799 action = X_("MeterFalloffFast");
801 case MeterFalloffFaster:
802 action = X_("MeterFalloffFaster");
804 case MeterFalloffFastest:
805 action = X_("MeterFalloffFastest");
809 Glib::RefPtr<Action> act = ActionManager::get_action (X_("options"), action);
812 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
813 if (ract && !ract->get_active()) {
814 ract->set_active (true);
820 ARDOUR_UI::map_meter_hold ()
822 const char* action = X_("MeterHoldMedium");
824 /* XXX hack alert. Fix this. Please */
826 float val = Config->get_meter_hold ();
827 MeterHold code = (MeterHold) (int) (floor (val));
831 action = X_("MeterHoldOff");
834 action = X_("MeterHoldShort");
836 case MeterHoldMedium:
837 action = X_("MeterHoldMedium");
840 action = X_("MeterHoldLong");
844 Glib::RefPtr<Action> act = ActionManager::get_action (X_("options"), action);
847 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
848 if (ract && !ract->get_active()) {
849 ract->set_active (true);
855 ARDOUR_UI::set_meter_hold (MeterHold val)
857 const char* action = 0;
860 fval = meter_hold_to_float (val);
864 action = X_("MeterHoldOff");
867 action = X_("MeterHoldShort");
869 case MeterHoldMedium:
870 action = X_("MeterHoldMedium");
873 action = X_("MeterHoldLong");
877 Glib::RefPtr<Action> act = ActionManager::get_action (X_("options"), action);
880 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
881 if (ract && ract->get_active() && Config->get_meter_hold() != fval) {
882 Config->set_meter_hold (fval);
888 ARDOUR_UI::set_meter_falloff (MeterFalloff val)
890 const char* action = 0;
893 fval = meter_falloff_to_float (val);
896 case MeterFalloffOff:
897 action = X_("MeterFalloffOff");
899 case MeterFalloffSlowest:
900 action = X_("MeterFalloffSlowest");
902 case MeterFalloffSlow:
903 action = X_("MeterFalloffSlow");
905 case MeterFalloffMedium:
906 action = X_("MeterFalloffMedium");
908 case MeterFalloffFast:
909 action = X_("MeterFalloffFast");
911 case MeterFalloffFaster:
912 action = X_("MeterFalloffFaster");
914 case MeterFalloffFastest:
915 action = X_("MeterFalloffFastest");
919 Glib::RefPtr<Action> act = ActionManager::get_action (X_("options"), action);
922 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
923 if (ract && ract->get_active() && Config->get_meter_falloff () != fval) {
924 Config->set_meter_falloff (fval);
930 ARDOUR_UI::parameter_changed (const char* parameter_name)
932 ENSURE_GUI_THREAD (bind (mem_fun (*this, &ARDOUR_UI::parameter_changed), parameter_name));
934 #define PARAM_IS(x) (!strcmp (parameter_name, (x)))
936 if (PARAM_IS ("slave-source")) {
938 sync_option_combo.set_active_text (slave_source_to_string (Config->get_slave_source()));
940 switch (Config->get_slave_source()) {
942 ActionManager::get_action ("Transport", "ToggleAutoPlay")->set_sensitive (true);
943 ActionManager::get_action ("Transport", "ToggleAutoReturn")->set_sensitive (true);
947 /* XXX need to make auto-play is off as well as insensitive */
948 ActionManager::get_action ("Transport", "ToggleAutoPlay")->set_sensitive (false);
949 ActionManager::get_action ("Transport", "ToggleAutoReturn")->set_sensitive (false);
953 } else if (PARAM_IS ("send-mtc")) {
955 ActionManager::map_some_state ("options", "SendMTC", &Configuration::get_send_mtc);
957 } else if (PARAM_IS ("send-mmc")) {
959 ActionManager::map_some_state ("options", "SendMMC", &Configuration::get_send_mmc);
961 } else if (PARAM_IS ("use-osc")) {
964 if (Config->get_use_osc()) {
971 ActionManager::map_some_state ("options", "UseOSC", &Configuration::get_use_osc);
973 } else if (PARAM_IS ("mmc-control")) {
974 ActionManager::map_some_state ("options", "UseMMC", &Configuration::get_mmc_control);
975 } else if (PARAM_IS ("midi-feedback")) {
976 ActionManager::map_some_state ("options", "SendMIDIfeedback", &Configuration::get_midi_feedback);
977 } else if (PARAM_IS ("do-not-record-plugins")) {
978 ActionManager::map_some_state ("options", "DoNotRunPluginsWhileRecording", &Configuration::get_do_not_record_plugins);
979 } else if (PARAM_IS ("latched-record-enable")) {
980 ActionManager::map_some_state ("options", "LatchedRecordEnable", &Configuration::get_latched_record_enable);
981 } else if (PARAM_IS ("solo-latched")) {
982 ActionManager::map_some_state ("options", "LatchedSolo", &Configuration::get_solo_latched);
983 } else if (PARAM_IS ("show-solo-mutes")) {
984 ActionManager::map_some_state ("options", "ShowSoloMutes", &Configuration::get_show_solo_mutes);
985 } else if (PARAM_IS ("solo-model")) {
987 } else if (PARAM_IS ("auto-play")) {
988 ActionManager::map_some_state ("Transport", "ToggleAutoPlay", &Configuration::get_auto_play);
989 } else if (PARAM_IS ("auto-return")) {
990 ActionManager::map_some_state ("Transport", "ToggleAutoReturn", &Configuration::get_auto_return);
991 } else if (PARAM_IS ("auto-input")) {
992 ActionManager::map_some_state ("Transport", "ToggleAutoInput", &Configuration::get_auto_input);
993 } else if (PARAM_IS ("punch-out")) {
994 ActionManager::map_some_state ("Transport", "TogglePunchOut", &Configuration::get_punch_out);
995 } else if (PARAM_IS ("punch-in")) {
996 ActionManager::map_some_state ("Transport", "TogglePunchIn", &Configuration::get_punch_in);
997 } else if (PARAM_IS ("clicking")) {
998 ActionManager::map_some_state ("Transport", "ToggleClick", &Configuration::get_clicking);
999 } else if (PARAM_IS ("jack-time-master")) {
1000 ActionManager::map_some_state ("Transport", "ToggleTimeMaster", &Configuration::get_jack_time_master);
1001 } else if (PARAM_IS ("plugins-stop-with-transport")) {
1002 ActionManager::map_some_state ("options", "StopPluginsWithTransport", &Configuration::get_plugins_stop_with_transport);
1003 } else if (PARAM_IS ("latched-record-enable")) {
1004 ActionManager::map_some_state ("options", "LatchedRecordEnable", &Configuration::get_latched_record_enable);
1005 } else if (PARAM_IS ("verify-remove-last-capture")) {
1006 ActionManager::map_some_state ("options", "VerifyRemoveLastCapture", &Configuration::get_verify_remove_last_capture);
1007 } else if (PARAM_IS ("periodic-safety-backups")) {
1008 ActionManager::map_some_state ("options", "PeriodicSafetyBackups", &Configuration::get_periodic_safety_backups);
1009 } else if (PARAM_IS ("stop-recording-on-xrun")) {
1010 ActionManager::map_some_state ("options", "StopRecordingOnXrun", &Configuration::get_stop_recording_on_xrun);
1011 } else if (PARAM_IS ("stop-at-session-end")) {
1012 ActionManager::map_some_state ("options", "StopTransportAtEndOfSession", &Configuration::get_stop_at_session_end);
1013 } else if (PARAM_IS ("monitoring-model")) {
1014 map_monitor_model ();
1015 } else if (PARAM_IS ("denormal-model")) {
1016 map_denormal_model ();
1017 } else if (PARAM_IS ("denormal-protection")) {
1018 map_denormal_protection ();
1019 } else if (PARAM_IS ("remote-model")) {
1020 map_remote_model ();
1021 } else if (PARAM_IS ("use-video-sync")) {
1022 ActionManager::map_some_state ("Transport", "ToggleVideoSync", &Configuration::get_use_video_sync);
1023 } else if (PARAM_IS ("quieten-at-speed")) {
1024 ActionManager::map_some_state ("options", "GainReduceFastTransport", &Configuration::get_quieten_at_speed);
1025 } else if (PARAM_IS ("shuttle-behaviour")) {
1027 switch (Config->get_shuttle_behaviour ()) {
1029 shuttle_style_button.set_active_text (_("sprung"));
1030 shuttle_fract = 0.0;
1031 shuttle_box.queue_draw ();
1033 if (session->transport_rolling()) {
1034 shuttle_fract = SHUTTLE_FRACT_SPEED1;
1035 session->request_transport_speed (1.0);
1040 shuttle_style_button.set_active_text (_("wheel"));
1044 } else if (PARAM_IS ("shuttle-units")) {
1046 switch (Config->get_shuttle_units()) {
1048 shuttle_units_button.set_label("% ");
1051 shuttle_units_button.set_label(_("ST"));
1054 } else if (PARAM_IS ("input-auto-connect")) {
1055 map_input_auto_connect ();
1056 } else if (PARAM_IS ("output-auto-connect")) {
1057 map_output_auto_connect ();
1058 } else if (PARAM_IS ("native-file-header-format")) {
1059 map_file_header_format ();
1060 } else if (PARAM_IS ("native-file-data-format")) {
1061 map_file_data_format ();
1062 } else if (PARAM_IS ("meter-hold")) {
1064 } else if (PARAM_IS ("meter-falloff")) {
1065 map_meter_falloff ();
1066 } else if (PARAM_IS ("video-pullup") || PARAM_IS ("smpte-format")) {
1068 primary_clock.set (session->audible_frame(), true);
1069 secondary_clock.set (session->audible_frame(), true);
1071 primary_clock.set (0, true);
1072 secondary_clock.set (0, true);
1074 } else if (PARAM_IS ("use-overlap-equivalency")) {
1075 ActionManager::map_some_state ("options", "RegionEquivalentsOverlap", &Configuration::get_use_overlap_equivalency);
1076 } else if (PARAM_IS ("primary-clock-delta-edit-cursor")) {
1077 ActionManager::map_some_state ("options", "PrimaryClockDeltaEditCursor", &Configuration::get_primary_clock_delta_edit_cursor);
1078 } else if (PARAM_IS ("secondary-clock-delta-edit-cursor")) {
1079 ActionManager::map_some_state ("options", "SecondaryClockDeltaEditCursor", &Configuration::get_secondary_clock_delta_edit_cursor);