equal
deleted
inserted
replaced
55 { |
55 { |
56 iState = EEntry; |
56 iState = EEntry; |
57 iOwner->PtiEngine()->SetInputMode( EPtiEnginePinyinPhraseQwerty ); |
57 iOwner->PtiEngine()->SetInputMode( EPtiEnginePinyinPhraseQwerty ); |
58 iOwner->PtiEngine()->SetCase( EPtiCaseLower ); |
58 iOwner->PtiEngine()->SetCase( EPtiCaseLower ); |
59 UIContainer()->SetLayout( MAknFepUICtrlContainerChinese::ELayoutKeystroke ); |
59 UIContainer()->SetLayout( MAknFepUICtrlContainerChinese::ELayoutKeystroke ); |
60 UIContainer()->FocusCandidatePane( ETrue ); |
|
61 UIContainer()->CandidatePane()->SelectFirstPhrase(); |
60 UIContainer()->CandidatePane()->SelectFirstPhrase(); |
|
61 UIContainer()->FocusCandidatePane( ETrue ); |
62 UIContainer()->CandidatePane()->ShowCandidateOrdinals( EFalse ); |
62 UIContainer()->CandidatePane()->ShowCandidateOrdinals( EFalse ); |
63 UIContainer()->EditPaneWindow()->DeactiveCursor(); |
63 UIContainer()->EditPaneWindow()->DeactiveCursor(); |
64 UIContainer()->SetFepMan( iOwner->FepMan() ); |
64 UIContainer()->SetFepMan( iOwner->FepMan() ); |
65 // so that it could handle EKeyCBA1 |
65 // so that it could handle EKeyCBA1 |
66 iOwner->FepMan()->EntryPhrase( ETrue ); |
66 iOwner->FepMan()->EntryPhrase( ETrue ); |
122 } |
122 } |
123 case EStdKeyRightArrow: |
123 case EStdKeyRightArrow: |
124 { |
124 { |
125 if ( candidatePane->VisibleCandidateCount()!= 1 ) |
125 if ( candidatePane->VisibleCandidateCount()!= 1 ) |
126 { |
126 { |
127 iOwner->ChangeState( ECandidate ); |
|
128 candidatePane->SelectNext(); |
127 candidatePane->SelectNext(); |
129 UpdateIndicator(); |
128 UpdateIndicator(); |
130 } |
129 } |
131 break; |
130 break; |
132 } |
131 } |
133 case EStdKeyLeftArrow: |
132 case EStdKeyLeftArrow: |
134 { |
133 { |
135 if ( candidatePane->VisibleCandidateCount()!= 1 ) |
134 if ( candidatePane->VisibleCandidateCount()!= 1 ) |
136 { |
135 { |
137 iOwner->ChangeState( ECandidate ); |
136 UIContainer()->CandidatePane()->SelectPrev(); |
138 TInt numbertotal = UIContainer()->CandidatePane()->VisibleCandidateCount(); |
|
139 UIContainer()->CandidatePane()->SelectIndex( numbertotal - 1 ); |
|
140 UpdateIndicator(); |
137 UpdateIndicator(); |
141 } |
138 } |
142 break; |
139 break; |
143 } |
140 } |
144 case EStdKeyDevice0: //select key |
141 case EStdKeyDevice0: //select key |
257 case EStdKeyDownArrow: |
254 case EStdKeyDownArrow: |
258 { |
255 { |
259 if ( 0 != candidatePane->VisibleCandidateCount() ) |
256 if ( 0 != candidatePane->VisibleCandidateCount() ) |
260 { |
257 { |
261 uiContainer->EditPaneWindow()->SetChangeState( ETrue ); |
258 uiContainer->EditPaneWindow()->SetChangeState( ETrue ); |
262 iOwner->ChangeState( ECandidate ); |
259 iOwner->ChangeState( EEntry ); |
263 } |
260 } |
264 break; |
261 break; |
265 } |
262 } |
266 case EStdKeyDevice0: |
263 case EStdKeyDevice0: |
267 case EStdKeyDevice3: |
264 case EStdKeyDevice3: |
306 break; |
303 break; |
307 } |
304 } |
308 } |
305 } |
309 return ret; |
306 return ret; |
310 } |
307 } |
|
308 |
|
309 void TAknFepInputStateEditinigMiniQwertyPinyinPhrase::SubmitTextL( const TDesC& aText ) |
|
310 { |
|
311 if ( aText.Length() ) |
|
312 { |
|
313 if ( !CommitInlineEEPL( aText ) ) |
|
314 { |
|
315 DoActionAfterCommit(); |
|
316 } |
|
317 else |
|
318 { |
|
319 if ( CheckFirstGroupStroke() ) |
|
320 { |
|
321 //stroke to be shown |
|
322 if ( iPlugin.IsEnable()) |
|
323 { |
|
324 iPlugin.AnalyseL(); |
|
325 } |
|
326 RefreshUI( EFalse ); |
|
327 UIContainer()->CandidatePane()->SelectFirstPhrase(); |
|
328 } |
|
329 else |
|
330 { |
|
331 //stroke to be shown |
|
332 if ( iPlugin.IsEnable()) |
|
333 { |
|
334 iPlugin.AnalyseL(); |
|
335 } |
|
336 UIContainer()->EditPaneWindow()->SetAutoChangeStateFlag( EAutoChangeStateFromCandidate ); |
|
337 iOwner->ChangeState( EMiniQwertyEdit ); |
|
338 } |
|
339 } |
|
340 } |
|
341 } |
311 // --------------------------------------------------------------------------- |
342 // --------------------------------------------------------------------------- |
312 // TAknFepInputStateEntryMiniQwertyPinyinPhrase::HandleCommandL |
343 // TAknFepInputStateEntryMiniQwertyPinyinPhrase::HandleCommandL |
313 // Handling Command |
344 // Handling Command |
314 // --------------------------------------------------------------------------- |
345 // --------------------------------------------------------------------------- |
315 // |
346 // |
352 void TAknFepInputStateEditinigMiniQwertyPinyinPhrase::HandleCommandL( |
383 void TAknFepInputStateEditinigMiniQwertyPinyinPhrase::HandleCommandL( |
353 TInt aCommandId ) |
384 TInt aCommandId ) |
354 { |
385 { |
355 TAknFepInputMiniQwertyPinyinPhraseBase::HandleCommandL( aCommandId ); |
386 TAknFepInputMiniQwertyPinyinPhraseBase::HandleCommandL( aCommandId ); |
356 } |
387 } |
|
388 |
|
389 void TAknFepInputStateEntryMiniQwertyPinyinPhrase::SubmitTextL( const TDesC& aText ) |
|
390 { |
|
391 MAknFepUICtrlContainerChinese* uiContainer = UIContainer(); |
|
392 if ( aText.Length() ) |
|
393 { |
|
394 if ( !CommitInlineEEPL( aText ) ) |
|
395 { |
|
396 DoActionAfterCommit(); |
|
397 } |
|
398 else |
|
399 { |
|
400 if ( CheckFirstGroupStroke() ) |
|
401 { |
|
402 //stroke to be shown |
|
403 if ( iPlugin.IsEnable()) |
|
404 { |
|
405 iPlugin.AnalyseL(); |
|
406 } |
|
407 RefreshUI(); |
|
408 uiContainer->CandidatePane()->SelectFirstPhrase(); |
|
409 } |
|
410 else |
|
411 { |
|
412 //stroke to be shown |
|
413 if ( iPlugin.IsEnable()) |
|
414 { |
|
415 iPlugin.AnalyseL(); |
|
416 } |
|
417 uiContainer->EditPaneWindow()->SetAutoChangeStateFlag( |
|
418 EAutoChangeStateFromCandidate ); |
|
419 iOwner->ChangeState( EMiniQwertyEdit ); |
|
420 } |
|
421 } |
|
422 } |
|
423 } |
|
424 |
357 // End Of File |
425 // End Of File |
358 |
426 |