1 #ifndef __TWO_BUTTON_DYNAMIC_FILTER_H__
2 #define __TWO_BUTTON_DYNAMIC_FILTER_H__
4 #include "InputFilter.h"
8 class CTwoButtonDynamicFilter
: public CInputFilter
{
10 CTwoButtonDynamicFilter(Dasher::CEventHandler
* pEventHandler
, CSettingsStore
*pSettingsStore
, CDasherInterfaceBase
*pInterface
, long long int iID
, int iType
, const char *szName
);
13 virtual bool DecorateView(CDasherView
*pView
);
14 virtual bool Timer(int Time
, CDasherView
*m_pDasherView
, CDasherModel
*m_pDasherModel
, Dasher::VECTOR_SYMBOL_PROB
*pAdded
, int *pNumDeleted
);
15 virtual void KeyDown(int iTime
, int iId
, CDasherModel
*pModel
, CUserLog
*pUserLog
);
16 virtual void KeyUp(int iTime
, int iId
, CDasherModel
*pModel
);
17 virtual void Activate();
18 virtual void Deactivate();
20 virtual bool GetSettings(SModuleSettings
**pSettings
, int *iCount
);
22 virtual bool GetMinWidth(int &iMinWidth
);
25 virtual bool TimerImpl(int Time
, CDasherView
*m_pDasherView
, CDasherModel
*m_pDasherModel
, Dasher::VECTOR_SYMBOL_PROB
*pAdded
, int *pNumDeleted
);
26 virtual void ActionButton(int iTime
, int iButton
, int iType
, CDasherModel
*pModel
, CUserLog
*pUserLog
);
28 bool m_bDecorationChanged
;
31 void Event(int iTime
, int iButton
, int iType
, CDasherModel
*pModel
, CUserLog
*pUserLog
);
32 void AutoSpeedSample(int iTime
);
38 SBTree
* Delete(int iValue
);
59 int m_iState
; // 0 = paused, 1 = running 2 = backing off
61 std::deque
<int> m_deQueueTimes
;