diff options
Diffstat (limited to 'gtk2_ardour/option_editor.h')
-rw-r--r-- | gtk2_ardour/option_editor.h | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/gtk2_ardour/option_editor.h b/gtk2_ardour/option_editor.h index 5d6a48a024..b896411a71 100644 --- a/gtk2_ardour/option_editor.h +++ b/gtk2_ardour/option_editor.h @@ -192,7 +192,7 @@ private: }; -/** Component which provides the UI to handle an enumerated option using a GTK CheckButton. +/** Component which provides the UI to handle an enumerated option using a GTK ComboBox. * The template parameter is the enumeration. */ template <class T> @@ -273,6 +273,37 @@ private: }; +/** Component which provides the UI to handle a boolean option which needs + * to be represented as a ComboBox to be clear to the user. + */ +class BoolComboOption : public Option +{ +public: + + BoolComboOption ( + std::string const &, + std::string const &, + std::string const &, + std::string const &, + sigc::slot<bool>, + sigc::slot<bool, bool> + ); + + void set_state_from_config (); + void add_to_page (OptionEditorPage *); + void changed (); + void set_sensitive (bool); + +private: + + sigc::slot<bool> _get; + sigc::slot<bool, bool> _set; + Gtk::Label* _label; + Gtk::ComboBoxText* _combo; +}; + + + /** Component which provides the UI to handle an numeric option using a GTK SpinButton */ template <class T> class SpinOption : public Option |