* options dialog.
*/
-namespace ARDOUR {
+namespace PBD {
class Configuration;
}
_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
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
{
class OptionEditor : public ArdourWindow
{
public:
- OptionEditor (ARDOUR::Configuration *, std::string const &);
+ OptionEditor (PBD::Configuration *, std::string const &);
~OptionEditor ();
void add_option (std::string const &, OptionEditorComponent *);
-
+ void add_page (std::string const &, Gtk::Widget& page_widget);
+
void set_current_page (std::string const &);
protected:
virtual void parameter_changed (std::string const &);
-
- ARDOUR::Configuration* _config;
+
+ PBD::Configuration* _config;
private: