equal
deleted
inserted
replaced
18 |
18 |
19 #include "peninputsplititutwesternuimgr.h" |
19 #include "peninputsplititutwesternuimgr.h" |
20 #include "peninputsplititutdata.h" |
20 #include "peninputsplititutdata.h" |
21 #include "peninputsplititutdatamgr.h" |
21 #include "peninputsplititutdatamgr.h" |
22 #include "peninputsplititutwesternuistatenonpredict.h" |
22 #include "peninputsplititutwesternuistatenonpredict.h" |
|
23 #include "peninputsplititutwesternuistatespelling.h" |
23 #include "peninputsplititutlayoutcontext.h" |
24 #include "peninputsplititutlayoutcontext.h" |
24 #include "peninputsplititutlayout.h" |
25 #include "peninputsplititutlayout.h" |
25 #include "peninputsplititutwindowmanager.h" |
26 #include "peninputsplititutwindowmanager.h" |
26 |
27 |
27 |
28 |
52 { |
53 { |
53 iCurrentState->OnExit(); |
54 iCurrentState->OnExit(); |
54 } |
55 } |
55 |
56 |
56 delete iNormalState; |
57 delete iNormalState; |
|
58 delete iSpellState; |
57 } |
59 } |
58 |
60 |
59 // --------------------------------------------------------------------------- |
61 // --------------------------------------------------------------------------- |
60 // CWesternSplitItutUiMgr::CWesternSplitItutUiMgr |
62 // CWesternSplitItutUiMgr::CWesternSplitItutUiMgr |
61 // --------------------------------------------------------------------------- |
63 // --------------------------------------------------------------------------- |
75 void CWesternSplitItutUiMgr::ConstructL() |
77 void CWesternSplitItutUiMgr::ConstructL() |
76 { |
78 { |
77 CSplitItutUiMgrBase::ConstructL(); |
79 CSplitItutUiMgrBase::ConstructL(); |
78 |
80 |
79 iNormalState = CWesternSplitItutUiStateNonPredict::NewL(this); |
81 iNormalState = CWesternSplitItutUiStateNonPredict::NewL(this); |
|
82 iSpellState = CWesternSplitItutUiStateSpelling::NewL(this); |
80 } |
83 } |
81 |
84 |
82 // --------------------------------------------------------------------------- |
85 // --------------------------------------------------------------------------- |
83 // CWesternSplitItutUiMgr::HandleCtrlEventL |
86 // CWesternSplitItutUiMgr::HandleCtrlEventL |
84 // --------------------------------------------------------------------------- |
87 // --------------------------------------------------------------------------- |
111 switch (aNewState) |
114 switch (aNewState) |
112 { |
115 { |
113 case CSplitItutUiMgrBase::EStateWesternStandby: |
116 case CSplitItutUiMgrBase::EStateWesternStandby: |
114 { |
117 { |
115 newstate = iNormalState; |
118 newstate = iNormalState; |
|
119 } |
|
120 break; |
|
121 case CSplitItutUiMgrBase::EStateSpelling: |
|
122 { |
|
123 newstate = iSpellState; |
116 } |
124 } |
117 break; |
125 break; |
118 default: |
126 default: |
119 return; |
127 return; |
120 } |
128 } |
167 // CWesternSplitItutUiMgr::HandleCommandL |
175 // CWesternSplitItutUiMgr::HandleCommandL |
168 // --------------------------------------------------------------------------- |
176 // --------------------------------------------------------------------------- |
169 // |
177 // |
170 TInt CWesternSplitItutUiMgr::HandleCommandL(TInt aCmd, TUint8* aData) |
178 TInt CWesternSplitItutUiMgr::HandleCommandL(TInt aCmd, TUint8* aData) |
171 { |
179 { |
172 if ( aCmd == ECmdPenInputFingerMatchSelection ) |
180 if ( aCmd == ECmdPenInputFingerMatchSelection || |
|
181 aCmd == ECmdPenInputFingerSpelling ) |
173 { |
182 { |
174 if (!(*(reinterpret_cast<TBool*>(aData)))) |
183 if (!(*(reinterpret_cast<TBool*>(aData)))) |
175 { |
184 { |
176 // state not on |
185 // state not on |
177 SetCurrentStateL(CSplitItutUiMgrBase::EStateWesternStandby); |
186 SetCurrentStateL(CSplitItutUiMgrBase::EStateWesternStandby); |
188 { |
197 { |
189 iLayoutContext->DataMgr()->SetCase(*((TUint*) aData)); |
198 iLayoutContext->DataMgr()->SetCase(*((TUint*) aData)); |
190 return KErrNone; |
199 return KErrNone; |
191 } |
200 } |
192 } |
201 } |
193 break; |
202 case ECmdPenInputFingerSpelling: |
|
203 { |
|
204 SetCurrentStateL(CSplitItutUiMgrBase::EStateSpelling); |
|
205 return KErrNone; |
|
206 } |
|
207 // Modify warning |
|
208 //break; |
194 default: |
209 default: |
195 break; |
210 break; |
196 } |
211 } |
197 |
212 |
198 if (iCurrentState) |
213 if (iCurrentState) |