X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Foption_editor.h;h=b81672e094035b6651062ca7a5b4dd7695c74c0c;hb=c78528dcea03a61685ad0586eaa6302847af6fe9;hp=0258f955aa9b2fe90b54e21b5683fea8a9d265a1;hpb=5c6ba165f684fbd45be33c83d41083567d4dd88f;p=ardour.git diff --git a/gtk2_ardour/option_editor.h b/gtk2_ardour/option_editor.h index 0258f955aa..b81672e094 100644 --- a/gtk2_ardour/option_editor.h +++ b/gtk2_ardour/option_editor.h @@ -27,6 +27,7 @@ #include #include "gtkmm2ext/slider_controller.h" #include "ardour_dialog.h" +#include "audio_clock.h" #include "ardour/types.h" /** @file option_editor.h @@ -151,6 +152,10 @@ public: void set_state_from_config (); void add_to_page (OptionEditorPage*); + void set_sensitive (bool yn) { + _button->set_sensitive (yn); + } + private: void toggled (); @@ -357,6 +362,21 @@ private: sigc::slot _set; }; +class ClockOption : public Option +{ +public: + ClockOption (std::string const &, std::string const &, sigc::slot, sigc::slot); + void set_state_from_config (); + void add_to_page (OptionEditorPage *); + void set_session (ARDOUR::Session *); + +private: + Gtk::Label _label; + AudioClock _clock; + sigc::slot _get; + sigc::slot _set; +}; + /** 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. @@ -380,13 +400,16 @@ public: void add_option (std::string const &, OptionEditorComponent *); + void set_current_page (std::string const &); + protected: + virtual void parameter_changed (std::string const &); + ARDOUR::Configuration* _config; private: - void parameter_changed (std::string const &); PBD::ScopedConnection config_connection; Gtk::Notebook _notebook;