textinput/peninputarc/src/peninputclient/penclientimpl.cpp
branchRCL_3
changeset 6 6ceef9a83b1a
parent 5 a47de9135b21
child 7 6defe5d1bd39
equal deleted inserted replaced
5:a47de9135b21 6:6ceef9a83b1a
    27 #include <apgcli.h>
    27 #include <apgcli.h>
    28 #include <s32mem.h>
    28 #include <s32mem.h>
    29 #include <coemain.h>
    29 #include <coemain.h>
    30 #include <apgwgnam.h>
    30 #include <apgwgnam.h>
    31 #include "peninputclient.h"
    31 #include "peninputclient.h"
       
    32 #ifndef FIX_FOR_NGA
       
    33 #define FIX_FOR_NGA
       
    34 #endif
    32 const TUint KDefaultMessageSlots = 4;
    35 const TUint KDefaultMessageSlots = 4;
    33 
    36 
    34 const TInt KMaxSupportLanguages = 100;
    37 const TInt KMaxSupportLanguages = 100;
    35 const TInt KMaxImeImplementations = 10;
    38 const TInt KMaxImeImplementations = 10;
    36 const TUid KSingletonClientId = 
    39 const TUid KSingletonClientId = 
   372                 iInternalPopup,priority, iResourceChange);    
   375                 iInternalPopup,priority, iResourceChange);    
   373         }
   376         }
   374     else //undim the window
   377     else //undim the window
   375         {
   378         {
   376         if(iBackgroundCtrl)
   379         if(iBackgroundCtrl)
   377             iBackgroundCtrl->Hide();    
   380 #ifdef FIX_FOR_NGA
       
   381             {
       
   382             delete iBackgroundCtrl;
       
   383             iBackgroundCtrl = 0;
       
   384             }
       
   385 #else            
       
   386             {
       
   387             iBackgroundCtrl->Hide();
       
   388             }
       
   389 #endif   
   378         }
   390         }
   379     }
   391     }
   380 // ---------------------------------------------------------------------------
   392 // ---------------------------------------------------------------------------
   381 // RPeninputServerImpl::ActivateLayout
   393 // RPeninputServerImpl::ActivateLayout
   382 // Activate/Deactivate a ui layout
   394 // Activate/Deactivate a ui layout
  1496         
  1508         
  1497         iWndGroup.SetOrdinalPosition( 0, aPriority); 
  1509         iWndGroup.SetOrdinalPosition( 0, aPriority); 
  1498 
  1510 
  1499         Window().SetOrdinalPosition(0,aPriority);      
  1511         Window().SetOrdinalPosition(0,aPriority);      
  1500      
  1512      
       
  1513         // For fix ELLI-82JD3K for tb92.
       
  1514         // The code runs well on 5.0 platform, but on tb92,
       
  1515         // it will make the backgourd screen black purely.
       
  1516         //Window().SetFaded(ETrue,RWindowTreeNode::EFadeWindowOnly);   
       
  1517         }
       
  1518      else
       
  1519         {
  1501         Window().SetFaded(ETrue,RWindowTreeNode::EFadeWindowOnly);
  1520         Window().SetFaded(ETrue,RWindowTreeNode::EFadeWindowOnly);
  1502         }
       
  1503      else
       
  1504         {
       
  1505         Window().SetFaded(ETrue,RWindowTreeNode::EFadeWindowOnly);    
       
  1506         }
  1521         }
  1507  
  1522  
  1508     Window().Invalidate();
  1523     Window().Invalidate();
  1509     DrawNow();
  1524     DrawNow();
  1510     }
  1525     }