diff options
author | Carl Hetherington <carl@carlh.net> | 2010-12-01 20:49:22 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-12-01 20:49:22 +0000 |
commit | a5ea47ff0db48e9b5549f309eb6951138b063de4 (patch) | |
tree | eb99033b2e9ed7736628a028d1d22743f9a48661 /gtk2_ardour/option_editor.cc | |
parent | 044a2cca8feca24f08726e20b97daca127919c1c (diff) |
Re-expose timecode offset in the session option editor.
git-svn-id: svn://localhost/ardour2/branches/3.0@8146 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/option_editor.cc')
-rw-r--r-- | gtk2_ardour/option_editor.cc | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/gtk2_ardour/option_editor.cc b/gtk2_ardour/option_editor.cc index af85d879cc..46e10d00b2 100644 --- a/gtk2_ardour/option_editor.cc +++ b/gtk2_ardour/option_editor.cc @@ -191,6 +191,35 @@ FaderOption::add_to_page (OptionEditorPage* p) add_widgets_to_page (p, &_label, &_box); } +ClockOption::ClockOption (string const & i, string const & n, sigc::slot<framecnt_t> g, sigc::slot<bool, framecnt_t> s) + : Option (i, n) + , _clock (X_("timecode-offset"), false, X_("TimecodeOffset"), true, false, true, false) + , _get (g) + , _set (s) +{ + _label.set_text (n + ":"); + _label.set_alignment (0, 0.5); + _label.set_name (X_("OptionsLabel")); +} + +void +ClockOption::set_state_from_config () +{ + _clock.set (_get ()); +} + +void +ClockOption::add_to_page (OptionEditorPage* p) +{ + add_widgets_to_page (p, &_label, &_clock); +} + +void +ClockOption::set_session (Session* s) +{ + _clock.set_session (s); +} + OptionEditorPage::OptionEditorPage (Gtk::Notebook& n, std::string const & t) : table (1, 3) { |