-#define PARAM_IS(x) (!strcmp (parameter_name, (x)))
-
- if (PARAM_IS ("slave-source")) {
-
- sync_option_combo.set_active_text (slave_source_to_string (Config->get_slave_source()));
-
- } else if (PARAM_IS ("send-mtc")) {
-
- map_some_state ("options", "SendMTC", &Configuration::get_send_mtc);
-
- } else if (PARAM_IS ("send-mmc")) {
-
- map_some_state ("options", "SendMMC", &Configuration::get_send_mmc);
-
- } else if (PARAM_IS ("mmc-control")) {
- map_some_state ("options", "UseMMC", &Configuration::get_mmc_control);
- } else if (PARAM_IS ("midi-feedback")) {
- map_some_state ("options", "SendMIDIfeedback", &Configuration::get_midi_feedback);
- } else if (PARAM_IS ("midi-control")) {
- map_some_state ("options", "UseMIDIcontrol", &Configuration::get_midi_control);
- } else if (PARAM_IS ("do-not-record-plugins")) {
- map_some_state ("options", "DoNotRunPluginsWhileRecording", &Configuration::get_do_not_record_plugins);
- } else if (PARAM_IS ("crossfades-active")) {
- map_some_state ("options", "CrossfadesActive", &Configuration::get_crossfades_active);
- } else if (PARAM_IS ("latched-record-enable")) {
- map_some_state ("options", "LatchedRecordEnable", &Configuration::get_latched_record_enable);
- } else if (PARAM_IS ("solo-latched")) {
- map_some_state ("options", "LatchedSolo", &Configuration::get_solo_latched);
- } else if (PARAM_IS ("solo-model")) {
- } else if (PARAM_IS ("layer-model")) {
- } else if (PARAM_IS ("crossfade-model")) {
- } else if (PARAM_IS ("auto-play")) {
- map_some_state ("Transport", "ToggleAutoPlay", &Configuration::get_auto_play);
- } else if (PARAM_IS ("auto-loop")) {
- map_some_state ("Transport", "Loop", &Configuration::get_auto_loop);
- } else if (PARAM_IS ("auto-return")) {
- map_some_state ("Transport", "ToggleAutoReturn", &Configuration::get_auto_return);
- } else if (PARAM_IS ("auto-input")) {
- map_some_state ("Transport", "ToggleAutoInput", &Configuration::get_auto_input);
- } else if (PARAM_IS ("punch-out")) {
- map_some_state ("Transport", "TogglePunchOut", &Configuration::get_punch_out);
- } else if (PARAM_IS ("punch-in")) {
- map_some_state ("Transport", "TogglePunchIn", &Configuration::get_punch_in);
- } else if (PARAM_IS ("clicking")) {
- map_some_state ("Transport", "ToggleClick", &Configuration::get_clicking);
- } else if (PARAM_IS ("jack-time-master")) {
- map_some_state ("Transport", "ToggleTimeMaster", &Configuration::get_jack_time_master);
- } else if (PARAM_IS ("plugins-stop-with-transport")) {
- map_some_state ("options", "StopPluginsWithTransport", &Configuration::get_plugins_stop_with_transport);
- } else if (PARAM_IS ("latched-record-enable")) {
- map_some_state ("options", "LatchedRecordEnable", &Configuration::get_latched_record_enable);
- } else if (PARAM_IS ("verify-remove-last-capture")) {
- map_some_state ("options", "VerifyRemoveLastCapture", &Configuration::get_verify_remove_last_capture);
- } else if (PARAM_IS ("stop-recording-on-xrun")) {
- map_some_state ("options", "StopRecordingOnXrun", &Configuration::get_stop_recording_on_xrun);
- } else if (PARAM_IS ("stop-at-session-end")) {
- map_some_state ("options", "StopTransportAtEndOfSession", &Configuration::get_stop_at_session_end);
- } else if (PARAM_IS ("use-hardware-monitoring")) {
- map_some_state ("options", "UseHardwareMonitoring", &Configuration::get_use_hardware_monitoring);
- } else if (PARAM_IS ("use-sw-monitoring")) {
- map_some_state ("options", "UseSoftwareMonitoring", &Configuration::get_use_sw_monitoring);
- } else if (PARAM_IS ("use-external-monitoring")) {
- map_some_state ("options", "UseExternalMonitoring", &Configuration::get_use_external_monitoring);
- } else if (PARAM_IS ("use-video-sync")) {
- map_some_state ("Transport", "ToggleVideoSync", &Configuration::get_use_video_sync);
- } else if (PARAM_IS ("quieten-at-speed")) {
- 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;
- }