summaryrefslogtreecommitdiff
path: root/gtk2_ardour/option_editor.h
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-12-01 20:49:22 +0000
committerCarl Hetherington <carl@carlh.net>2010-12-01 20:49:22 +0000
commita5ea47ff0db48e9b5549f309eb6951138b063de4 (patch)
treeeb99033b2e9ed7736628a028d1d22743f9a48661 /gtk2_ardour/option_editor.h
parent044a2cca8feca24f08726e20b97daca127919c1c (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.h')
-rw-r--r--gtk2_ardour/option_editor.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/gtk2_ardour/option_editor.h b/gtk2_ardour/option_editor.h
index 0258f955aa..89a69dfe67 100644
--- a/gtk2_ardour/option_editor.h
+++ b/gtk2_ardour/option_editor.h
@@ -27,6 +27,7 @@
#include <gtkmm/table.h>
#include "gtkmm2ext/slider_controller.h"
#include "ardour_dialog.h"
+#include "audio_clock.h"
#include "ardour/types.h"
/** @file option_editor.h
@@ -357,6 +358,21 @@ private:
sigc::slot<bool, ARDOUR::gain_t> _set;
};
+class ClockOption : public Option
+{
+public:
+ ClockOption (std::string const &, std::string const &, sigc::slot<ARDOUR::framecnt_t>, sigc::slot<bool, ARDOUR::framecnt_t>);
+ void set_state_from_config ();
+ void add_to_page (OptionEditorPage *);
+ void set_session (ARDOUR::Session *);
+
+private:
+ Gtk::Label _label;
+ AudioClock _clock;
+ sigc::slot<ARDOUR::framecnt_t> _get;
+ sigc::slot<bool, ARDOUR::framecnt_t> _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.