add comment for python-lists
[enigma2.git] / lib / gui / einputstring.h
1 #ifndef __lib_gui_einputstring_h
2 #define __lib_gui_einputstring_h
3
4 #include <lib/gui/einput.h>
5
6 class eInputContentString: public eInputContent
7 {
8         DECLARE_REF(eInputContentString);
9 public:
10         eInputContentString();
11
12         void getDisplay(std::string &res, int &cursor);
13         void moveCursor(int dir);
14         int haveKey(int code, int overwrite);
15         void deleteChar(int dir);
16         int isValid();
17         
18         void validate();
19         
20         void setText(const std::string &text);
21         std::string getText();
22         
23 private:
24         void insertChar(int pos, int ch);
25         
26         std::string m_string;
27         
28         int m_cursor, m_len;
29 };
30
31 #endif