add sampo's synthesize_sources perl script to tools; add scroll-playhead-{forward...
[ardour.git] / gtk2_ardour / audio_clock.h
index cef5a1b52470a50b525ff7c5fa61d7dbdfddfce5..662cb949e64deeb5880176ee32fcc147c8e01b93 100644 (file)
@@ -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;