📄 eqtapstroke.h
字号:
// eQTapStroke.h: interface for the CeQTapStroke class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_EQTAPSTROKE_H__E0E77D8E_120F_4AE9_B709_0DA693530AFC__INCLUDED_)
#define AFX_EQTAPSTROKE_H__E0E77D8E_120F_4AE9_B709_0DA693530AFC__INCLUDED_
#if !defined(__E32BASE_H__)
#include <E32BASE.H>
#endif
#if !defined(__W32STD_H__)
#include <W32STD.H>
#endif
#if !defined(__FRMTLAY_H__)
#include <FRMTLAY.H>
#endif
#if !defined(__COEMAIN_H__)
#include <COEMAIN.H>
#endif
#if !defined(__COECNTRL_H__)
#include <COECNTRL.H>
#endif
#if !defined(__FEPBASE_H__)
#include <FEPBASE.H>
#endif
#if !defined(__FEPITFR_H__)
#include <FEPITFR.H>
#endif
#if !defined(__EIKDIALG_H__)
#include <EIKDIALG.H>
#endif
#if !defined(__AKNLISTS_H__)
#include <AKNLISTS.H>
#endif
#if !defined(__EIKMOBS_H__)
#include <EIKMOBS.H>
#endif
#if !defined(__AKNEDSTSOBS_H__)
#include <AKNEDSTSOBS.H>
#endif
#include <e32base.h>
#include <e32std.h>
#include "W32Std.h"
#include "Coedef.h"
#include "eQTapIMBase.h"
#include "pattree.h"
#include "stdlib.h"
class CeQTapStroke : public CCoeControl, CeQTapIMBase
{
public:
CeQTapStroke();
virtual ~CeQTapStroke();
/*process the KeyEvent*/
virtual int OnKeyEventProc(int nParameter1, int nParameter2);
/*Draw itself*/
virtual int OnDrawSTkWindow();
static CeQTapStroke* NewL(CeQTapControl* pControl);
CeQTapStroke(CeQTapControl* pControl);
inline void Active(TBool bActive){ m_bIsIMActive = bActive;}
void ConstructL();
void SwitchToStroke();
void ActiveSTKWindow(TBool bActive);
TBool CurrentChange();
void ResetValue();
void OpenDictionary();
void DrawStroke() const;
void DrawArrow(int Style) const;
void DrawUpDownArrow() const;
TBool UpisActive(void) const;
TBool DownisActive(void) const;
void DrawSentence(int Style) const;
void DrawCand() const;
void DrawCandWithNumber() const;
void DrawPinYin(void) const;
TKeyResponse OfferKeyEventInOKModeL(TUint keyCode);
void SendSelectToClient(TInt Select, TBool bChangeLast);
TKeyResponse OnKeyMoveLeft(const TKeyEvent& aKeyEvent);
int GetSentence();
TKeyResponse OnKeyMoveRight(const TKeyEvent& aKeyEvent);
TKeyResponse OnKeyMoveUp(const TKeyEvent& aKeyEvent);
TKeyResponse OnKeyMoveDown(const TKeyEvent& aKeyEvent);
void OnLostFocus();
TKeyResponse DoFunctionKeys(TInt keycode);
private:
enum TKeyMode
{
EMoveLRUD,
ENoMove
};
int * m_pDictionaryChinese;
OUTBUFFER * m_pSentenceChinese;
TBool m_bSelectMode;
TKeyMode m_bKeyMode;
TBool m_bCurrentWordIsNull;
};
#endif // !defined(AFX_EQTAPSTROKE_H__E0E77D8E_120F_4AE9_B709_0DA693530AFC__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -