make GUI preferences discoverable from the View menu

This commit is contained in:
Ben Loftis 2014-07-14 12:19:52 -05:00
parent d0bc4b55fa
commit e062629ccd
4 changed files with 20 additions and 0 deletions

View File

@ -478,6 +478,10 @@
<menuitem action='ToggleSummary'/>
<menuitem action='ToggleGroupTabs'/>
<menuitem action='show-marker-lines'/>
<separator/>
<menuitem action='show-ui-prefs'/>
</menu>
<menu action = 'WindowMenu'>
<menuitem action='toggle-audio-midi-setup'/>

View File

@ -277,6 +277,8 @@ class ARDOUR_UI : public Gtkmm2ext::UI, public ARDOUR::SessionHandlePtr
void maximise_editing_space ();
void restore_editing_space ();
void show_ui_prefs ();
void update_tearoff_visibility ();
void setup_profile ();

View File

@ -639,6 +639,18 @@ ARDOUR_UI::restore_editing_space ()
}
}
void
ARDOUR_UI::show_ui_prefs ()
{
RefPtr<Action> act = ActionManager::get_action (X_("Window"), X_("toggle-rc-options-editor"));
assert (act);
act->activate();
rc_option_editor->set_current_page (_("GUI"));
}
bool
ARDOUR_UI::click_button_clicked (GdkEventButton* ev)
{

View File

@ -194,6 +194,8 @@ ARDOUR_UI::install_actions ()
act = ActionManager::register_toggle_action (common_actions, X_("KeepTearoffs"), _("Show Toolbars"), mem_fun (*this, &ARDOUR_UI::toggle_keep_tearoffs));
ActionManager::session_sensitive_actions.push_back (act);
ActionManager::register_action (common_actions, X_("show-ui-prefs"), _("Show more UI preferences"), sigc::mem_fun (*this, &ARDOUR_UI::show_ui_prefs));
ActionManager::register_toggle_action (common_actions, X_("toggle-mixer"), S_("Window|Mixer"), sigc::mem_fun(*this, &ARDOUR_UI::toggle_mixer_window));
ActionManager::register_action (common_actions, X_("toggle-editor-mixer"), _("Toggle Editor+Mixer"), sigc::mem_fun(*this, &ARDOUR_UI::toggle_editor_mixer));
ActionManager::register_toggle_action (common_actions, X_("toggle-meterbridge"), S_("Window|Meterbridge"), sigc::mem_fun(*this, &ARDOUR_UI::toggle_meterbridge));