diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2005-05-20 19:34:06 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2005-05-20 19:34:06 +0000 |
| commit | ee0a99a85f0e8c01e44422c4bc2c81fce7ee7e5e (patch) | |
| tree | 7d0eb0aa15792879b269962f14e08c1a76a978fb /lib/gui/einputstring.h | |
| parent | 34c3f1a742135c764ced560e8479e77129082301 (diff) | |
| download | enigma2-ee0a99a85f0e8c01e44422c4bc2c81fce7ee7e5e.tar.gz enigma2-ee0a99a85f0e8c01e44422c4bc2c81fce7ee7e5e.zip | |
- split einput contents to own files
- add string input
Diffstat (limited to 'lib/gui/einputstring.h')
| -rw-r--r-- | lib/gui/einputstring.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/lib/gui/einputstring.h b/lib/gui/einputstring.h new file mode 100644 index 00000000..a4eb52af --- /dev/null +++ b/lib/gui/einputstring.h @@ -0,0 +1,31 @@ +#ifndef __lib_gui_einputstring_h +#define __lib_gui_einputstring_h + +#include <lib/gui/einput.h> + +class eInputContentString: public eInputContent +{ + DECLARE_REF(eInputContentString); +public: + eInputContentString(); + + void getDisplay(std::string &res, int &cursor); + void moveCursor(int dir); + int haveKey(int code, int overwrite); + void deleteChar(int dir); + int isValid(); + + void validate(); + + void setText(const std::string &text); + std::string getText(); + +private: + void insertChar(int pos, int ch); + + std::string m_string; + + int m_cursor, m_len; +}; + +#endif |
