fep/aknfep/src/AknFepManager.cpp
branchRCL_3
changeset 13 1bbdde98cc2d
parent 12 5e18d8c489d6
child 16 857bebeecec0
equal deleted inserted replaced
12:5e18d8c489d6 13:1bbdde98cc2d
  3505         {
  3505         {
  3506         CleanUpFep();
  3506         CleanUpFep();
  3507         }
  3507         }
  3508     }
  3508     }
  3509 
  3509 
       
  3510 void CAknFepManager::HandleChangeInFocusForSettingFep()
       
  3511 	{
       
  3512 	HandleChangeInFocus();
       
  3513 	}
       
  3514 
  3510 void CAknFepManager::HandleDestructionOfFocusedItem()
  3515 void CAknFepManager::HandleDestructionOfFocusedItem()
  3511     {
  3516     {
  3512     if (iInputCapabilities.FepAwareTextEditor())
  3517     if (iInputCapabilities.FepAwareTextEditor())
  3513         {
  3518         {
  3514         iFocusedItemDestroy = ETrue;
  3519         iFocusedItemDestroy = ETrue;
  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    
 15838         	}
 15853         	}
 15839 #endif
 15854 #endif
 15840         
 15855         
 15841           
 15856           
 15842         }
 15857         }
       
 15858 	SendEventsToPluginManL(EPluginEnablePriorityChangeOnOriChange,ETrue);	
 15843     CleanupStack::PopAndDestroy( languages );
 15859     CleanupStack::PopAndDestroy( languages );
 15844     }
 15860     }
 15845 
 15861 
 15846 void CAknFepManager::LaunchRecognitionWithDictionaryPopupListL()
 15862 void CAknFepManager::LaunchRecognitionWithDictionaryPopupListL()
 15847     {
 15863     {
 18380         
 18396         
 18381         if ( iFepPluginManager && iFepPluginManager->IsSpellVisible() )
 18397         if ( iFepPluginManager && iFepPluginManager->IsSpellVisible() )
 18382         	{
 18398         	{
 18383             iFepPluginManager->SetLaunchSCTInSpell( ETrue );            
 18399             iFepPluginManager->SetLaunchSCTInSpell( ETrue );            
 18384         	}        	
 18400         	}        	
 18385         
 18401         SendEventsToPluginManL(EPluginEnablePriorityChangeOnOriChange,EFalse);
 18386 		if (iUiInterface->CharMapDialogL(
 18402 		if (iUiInterface->CharMapDialogL(
 18387 			sctChars, 
 18403 			sctChars, 
 18388 			specialChars, 
 18404 			specialChars, 
 18389 			charMap,
 18405 			charMap,
 18390 			lockNumericKeys,
 18406 			lockNumericKeys,
 18518             {
 18534             {
 18519             iClosePeninputUi = EFalse;
 18535             iClosePeninputUi = EFalse;
 18520             iStopProcessFocus = EFalse;                   
 18536             iStopProcessFocus = EFalse;                   
 18521             }		   
 18537             }		   
 18522         PrepareFepAfterDialogExitL(fepUid);
 18538         PrepareFepAfterDialogExitL(fepUid);
       
 18539 		SendEventsToPluginManL(EPluginEnablePriorityChangeOnOriChange,ETrue);
 18523         }
 18540         }
 18524     }
 18541     }
 18525 
 18542 
 18526 /**
 18543 /**
 18527  * Queries supportting of SecretText
 18544  * Queries supportting of SecretText
 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)