ActionManager::get_action ("Transport", "ToggleAutoReturn")->set_sensitive (false);
ActionManager::get_action ("Transport", "ToggleFollowEdits")->set_sensitive (false);
}
- set_loop_sensitivity ();
} else if (p == "follow-edits") {
}
} else if (p == "clicking") {
ActionManager::map_some_state ("Transport", "ToggleClick", &RCConfiguration::get_clicking);
- } else if (p == "click-record-only") {
- // TODO set a flag, blink or gray-out metronome button while rolling, only
- if (Config->get_click_record_only()) {
- click_button.set_name ("generic button"); // XXX
- } else {
- click_button.set_name ("transport button");
- }
} 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 == "sync-source") {
} else if (p == "show-track-meters") {
if (editor) editor->toggle_meter_updating();
- } else if (p == "primary-clock-delta-edit-cursor") {
- if (UIConfiguration::instance().get_primary_clock_delta_edit_cursor()) {
+ } else if (p == "primary-clock-delta-mode") {
+ if (UIConfiguration::instance().get_primary_clock_delta_mode() != NoDelta) {
primary_clock->set_is_duration (true);
primary_clock->set_editable (false);
primary_clock->set_widget_name ("transport delta");
primary_clock->set_editable (true);
primary_clock->set_widget_name ("transport");
}
- } else if (p == "secondary-clock-delta-edit-cursor") {
- if (UIConfiguration::instance().get_secondary_clock_delta_edit_cursor()) {
+ } else if (p == "secondary-clock-delta-mode") {
+ if (UIConfiguration::instance().get_secondary_clock_delta_mode() != NoDelta) {
secondary_clock->set_is_duration (true);
secondary_clock->set_editable (false);
secondary_clock->set_widget_name ("secondary delta");
ArdourWaveView::WaveView::set_global_gradient_depth (UIConfiguration::instance().get_waveform_gradient_depth());
} else if (p == "show-mini-timeline") {
repack_transport_hbox ();
+ } else if (p == "show-dsp-load-info") {
+ repack_transport_hbox ();
+ } else if (p == "show-disk-space-info") {
+ repack_transport_hbox ();
} else if (p == "show-toolbar-recpunch") {
repack_transport_hbox ();
} else if (p == "show-toolbar-monitoring") {
}
} else if (p == "layered-record-mode") {
layered_button.set_active (_session->config.get_layered_record_mode ());
- } else if (p == "show-waveform-clipping") {
- ArdourWaveView::WaveView::set_global_show_waveform_clipping (UIConfiguration::instance().get_show_waveform_clipping());
- } else if (p == "waveform-gradient-depth") {
- ArdourWaveView::WaveView::set_global_gradient_depth (UIConfiguration::instance().get_waveform_gradient_depth());
} else if (p == "flat-buttons") {
bool flat = UIConfiguration::instance().get_flat_buttons();
if (ArdourButton::flat_buttons () != flat) {
/* force a redraw */
gtk_rc_reset_styles (gtk_settings_get_default());
}
- } else if (p == "click-gain") {
- float gain_db = accurate_coefficient_to_dB (Config->get_click_gain());
- char tmp[32];
- snprintf(tmp, 31, "%+.1f", gain_db);
- set_tip (click_button, string_compose (_("Enable/Disable metronome\n\nRight-click to access preferences\nMouse-wheel to modify level\nSignal Level: %1 dBFS"), tmp));
+ } else if ( (p == "snap-to-region-sync") || (p == "snap-to-region-start") || (p == "snap-to-region-end") ) {
+ if (editor) editor->mark_region_boundary_cache_dirty();
}
+
}
void