📄 fepcontrol.h
字号:
#ifndef FEPCONTROL_H__
#define FEPCONTROL_H__
#include <coecntrl.h>
class CHaneaseEngine;
class CMultiTapEngine;
class CFepIndicator;
class CHaneaseFep;
class CHaneaseFepControl : public CCoeControl
{
public:
enum TMode
{
ENoInput = 0,
ESymbol = 0x1,
ELetter = 0x2,
ENumber = 0x4,
EChinese = 0x8,
ECapLetter = 0x10
};
private:
//constructor
CHaneaseFepControl(CHaneaseFep& aFep);
void ConstructL();
public:
static CHaneaseFepControl* NewL(CHaneaseFep& aFep);
~CHaneaseFepControl();
void Reset();
TKeyResponse SymbolHandle(TInt keyCode);
TKeyResponse ChineseHandle(TInt keyCode);
TKeyResponse LetterHandle(TInt keyCode);
void SwitchInputModeL(TUint editorMode);
//From CCoeControl
TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType);
void SelectSymbol();
void DisplaySymbol();
void DisplayFep();
void CommitOutput();
void Draw(const TRect& /*aRect*/) const;
public: // New methods
void HandleChangeInFocus();
TInt iHighlight;
TMode iMode;
private:
CHaneaseFep& iFep;
TCoeInputCapabilities iInputCapabilities;
TBuf16 <5> iInput;
CArrayFix<TUint> *iCand;
CArrayFix<TUint> *iOutput;
CHaneaseEngine* iEngine;
CMultiTapEngine* iLetterEngine;
CFepIndicator* iIndicator;
TInt iInputSymbol1;
//TInt iResId; // For containing the T9 resource ID
};
#endif //FEPCONTROL_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -