-
- sigc::signal<void> StateChanged;
-
- static sigc::signal<void, AutomationList*> AutomationListCreated;
- mutable sigc::signal<void> Dirty;
-
- void start_touch ();
- void stop_touch ();
- bool touching() const { return _touching; }
-
- XMLNode& get_state(void);
- int set_state (const XMLNode &s);
+
+ PBD::Signal0<void> StateChanged;
+
+ static PBD::Signal1<void,AutomationList*> AutomationListCreated;
+
+ void start_touch (double when);
+ void stop_touch (bool mark, double when);
+ bool touching() const { return g_atomic_int_get (&_touching); }
+ bool writing() const { return _state == Write; }
+ bool touch_enabled() const { return _state == Touch; }
+
+ XMLNode& get_state ();
+ int set_state (const XMLNode &, int version);