vtuis/videotelui/src/CVtUiAppUi.cpp
branchRCL_3
changeset 17 9ec13d39cc2e
parent 16 4e9858fa9559
child 18 e1a893011fac
equal deleted inserted replaced
16:4e9858fa9559 17:9ec13d39cc2e
    56 #include    <hlplch.h>
    56 #include    <hlplch.h>
    57 #include    <apgwgnam.h>
    57 #include    <apgwgnam.h>
    58 #include    <StringLoader.h>
    58 #include    <StringLoader.h>
    59 #include    <AknDef.h>
    59 #include    <AknDef.h>
    60 #include    <aknconsts.h>
    60 #include    <aknconsts.h>
    61 
    61 #include    <akntoolbar.h>
    62 
    62 
    63 #include    <e32property.h>
    63 #include    <e32property.h>
    64 #include    <ecom/ecom.h>
    64 #include    <ecom/ecom.h>
    65 #include    <coreapplicationuisdomainpskeys.h>
    65 #include    <coreapplicationuisdomainpskeys.h>
    66 #include    <UikonInternalPSKeys.h>
    66 #include    <UikonInternalPSKeys.h>
  2488 
  2488 
  2489     if ( iInstance )
  2489     if ( iInstance )
  2490         {
  2490         {
  2491         if ( layoutChange )
  2491         if ( layoutChange )
  2492             {
  2492             {
       
  2493             if ( CurrentFixedToolbar() )
       
  2494                 {
       
  2495                 CurrentFixedToolbar()->HandleResourceChange( aType );
       
  2496                 }
  2493             CVtUiToolbarBase* tb = static_cast< CVtUiToolbarBase* >(
  2497             CVtUiToolbarBase* tb = static_cast< CVtUiToolbarBase* >(
  2494                 iFeatureManager->GetFeatureById( EVtUiFeatureIdToolbar ) );
  2498                 iFeatureManager->GetFeatureById( EVtUiFeatureIdToolbar ) );
  2495             if( tb )
  2499             if( tb )
  2496                 {
  2500                 {
  2497                 tb->HandleLayoutChangeL();
  2501                 tb->HandleLayoutChangeL();
  2502             }
  2506             }
  2503         if ( iInstance->iNaviPane )
  2507         if ( iInstance->iNaviPane )
  2504             {
  2508             {
  2505             iInstance->iNaviPane->HandleResourceChange( aType );
  2509             iInstance->iNaviPane->HandleResourceChange( aType );
  2506             }
  2510             }
  2507         // Handle layout change only when type == DLVS
  2511         }
  2508         if ( aType == KEikDynamicLayoutVariantSwitch )
       
  2509             {
       
  2510             (void) HandleLayoutChanged();
       
  2511             }
       
  2512         }
       
  2513 
       
  2514     iComponentManager->HandleResourceChangeL( aType );
  2512     iComponentManager->HandleResourceChangeL( aType );
  2515 
  2513     
       
  2514     // Handle layout change only when type == DLVS
       
  2515     if ( iInstance && aType == KEikDynamicLayoutVariantSwitch )
       
  2516         {
       
  2517         (void) DelayedHandleLayoutChanged( this );
       
  2518         }
  2516     __VTPRINTEXIT( "VtUi.HandleResourceChangeL");
  2519     __VTPRINTEXIT( "VtUi.HandleResourceChangeL");
  2517     }
  2520     }
  2518 
  2521 
  2519 // -----------------------------------------------------------------------------
  2522 // -----------------------------------------------------------------------------
  2520 // CVtUiAppUi::HandleForegroundEventL
  2523 // CVtUiAppUi::HandleForegroundEventL
  6485     TRect parent;
  6488     TRect parent;
  6486     TAknWindowLineLayout control;
  6489     TAknWindowLineLayout control;
  6487     VtUiLayout::GetApplicationParentRect( parent );
  6490     VtUiLayout::GetApplicationParentRect( parent );
  6488     VtUiLayout::GetMainPaneLayout( control );
  6491     VtUiLayout::GetMainPaneLayout( control );
  6489     AknLayoutUtils::LayoutControl( iMainControl, parent, control );
  6492     AknLayoutUtils::LayoutControl( iMainControl, parent, control );
       
  6493     iMainControl->DrawNow();
  6490     if(iMainControl)
  6494     if(iMainControl)
  6491         iMainControl->LayoutRemoteVideo();
  6495         iMainControl->LayoutRemoteVideo();
  6492     AknLayoutUtils::LayoutControl( iNumberEntryActivation, parent, control );
  6496     AknLayoutUtils::LayoutControl( iNumberEntryActivation, parent, control );
  6493     VtUiLayout::GetFirstWindowBackgroundLayout( control );
  6497     VtUiLayout::GetFirstWindowBackgroundLayout( control );
  6494     AknLayoutUtils::LayoutControl( iContextControl, parent, control );
  6498     AknLayoutUtils::LayoutControl( iContextControl, parent, control );
  6495     
  6499     iContextControl->DrawNow();
       
  6500     if(iContextControl)
       
  6501         iContextControl->LayoutRemoteVideo();
  6496     VtUiLayout::GetButtonPaneLayout( control );
  6502     VtUiLayout::GetButtonPaneLayout( control );
  6497     AknLayoutUtils::LayoutControl( iEndCallButtonPane, parent, control );
  6503     AknLayoutUtils::LayoutControl( iEndCallButtonPane, parent, control );
  6498     
  6504     iEndCallButtonPane->DrawNow();
  6499     if(iContextControl)
       
  6500         iContextControl->LayoutRemoteVideo();
       
  6501     
       
  6502     }
  6505     }
  6503 
  6506 
  6504 // -----------------------------------------------------------------------------
  6507 // -----------------------------------------------------------------------------
  6505 // CVtUiAppUi::CInstance::VolumeKeyPressedL
  6508 // CVtUiAppUi::CInstance::VolumeKeyPressedL
  6506 // -----------------------------------------------------------------------------
  6509 // -----------------------------------------------------------------------------