5325 } |
5330 } |
5326 break; |
5331 break; |
5327 |
5332 |
5328 case R_AVKON_PREDICTIVE_TEXT_MENU_T9: |
5333 case R_AVKON_PREDICTIVE_TEXT_MENU_T9: |
5329 { |
5334 { |
|
5335 if( (iPtiEngine->NumberOfCandidates() <= 1) && !IsFlagSet(EFlagRemoveMatchesMenuItem ) ) |
|
5336 { |
|
5337 SetFlag( EFlagRemoveMatchesMenuItem ); |
|
5338 } |
|
5339 |
5330 if (iMode != ELatin) |
5340 if (iMode != ELatin) |
5331 { |
5341 { |
5332 aMenuPane->SetItemDimmed(EAknCmdT9PredictiveInsertWord, ETrue); |
5342 aMenuPane->SetItemDimmed(EAknCmdT9PredictiveInsertWord, ETrue); |
5333 } |
5343 } |
5334 if (!IsFlagSet(EFlagInlineEditInBackground)) |
5344 if (!IsFlagSet(EFlagInlineEditInBackground)) |
8063 TInt index = 0; |
8073 TInt index = 0; |
8064 SetFlag(EFlagForegroundUIComponentVisible); |
8074 SetFlag(EFlagForegroundUIComponentVisible); |
8065 |
8075 |
8066 TUid fepUid = CCoeEnv::Static()->FepUid(); |
8076 TUid fepUid = CCoeEnv::Static()->FepUid(); |
8067 ClearExtendedFlag(EExtendedFlagEdwinEditorDestroyed); |
8077 ClearExtendedFlag(EExtendedFlagEdwinEditorDestroyed); |
|
8078 SendEventsToPluginManL(EPluginEnablePriorityChangeOnOriChange,EFalse); |
8068 // Fire up the dialog |
8079 // Fire up the dialog |
|
8080 iMatchesListLaunched = ETrue; |
8069 TInt returnValue = iUiInterface->LaunchListPopupL(R_AVKON_T9_MATCHES_QUERY, index, |
8081 TInt returnValue = iUiInterface->LaunchListPopupL(R_AVKON_T9_MATCHES_QUERY, index, |
8070 currentIndex, matchesList, NULL); |
8082 currentIndex, matchesList, NULL); |
|
8083 iMatchesListLaunched = EFalse; |
8071 PrepareFepAfterDialogExitL(fepUid); |
8084 PrepareFepAfterDialogExitL(fepUid); |
|
8085 SendEventsToPluginManL(EPluginEnablePriorityChangeOnOriChange,ETrue); |
8072 if(returnValue == EAknSoftkeyOk) |
8086 if(returnValue == EAknSoftkeyOk) |
8073 {// Selected item 'index' from the matches array |
8087 {// Selected item 'index' from the matches array |
8074 HandleChangeInFocusL(); |
8088 HandleChangeInFocusL(); |
8075 TBuf<EMaximumFepWordLength> newText; |
8089 TBuf<EMaximumFepWordLength> newText; |
8076 // Get current match from editor and show it as a default text in 'insert word' query. |
8090 // Get current match from editor and show it as a default text in 'insert word' query. |
15790 #ifdef RD_SCALABLE_UI_V2 |
15804 #ifdef RD_SCALABLE_UI_V2 |
15791 iCancelPopupInQwerty = aLaunchedByTouchWin; |
15805 iCancelPopupInQwerty = aLaunchedByTouchWin; |
15792 #endif //RD_SCALABLE_UI_V2 |
15806 #endif //RD_SCALABLE_UI_V2 |
15793 TUid fepUid = CCoeEnv::Static()->FepUid(); |
15807 TUid fepUid = CCoeEnv::Static()->FepUid(); |
15794 ClearExtendedFlag(EExtendedFlagEdwinEditorDestroyed); |
15808 ClearExtendedFlag(EExtendedFlagEdwinEditorDestroyed); |
|
15809 SendEventsToPluginManL(EPluginEnablePriorityChangeOnOriChange,EFalse); |
15795 TInt returnValue = iUiInterface->LaunchListPopupL(R_AVKON_T9_LANGUAGES_QUERY, index, |
15810 TInt returnValue = iUiInterface->LaunchListPopupL(R_AVKON_T9_LANGUAGES_QUERY, index, |
15796 selectedLanguageIndex, languagesList, icons); |
15811 selectedLanguageIndex, languagesList, icons); |
15797 #ifdef RD_SCALABLE_UI_V2 |
15812 #ifdef RD_SCALABLE_UI_V2 |
15798 iCancelPopupInQwerty = EFalse; |
15813 iCancelPopupInQwerty = EFalse; |
15799 #endif //RD_SCALABLE_UI_V2 |
15814 #endif //RD_SCALABLE_UI_V2 |
18755 if(iCurrentFepUI) |
18772 if(iCurrentFepUI) |
18756 { |
18773 { |
18757 iAsyncResouceChanged.CallBack(); |
18774 iAsyncResouceChanged.CallBack(); |
18758 } |
18775 } |
18759 #ifdef RD_INTELLIGENT_TEXT_INPUT |
18776 #ifdef RD_INTELLIGENT_TEXT_INPUT |
18760 if(iCandidatePopup && iPtiEngine && (aType == KEikDynamicLayoutVariantSwitch)) |
18777 |
18761 { |
18778 if(aType == KEikDynamicLayoutVariantSwitch) |
|
18779 { |
|
18780 if ( iAvkonAppUi->IsDisplayingDialog() && iMatchesListLaunched ) |
|
18781 { |
|
18782 iUiInterface->DeleteDialogs(); |
|
18783 } |
|
18784 |
18762 //When there is a change of layout, the inline text position changes and hence the candidate |
18785 //When there is a change of layout, the inline text position changes and hence the candidate |
18763 //list position also needs to change accordingly. |
18786 //list position also needs to change accordingly. |
18764 //We need the editor to be brought back to focus, this is because we need the position of |
18787 //We need the editor to be brought back to focus, this is because we need the position of |
18765 //the inline text. |
18788 //the inline text. |
18766 iCandidatePopup->UnFocus(); |
18789 if( iCandidatePopup && iPtiEngine ) |
18767 //Need to get the editor state back after it is brought back to focus. |
18790 { |
18768 TRAP_IGNORE( HandleChangeInFocusL()); |
18791 iCandidatePopup->UnFocus(); |
18769 |
18792 //Need to get the editor state back after it is brought back to focus. |
18770 // Add candidate list control stack to get the layout change event |
18793 TRAP_IGNORE( HandleChangeInFocusL()); |
18771 // after dialog control...... |
18794 |
18772 TRAP_IGNORE( iCandidatePopup->SetFocusAddStackReducePriorityL() ); |
18795 // Add candidate list control stack to get the layout change event |
18773 |
18796 // after dialog control...... |
|
18797 TRAP_IGNORE( iCandidatePopup->SetFocusAddStackReducePriorityL() ); |
|
18798 } |
18774 } |
18799 } |
18775 #endif |
18800 #endif |
18776 TRAP_IGNORE(SendEventsToPluginManL( EPluginResourceChanged, aType )); |
18801 TRAP_IGNORE(SendEventsToPluginManL( EPluginResourceChanged, aType )); |
18777 } |
18802 } |
18778 void CAknFepManager::HandlePointerEventL(const TPointerEvent& aPointerEvent) |
18803 void CAknFepManager::HandlePointerEventL(const TPointerEvent& aPointerEvent) |