diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2003-10-17 15:35:43 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2003-10-17 15:35:43 +0000 |
| commit | fc2f5b2cd655f1391f2abda1b39e37cdec98a951 (patch) | |
| tree | 312efcea86a319de407a7c314fb981fb1c71019a /lib/gui/textinput.h | |
| download | enigma2-fc2f5b2cd655f1391f2abda1b39e37cdec98a951.tar.gz enigma2-fc2f5b2cd655f1391f2abda1b39e37cdec98a951.zip | |
Initial revision
Diffstat (limited to 'lib/gui/textinput.h')
| -rw-r--r-- | lib/gui/textinput.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/lib/gui/textinput.h b/lib/gui/textinput.h new file mode 100644 index 00000000..d0901dc2 --- /dev/null +++ b/lib/gui/textinput.h @@ -0,0 +1,31 @@ +#ifndef __LIB_GUI_TEXTINPUT_H__ +#define __LIB_GUI_TEXTINPUT_H__ + +#include <lib/gui/ebutton.h> + +class eTextInputField: public eButton +{ + int curPos; + unsigned int maxChars; + int eventHandler( const eWidgetEvent &); + void redrawWidget( gPainter *target, const eRect &area ); + void drawCursor(); + void updated(); + void nextChar(); + int lastKey; + bool editMode; + eString oldText; + eString oldHelpText; + eTimer nextCharTimer; + eString useableChars; + unsigned int nextCharTimeout; + bool capslock; + eString isotext; +public: + eTextInputField( eWidget* parent, eLabel *descr=0, const char *deco="eNumber" ); + void setMaxChars( int i ) { maxChars = i; } + void setUseableChars( const char* ); + void setNextCharTimeout( unsigned int ); +}; + +#endif |
