Add option to hide cue rec/play toolbar buttons
This commit is contained in:
parent
e417495505
commit
370adfa322
@ -315,10 +315,8 @@ ARDOUR_UI::ARDOUR_UI (int *argcp, char **argvp[], const char* localedir)
|
||||
, startup_fsm (0)
|
||||
, secondary_clock_spacer (0)
|
||||
, latency_disable_button (ArdourButton::led_default_elements)
|
||||
|
||||
, _cue_rec_enable (_("Rec Cues"), ArdourButton::led_default_elements)
|
||||
, _cue_play_enable (_("Play Cues"), ArdourButton::led_default_elements)
|
||||
|
||||
, time_info_box (0)
|
||||
, auto_return_button (ArdourButton::led_default_elements)
|
||||
, follow_edits_button (ArdourButton::led_default_elements)
|
||||
|
@ -523,6 +523,7 @@ private:
|
||||
ArdourWidgets::ArdourVSpacer latency_spacer;
|
||||
ArdourWidgets::ArdourVSpacer monitor_spacer;
|
||||
ArdourWidgets::ArdourVSpacer scripts_spacer;
|
||||
ArdourWidgets::ArdourVSpacer cuectrl_spacer;
|
||||
|
||||
ArdourWidgets::ArdourButton monitor_dim_button;
|
||||
ArdourWidgets::ArdourButton monitor_mono_button;
|
||||
|
@ -266,6 +266,17 @@ ARDOUR_UI::repack_transport_hbox ()
|
||||
latency_spacer.hide ();
|
||||
}
|
||||
|
||||
bool show_cue = UIConfiguration::instance().get_show_toolbar_cuectrl ();
|
||||
if (show_cue) {
|
||||
_cue_rec_enable.show ();
|
||||
_cue_play_enable.show ();
|
||||
cuectrl_spacer.show ();
|
||||
} else {
|
||||
_cue_rec_enable.hide ();
|
||||
_cue_play_enable.hide ();
|
||||
cuectrl_spacer.hide ();
|
||||
}
|
||||
|
||||
bool show_mnfo = UIConfiguration::instance().get_show_toolbar_monitor_info ();
|
||||
if (show_mnfo) {
|
||||
monitor_dim_button.show ();
|
||||
@ -651,6 +662,9 @@ ARDOUR_UI::setup_transport ()
|
||||
transport_table.attach (*monitor_box, TCOL, 0, 2 , SHRINK, EXPAND|FILL, 3, 0);
|
||||
++col;
|
||||
|
||||
transport_table.attach (cuectrl_spacer, TCOL, 0, 2 , SHRINK, EXPAND|FILL, 3, 0);
|
||||
++col;
|
||||
|
||||
transport_table.attach (_cue_rec_enable, TCOL, 0, 1 , FILL, FILL, 3, 0);
|
||||
transport_table.attach (_cue_play_enable, TCOL, 1, 2 , FILL, FILL, 3, 0);
|
||||
++col;
|
||||
|
@ -426,6 +426,8 @@ ARDOUR_UI::parameter_changed (std::string p)
|
||||
repack_transport_hbox ();
|
||||
} else if (p == "show-toolbar-latency") {
|
||||
repack_transport_hbox ();
|
||||
} else if (p == "show-toolbar-cuectrl") {
|
||||
repack_transport_hbox ();
|
||||
} else if (p == "show-toolbar-monitor-info") {
|
||||
repack_transport_hbox ();
|
||||
} else if (p == "show-editor-meter") {
|
||||
|
@ -2898,6 +2898,14 @@ RCOptionEditor::RCOptionEditor ()
|
||||
sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_show_toolbar_monitor_info)
|
||||
));
|
||||
|
||||
add_option (_("Appearance/Toolbar"),
|
||||
new BoolOption (
|
||||
"show-toolbar-cuectrl",
|
||||
_("Display Cue Rec/Play Controls"),
|
||||
sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_show_toolbar_cuectrl),
|
||||
sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_show_toolbar_cuectrl)
|
||||
));
|
||||
|
||||
add_option (_("Appearance/Toolbar"),
|
||||
new BoolOption (
|
||||
"show-mini-timeline",
|
||||
|
@ -96,6 +96,7 @@ UI_CONFIG_VARIABLE (bool, show_toolbar_recpunch, "show-toolbar-recpunch", true)
|
||||
UI_CONFIG_VARIABLE (bool, show_toolbar_monitoring, "show-toolbar-monitoring", false) /* deprecated */
|
||||
UI_CONFIG_VARIABLE (bool, show_toolbar_selclock, "show-toolbar-selclock", false)
|
||||
UI_CONFIG_VARIABLE (bool, show_toolbar_latency, "show-toolbar-latency", false)
|
||||
UI_CONFIG_VARIABLE (bool, show_toolbar_cuectrl, "show-toolbar-cuectrl", true)
|
||||
UI_CONFIG_VARIABLE (bool, show_toolbar_monitor_info, "show-toolbar-monitor-info", false)
|
||||
UI_CONFIG_VARIABLE (bool, show_mini_timeline, "show-mini-timeline", true)
|
||||
UI_CONFIG_VARIABLE (bool, show_secondary_clock, "show-secondary-clock", true)
|
||||
|
Loading…
Reference in New Issue
Block a user