- 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 ("midi-control")) {
- ActionManager::map_some_state ("options", "UseMIDIcontrol", &Configuration::get_midi_control);
- } 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-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 ("punch-out")) {
- ActionManager::map_some_state ("Transport", "TogglePunchOut", &Configuration::get_punch_out);
- } else if (PARAM_IS ("punch-in")) {
- ActionManager::map_some_state ("Transport", "TogglePunchIn", &Configuration::get_punch_in);
- } 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 ("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 ("stop-recording-on-xrun")) {
- ActionManager::map_some_state ("options", "StopRecordingOnXrun", &Configuration::get_stop_recording_on_xrun);
- } 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 ("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")) {
+ } else if (p == "keep-tearoffs") {
+ ActionManager::map_some_state ("Common", "KeepTearoffs", &RCConfiguration::get_keep_tearoffs);
+ } else if (p == "mmc-control") {
+ ActionManager::map_some_state ("options", "UseMMC", &RCConfiguration::get_mmc_control);
+ } else if (p == "midi-feedback") {
+ ActionManager::map_some_state ("options", "SendMIDIfeedback", &RCConfiguration::get_midi_feedback);
+ } else if (p == "auto-play") {
+ ActionManager::map_some_state ("Transport", "ToggleAutoPlay", sigc::mem_fun (_session->config, &SessionConfiguration::get_auto_play));
+ } else if (p == "auto-return") {
+ ActionManager::map_some_state ("Transport", "ToggleAutoReturn", sigc::mem_fun (_session->config, &SessionConfiguration::get_auto_return));
+ } else if (p == "auto-input") {
+ ActionManager::map_some_state ("Transport", "ToggleAutoInput", sigc::mem_fun (_session->config, &SessionConfiguration::get_auto_input));
+ } else if (p == "punch-out") {
+ ActionManager::map_some_state ("Transport", "TogglePunchOut", sigc::mem_fun (_session->config, &SessionConfiguration::get_punch_out));
+ if (!_session->config.get_punch_out()) {
+ unset_dual_punch ();
+ }
+ } else if (p == "punch-in") {
+ ActionManager::map_some_state ("Transport", "TogglePunchIn", sigc::mem_fun (_session->config, &SessionConfiguration::get_punch_in));
+ if (!_session->config.get_punch_in()) {
+ unset_dual_punch ();
+ }
+ } else if (p == "clicking") {
+ ActionManager::map_some_state ("Transport", "ToggleClick", &RCConfiguration::get_clicking);
+ } else if (p == "jack-time-master") {
+ ActionManager::map_some_state ("Transport", "ToggleTimeMaster", sigc::mem_fun (_session->config, &SessionConfiguration::get_jack_time_master));
+ } else if (p == "use-video-sync") {
+ ActionManager::map_some_state ("Transport", "ToggleVideoSync", sigc::mem_fun (_session->config, &SessionConfiguration::get_use_video_sync));
+ } else if (p == "shuttle-behaviour") {