equal
deleted
inserted
replaced
28 |
28 |
29 // System includes |
29 // System includes |
30 #include <PtiEngine.h> |
30 #include <PtiEngine.h> |
31 #include <PtiUserDicEntry.h> |
31 #include <PtiUserDicEntry.h> |
32 #include <aknnotewrappers.h> //CAknWarningNote |
32 #include <aknnotewrappers.h> //CAknWarningNote |
33 #include "AknFepUiManagerBase.h" |
|
34 |
33 |
35 const TInt KMinCandidateCount = 1; |
34 const TInt KMinCandidateCount = 1; |
36 // User includes |
35 // User includes |
37 #include "AknFepUiInputStateCandidateMiniQwertyPinyinAndStrokePhrase.h" |
36 #include "AknFepUiInputStateCandidateMiniQwertyPinyinAndStrokePhrase.h" |
38 #include "AknFepUiInputStateCandidateQwertyBaseChinesePhrase.h" |
37 #include "AknFepUiInputStateCandidateQwertyBaseChinesePhrase.h" |
41 #include "AknFepUICtrlInputPane.h" |
40 #include "AknFepUICtrlInputPane.h" |
42 #include "aknfepuictrleditpane.h" //phrase creation |
41 #include "aknfepuictrleditpane.h" //phrase creation |
43 #include "AknFepUIManagerStateInterface.h" |
42 #include "AknFepUIManagerStateInterface.h" |
44 #include "AknFepManager.h" |
43 #include "AknFepManager.h" |
45 #include <aknfep.rsg> |
44 #include <aknfep.rsg> |
46 #include "AknFepUiManagerChinese.h" |
|
47 |
45 |
48 // --------------------------------------------------------------------------- |
46 // --------------------------------------------------------------------------- |
49 // AknFepUiInputStateCandidateMiniQwertyPinyinAndStrokePhrase:: |
47 // AknFepUiInputStateCandidateMiniQwertyPinyinAndStrokePhrase:: |
50 // TAknFepUiInputStateCandidateMiniQwertyPinyinAndStrokePhrase |
48 // TAknFepUiInputStateCandidateMiniQwertyPinyinAndStrokePhrase |
51 // (other items were commented in a header). |
49 // (other items were commented in a header). |
206 } |
204 } |
207 else |
205 else |
208 { |
206 { |
209 if ( CheckFirstGroupStroke() ) |
207 if ( CheckFirstGroupStroke() ) |
210 { |
208 { |
211 //stroke to be shown |
|
212 if ( iPlugin.IsEnable()) |
|
213 { |
|
214 iPlugin.AnalyseL(); |
|
215 } |
|
216 RefreshUI( EFalse ); |
209 RefreshUI( EFalse ); |
217 UIContainer()->CandidatePane()->SelectFirstPhrase(); |
210 UIContainer()->CandidatePane()->SelectFirstPhrase(); |
218 } |
211 } |
219 else |
212 else |
220 { |
213 { |
221 //stroke to be shown |
|
222 if ( iPlugin.IsEnable()) |
|
223 { |
|
224 iPlugin.AnalyseL(); |
|
225 } |
|
226 UIContainer()->EditPaneWindow()->SetAutoChangeStateFlag( EAutoChangeStateFromCandidate ); |
214 UIContainer()->EditPaneWindow()->SetAutoChangeStateFlag( EAutoChangeStateFromCandidate ); |
227 iOwner->ChangeState( EMiniQwertyEdit ); |
215 iOwner->ChangeState( EMiniQwertyEdit ); |
228 } |
216 } |
229 } |
217 } |
230 } |
218 } |
288 default: |
276 default: |
289 TAknFepInputStateChineseBase::HandleCommandL( aCommandId ); |
277 TAknFepInputStateChineseBase::HandleCommandL( aCommandId ); |
290 break; |
278 break; |
291 } |
279 } |
292 } |
280 } |
293 void TAknFepUiInputStateCandidateMiniQwertyPinyinAndStrokePhrase::SubmitTextL( const TDesC& aText ) |
281 |
294 { |
|
295 if ( aText.Length() ) |
|
296 { |
|
297 if ( !CommitInlineEEPL( aText ) ) |
|
298 { |
|
299 DoActionAfterCommit(); |
|
300 } |
|
301 else |
|
302 { |
|
303 if ( CheckFirstGroupStroke() ) |
|
304 { |
|
305 //stroke to be shown |
|
306 if ( iPlugin.IsEnable()) |
|
307 { |
|
308 iPlugin.AnalyseL(); |
|
309 } |
|
310 RefreshUI( EFalse ); |
|
311 UIContainer()->CandidatePane()->SelectFirstPhrase(); |
|
312 } |
|
313 else |
|
314 { |
|
315 if ( iPlugin.IsEnable()) |
|
316 { |
|
317 iPlugin.AnalyseL(); |
|
318 } |
|
319 UIContainer()->EditPaneWindow()->SetAutoChangeStateFlag( EAutoChangeStateFromCandidate ); |
|
320 iOwner->ChangeState( EMiniQwertyEdit ); |
|
321 } |
|
322 } |
|
323 } |
|
324 } |
|
325 // End of file |
282 // End of file |