X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Foption_editor.h;h=89a69dfe6719498f7f7e126f7f06823984aed9ad;hb=5f4bdb233a53932986e07fca1cd6c87d22c2886f;hp=f76ba2df93e41c3270a70e2bf131add803abb6c7;hpb=84a801a7913714a2284f1142cb9bb3a335dd1a7e;p=ardour.git diff --git a/gtk2_ardour/option_editor.h b/gtk2_ardour/option_editor.h index f76ba2df93..89a69dfe67 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 @@ -136,7 +137,7 @@ public: return _id; } -private: +protected: std::string _id; std::string _name; @@ -357,6 +358,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.