- ActionManager::toggle_config_state ("Transport", "TogglePunchIn", &Configuration::set_punch_in, &Configuration::get_punch_in);
-}
-
-void
-ARDOUR_UI::toggle_punch_out ()
-{
- ActionManager::toggle_config_state ("Transport", "TogglePunchOut", &Configuration::set_punch_out, &Configuration::get_punch_out);
-}
-
-void
-ARDOUR_UI::toggle_video_sync()
-{
- Glib::RefPtr<Action> act = ActionManager::get_action ("Transport", "ToggleVideoSync");
- if (act) {
- Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
- Config->set_use_video_sync (tact->get_active());
- }
-}
-
-void
-ARDOUR_UI::toggle_editing_space()
-{
- Glib::RefPtr<Action> act = ActionManager::get_action ("Common", "ToggleMaximalEditor");
- if (act) {
- Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
- if (tact->get_active()) {
- maximise_editing_space ();
- } else {
- restore_editing_space ();
- }
- }
-}
-
-void
-ARDOUR_UI::toggle_StopPluginsWithTransport()
-{
- ActionManager::toggle_config_state ("options", "StopPluginsWithTransport", &Configuration::set_plugins_stop_with_transport, &Configuration::get_plugins_stop_with_transport);
-}
-
-void
-ARDOUR_UI::toggle_LatchedRecordEnable()
-{
- ActionManager::toggle_config_state ("options", "LatchedRecordEnable", &Configuration::set_latched_record_enable, &Configuration::get_latched_record_enable);
-}
-
-void
-ARDOUR_UI::toggle_RegionEquivalentsOverlap()
-{
- ActionManager::toggle_config_state ("options", "RegionEquivalentsOverlap", &Configuration::set_use_overlap_equivalency, &Configuration::get_use_overlap_equivalency);
-}
-
-void
-ARDOUR_UI::toggle_DoNotRunPluginsWhileRecording()
-{
- ActionManager::toggle_config_state ("options", "DoNotRunPluginsWhileRecording", &Configuration::set_do_not_record_plugins, &Configuration::get_do_not_record_plugins);
-}
-
-void
-ARDOUR_UI::toggle_VerifyRemoveLastCapture()
-{
- ActionManager::toggle_config_state ("options", "VerifyRemoveLastCapture", &Configuration::set_verify_remove_last_capture, &Configuration::get_verify_remove_last_capture);
-}
-
-void
-ARDOUR_UI::toggle_PeriodicSafetyBackups()
-{
- ActionManager::toggle_config_state ("options", "PeriodicSafetyBackups", &Configuration::set_periodic_safety_backups, &Configuration::get_periodic_safety_backups);
-}
-
-void
-ARDOUR_UI::toggle_StopRecordingOnXrun()
-{
- ActionManager::toggle_config_state ("options", "StopRecordingOnXrun", &Configuration::set_stop_recording_on_xrun, &Configuration::get_stop_recording_on_xrun);
-}
-
-void
-ARDOUR_UI::toggle_CreateXrunMarker()
-{
- ActionManager::toggle_config_state ("options", "CreateXrunMarker", &Configuration::set_create_xrun_marker, &Configuration::get_create_xrun_marker);
-}
-
-void
-ARDOUR_UI::toggle_sync_order_keys ()
-{
- ActionManager::toggle_config_state ("options", "SyncEditorAndMixerTrackOrder", &Configuration::set_sync_all_route_ordering, &Configuration::get_sync_all_route_ordering);
-}
-
-void
-ARDOUR_UI::toggle_StopTransportAtEndOfSession()
-{
- ActionManager::toggle_config_state ("options", "StopTransportAtEndOfSession", &Configuration::set_stop_at_session_end, &Configuration::get_stop_at_session_end);
-}
-
-void
-ARDOUR_UI::toggle_GainReduceFastTransport()
-{
- ActionManager::toggle_config_state ("options", "GainReduceFastTransport", &Configuration::set_quieten_at_speed, &Configuration::get_quieten_at_speed);
-}
-
-void
-ARDOUR_UI::toggle_LatchedSolo()
-{
- ActionManager::toggle_config_state ("options", "LatchedSolo", &Configuration::set_solo_latched, &Configuration::get_solo_latched);
-}
-
-void
-ARDOUR_UI::toggle_ShowSoloMutes()
-{
- ActionManager::toggle_config_state ("options", "ShowSoloMutes", &Configuration::set_show_solo_mutes, &Configuration::get_show_solo_mutes);
-}
-
-void
-ARDOUR_UI::toggle_PrimaryClockDeltaEditCursor()
-{
- ActionManager::toggle_config_state ("options", "PrimaryClockDeltaEditCursor", &Configuration::set_primary_clock_delta_edit_cursor, &Configuration::get_primary_clock_delta_edit_cursor);
-}
-
-void
-ARDOUR_UI::toggle_SecondaryClockDeltaEditCursor()
-{
- ActionManager::toggle_config_state ("options", "SecondaryClockDeltaEditCursor", &Configuration::set_secondary_clock_delta_edit_cursor, &Configuration::get_secondary_clock_delta_edit_cursor);
-}
-
-void
-ARDOUR_UI::toggle_ShowTrackMeters()
-{
- ActionManager::toggle_config_state ("options", "ShowTrackMeters", &Configuration::set_show_track_meters, &Configuration::get_show_track_meters);
-}
-
-void
-ARDOUR_UI::toggle_TapeMachineMode ()
-{
- ActionManager::toggle_config_state ("options", "ToggleTapeMachineMode", &Configuration::set_tape_machine_mode, &Configuration::get_tape_machine_mode);
-}
-
-void
-ARDOUR_UI::toggle_use_narrow_ms()
-{
- ActionManager::toggle_config_state ("options", "DefaultNarrowMS", &Configuration::set_default_narrow_ms, &Configuration::get_default_narrow_ms);
-}
-
-void
-ARDOUR_UI::toggle_NameNewMarkers()
-{
- ActionManager::toggle_config_state ("options", "NameNewMarkers", &Configuration::set_name_new_markers, &Configuration::get_name_new_markers);
-}
-
-void
-ARDOUR_UI::toggle_rubberbanding_snaps_to_grid ()
-{
- ActionManager::toggle_config_state ("options", "RubberbandingSnapsToGrid", &Configuration::set_rubberbanding_snaps_to_grid, &Configuration::get_rubberbanding_snaps_to_grid);
-}
-
-void
-ARDOUR_UI::toggle_auto_analyse_audio ()
-{
- ActionManager::toggle_config_state ("options", "AutoAnalyseAudio", &Configuration::set_auto_analyse_audio, &Configuration::get_auto_analyse_audio);
-}
-
-void
-ARDOUR_UI::mtc_port_changed ()
-{
- bool have_mtc;
- bool have_midi_clock;
-
- if (session) {
- if (session->mtc_port()) {
- have_mtc = true;
- } else {
- have_mtc = false;
- }
- if (session->midi_clock_port()) {
- have_midi_clock = true;
- } else {
- have_midi_clock = false;
- }
- } else {
- have_mtc = false;
- have_midi_clock = false;
- }
-
- positional_sync_strings.clear ();
- positional_sync_strings.push_back (slave_source_to_string (None));
- if (have_mtc) {
- positional_sync_strings.push_back (slave_source_to_string (MTC));
- }
- if (have_midi_clock) {
- positional_sync_strings.push_back (slave_source_to_string (MIDIClock));