textinput/peninputarc/src/peninputserverapp/penuiwndctrl.cpp
changeset 35 0f326f2e628e
parent 13 3b79bedfdc20
equal deleted inserted replaced
27:694fa80c203c 35:0f326f2e628e
    13 *
    13 *
    14 * Description:
    14 * Description:
    15 *
    15 *
    16 */
    16 */
    17 #include <AknSgcc.h>
    17 #include <AknSgcc.h>
    18 #include <AknIncallBubbleNotify.h>
       
    19 #include <avkon.hrh>
    18 #include <avkon.hrh>
    20 #include <eikappui.h>
    19 #include <eikappui.h>
    21 #include <apgwgnam.h>
    20 #include <apgwgnam.h>
    22 
    21 
    23 #include "penuiwndctrl.h"
    22 #include "penuiwndctrl.h"
    43 
    42 
    44 CPenUiWndCtrl::~CPenUiWndCtrl()
    43 CPenUiWndCtrl::~CPenUiWndCtrl()
    45 {
    44 {
    46     delete iPopupWnd;
    45     delete iPopupWnd;
    47 
    46 
    48 	delete iIncallBubble;  
       
    49 #ifdef RD_UI_TRANSITION_EFFECTS_POPUPS
    47 #ifdef RD_UI_TRANSITION_EFFECTS_POPUPS
    50 
    48 
    51     if ( GfxTransEffect::IsRegistered( this ) )
    49     if ( GfxTransEffect::IsRegistered( this ) )
    52         {
    50         {
    53         // abort component effects (possibly appear effect) 
    51         // abort component effects (possibly appear effect) 
    62 {
    60 {
    63     CreateWindowL(iWndGroup);
    61     CreateWindowL(iWndGroup);
    64     SetComponentsToInheritVisibility();
    62     SetComponentsToInheritVisibility();
    65 
    63 
    66     Window().SetRequiredDisplayMode( EColor16MA );
    64     Window().SetRequiredDisplayMode( EColor16MA );
    67     iIncallBubble = CAknIncallBubble::NewL();        
       
    68     MakeVisible( EFalse );
    65     MakeVisible( EFalse );
    69 #ifdef RD_UI_TRANSITION_EFFECTS_POPUPS    
    66 #ifdef RD_UI_TRANSITION_EFFECTS_POPUPS    
    70     // only change registration, if not registered, don't register
    67     // only change registration, if not registered, don't register
    71     if (!GfxTransEffect::IsRegistered( this ) ) 
    68     if (!GfxTransEffect::IsRegistered( this ) ) 
    72         {
    69         {
   138 void CPenUiWndCtrl::ShowPenUiL(TBool /*aDimmed*/)
   135 void CPenUiWndCtrl::ShowPenUiL(TBool /*aDimmed*/)
   139     {
   136     {
   140     if (iResourceChange)
   137     if (iResourceChange)
   141         {
   138         {
   142         ActivateL();
   139         ActivateL();
   143         iIncallBubble->SetIncallBubbleFlagsL( EAknStatusBubbleInputShow );
       
   144         MakeVisible( ETrue );
   140         MakeVisible( ETrue );
   145     	ClaimPointerGrab( ETrue );
   141     	ClaimPointerGrab( ETrue );
   146         return;
   142         return;
   147         }
   143         }
   148 
   144 
   152     DrawableWindow()->SetOrdinalPosition( 0, iPriority);
   148     DrawableWindow()->SetOrdinalPosition( 0, iPriority);
   153     //OnActivate();
   149     //OnActivate();
   154     iWndGroup.SetNonFading(ETrue);
   150     iWndGroup.SetNonFading(ETrue);
   155     //ChangeSysteFadeStatus();
   151     //ChangeSysteFadeStatus();
   156     ActivateL();
   152     ActivateL();
   157     iIncallBubble->SetIncallBubbleFlagsL( EAknStatusBubbleInputShow );
       
   158    // MakeVisible( ETrue );
   153    // MakeVisible( ETrue );
   159 	ClaimPointerGrab( ETrue );
   154 	ClaimPointerGrab( ETrue );
   160 	
   155 	
   161 	
   156 	
   162 #ifdef RD_UI_TRANSITION_EFFECTS_POPUPS      
   157 #ifdef RD_UI_TRANSITION_EFFECTS_POPUPS      
   194 
   189 
   195 void CPenUiWndCtrl::ClosePenUi(TBool aResChanging)
   190 void CPenUiWndCtrl::ClosePenUi(TBool aResChanging)
   196     {
   191     {
   197     if (aResChanging)
   192     if (aResChanging)
   198         {
   193         {
   199         TRAP_IGNORE(iIncallBubble->SetIncallBubbleFlagsL( EAknStatusBubbleInputHide ));
       
   200         MakeVisible( EFalse );
   194         MakeVisible( EFalse );
   201         return;
   195         return;
   202         }
   196         }
   203 #ifdef RD_UI_TRANSITION_EFFECTS_POPUPS           
   197 #ifdef RD_UI_TRANSITION_EFFECTS_POPUPS           
   204     if ( GfxTransEffect::IsRegistered( this ))
   198     if ( GfxTransEffect::IsRegistered( this ))
   231 
   225 
   232     //iResourceChange = EFalse;
   226     //iResourceChange = EFalse;
   233     iShowPopup = EFalse;
   227     iShowPopup = EFalse;
   234     iWndGroup.SetOrdinalPosition( -1, ECoeWinPriorityNormal-1 );
   228     iWndGroup.SetOrdinalPosition( -1, ECoeWinPriorityNormal-1 );
   235     DrawableWindow()->SetOrdinalPosition(-1, ECoeWinPriorityNormal-1 );
   229     DrawableWindow()->SetOrdinalPosition(-1, ECoeWinPriorityNormal-1 );
   236     TRAP_IGNORE(iIncallBubble->SetIncallBubbleFlagsL( EAknStatusBubbleInputHide ));
       
   237     //MakeVisible( EFalse );
   230     //MakeVisible( EFalse );
   238       
   231       
   239 }
   232 }
   240 
   233 
   241 
   234