00001
00005 #ifdef __SYMBIAN32__
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef __TUIEDIT_H
00014 #define __TUIEDIT_H
00015
00016 #include <e32cons.h>
00017
00018
00019
00020
00021
00022 class CLineEdit : public CBase
00023 {
00024 public:
00025 enum TCursorType {ECursorNone=0,ECursorNormal=20,ECursorInsert=100};
00026 enum TEditMode {EEditOverWrite,EEditInsert};
00027 public:
00028 IMPORT_C static CLineEdit* NewL(CConsoleBase* aConsole,TInt aMaxHistory);
00029 ~CLineEdit();
00030 IMPORT_C void Edit(const TDesC& aPrompt,TDes* aBuf);
00031 protected:
00032 CLineEdit();
00033 TPoint Where();
00034 TInt Lines();
00035 TInt WordLeft();
00036 TInt WordRight();
00037 void ClearLine();
00038 void ClearLast(TInt aCnt);
00039 void Recall();
00040 void Cursor();
00041 void Refresh();
00042 inline TDes& Buf() {return *iBuf;}
00043 private:
00044 CArrayFixFlat<HBufC*>* iHistory;
00045 CConsoleBase* iConsole;
00046 TInt iMaxHistory;
00047 TInt iWidth;
00048 TInt iHeight;
00049 TInt iPos;
00050 TInt iLine;
00051 TInt iOrigin;
00052 TInt iRecall;
00053 TEditMode iMode;
00054 TDes* iBuf;
00055 };
00056
00057 #endif
00058
00059
00060 #endif // __SYMBIAN32__
00061