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/audioengine.h>
29 #include "ardour_ui.h"
31 #include "gui_thread.h"
36 using namespace Gtkmm2ext;
37 using namespace ARDOUR;
42 ARDOUR_UI::toggle_time_master ()
44 ActionManager::toggle_config_state ("Transport", "ToggleTimeMaster", &Configuration::set_jack_time_master, &Configuration::get_jack_time_master);
48 ARDOUR_UI::toggle_send_mtc ()
50 ActionManager::toggle_config_state ("options", "SendMTC", &Configuration::set_send_mtc, &Configuration::get_send_mtc);
54 ARDOUR_UI::toggle_send_mmc ()
56 ActionManager::toggle_config_state ("options", "SendMMC", &Configuration::set_send_mmc, &Configuration::get_send_mmc);
60 ARDOUR_UI::toggle_use_mmc ()
62 ActionManager::toggle_config_state ("options", "UseMMC", &Configuration::set_mmc_control, &Configuration::get_mmc_control);
66 ARDOUR_UI::toggle_use_midi_control ()
68 ActionManager::toggle_config_state ("options", "UseMIDIcontrol", &Configuration::set_midi_control, &Configuration::get_midi_control);
72 ARDOUR_UI::toggle_send_midi_feedback ()
74 ActionManager::toggle_config_state ("options", "SendMIDIfeedback", &Configuration::set_midi_feedback, &Configuration::get_midi_feedback);
78 ARDOUR_UI::set_native_file_header_format (HeaderFormat hf)
80 const char *action = 0;
84 action = X_("FileHeaderFormatBWF");
87 action = X_("FileHeaderFormatWAVE");
90 action = X_("FileHeaderFormatWAVE64");
93 action = X_("FileHeaderFormatiXML");
96 action = X_("FileHeaderFormatRF64");
99 action = X_("FileHeaderFormatCAF");
102 action = X_("FileHeaderFormatAIFF");
105 fatal << string_compose (_("programming error: %1"), "illegal file header format in ::set_native_file_header_format") << endmsg;
109 Glib::RefPtr<Action> act = ActionManager::get_action ("options", action);
112 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
113 if (ract && ract->get_active() && Config->get_native_file_header_format() != hf) {
114 Config->set_native_file_header_format (hf);
120 ARDOUR_UI::set_native_file_data_format (SampleFormat sf)
122 const char* action = 0;
126 action = X_("FileDataFormatFloat");
129 action = X_("FileDataFormat24bit");
132 fatal << string_compose (_("programming error: %1"), "illegal file data format in ::set_native_file_data_format") << endmsg;
136 Glib::RefPtr<Action> act = ActionManager::get_action ("options", action);
139 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
140 if (ract && ract->get_active() && Config->get_native_file_data_format() != sf) {
141 Config->set_native_file_data_format (sf);
147 ARDOUR_UI::set_input_auto_connect (AutoConnectOption option)
152 case AutoConnectPhysical:
153 action = X_("InputAutoConnectPhysical");
156 action = X_("InputAutoConnectManual");
159 Glib::RefPtr<Action> act = ActionManager::get_action ("options", action);
162 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
164 if (ract && ract->get_active() && Config->get_input_auto_connect() != option) {
165 Config->set_input_auto_connect (option);
171 ARDOUR_UI::set_output_auto_connect (AutoConnectOption option)
176 case AutoConnectPhysical:
177 action = X_("OutputAutoConnectPhysical");
179 case AutoConnectMaster:
180 action = X_("OutputAutoConnectMaster");
183 action = X_("OutputAutoConnectManual");
186 Glib::RefPtr<Action> act = ActionManager::get_action ("options", action);
189 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
191 if (ract && ract->get_active() && Config->get_output_auto_connect() != option) {
192 Config->set_output_auto_connect (option);
198 ARDOUR_UI::set_solo_model (SoloModel model)
200 const char* action = 0;
204 action = X_("SoloViaBus");
208 action = X_("SoloInPlace");
211 fatal << string_compose (_("programming error: unknown solo model in ARDOUR_UI::set_solo_model: %1"), model) << endmsg;
215 Glib::RefPtr<Action> act = ActionManager::get_action ("options", action);
218 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
220 if (ract && ract->get_active() && Config->get_solo_model() != model) {
221 Config->set_solo_model (model);
228 ARDOUR_UI::set_remote_model (RemoteModel model)
230 const char* action = 0;
234 action = X_("RemoteUserDefined");
237 action = X_("RemoteMixerDefined");
240 action = X_("RemoteEditorDefined");
244 fatal << string_compose (_("programming error: unknown remote model in ARDOUR_UI::set_remote_model: %1"), model) << endmsg;
248 Glib::RefPtr<Action> act = ActionManager::get_action ("options", action);
251 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
253 if (ract && ract->get_active() && Config->get_remote_model() != model) {
254 Config->set_remote_model (model);
261 ARDOUR_UI::set_monitor_model (MonitorModel model)
263 const char* action = 0;
266 case HardwareMonitoring:
267 action = X_("UseHardwareMonitoring");
270 case SoftwareMonitoring:
271 action = X_("UseSoftwareMonitoring");
273 case ExternalMonitoring:
274 action = X_("UseExternalMonitoring");
278 fatal << string_compose (_("programming error: unknown monitor model in ARDOUR_UI::set_monitor_model: %1"), model) << endmsg;
282 Glib::RefPtr<Action> act = ActionManager::get_action ("options", action);
285 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
287 if (ract && ract->get_active() && Config->get_monitoring_model() != model) {
288 Config->set_monitoring_model (model);
295 ARDOUR_UI::toggle_auto_input ()
297 ActionManager::toggle_config_state ("Transport", "ToggleAutoInput", &Configuration::set_auto_input, &Configuration::get_auto_input);
301 ARDOUR_UI::toggle_auto_play ()
303 ActionManager::toggle_config_state ("Transport", "ToggleAutoPlay", &Configuration::set_auto_play, &Configuration::get_auto_play);
307 ARDOUR_UI::toggle_auto_return ()
309 ActionManager::toggle_config_state ("Transport", "ToggleAutoReturn", &Configuration::set_auto_return, &Configuration::get_auto_return);
313 ARDOUR_UI::toggle_click ()
315 ActionManager::toggle_config_state ("Transport", "ToggleClick", &Configuration::set_clicking, &Configuration::get_clicking);
319 ARDOUR_UI::toggle_session_auto_loop ()
322 if (session->get_play_loop()) {
323 if (session->transport_rolling()) {
326 session->request_play_loop (false);
329 session->request_play_loop (true);
335 ARDOUR_UI::toggle_punch_in ()
337 ActionManager::toggle_config_state ("Transport", "TogglePunchIn", &Configuration::set_punch_in, &Configuration::get_punch_in);
341 ARDOUR_UI::toggle_punch_out ()
343 ActionManager::toggle_config_state ("Transport", "TogglePunchOut", &Configuration::set_punch_out, &Configuration::get_punch_out);
347 ARDOUR_UI::toggle_video_sync()
349 Glib::RefPtr<Action> act = ActionManager::get_action ("Transport", "ToggleVideoSync");
351 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
352 Config->set_use_video_sync (tact->get_active());
357 ARDOUR_UI::toggle_editing_space()
359 Glib::RefPtr<Action> act = ActionManager::get_action ("Common", "ToggleMaximalEditor");
361 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
362 if (tact->get_active()) {
363 maximise_editing_space ();
365 restore_editing_space ();
371 ARDOUR_UI::toggle_StopPluginsWithTransport()
373 ActionManager::toggle_config_state ("options", "StopPluginsWithTransport", &Configuration::set_plugins_stop_with_transport, &Configuration::get_plugins_stop_with_transport);
377 ARDOUR_UI::toggle_LatchedRecordEnable()
379 ActionManager::toggle_config_state ("options", "LatchedRecordEnable", &Configuration::set_latched_record_enable, &Configuration::get_latched_record_enable);
383 ARDOUR_UI::toggle_RegionEquivalentsOverlap()
385 ActionManager::toggle_config_state ("options", "RegionEquivalentsOverlap", &Configuration::set_use_overlap_equivalency, &Configuration::get_use_overlap_equivalency);
389 ARDOUR_UI::toggle_DoNotRunPluginsWhileRecording()
391 ActionManager::toggle_config_state ("options", "DoNotRunPluginsWhileRecording", &Configuration::set_do_not_record_plugins, &Configuration::get_do_not_record_plugins);
395 ARDOUR_UI::toggle_VerifyRemoveLastCapture()
397 ActionManager::toggle_config_state ("options", "VerifyRemoveLastCapture", &Configuration::set_verify_remove_last_capture, &Configuration::get_verify_remove_last_capture);
401 ARDOUR_UI::toggle_StopRecordingOnXrun()
403 ActionManager::toggle_config_state ("options", "StopRecordingOnXrun", &Configuration::set_stop_recording_on_xrun, &Configuration::get_stop_recording_on_xrun);
407 ARDOUR_UI::toggle_StopTransportAtEndOfSession()
409 ActionManager::toggle_config_state ("options", "StopTransportAtEndOfSession", &Configuration::set_stop_at_session_end, &Configuration::get_stop_at_session_end);
413 ARDOUR_UI::toggle_GainReduceFastTransport()
415 ActionManager::toggle_config_state ("options", "GainReduceFastTransport", &Configuration::set_quieten_at_speed, &Configuration::get_quieten_at_speed);
419 ARDOUR_UI::toggle_LatchedSolo()
421 ActionManager::toggle_config_state ("options", "LatchedSolo", &Configuration::set_solo_latched, &Configuration::get_solo_latched);
425 ARDOUR_UI::toggle_ShowSoloMutes()
427 ActionManager::toggle_config_state ("options", "ShowSoloMutes", &Configuration::set_show_solo_mutes, &Configuration::get_show_solo_mutes);
431 ARDOUR_UI::mtc_port_changed ()
436 if (session->mtc_port()) {
445 positional_sync_strings.clear ();
446 positional_sync_strings.push_back (slave_source_to_string (None));
448 positional_sync_strings.push_back (slave_source_to_string (MTC));
450 positional_sync_strings.push_back (slave_source_to_string (JACK));
452 set_popdown_strings (sync_option_combo, positional_sync_strings);
456 ARDOUR_UI::setup_session_options ()
460 Config->ParameterChanged.connect (mem_fun (*this, &ARDOUR_UI::parameter_changed));
465 ARDOUR_UI::map_solo_model ()
469 if (Config->get_solo_model() == InverseMute) {
470 on = X_("SoloInPlace");
472 on = X_("SoloViaBus");
475 Glib::RefPtr<Action> act = ActionManager::get_action ("options", on);
477 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
479 if (tact && !tact->get_active()) {
480 tact->set_active (true);
486 ARDOUR_UI::map_monitor_model ()
490 switch (Config->get_monitoring_model()) {
491 case HardwareMonitoring:
492 on = X_("UseHardwareMonitoring");
494 case SoftwareMonitoring:
495 on = X_("UseSoftwareMonitoring");
497 case ExternalMonitoring:
498 on = X_("UseExternalMonitoring");
502 Glib::RefPtr<Action> act = ActionManager::get_action ("options", on);
504 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
506 if (tact && !tact->get_active()) {
507 tact->set_active (true);
513 ARDOUR_UI::map_remote_model ()
517 switch (Config->get_remote_model()) {
519 on = X_("RemoteUserDefined");
522 on = X_("RemoteMixerDefined");
525 on = X_("RemoteEditorDefined");
529 Glib::RefPtr<Action> act = ActionManager::get_action ("options", on);
531 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
533 if (tact && !tact->get_active()) {
534 tact->set_active (true);
540 ARDOUR_UI::map_file_header_format ()
542 const char* action = 0;
544 switch (Config->get_native_file_header_format()) {
546 action = X_("FileHeaderFormatBWF");
550 action = X_("FileHeaderFormatWAVE");
554 action = X_("FileHeaderFormatWAVE64");
558 action = X_("FileHeaderFormatiXML");
562 action = X_("FileHeaderFormatRF64");
566 action = X_("FileHeaderFormatCAF");
570 fatal << string_compose (_("programming error: unknown file header format passed to ARDOUR_UI::map_file_data_format: %1"),
571 Config->get_native_file_header_format()) << endmsg;
576 Glib::RefPtr<Action> act = ActionManager::get_action ("options", action);
579 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
581 if (tact && !tact->get_active()) {
582 tact->set_active (true);
588 ARDOUR_UI::map_file_data_format ()
590 const char* action = 0;
592 switch (Config->get_native_file_data_format()) {
594 action = X_("FileDataFormatFloat");
598 action = X_("FileDataFormat24bit");
602 fatal << string_compose (_("programming error: unknown file data format passed to ARDOUR_UI::map_file_data_format: %1"),
603 Config->get_native_file_data_format()) << endmsg;
608 Glib::RefPtr<Action> act = ActionManager::get_action ("options", action);
611 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
613 if (tact && !tact->get_active()) {
614 tact->set_active (true);
620 ARDOUR_UI::map_input_auto_connect ()
624 if (Config->get_input_auto_connect() == (AutoConnectOption) 0) {
625 on = "InputAutoConnectManual";
627 on = "InputAutoConnectPhysical";
630 Glib::RefPtr<Action> act = ActionManager::get_action ("options", on);
632 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
634 if (tact && !tact->get_active()) {
635 tact->set_active (true);
641 ARDOUR_UI::map_output_auto_connect ()
645 if (Config->get_output_auto_connect() == (AutoConnectOption) 0) {
646 on = "OutputAutoConnectManual";
647 } else if (Config->get_output_auto_connect() == AutoConnectPhysical) {
648 on = "OutputAutoConnectPhysical";
650 on = "OutputAutoConnectMaster";
653 Glib::RefPtr<Action> act = ActionManager::get_action ("options", on);
655 Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
657 if (tact && !tact->get_active()) {
658 tact->set_active (true);
664 ARDOUR_UI::map_meter_falloff ()
666 const char* action = X_("MeterFalloffMedium");
668 float val = Config->get_meter_falloff ();
669 MeterFalloff code = meter_falloff_from_float(val);
672 case MeterFalloffOff:
673 action = X_("MeterFalloffOff");
675 case MeterFalloffSlowest:
676 action = X_("MeterFalloffSlowest");
678 case MeterFalloffSlow:
679 action = X_("MeterFalloffSlow");
681 case MeterFalloffMedium:
682 action = X_("MeterFalloffMedium");
684 case MeterFalloffFast:
685 action = X_("MeterFalloffFast");
687 case MeterFalloffFaster:
688 action = X_("MeterFalloffFaster");
690 case MeterFalloffFastest:
691 action = X_("MeterFalloffFastest");
695 Glib::RefPtr<Action> act = ActionManager::get_action (X_("options"), action);
698 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
699 if (ract && !ract->get_active()) {
700 ract->set_active (true);
706 ARDOUR_UI::map_meter_hold ()
708 const char* action = X_("MeterHoldMedium");
710 /* XXX hack alert. Fix this. Please */
712 float val = Config->get_meter_hold ();
713 MeterHold code = (MeterHold) (int) (floor (val));
717 action = X_("MeterHoldOff");
720 action = X_("MeterHoldShort");
722 case MeterHoldMedium:
723 action = X_("MeterHoldMedium");
726 action = X_("MeterHoldLong");
730 Glib::RefPtr<Action> act = ActionManager::get_action (X_("options"), action);
733 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
734 if (ract && !ract->get_active()) {
735 ract->set_active (true);
741 ARDOUR_UI::set_meter_hold (MeterHold val)
743 const char* action = 0;
746 fval = meter_hold_to_float (val);
750 action = X_("MeterHoldOff");
753 action = X_("MeterHoldShort");
755 case MeterHoldMedium:
756 action = X_("MeterHoldMedium");
759 action = X_("MeterHoldLong");
763 Glib::RefPtr<Action> act = ActionManager::get_action (X_("options"), action);
766 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
767 if (ract && ract->get_active() && Config->get_meter_hold() != fval) {
768 Config->set_meter_hold (fval);
774 ARDOUR_UI::set_meter_falloff (MeterFalloff val)
776 const char* action = 0;
779 fval = meter_falloff_to_float (val);
782 case MeterFalloffOff:
783 action = X_("MeterFalloffOff");
785 case MeterFalloffSlowest:
786 action = X_("MeterFalloffSlowest");
788 case MeterFalloffSlow:
789 action = X_("MeterFalloffSlow");
791 case MeterFalloffMedium:
792 action = X_("MeterFalloffMedium");
794 case MeterFalloffFast:
795 action = X_("MeterFalloffFast");
797 case MeterFalloffFaster:
798 action = X_("MeterFalloffFaster");
800 case MeterFalloffFastest:
801 action = X_("MeterFalloffFastest");
805 Glib::RefPtr<Action> act = ActionManager::get_action (X_("options"), action);
808 Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic(act);
809 if (ract && ract->get_active() && Config->get_meter_falloff () != fval) {
810 Config->set_meter_falloff (fval);
816 ARDOUR_UI::parameter_changed (const char* parameter_name)
818 ENSURE_GUI_THREAD (bind (mem_fun (*this, &ARDOUR_UI::parameter_changed), parameter_name));
820 #define PARAM_IS(x) (!strcmp (parameter_name, (x)))
822 if (PARAM_IS ("slave-source")) {
824 sync_option_combo.set_active_text (slave_source_to_string (Config->get_slave_source()));
826 } else if (PARAM_IS ("send-mtc")) {
828 ActionManager::map_some_state ("options", "SendMTC", &Configuration::get_send_mtc);
830 } else if (PARAM_IS ("send-mmc")) {
832 ActionManager::map_some_state ("options", "SendMMC", &Configuration::get_send_mmc);
834 } else if (PARAM_IS ("mmc-control")) {
835 ActionManager::map_some_state ("options", "UseMMC", &Configuration::get_mmc_control);
836 } else if (PARAM_IS ("midi-feedback")) {
837 ActionManager::map_some_state ("options", "SendMIDIfeedback", &Configuration::get_midi_feedback);
838 } else if (PARAM_IS ("midi-control")) {
839 ActionManager::map_some_state ("options", "UseMIDIcontrol", &Configuration::get_midi_control);
840 } else if (PARAM_IS ("do-not-record-plugins")) {
841 ActionManager::map_some_state ("options", "DoNotRunPluginsWhileRecording", &Configuration::get_do_not_record_plugins);
842 } else if (PARAM_IS ("latched-record-enable")) {
843 ActionManager::map_some_state ("options", "LatchedRecordEnable", &Configuration::get_latched_record_enable);
844 } else if (PARAM_IS ("solo-latched")) {
845 ActionManager::map_some_state ("options", "LatchedSolo", &Configuration::get_solo_latched);
846 } else if (PARAM_IS ("show-solo-mutes")) {
847 ActionManager::map_some_state ("options", "ShowSoloMutes", &Configuration::get_show_solo_mutes);
848 } else if (PARAM_IS ("solo-model")) {
850 } else if (PARAM_IS ("auto-play")) {
851 ActionManager::map_some_state ("Transport", "ToggleAutoPlay", &Configuration::get_auto_play);
852 } else if (PARAM_IS ("auto-return")) {
853 ActionManager::map_some_state ("Transport", "ToggleAutoReturn", &Configuration::get_auto_return);
854 } else if (PARAM_IS ("auto-input")) {
855 ActionManager::map_some_state ("Transport", "ToggleAutoInput", &Configuration::get_auto_input);
856 } else if (PARAM_IS ("punch-out")) {
857 ActionManager::map_some_state ("Transport", "TogglePunchOut", &Configuration::get_punch_out);
858 } else if (PARAM_IS ("punch-in")) {
859 ActionManager::map_some_state ("Transport", "TogglePunchIn", &Configuration::get_punch_in);
860 } else if (PARAM_IS ("clicking")) {
861 ActionManager::map_some_state ("Transport", "ToggleClick", &Configuration::get_clicking);
862 } else if (PARAM_IS ("jack-time-master")) {
863 ActionManager::map_some_state ("Transport", "ToggleTimeMaster", &Configuration::get_jack_time_master);
864 } else if (PARAM_IS ("plugins-stop-with-transport")) {
865 ActionManager::map_some_state ("options", "StopPluginsWithTransport", &Configuration::get_plugins_stop_with_transport);
866 } else if (PARAM_IS ("latched-record-enable")) {
867 ActionManager::map_some_state ("options", "LatchedRecordEnable", &Configuration::get_latched_record_enable);
868 } else if (PARAM_IS ("verify-remove-last-capture")) {
869 ActionManager::map_some_state ("options", "VerifyRemoveLastCapture", &Configuration::get_verify_remove_last_capture);
870 } else if (PARAM_IS ("stop-recording-on-xrun")) {
871 ActionManager::map_some_state ("options", "StopRecordingOnXrun", &Configuration::get_stop_recording_on_xrun);
872 } else if (PARAM_IS ("stop-at-session-end")) {
873 ActionManager::map_some_state ("options", "StopTransportAtEndOfSession", &Configuration::get_stop_at_session_end);
874 } else if (PARAM_IS ("monitoring-model")) {
875 map_monitor_model ();
876 } else if (PARAM_IS ("remote-model")) {
878 } else if (PARAM_IS ("use-video-sync")) {
879 ActionManager::map_some_state ("Transport", "ToggleVideoSync", &Configuration::get_use_video_sync);
880 } else if (PARAM_IS ("quieten-at-speed")) {
881 ActionManager::map_some_state ("options", "GainReduceFastTransport", &Configuration::get_quieten_at_speed);
882 } else if (PARAM_IS ("shuttle-behaviour")) {
884 switch (Config->get_shuttle_behaviour ()) {
886 shuttle_style_button.set_active_text (_("sprung"));
888 shuttle_box.queue_draw ();
890 if (session->transport_rolling()) {
891 shuttle_fract = SHUTTLE_FRACT_SPEED1;
892 session->request_transport_speed (1.0);
897 shuttle_style_button.set_active_text (_("wheel"));
901 } else if (PARAM_IS ("shuttle-units")) {
903 switch (Config->get_shuttle_units()) {
905 shuttle_units_button.set_label("% ");
908 shuttle_units_button.set_label(_("ST"));
911 } else if (PARAM_IS ("input-auto-connect")) {
912 map_input_auto_connect ();
913 } else if (PARAM_IS ("output-auto-connect")) {
914 map_output_auto_connect ();
915 } else if (PARAM_IS ("native-file-header-format")) {
916 map_file_header_format ();
917 } else if (PARAM_IS ("native-file-data-format")) {
918 map_file_data_format ();
919 } else if (PARAM_IS ("meter-hold")) {
921 } else if (PARAM_IS ("meter-falloff")) {
922 map_meter_falloff ();
923 } else if (PARAM_IS ("verify-remove-last-capture")) {
924 ActionManager::map_some_state ("options", "VerifyRemoveLastCapture", &Configuration::get_verify_remove_last_capture);
925 } else if (PARAM_IS ("video-pullup") || PARAM_IS ("smpte-format")) {
927 primary_clock.set (session->audible_frame(), true);
928 secondary_clock.set (session->audible_frame(), true);
930 primary_clock.set (0, true);
931 secondary_clock.set (0, true);
933 } else if (PARAM_IS ("use-overlap-equivalency")) {
934 ActionManager::map_some_state ("options", "RegionEquivalentsOverlap", &Configuration::get_use_overlap_equivalency);