summaryrefslogtreecommitdiff
path: root/osframework/source/SexyAppFramework/EditListener.h
diff options
context:
space:
mode:
Diffstat (limited to 'osframework/source/SexyAppFramework/EditListener.h')
-rw-r--r--osframework/source/SexyAppFramework/EditListener.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/osframework/source/SexyAppFramework/EditListener.h b/osframework/source/SexyAppFramework/EditListener.h
new file mode 100644
index 0000000..b918194
--- /dev/null
+++ b/osframework/source/SexyAppFramework/EditListener.h
@@ -0,0 +1,22 @@
+#ifndef __EDITLISTENER_H__
+#define __EDITLISTENER_H__
+
+#include "Common.h"
+#include "KeyCodes.h"
+
+namespace Sexy
+{
+
+class EditListener
+{
+public:
+ virtual void EditWidgetText(int theId, const SexyString& theString) {};
+
+ virtual bool AllowKey(int theId, KeyCode theKey) { return true; }
+ virtual bool AllowChar(int theId, SexyChar theChar) { return true; }
+ virtual bool AllowText(int theId, const SexyString& theText) { return true; }
+};
+
+}
+
+#endif //__EDITLISTENER_H__ \ No newline at end of file