fep/aknfep/src/AknFepPluginManager.cpp
branchRCL_3
changeset 18 b1ea1642412e
parent 16 857bebeecec0
child 19 ac7e4d1d9209
equal deleted inserted replaced
16:857bebeecec0 18:b1ea1642412e
   286     iHasSWEventCap = client.HasCapability(ECapabilitySwEvent);
   286     iHasSWEventCap = client.HasCapability(ECapabilitySwEvent);
   287     client.Close();
   287     client.Close();
   288     iAvkonRepository = CRepository::NewL( KCRUidAvkon ); 
   288     iAvkonRepository = CRepository::NewL( KCRUidAvkon ); 
   289     
   289     
   290     iConnectAo = new (ELeave)CConnectAo(this);
   290     iConnectAo = new (ELeave)CConnectAo(this);
   291     
       
   292     RProperty::Define( KPSUidAknFep, KAknFepSettingDialogState, RProperty::EInt );
       
   293     }
   291     }
   294 
   292 
   295 // -----------------------------------------------------------------------------
   293 // -----------------------------------------------------------------------------
   296 // CAknFepPluginManager::ActivatePenInputL
   294 // CAknFepPluginManager::ActivatePenInputL
   297 // Change to default plugin input mode
   295 // Change to default plugin input mode
  1091                 iCurrentPluginInputFepUI->HandleCommandL(
  1089                 iCurrentPluginInputFepUI->HandleCommandL(
  1092                         ECmdPeninputArabicNumModeChanged,aEventData);                            
  1090                         ECmdPeninputArabicNumModeChanged,aEventData);                            
  1093                 }
  1091                 }
  1094             break;
  1092             break;
  1095 		case EPluginEnablePriorityChangeOnOriChange:
  1093 		case EPluginEnablePriorityChangeOnOriChange:
  1096             if(iCurrentPluginInputFepUI)
  1094             if( iCurrentPluginInputFepUI && PluginInputMode() != EPluginInputModeNone )
  1097                 {
  1095                 {
  1098                 if(ConnectServer())
  1096 				// Don't handle this command if pen ui is not opened.
       
  1097                 if( iPenInputSvrConnected )
  1099                     {
  1098                     {
  1100                     iPenInputServer.EnablePriorityChangeOnOriChange(TBool(aEventData));  
  1099                     iPenInputServer.EnablePriorityChangeOnOriChange(TBool(aEventData));  
  1101                     }
  1100                     }
  1102                 }
  1101                 }
  1103 
  1102 
  4217     {
  4216     {
  4218     TBool ebable = ETrue;
  4217     TBool ebable = ETrue;
  4219     TInt enalbeInStartup = 0;
  4218     TInt enalbeInStartup = 0;
  4220     RProperty::Get(KPSUidUikon, KUikGlobalNotesAllowed, enalbeInStartup);
  4219     RProperty::Get(KPSUidUikon, KUikGlobalNotesAllowed, enalbeInStartup);
  4221     ebable = enalbeInStartup;
  4220     ebable = enalbeInStartup;
  4222     
  4221 
  4223     if (iInGlobleNoteEditor || 
  4222     TInt priority = CCoeEnv::Static()->RootWin().OrdinalPriority();
  4224         (iPenInputMenu && iPenInputMenu->IsShowing()))
  4223     if (iInGlobleNoteEditor || ECoeWinPriorityNormal < priority ||
       
  4224             (iPenInputMenu && iPenInputMenu->IsShowing()))
  4225         {
  4225         {
  4226         ebable = EFalse;    
  4226         ebable = EFalse;    
  4227         }
  4227         }
  4228     
  4228     
  4229     return ebable;
  4229     return ebable;
  5415 	{
  5415 	{
  5416 	TUid curAppId = GetCurAppUid();
  5416 	TUid curAppId = GetCurAppUid();
  5417 	iInGlobleNoteEditor = IsGlobalNotesApp(curAppId) ? ETrue:EFalse;
  5417 	iInGlobleNoteEditor = IsGlobalNotesApp(curAppId) ? ETrue:EFalse;
  5418 	if (iCurrentPluginInputFepUI)
  5418 	if (iCurrentPluginInputFepUI)
  5419 		{
  5419 		{
  5420 		iCurrentPluginInputFepUI->HandleCommandL( 
  5420         iCurrentPluginInputFepUI->HandleCommandL( ECmdPenInputEnableSettingBtn, 
  5421 		    ECmdPenInputEnableSettingBtn, !iInGlobleNoteEditor);
  5421 	                                                  IsEnableSettingBtn() );
  5422 		}
  5422 		}
  5423 		
  5423 		
  5424     //if it's in global notes, show it.
  5424     //if it's in global notes, show it.
  5425     if(EPluginInputModeItut == PluginInputMode() ||
  5425     if(EPluginInputModeItut == PluginInputMode() ||
  5426        EPluginInputModeFSQ == PluginInputMode() ||
  5426        EPluginInputModeFSQ == PluginInputMode() ||