equal
deleted
inserted
replaced
87 uiContainer->ShowVerticalScrollArrows( multiplePages ); |
87 uiContainer->ShowVerticalScrollArrows( multiplePages ); |
88 uiContainer->FocusCandidatePane( ETrue ); |
88 uiContainer->FocusCandidatePane( ETrue ); |
89 uiContainer->CandidatePane()->ShowCandidateOrdinals( ETrue ); |
89 uiContainer->CandidatePane()->ShowCandidateOrdinals( ETrue ); |
90 uiContainer->CandidatePane()->SelectFirstPhrase(); |
90 uiContainer->CandidatePane()->SelectFirstPhrase(); |
91 UpdateIndicator(); |
91 UpdateIndicator(); |
92 |
92 RefreshUI( ETrue ); |
93 } |
93 } |
|
94 |
|
95 void TAknFepUiInputStateCandidateMiniQwertyZhuyinPhrase::RefreshUI( TBool aRefresh ) |
|
96 { |
|
97 MAknFepUICtrlContainerChinese* uiContainer = UIContainer(); |
|
98 // get cursor position |
|
99 TPoint baseLine; |
|
100 TInt height(0); |
|
101 TInt ascent(0); |
|
102 TRAPD(ret,iOwner->FepMan()->GetScreenCoordinatesL(baseLine,height,ascent)); |
|
103 if (ret == KErrNone) |
|
104 { |
|
105 uiContainer->SetContainerPosition(baseLine, height); |
|
106 } |
|
107 } |
94 |
108 |
95 // --------------------------------------------------------------------------- |
109 // --------------------------------------------------------------------------- |
96 // AknFepUiInputStateCandidateMiniQwertyZhuyinPhrase::HandleKeyL |
110 // AknFepUiInputStateCandidateMiniQwertyZhuyinPhrase::HandleKeyL |
97 // (other items were commented in a header). |
111 // (other items were commented in a header). |
98 // --------------------------------------------------------------------------- |
112 // --------------------------------------------------------------------------- |
441 if ( CAknFepFnKeyManager::EFnKeyNext == iOwner->FepMan()->FnKeyState() || |
455 if ( CAknFepFnKeyManager::EFnKeyNext == iOwner->FepMan()->FnKeyState() || |
442 CAknFepFnKeyManager::EFnKeyLock == iOwner->FepMan()->FnKeyState() ) |
456 CAknFepFnKeyManager::EFnKeyLock == iOwner->FepMan()->FnKeyState() ) |
443 { |
457 { |
444 return ETrue; |
458 return ETrue; |
445 } |
459 } |
|
460 else if ( iOwner->FepMan()->IsFlagSet( CAknFepManager::EFlagShiftKeyDepressed ) |
|
461 || iOwner->FepMan()->IsFlagSet( CAknFepManager::EFlagQwertyChrKeyDepressed ) |
|
462 || ((aKey == EStdKeyLeftFunc) && aLength == EShortKeyPress) ) |
|
463 { |
|
464 iOwner->FepMan()->TryCloseUiL(); |
|
465 return EFalse; |
|
466 } |
|
467 else if ( aKey == EKeyLeftShift || aKey ==EKeyLeftCtrl || aKey |
|
468 == EKeyRightCtrl || aKey ==EKeyRightFunc ) |
|
469 { |
|
470 iOwner->FepMan()->TryCloseUiL(); |
|
471 return EFalse; |
|
472 } |
446 else if ( aKey == EStdKeyDevice1 ) |
473 else if ( aKey == EStdKeyDevice1 ) |
447 { |
474 { |
448 iOwner->FepMan()->TryCloseUiL(); |
475 iOwner->FepMan()->TryCloseUiL(); |
449 return ETrue; |
476 return ETrue; |
450 } |
477 } |
517 } |
544 } |
518 return ETrue; |
545 return ETrue; |
519 } |
546 } |
520 else |
547 else |
521 { |
548 { |
522 TInt index = 0; |
549 //TInt index = 0; |
523 TBool isIndex = MapKeyToIndexSelectCandidate( aKey, index ); |
550 //TBool isIndex = MapKeyToIndexSelectCandidate( aKey, index ); |
524 if ( aLength == EShortKeyPress && |
551 if ( aLength == EShortKeyPress && |
525 ( ( isIndex && UIContainer()->CandidatePane()->SelectIndex( index ) ) || |
552 ( aKey == EStdKeyDevice0 || |
526 aKey == EStdKeyDevice0 || |
|
527 aKey == EStdKeyDevice3 ) ) |
553 aKey == EStdKeyDevice3 ) ) |
528 { |
554 { |
529 editPane->SetNeedClearDeliberateSelection( ETrue ); |
555 editPane->SetNeedClearDeliberateSelection( ETrue ); |
530 ComitPhraseCreatedToEditorL(); |
556 ComitPhraseCreatedToEditorL(); |
531 return ETrue; |
557 return ETrue; |
573 TAknFepInputStateChineseBase::HandleCommandL( aCommandId ); |
599 TAknFepInputStateChineseBase::HandleCommandL( aCommandId ); |
574 break; |
600 break; |
575 } |
601 } |
576 } |
602 } |
577 |
603 |
|
604 void TAknFepUiInputStateCandidateMiniQwertyZhuyinPhrase::SubmitTextL( const TDesC& aText ) |
|
605 { |
|
606 if ( aText.Length( ) ) |
|
607 { |
|
608 MAknFepManagerUIInterface* fepMan = iOwner->FepMan( ); |
|
609 fepMan->NewTextL( aText ); |
|
610 fepMan->CommitInlineEditL( ); |
|
611 iOwner->PtiEngine()->SetPredictiveChineseChar( aText ); |
|
612 if ( fepMan->IsFlagSet( CAknFepManager::EFlagEditorFull ) ) |
|
613 { |
|
614 fepMan->ClearFlag( CAknFepManager::EFlagEditorFull ); |
|
615 iOwner->FepMan()->TryCloseUiL( ); |
|
616 } |
|
617 else |
|
618 { |
|
619 iOwner->ChangeState( EPredictiveCandidate ); |
|
620 } |
|
621 } |
|
622 } |
|
623 |
578 // End of file |
624 // End of file |