fep/aknfep/src/AknFepLanguageManager.cpp
branchRCL_3
changeset 7 6defe5d1bd39
parent 5 a47de9135b21
child 19 ac7e4d1d9209
equal deleted inserted replaced
6:6ceef9a83b1a 7:6defe5d1bd39
   295                                                       RPeninputServer* aPenServer)
   295                                                       RPeninputServer* aPenServer)
   296     {
   296     {
   297 
   297 
   298     RArray<TInt> implList;
   298     RArray<TInt> implList;
   299     CleanupClosePushL(implList);
   299     CleanupClosePushL(implList);
   300     
   300     // Now, there is no Landscape mode ITUT anymore, so change SecondMode to FSQ or ITUT
   301     TPluginInputMode secondMode = EPluginInputModeItut;
   301     // based on current screen mode.   
       
   302 
       
   303     TPluginInputMode secondMode;
       
   304     TPixelsTwipsAndRotation size; 
       
   305     CCoeEnv::Static()->ScreenDevice()->GetDefaultScreenSizeAndRotation(size);
       
   306     TBool landscape = size.iPixelSize.iWidth > size.iPixelSize.iHeight;
       
   307     if (landscape) // LandScape
       
   308         {
       
   309         secondMode = EPluginInputModeFSQ;
       
   310         }
       
   311     else // Portrait
       
   312         {
       
   313         secondMode = EPluginInputModeItut;
       
   314         } 
   302     TPluginInputMode curMode = aPreferedMode;
   315     TPluginInputMode curMode = aPreferedMode;
   303     TInt language = aPenInputLang;
   316     TInt language = aPenInputLang;
   304 
   317 
   305     //pen input language and prefered mode
   318     //pen input language and prefered mode
   306     aPenServer->GetImePluginIdListL(aPenInputLang, curMode, implList);
   319     aPenServer->GetImePluginIdListL(aPenInputLang, curMode, implList);