MCP: Patch from Rodrigo that:

* implements Metering on/off through Button::Read as per Seablade's suggestion. I choose this button as it's the "Show meters" button in Traktion;
    * removes redundant code from Meter::update_transport_rolling();
    * renames Meter::update_transport_rolling() to Meter::notify_metering_state_changed();
    * renamed Surface::notify_transport_state_changed() to Surface::notify_metering_state_changed();
    * renamed Strip::notify_transport_state_changed() to Strip::notify_metering_state_changed();
    * created MackieControlProtocol::notify_metering_state_changed() and made MackieControlProtocol::notify_transport_state_changed() use it;
    * implemented turning off of timecode display and two char display in Surface::zero_all ();
    * implemented master fader zeroing in Surface::zero_all ();
    * calling Surfaces->zero_all() at MackieControlProtocol destructor;
    * implemented restore of 2nd LCD line content after metering being active.



git-svn-id: svn://localhost/ardour2/branches/3.0@12520 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2012-06-01 12:56:20 +00:00
parent bc3aea6f93
commit ba5e71b50f
9 changed files with 80 additions and 73 deletions

View file

@ -40,11 +40,10 @@ public:
static Control* factory (Surface&, int id, const char*, Group&);
void update_transport_rolling(Surface& surface);
void notify_metering_state_changed(Surface& surface, bool transport_is_rolling, bool metering_active);
private:
bool overload_on;
bool _transport_is_rolling;
};
}