mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
add 'save defaults' option to properties dialog
This commit is contained in:
parent
37a656b7b8
commit
367b64c141
2 changed files with 14 additions and 0 deletions
|
|
@ -309,6 +309,12 @@ SessionOptionEditor::SessionOptionEditor (Session* s)
|
|||
sigc::mem_fun (*_session_config, &SessionConfiguration::set_glue_new_regions_to_bars_and_beats)
|
||||
));
|
||||
|
||||
add_option (_("Misc"), new OptionEditorHeading (_("Defaults")));
|
||||
|
||||
Gtk::Button* btn = Gtk::manage (new Gtk::Button (_("Use these settings as defaults")));
|
||||
btn->signal_clicked().connect (sigc::mem_fun (*this, &SessionOptionEditor::save_defaults));
|
||||
add_option (_("Misc"), new FooOption (btn));
|
||||
|
||||
add_option (_("Meterbridge"), new OptionEditorHeading (_("Route Display")));
|
||||
|
||||
add_option (_("Meterbridge"), new BoolOption (
|
||||
|
|
@ -421,3 +427,9 @@ SessionOptionEditor::get_use_monitor_section ()
|
|||
{
|
||||
return _session->monitor_out() != 0;
|
||||
}
|
||||
|
||||
void
|
||||
SessionOptionEditor::save_defaults ()
|
||||
{
|
||||
_session->save_default_options();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,6 +42,8 @@ private:
|
|||
|
||||
ComboOption<float>* _vpu;
|
||||
EntryOption* _take_name;
|
||||
|
||||
void save_defaults ();
|
||||
};
|
||||
|
||||
#endif /* __gtk_ardour_session_option_editor_h__ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue