summaryrefslogtreecommitdiff
path: root/gtk2_ardour/audio_clock.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2007-01-08 17:12:29 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2007-01-08 17:12:29 +0000
commit57bafcd1f4277ba9805bfb4ed05b8eaffaa7a5ce (patch)
treeac0a2f263cce8fa05034018f5cd214cf185a3ea0 /gtk2_ardour/audio_clock.h
parentcaa89c121d8c133d679047d9c21adbb7d139d9a3 (diff)
save and restore clock modes
git-svn-id: svn://localhost/ardour2/trunk@1283 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/audio_clock.h')
-rw-r--r--gtk2_ardour/audio_clock.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/gtk2_ardour/audio_clock.h b/gtk2_ardour/audio_clock.h
index cef5a1b524..662cb949e6 100644
--- a/gtk2_ardour/audio_clock.h
+++ b/gtk2_ardour/audio_clock.h
@@ -43,25 +43,32 @@ class AudioClock : public Gtk::HBox
Off
};
- AudioClock (std::string name, bool editable, bool is_duration = false, bool with_info = false);
+ AudioClock (std::string clock_name, bool transient, std::string widget_name, bool editable, bool is_duration = false, bool with_info = false);
Mode mode() const { return _mode; }
void set (nframes_t, bool force = false);
void set_mode (Mode);
- void set_name (std::string);
+ void set_widget_name (std::string);
+
+ std::string name() const { return _name; }
nframes_t current_time (nframes_t position = 0) const;
nframes_t current_duration (nframes_t position = 0) const;
void set_session (ARDOUR::Session *s);
sigc::signal<void> ValueChanged;
-
+
+ static sigc::signal<void> ModeChanged;
+ static std::vector<AudioClock*> clocks;
+
private:
ARDOUR::Session *session;
Mode _mode;
uint32_t key_entry_state;
+ std::string _name;
+ bool is_transient;
bool is_duration;
bool editable;