Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 244 | chris | 1 | #ifndef __EDITLISTENER_H__ |
| 2 | #define __EDITLISTENER_H__ |
||
| 3 | |||
| 4 | #include "Common.h" |
||
| 5 | #include "KeyCodes.h" |
||
| 6 | |||
| 7 | namespace Sexy |
||
| 8 | { |
||
| 9 | |||
| 10 | class EditListener |
||
| 11 | { |
||
| 12 | public: |
||
| 13 | virtual void EditWidgetText(int theId, const SexyString& theString) {}; |
||
| 14 | |||
| 15 | virtual bool AllowKey(int theId, KeyCode theKey) { return true; } |
||
| 16 | virtual bool AllowChar(int theId, SexyChar theChar) { return true; } |
||
| 17 | virtual bool AllowText(int theId, const SexyString& theText) { return true; } |
||
| 18 | }; |
||
| 19 | |||
| 20 | } |
||
| 21 | |||
| 22 | #endif //__EDITLISTENER_H__ |