tuiedit.h

来自「Symbian C++ scmp.zip」· C头文件 代码 · 共 52 行

H
52
字号
// tuiedit.h
//
// Copyright (c) 1998 Symbian Ltd.  All rights reserved.
//


#ifndef __TUIEDIT_H
#define __TUIEDIT_H

#include <e32cons.h>

/*
	CLineEdit class - borrowed from F32 text window server
*/

class CLineEdit : public CBase
    {
public:
	enum TCursorType {ECursorNone=0,ECursorNormal=20,ECursorInsert=100};
	enum TEditMode {EEditOverWrite,EEditInsert};
public:
	IMPORT_C static CLineEdit* NewL(CConsoleBase* aConsole,TInt aMaxHistory);
	~CLineEdit();
	IMPORT_C void Edit(const TDesC& aPrompt,TDes* aBuf);
protected:
	CLineEdit();
	TPoint Where();
	TInt Lines();
	TInt WordLeft();
	TInt WordRight();
	void ClearLine();
	void ClearLast(TInt aCnt);
	void Recall();
	void Cursor();
	void Refresh();
	inline TDes& Buf() {return *iBuf;}
private:
	CArrayFixFlat<HBufC*>* iHistory;
	CConsoleBase* iConsole; // Not owned
	TInt iMaxHistory;
	TInt iWidth;
	TInt iHeight;
	TInt iPos;
	TInt iLine;
	TInt iOrigin;
	TInt iRecall;
	TEditMode iMode;
	TDes* iBuf;
	};

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?