Lines 1-88
Link Here
|
1 |
--- src/ime-core/imi_view_classic.h.orig 2011-02-17 21:39:52.000000000 -0600 |
|
|
2 |
+++ src/ime-core/imi_view_classic.h 2011-11-10 23:00:20.374788681 -0600 |
3 |
@@ -61,6 +61,9 @@ public: |
4 |
virtual int onCandidatePageRequest(int pgno, bool relative); |
5 |
virtual int onCandidateSelectRequest(int index); |
6 |
|
7 |
+ void makeSelection(int candiIdx, unsigned& mask); |
8 |
+ void deleteCandidate(int candiIdx, unsigned& mask); |
9 |
+ |
10 |
private: |
11 |
unsigned m_cursorFrIdx; |
12 |
unsigned m_candiFrIdx; |
13 |
@@ -75,8 +78,6 @@ private: |
14 |
inline void _erase (bool backward, unsigned& mask); |
15 |
|
16 |
inline void _getCandidates (); |
17 |
- inline void _makeSelection (int candiIdx, unsigned& mask); |
18 |
- inline void _deleteCandidate (int candiIdx, unsigned& mask); |
19 |
|
20 |
inline void _commitChar (TWCHAR ch); |
21 |
inline void _commitString (const wstring& wstr); |
22 |
--- src/ime-core/imi_view_classic.cpp.orig 2011-02-17 21:39:52.000000000 -0600 |
23 |
+++ src/ime-core/imi_view_classic.cpp 2011-11-10 23:01:01.213605402 -0600 |
24 |
@@ -168,7 +168,7 @@ CIMIClassicView::onKeyEvent(const CKeyEv |
25 |
!m_pIC->isEmpty ()) { |
26 |
changeMasks |= KEYEVENT_USED; |
27 |
unsigned sel = (keyvalue == '0'? 9: keyvalue-'1'); |
28 |
- _deleteCandidate (sel, changeMasks); |
29 |
+ deleteCandidate (sel, changeMasks); |
30 |
goto PROCESSED; |
31 |
|
32 |
} else if ((modifiers & (IM_CTRL_MASK | IM_ALT_MASK | IM_SUPER_MASK | IM_RELEASE_MASK)) == 0) { |
33 |
@@ -177,7 +177,7 @@ CIMIClassicView::onKeyEvent(const CKeyEv |
34 |
if (!m_pIC->isEmpty ()) { |
35 |
changeMasks |= KEYEVENT_USED; |
36 |
unsigned sel = (keyvalue == '0'? 9: keyvalue-'1'); |
37 |
- _makeSelection (sel, changeMasks); |
38 |
+ makeSelection (sel, changeMasks); |
39 |
} else { |
40 |
m_numeric_mode = true; |
41 |
} |
42 |
@@ -216,7 +216,7 @@ CIMIClassicView::onKeyEvent(const CKeyEv |
43 |
} else if (keycode == IM_VK_SPACE) { |
44 |
if (!m_pIC->isEmpty ()) { |
45 |
changeMasks |= KEYEVENT_USED; |
46 |
- _makeSelection (0, changeMasks); |
47 |
+ makeSelection (0, changeMasks); |
48 |
} else { |
49 |
wstring wstr = (m_pIC->fullPuncOp()) (keyvalue); |
50 |
if (wstr.size()) { |
51 |
@@ -327,7 +327,7 @@ CIMIClassicView::onCandidateSelectReques |
52 |
unsigned changeMasks = 0; |
53 |
|
54 |
if (!m_pIC->isEmpty()) |
55 |
- _makeSelection(index, changeMasks); |
56 |
+ makeSelection(index, changeMasks); |
57 |
|
58 |
updateWindows(changeMasks); |
59 |
return 0; |
60 |
@@ -612,7 +612,7 @@ CIMIClassicView::_moveEnd (unsigned& mas |
61 |
} |
62 |
|
63 |
void |
64 |
-CIMIClassicView::_makeSelection (int candiIdx, unsigned& mask) |
65 |
+CIMIClassicView::makeSelection (int candiIdx, unsigned& mask) |
66 |
{ |
67 |
candiIdx += m_candiPageFirst; |
68 |
if (!m_tailSentence.empty ()) --candiIdx; |
69 |
@@ -655,7 +655,7 @@ CIMIClassicView::_makeSelection (int can |
70 |
} |
71 |
|
72 |
void |
73 |
-CIMIClassicView::_deleteCandidate (int candiIdx, unsigned& mask) |
74 |
+CIMIClassicView::deleteCandidate (int candiIdx, unsigned& mask) |
75 |
{ |
76 |
candiIdx += m_candiPageFirst; |
77 |
if (!m_tailSentence.empty ()) --candiIdx; |
78 |
--- src/ime-core/imi_view.h.orig 2011-02-17 21:39:52.000000000 -0600 |
79 |
+++ src/ime-core/imi_view.h 2011-11-10 23:05:14.515633839 -0600 |
80 |
@@ -188,7 +188,7 @@ public: |
81 |
CIMIWinHandler* getWinHandler(void) {return m_pWinHandler;} |
82 |
|
83 |
void setHotkeyProfile (CHotkeyProfile *prof) { m_pHotkeyProfile = prof;} |
84 |
- void setCandiWindowSize (unsigned size) {m_candiWindowSize = size<10? size: 10;} |
85 |
+ void setCandiWindowSize (unsigned size) {m_candiWindowSize = size;} |
86 |
CHotkeyProfile* getHotkeyProfile() { return m_pHotkeyProfile; } |
87 |
unsigned getCandiWindowSize() { return m_candiWindowSize; } |
88 |
|