void toggled ();
- sigc::slot<bool> _get; ///< slot to get the configuration variable's value
+ 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::CheckButton* _button; ///< UI button
+ Gtk::CheckButton* _button; ///< UI button
+ Gtk::Label* _label; ///< label for button, so we can use markup
};
/** Component which provides the UI to handle a string option using a GTK Entry */
Gtk::Adjustment _db_adjustment;
Gtkmm2ext::HSliderController* _db_slider;
- Glib::RefPtr<Gdk::Pixbuf> _pix;
- Glib::RefPtr<Gdk::Pixbuf> _pix_desensitised;
Gtk::Entry _db_display;
Gtk::Label _label;
Gtk::HBox _box;
class ClockOption : public Option
{
public:
- ClockOption (std::string const &, std::string const &, sigc::slot<ARDOUR::framecnt_t>, sigc::slot<bool, ARDOUR::framecnt_t>);
+ ClockOption (std::string const &, std::string const &, sigc::slot<std::string>, sigc::slot<bool, std::string>);
void set_state_from_config ();
void add_to_page (OptionEditorPage *);
void set_session (ARDOUR::Session *);
Gtk::Widget& tip_widget() { return _clock; }
+ AudioClock& clock() { return _clock; }
private:
void save_clock_time ();
Gtk::Label _label;
AudioClock _clock;
- sigc::slot<ARDOUR::framecnt_t> _get;
- sigc::slot<bool, ARDOUR::framecnt_t> _set;
+ sigc::slot<std::string> _get;
+ sigc::slot<bool, std::string> _set;
+ ARDOUR::Session *_session;
};
class DirectoryOption : public Option