Add !PauseMeasure, !UnpauseMeasure, and !TogglePauseMeasure bangs. This is similar to a disabled measure, only it retains its value instead of changing to 0.

Also, group bangs !PauseMeasureGroup, !UnpauseMeasureGroup, and !TogglePauseMeasureGroup bangs have been added.
This commit is contained in:
Brian Ferguson
2013-07-11 14:29:23 -06:00
parent 2507b4fe2c
commit a883e9d47d
6 changed files with 118 additions and 0 deletions

View File

@ -66,6 +66,10 @@ public:
void Enable();
bool IsDisabled() { return m_Disabled; }
void Pause() { m_Paused = true; }
void Unpause() { m_Paused = false; }
bool IsPaused() { return m_Paused; }
virtual void Command(const std::wstring& command);
double GetValue();
@ -123,6 +127,7 @@ protected:
bool m_IfAboveCommitted; // True when the IfAbove action is executed
bool m_IfBelowCommitted; // True when the IfBelow action is executed
bool m_Disabled; // Status of the measure
bool m_Paused;
bool m_Initialized;
std::wstring m_OnChangeAction;