summaryrefslogtreecommitdiff
path: root/gtk2_ardour/audio_clock.h
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-11-22 22:10:37 +0100
committerRobin Gareus <robin@gareus.org>2017-11-23 00:13:32 +0100
commit15150c57c1e10e8ec2182a667c8e93627f446b60 (patch)
treee08e140df12bbb4c5e5a839effb0e9ff22173caa /gtk2_ardour/audio_clock.h
parent1be2790caca1130d1b5957c9540b7f5070635c47 (diff)
Implement clock delta modes
* use new config variable * update GUI to select delta-modes * delegate delta-calculation to MainClock * save offset to calculate absolute-time
Diffstat (limited to 'gtk2_ardour/audio_clock.h')
-rw-r--r--gtk2_ardour/audio_clock.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/gtk2_ardour/audio_clock.h b/gtk2_ardour/audio_clock.h
index 6701410c99..6b9c61a7e8 100644
--- a/gtk2_ardour/audio_clock.h
+++ b/gtk2_ardour/audio_clock.h
@@ -67,7 +67,7 @@ class AudioClock : public CairoWidget, public ARDOUR::SessionHandlePtr
void focus ();
- void set (samplepos_t, bool force = false, ARDOUR::samplecnt_t offset = 0);
+ virtual void set (samplepos_t, bool force = false, ARDOUR::samplecnt_t offset = 0);
void set_from_playhead ();
void locate ();
void set_mode (Mode, bool noemit = false);
@@ -105,7 +105,8 @@ class AudioClock : public CairoWidget, public ARDOUR::SessionHandlePtr
protected:
void render (Cairo::RefPtr<Cairo::Context> const&, cairo_rectangle_t*);
- bool get_is_duration () const { return is_duration; } ;
+ bool get_is_duration () const { return is_duration; }
+ ARDOUR::samplecnt_t offset () const { return _offset; }
virtual void build_ops_menu ();
Gtk::Menu *ops_menu;
@@ -133,6 +134,8 @@ class AudioClock : public CairoWidget, public ARDOUR::SessionHandlePtr
samplepos_t _limit_pos;
+ ARDOUR::samplecnt_t _offset;
+
Glib::RefPtr<Pango::Layout> _layout;
bool _with_info;