📄 eqtapinterpunction.h
字号:
// eQTapInterpunction.h: interface for the CeQTapInterpunction class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_EQTAPINTERPUNCTION_H__639BC6ED_1E67_428E_8DA6_33ABBCAAD6CA__INCLUDED_)
#define AFX_EQTAPINTERPUNCTION_H__639BC6ED_1E67_428E_8DA6_33ABBCAAD6CA__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 "eQTapImBase.h"
#define IP_TEXT_NUMBER 48
#define IP_TEXT_HORZ_NUMBER 8
#define IP_TEXT_VERT_NUMBER 6
#define IP_LINE_HEIGHT 26
#define IP_LINE_WIDTH 29
#define IP_LINE_HORZ_NUMBER 8
#define IP_LINE_VERT_NUMBER 6
#define IP_WINDOW_HEIGHT 210
#define IP_WINDOW_WIDTH 176
#define IP_WINDOW_X 0
#define IP_WINDOW_Y 0
#define SELECTLINECOLOR TRgb(0,0,255) //分隔线的颜色
class CeQTapInterpunction : public CCoeControl, CeQTapIMBase
{
public:
CeQTapInterpunction();
CeQTapInterpunction(CeQTapControl* aControl);
virtual ~CeQTapInterpunction();
// Static construction
static CeQTapInterpunction* NewL(CeQTapControl* aControl);
inline TBool GetIpState() { return m_bIsIMActive;}
inline void SetIpState(TBool bState) { m_bIsIMActive = bState;}
void ConstructL();
inline TInt GetIpList() { return m_iInterpunctionList;}
inline void SetIpList(TInt iList) { m_iInterpunctionList = iList;}
inline void IncreaseIpList() {m_iInterpunctionList ++;}
inline void DecreaseIpList() {m_iInterpunctionList --;}
void DrawBD() const;
TKeyResponse CompleteInterpunction(TUint keyCode);
TKeyResponse ChangeIMtoInterpunction();
void ActiveIPWindow(TBool aActive);
void UpdateBDContent(TBool aClean);
void DrawBDText(CWindowGc& gc,TBuf<16>& Text,TInt nWordIndex, const CFont* pfont) const;
private:
/*Etrue normal IM, EFalse, interpunction IM interface*/
// TBool m_bIMNormal;
/*current interpunction list number*/
TInt m_iInterpunctionList;
/*current select position*/
TInt m_iCurrentPos;
/*used for the transporting text from edit to target*/
TBuf<64> m_WholeSentence;
};
#endif // !defined(AFX_EQTAPINTERPUNCTION_H__639BC6ED_1E67_428E_8DA6_33ABBCAAD6CA__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -