+ sync_option_combo.set_active_text (slave_source_to_string (Config->get_slave_source()));
+
+ switch (Config->get_slave_source()) {
+ case None:
+ ActionManager::get_action ("Transport", "ToggleAutoPlay")->set_sensitive (true);
+ ActionManager::get_action ("Transport", "ToggleAutoReturn")->set_sensitive (true);
+ break;
+
+ default:
+ /* XXX need to make auto-play is off as well as insensitive */
+ ActionManager::get_action ("Transport", "ToggleAutoPlay")->set_sensitive (false);
+ ActionManager::get_action ("Transport", "ToggleAutoReturn")->set_sensitive (false);
+ break;
+ }
+
+ } else if (PARAM_IS ("send-mtc")) {
+
+ ActionManager::map_some_state ("options", "SendMTC", &Configuration::get_send_mtc);
+
+ } else if (PARAM_IS ("send-mmc")) {
+
+ ActionManager::map_some_state ("options", "SendMMC", &Configuration::get_send_mmc);
+
+ } else if (PARAM_IS ("use-osc")) {
+
+#ifdef HAVE_LIBLO
+ if (Config->get_use_osc()) {
+ osc->start ();
+ } else {
+ osc->stop ();
+ }
+#endif
+
+ ActionManager::map_some_state ("options", "UseOSC", &Configuration::get_use_osc);
+
+ } else if (PARAM_IS ("mmc-control")) {
+ ActionManager::map_some_state ("options", "UseMMC", &Configuration::get_mmc_control);
+ } else if (PARAM_IS ("midi-feedback")) {
+ ActionManager::map_some_state ("options", "SendMIDIfeedback", &Configuration::get_midi_feedback);
+ } else if (PARAM_IS ("do-not-record-plugins")) {
+ ActionManager::map_some_state ("options", "DoNotRunPluginsWhileRecording", &Configuration::get_do_not_record_plugins);
+ } else if (PARAM_IS ("latched-record-enable")) {
+ ActionManager::map_some_state ("options", "LatchedRecordEnable", &Configuration::get_latched_record_enable);
+ } else if (PARAM_IS ("solo-latched")) {
+ ActionManager::map_some_state ("options", "LatchedSolo", &Configuration::get_solo_latched);
+ } else if (PARAM_IS ("show-solo-mutes")) {
+ ActionManager::map_some_state ("options", "ShowSoloMutes", &Configuration::get_show_solo_mutes);
+ } else if (PARAM_IS ("solo-mute-override")) {
+ ActionManager::map_some_state ("options", "SoloMuteOverride", &Configuration::get_solo_mute_override);
+ } else if (PARAM_IS ("solo-model")) {
+ map_solo_model ();
+ } else if (PARAM_IS ("auto-play")) {
+ ActionManager::map_some_state ("Transport", "ToggleAutoPlay", &Configuration::get_auto_play);
+ } else if (PARAM_IS ("auto-return")) {
+ ActionManager::map_some_state ("Transport", "ToggleAutoReturn", &Configuration::get_auto_return);
+ } else if (PARAM_IS ("auto-input")) {
+ ActionManager::map_some_state ("Transport", "ToggleAutoInput", &Configuration::get_auto_input);
+ } else if (PARAM_IS ("tape-machine-mode")) {
+ ActionManager::map_some_state ("options", "ToggleTapeMachineMode", &Configuration::get_tape_machine_mode);
+ } else if (PARAM_IS ("punch-out")) {
+ ActionManager::map_some_state ("Transport", "TogglePunchOut", &Configuration::get_punch_out);
+ if (!Config->get_punch_out()) {
+ unset_dual_punch ();
+ }
+ } else if (PARAM_IS ("punch-in")) {
+ ActionManager::map_some_state ("Transport", "TogglePunchIn", &Configuration::get_punch_in);
+ if (!Config->get_punch_in()) {
+ unset_dual_punch ();
+ }
+ } else if (PARAM_IS ("clicking")) {
+ ActionManager::map_some_state ("Transport", "ToggleClick", &Configuration::get_clicking);
+ } else if (PARAM_IS ("jack-time-master")) {
+ ActionManager::map_some_state ("Transport", "ToggleTimeMaster", &Configuration::get_jack_time_master);
+ } else if (PARAM_IS ("plugins-stop-with-transport")) {
+ ActionManager::map_some_state ("options", "StopPluginsWithTransport", &Configuration::get_plugins_stop_with_transport);
+ } else if (PARAM_IS ("new-plugins-active")) {
+ ActionManager::map_some_state ("options", "NewPluginsActive", &Configuration::get_new_plugins_active);
+ } else if (PARAM_IS ("latched-record-enable")) {
+ ActionManager::map_some_state ("options", "LatchedRecordEnable", &Configuration::get_latched_record_enable);
+ } else if (PARAM_IS ("verify-remove-last-capture")) {
+ ActionManager::map_some_state ("options", "VerifyRemoveLastCapture", &Configuration::get_verify_remove_last_capture);
+ } else if (PARAM_IS ("periodic-safety-backups")) {
+ ActionManager::map_some_state ("options", "PeriodicSafetyBackups", &Configuration::get_periodic_safety_backups);
+ } else if (PARAM_IS ("stop-recording-on-xrun")) {
+ ActionManager::map_some_state ("options", "StopRecordingOnXrun", &Configuration::get_stop_recording_on_xrun);
+ } else if (PARAM_IS ("create-xrun-marker")) {
+ ActionManager::map_some_state ("options", "CreateXrunMarker", &Configuration::get_create_xrun_marker);
+ } else if (PARAM_IS ("sync-all-route-ordering")) {
+ ActionManager::map_some_state ("options", "SyncEditorAndMixerTrackOrder", &Configuration::get_sync_all_route_ordering);
+ } else if (PARAM_IS ("stop-at-session-end")) {
+ ActionManager::map_some_state ("options", "StopTransportAtEndOfSession", &Configuration::get_stop_at_session_end);
+ } else if (PARAM_IS ("monitoring-model")) {
+ map_monitor_model ();
+ } else if (PARAM_IS ("denormal-model")) {
+ map_denormal_model ();
+ } else if (PARAM_IS ("denormal-protection")) {
+ map_denormal_protection ();
+ } else if (PARAM_IS ("remote-model")) {
+ map_remote_model ();
+ } else if (PARAM_IS ("use-video-sync")) {
+ ActionManager::map_some_state ("Transport", "ToggleVideoSync", &Configuration::get_use_video_sync);
+ } else if (PARAM_IS ("quieten-at-speed")) {
+ ActionManager::map_some_state ("options", "GainReduceFastTransport", &Configuration::get_quieten_at_speed);
+ } else if (PARAM_IS ("shuttle-behaviour")) {
+
+ switch (Config->get_shuttle_behaviour ()) {
+ case Sprung:
+ shuttle_style_button.set_active_text (_("sprung"));
+ shuttle_fract = 0.0;
+ shuttle_box.queue_draw ();
+ if (session) {
+ if (session->transport_rolling()) {
+ shuttle_fract = SHUTTLE_FRACT_SPEED1;
+ session->request_transport_speed (1.0);
+ }
+ }
+ break;
+ case Wheel:
+ shuttle_style_button.set_active_text (_("wheel"));
+ break;
+ }
+
+ } else if (PARAM_IS ("shuttle-units")) {
+
+ switch (Config->get_shuttle_units()) {
+ case Percentage:
+ shuttle_units_button.set_label("% ");
+ break;
+ case Semitones:
+ shuttle_units_button.set_label(_("ST"));
+ break;
+ }
+ } else if (PARAM_IS ("input-auto-connect")) {
+ map_input_auto_connect ();
+ } else if (PARAM_IS ("output-auto-connect")) {
+ map_output_auto_connect ();
+ } else if (PARAM_IS ("native-file-header-format")) {
+ map_file_header_format ();
+ } else if (PARAM_IS ("native-file-data-format")) {
+ map_file_data_format ();
+ } else if (PARAM_IS ("meter-hold")) {
+ map_meter_hold ();
+ } else if (PARAM_IS ("meter-falloff")) {
+ map_meter_falloff ();
+ } else if (PARAM_IS ("video-pullup") || PARAM_IS ("smpte-format")) {
+ if (session) {
+ primary_clock.set (session->audible_frame(), true);
+ secondary_clock.set (session->audible_frame(), true);
+ } else {
+ primary_clock.set (0, true);
+ secondary_clock.set (0, true);
+ }
+ } else if (PARAM_IS ("use-overlap-equivalency")) {
+ ActionManager::map_some_state ("options", "RegionEquivalentsOverlap", &Configuration::get_use_overlap_equivalency);
+ } else if (PARAM_IS ("primary-clock-delta-edit-cursor")) {
+ ActionManager::map_some_state ("options", "PrimaryClockDeltaEditCursor", &Configuration::get_primary_clock_delta_edit_cursor);
+ } else if (PARAM_IS ("secondary-clock-delta-edit-cursor")) {
+ ActionManager::map_some_state ("options", "SecondaryClockDeltaEditCursor", &Configuration::get_secondary_clock_delta_edit_cursor);
+ } else if (PARAM_IS ("only-copy-imported-files")) {
+ map_only_copy_imported_files ();
+ } else if (PARAM_IS ("show-track-meters")) {
+ ActionManager::map_some_state ("options", "ShowTrackMeters", &Configuration::get_show_track_meters);
+ editor->toggle_meter_updating();
+ } else if (PARAM_IS ("default-narrow_ms")) {
+ ActionManager::map_some_state ("options", "DefaultNarrowMS", &Configuration::get_default_narrow_ms);
+ } else if (PARAM_IS ("rubberbanding-snaps-to-grid")) {
+ ActionManager::map_some_state ("options", "RubberbandingSnapsToGrid", &Configuration::get_rubberbanding_snaps_to_grid);