Remove Timers to watch Controllable values

Depend on Changed() signals alone, which are usually much less frequent
than rapid-timer events.

As side-effect we now need to make the widgets insensitive when
playing automation. Previously the user could not change the value because
the Timer periodically reset it.
This commit is contained in:
Robin Gareus 2017-07-15 20:50:26 +02:00
parent 69ecb0db70
commit 5aecfc5acb
5 changed files with 47 additions and 30 deletions

View file

@ -219,6 +219,7 @@ private:
void button_clicked ();
void button_clicked_event (GdkEventButton *);
void control_changed ();
void control_automation_state_changed ();
std::string state_id () const;
void set_tooltip ();
@ -230,10 +231,9 @@ private:
/* things for a button */
ArdourButton _button;
bool _ignore_ui_adjustment;
PBD::ScopedConnection _connection;
PBD::ScopedConnectionList _connections;
bool _visible;
std::string _name;
sigc::connection timer_connection;
};
std::list<Control*> _controls;