summaryrefslogtreecommitdiff
path: root/gtk2_ardour/option_editor.h
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-12-08 21:52:50 +0100
committerRobin Gareus <robin@gareus.org>2015-12-08 21:52:50 +0100
commit9b0619bd802ca42d3009f6c93298a7f218497f97 (patch)
tree1fa273e5341adad3301b42894a35ff2d0b0b26a8 /gtk2_ardour/option_editor.h
parent2f5c4c29c6d60b172676a0f79c542d0ff085a9f6 (diff)
add Action-Button for rc-config dialog
Diffstat (limited to 'gtk2_ardour/option_editor.h')
-rw-r--r--gtk2_ardour/option_editor.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/gtk2_ardour/option_editor.h b/gtk2_ardour/option_editor.h
index c69d4e03a4..07e7fbeca8 100644
--- a/gtk2_ardour/option_editor.h
+++ b/gtk2_ardour/option_editor.h
@@ -121,6 +121,22 @@ protected:
Gtk::VBox* _box; ///< constituent box for subclasses to add widgets to
};
+class RcActionButton : public OptionEditorComponent
+{
+public:
+ RcActionButton (std::string const & t, const Glib::SignalProxy0< void >::SlotType & slot, std::string const & l = "");
+ void add_to_page (OptionEditorPage *);
+
+ void parameter_changed (std::string const & p) {}
+ void set_state_from_config () {}
+ Gtk::Widget& tip_widget() { return *_button; }
+
+protected:
+ Gtk::Button* _button;
+ Gtk::Label* _label;
+ std::string _name;
+};
+
/** Base class for components which provide UI to change an option */
class Option : public OptionEditorComponent
{