diff options
author | Robin Gareus <robin@gareus.org> | 2014-09-02 16:16:36 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-09-02 16:16:36 +0200 |
commit | 538a569d0b5ec9ba6aa4dc92a2880334f2fcae50 (patch) | |
tree | 053fe9210f7508bb88d73b5d264d2624d179a20b /gtk2_ardour/option_editor.h | |
parent | 9ecdb765aad7f8236fd0749a23ff961b5ad9c03a (diff) |
add a special bool option that prevents redrawing
Diffstat (limited to 'gtk2_ardour/option_editor.h')
-rw-r--r-- | gtk2_ardour/option_editor.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/gtk2_ardour/option_editor.h b/gtk2_ardour/option_editor.h index f42d1da9b7..4e3269e43c 100644 --- a/gtk2_ardour/option_editor.h +++ b/gtk2_ardour/option_editor.h @@ -169,11 +169,11 @@ public: _button->set_sensitive (yn); } - Gtk::Widget& tip_widget() { return *_button; } + Gtk::Widget& tip_widget() { return *_button; } -private: +protected: - void toggled (); + virtual void toggled (); sigc::slot<bool> _get; ///< slot to get the configuration variable's value sigc::slot<bool, bool> _set; ///< slot to set the configuration variable's value @@ -181,6 +181,14 @@ private: Gtk::Label* _label; ///< label for button, so we can use markup }; +class RouteDisplayBoolOption : public BoolOption +{ +public: + RouteDisplayBoolOption (std::string const &, std::string const &, sigc::slot<bool>, sigc::slot<bool, bool>); +protected: + virtual void toggled (); +}; + /** Component which allows to add any GTK Widget - intended for single buttons and custom stateless objects */ class FooOption : public OptionEditorComponent { |