diff options
author | Carl Hetherington <carl@carlh.net> | 2011-11-04 15:05:49 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-11-04 15:05:49 +0000 |
commit | b02673adb47e578284d91445b108ee256149ce1f (patch) | |
tree | 06cc8de69e7b668e1034a027838656ca4c15e466 /gtk2_ardour/option_editor.h | |
parent | 07159a6709a8fd307ed4ab2fd3128a121ede47a2 (diff) |
Add option to set default-session-parent-dir (#4438).
git-svn-id: svn://localhost/ardour2/branches/3.0@10435 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/option_editor.h')
-rw-r--r-- | gtk2_ardour/option_editor.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gtk2_ardour/option_editor.h b/gtk2_ardour/option_editor.h index f43f71342b..f3f2164c77 100644 --- a/gtk2_ardour/option_editor.h +++ b/gtk2_ardour/option_editor.h @@ -377,6 +377,22 @@ private: sigc::slot<bool, ARDOUR::framecnt_t> _set; }; +class DirectoryOption : public Option +{ +public: + DirectoryOption (std::string const &, std::string const &, sigc::slot<std::string>, sigc::slot<bool, std::string>); + + void set_state_from_config (); + void add_to_page (OptionEditorPage *); + +private: + void file_set (); + + sigc::slot<std::string> _get; ///< slot to get the configuration variable's value + sigc::slot<bool, std::string> _set; ///< slot to set the configuration variable's value + Gtk::FileChooserButton _file_chooser; +}; + /** Class to represent a single page in an OptionEditor's notebook. * Pages are laid out using a 3-column table; the 1st column is used * to indent non-headings, and the 2nd and 3rd for actual content. |