blob: d0901dc2fdebb142651ff744f3270a8833f666b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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
|