diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-06-07 23:07:08 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-06-07 23:07:08 +0000 |
commit | a56555e8b200970a364c5f341d9ad938f53553c6 (patch) | |
tree | eb11f3fc64574b1d657b7e884a5dd07672cc1dea /gtk2_ardour/audio_clock.h | |
parent | 7e2b86dc835bd061786bffd0d503dfb3e8c74912 (diff) |
remove "Off" as a clock mode, make it a state instead; track editor mouse mode when displaying selection (not 100% coverage of different selections yet); add extra negative field for timecode clock to help with text alignment; add clock mode = timecode option to menus
git-svn-id: svn://localhost/ardour2/branches/3.0@9685 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/audio_clock.h')
-rw-r--r-- | gtk2_ardour/audio_clock.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gtk2_ardour/audio_clock.h b/gtk2_ardour/audio_clock.h index 8e0ab53a9d..d7971ffafd 100644 --- a/gtk2_ardour/audio_clock.h +++ b/gtk2_ardour/audio_clock.h @@ -45,8 +45,7 @@ class AudioClock : public Gtk::VBox, public ARDOUR::SessionHandlePtr Timecode, BBT, MinSec, - Frames, - Off + Frames }; AudioClock (const std::string& clock_name, bool is_transient, const std::string& widget_name, @@ -54,6 +53,8 @@ class AudioClock : public Gtk::VBox, public ARDOUR::SessionHandlePtr ~AudioClock (); Mode mode() const { return _mode; } + void set_off (bool yn); + bool off() const { return _off; } void focus (); @@ -94,12 +95,14 @@ class AudioClock : public Gtk::VBox, public ARDOUR::SessionHandlePtr bool editable; /** true if this clock follows the playhead, meaning that certain operations are redundant */ bool _follows_playhead; + bool _off; Gtk::Menu *ops_menu; CairoEditableText* display; enum Field { + Timecode_Sign, Timecode_Hours, Timecode_Minutes, Timecode_Seconds, @@ -219,6 +222,7 @@ class AudioClock : public Gtk::VBox, public ARDOUR::SessionHandlePtr void disconnect_signals (); void set_theme (); + void toggle_off (); }; #endif /* __audio_clock_h__ */ |