1 #ifndef __INPUT_FILTER_H__
2 #define __INPUT_FILTER_H__
4 #include "DasherView.h"
5 #include "DasherModel.h"
6 #include "DasherModule.h"
7 #include "UserLogBase.h"
10 class CDasherInterfaceBase
;
13 /// \defgroup InputFilter Input filters
15 class CInputFilter
: public CDasherModule
{
17 CInputFilter(Dasher::CEventHandler
* pEventHandler
, CSettingsStore
* pSettingsStore
, CDasherInterfaceBase
*pInterface
, ModuleID_t iID
, int iType
, const char *szName
)
18 : CDasherModule(pEventHandler
, pSettingsStore
, iID
, iType
, szName
) {
19 m_pInterface
= pInterface
;
22 virtual void HandleEvent(Dasher::CEvent
* pEvent
) {};
23 virtual bool DecorateView(CDasherView
*pView
) { return false; };
24 virtual void KeyDown(int Time
, int iId
, CDasherModel
*pModel
, CUserLogBase
*pUserLog
) {};
25 virtual void KeyUp(int Time
, int iId
, CDasherModel
*pModel
) {};
26 virtual bool Timer(int Time
, CDasherView
*m_pDasherView
, CDasherModel
*m_pDasherModel
, Dasher::VECTOR_SYMBOL_PROB
*pAdded
, int *pNumDeleted
) { return false; };
28 virtual void Activate() {};
29 virtual void Deactivate() {};
31 virtual bool GetMinWidth(int &iMinWidth
) {
36 CDasherInterfaceBase
*m_pInterface
;