mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 08:36:32 +01:00
Provide action buttons to launch prefs-related windows
This commit is contained in:
parent
a59263707a
commit
e70c6560af
2 changed files with 21 additions and 0 deletions
|
|
@ -2302,6 +2302,10 @@ RCOptionEditor::RCOptionEditor ()
|
||||||
|
|
||||||
add_option (_("General"), new OptionEditorHeading (_("Audio/MIDI Setup")));
|
add_option (_("General"), new OptionEditorHeading (_("Audio/MIDI Setup")));
|
||||||
|
|
||||||
|
add_option (_("General"),
|
||||||
|
new RcActionButton (_("Show Audio/MIDI Setup Window"),
|
||||||
|
sigc::mem_fun (*this, &RCOptionEditor::show_audio_setup)));
|
||||||
|
|
||||||
bo = new BoolOption (
|
bo = new BoolOption (
|
||||||
"try-autostart-engine",
|
"try-autostart-engine",
|
||||||
_("Try to auto-launch audio/midi engine"),
|
_("Try to auto-launch audio/midi engine"),
|
||||||
|
|
@ -3448,6 +3452,10 @@ These settings will only take effect after %1 is restarted.\n\
|
||||||
|
|
||||||
add_option (_("Transport/Chase"), new OptionEditorHeading (_("Transport Masters")));
|
add_option (_("Transport/Chase"), new OptionEditorHeading (_("Transport Masters")));
|
||||||
|
|
||||||
|
add_option (_("Transport/Chase"),
|
||||||
|
new RcActionButton (_("Show Transport Masters Window"),
|
||||||
|
sigc::mem_fun (*this, &RCOptionEditor::show_transport_masters)));
|
||||||
|
|
||||||
_sync_framerate = new BoolOption (
|
_sync_framerate = new BoolOption (
|
||||||
"timecode-sync-frame-rate",
|
"timecode-sync-frame-rate",
|
||||||
_("Match session video frame rate to external timecode"),
|
_("Match session video frame rate to external timecode"),
|
||||||
|
|
@ -4449,6 +4457,16 @@ RCOptionEditor::parameter_changed (string const & p)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void RCOptionEditor::show_audio_setup () {
|
||||||
|
Glib::RefPtr<ToggleAction> tact = ActionManager::get_toggle_action ("Window", "toggle-audio-midi-setup");
|
||||||
|
tact->set_active();
|
||||||
|
}
|
||||||
|
|
||||||
|
void RCOptionEditor::show_transport_masters () {
|
||||||
|
Glib::RefPtr<ToggleAction> tact = ActionManager::get_toggle_action ("Window", "toggle-transport-masters");
|
||||||
|
tact->set_active();
|
||||||
|
}
|
||||||
|
|
||||||
void RCOptionEditor::plugin_scan_refresh () {
|
void RCOptionEditor::plugin_scan_refresh () {
|
||||||
/* first argument says discover new plugins, second means be verbose */
|
/* first argument says discover new plugins, second means be verbose */
|
||||||
PluginScanDialog psd (false, true);
|
PluginScanDialog psd (false, true);
|
||||||
|
|
|
||||||
|
|
@ -63,6 +63,9 @@ private:
|
||||||
PBD::ScopedConnection parameter_change_connection;
|
PBD::ScopedConnection parameter_change_connection;
|
||||||
PBD::ScopedConnection engine_started_connection;
|
PBD::ScopedConnection engine_started_connection;
|
||||||
|
|
||||||
|
void show_audio_setup ();
|
||||||
|
void show_transport_masters ();
|
||||||
|
|
||||||
/* plugin actions */
|
/* plugin actions */
|
||||||
void plugin_scan_refresh ();
|
void plugin_scan_refresh ();
|
||||||
void plugin_reset_stats ();
|
void plugin_reset_stats ();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue