This commit is well documented, so no need to tell you my life story. Full Unicode patch with RTL Support & BiDi logic. Removed the legacy codePage, normalised to UTF8 (65001). It also comes with: CTRL + A : select text (highlighted) CTRL + C : copy CTRL + V : paste CTRL + X : cut CTRL + Y : redo CTRL + Z : undo
43 lines
816 B
C++
43 lines
816 B
C++
#pragma once
|
|
|
|
#include "EterBase/Singleton.h"
|
|
#include "EterLib/IME.h"
|
|
|
|
class CPythonIME :
|
|
public IIMEEventSink,
|
|
public CIME,
|
|
public CSingleton<CPythonIME>
|
|
{
|
|
public:
|
|
CPythonIME();
|
|
virtual ~CPythonIME();
|
|
|
|
void MoveLeft();
|
|
void MoveRight();
|
|
void MoveHome();
|
|
void MoveEnd();
|
|
void SetCursorPosition(int iPosition);
|
|
void Delete();
|
|
|
|
void SelectAll();
|
|
void DeleteSelection();
|
|
void CopySelectionToClipboard();
|
|
void CutSelection();
|
|
void PasteTextFromClipBoard();
|
|
|
|
void Create(HWND hWnd);
|
|
|
|
protected:
|
|
virtual void OnTab();
|
|
virtual void OnReturn();
|
|
virtual void OnEscape();
|
|
|
|
virtual bool OnWM_CHAR( WPARAM wParam, LPARAM lParam );
|
|
virtual void OnUpdate();
|
|
virtual void OnOpenCandidateList();
|
|
virtual void OnCloseCandidateList();
|
|
virtual void OnOpenReadingWnd();
|
|
virtual void OnCloseReadingWnd();
|
|
|
|
};
|