X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Faudio_clock.h;h=f0790dcbc8748e92e7c4ded609b729ba457c3c0f;hb=60b97472b1e99c75fe68dd20de59d105c09b6c4e;hp=cef5a1b52470a50b525ff7c5fa61d7dbdfddfce5;hpb=b46af2167fbf4763595385fb9be46762ab3c3d07;p=ardour.git diff --git a/gtk2_ardour/audio_clock.h b/gtk2_ardour/audio_clock.h index cef5a1b524..f0790dcbc8 100644 --- a/gtk2_ardour/audio_clock.h +++ b/gtk2_ardour/audio_clock.h @@ -15,7 +15,6 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id$ */ #ifndef __audio_clock_h__ @@ -43,25 +42,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 ValueChanged; - + + static sigc::signal ModeChanged; + static std::vector clocks; + private: ARDOUR::Session *session; Mode _mode; uint32_t key_entry_state; + std::string _name; + bool is_transient; bool is_duration; bool editable;