vtuis/videotelui/src/CVtUiAppUi.cpp
branchRCL_3
changeset 16 4e9858fa9559
parent 14 856ae1b15d98
child 17 9ec13d39cc2e
equal deleted inserted replaced
14:856ae1b15d98 16:4e9858fa9559
   156 
   156 
   157 // Remote video control normal priority
   157 // Remote video control normal priority
   158 const TInt KVtUiRemoteVideoControlOrdinalPriNormal = 0;
   158 const TInt KVtUiRemoteVideoControlOrdinalPriNormal = 0;
   159 
   159 
   160 // Remote video control high priority
   160 // Remote video control high priority
   161 const TInt KVtUiRemoteVideoControlOrdinalPriHigh = 2;
   161 const TInt KVtUiRemoteVideoControlOrdinalPriHigh = 1;
   162 
   162 
   163 // Name of the EIKON server window group.
   163 // Name of the EIKON server window group.
   164 _LIT( KVtUiEikonServer, "EikonServer" );
   164 _LIT( KVtUiEikonServer, "EikonServer" );
   165 
   165 
   166 // Name of the AknCapServer window group.
   166 // Name of the AknCapServer window group.
  1853             }
  1853             }
  1854         }
  1854         }
  1855     RefreshBlind();
  1855     RefreshBlind();
  1856     UpdateRenderingParametersL();
  1856     UpdateRenderingParametersL();
  1857     
  1857     
       
  1858     // Raise the menu priority, otherwise the remote video control may
       
  1859     // overlay the menu pane
       
  1860     CEikMenuBar* menuBar = iEikonEnv->AppUiFactory()->MenuBar();
       
  1861     if ( menuBar && menuBar->IsDisplayed() )
       
  1862         {
       
  1863         TInt mpPos = menuBar->MenuPane()->DrawableWindow()->OrdinalPosition();
       
  1864         menuBar->MenuPane()->DrawableWindow()->SetOrdinalPosition( mpPos, 
       
  1865                 KVtUiRemoteVideoControlOrdinalPriHigh ); // Pri = 1
       
  1866         }
       
  1867     
  1858     if ( aMode == ERenderingModeDialer )
  1868     if ( aMode == ERenderingModeDialer )
  1859         {
  1869         {
  1860         // Remote video control has the highest priority in dialer
  1870         // Remote video control has the highest priority in dialer
  1861         iInstance->iRemoteVideoControl->DrawableWindow()->SetOrdinalPosition( 
  1871         iInstance->iRemoteVideoControl->DrawableWindow()->SetOrdinalPosition( 
  1862                 pos, KVtUiRemoteVideoControlOrdinalPriHigh );
  1872                 pos, KVtUiRemoteVideoControlOrdinalPriHigh );
  2492             }
  2502             }
  2493         if ( iInstance->iNaviPane )
  2503         if ( iInstance->iNaviPane )
  2494             {
  2504             {
  2495             iInstance->iNaviPane->HandleResourceChange( aType );
  2505             iInstance->iNaviPane->HandleResourceChange( aType );
  2496             }
  2506             }
  2497         if ( layoutChange )
  2507         // Handle layout change only when type == DLVS
       
  2508         if ( aType == KEikDynamicLayoutVariantSwitch )
  2498             {
  2509             {
  2499             (void) HandleLayoutChanged();
  2510             (void) HandleLayoutChanged();
  2500             }
  2511             }
  2501         }
  2512         }
  2502 
  2513 
  6514             {
  6525             {
  6515             // If the capture mode is on we should
  6526             // If the capture mode is on we should
  6516             // end the capture mode
  6527             // end the capture mode
  6517             if( iAppUi.iUiStates->IsCaptureModeOn() )
  6528             if( iAppUi.iUiStates->IsCaptureModeOn() )
  6518                 {
  6529                 {
       
  6530                 __VTPRINT( DEBUG_GEN, "CVtUiAppUi.VolumeKeyPressedL cancel capture" )
  6519                 iAppUi.CmdCancelCaptureL();
  6531                 iAppUi.CmdCancelCaptureL();
  6520                 }
  6532                 }
       
  6533             else if ( iAppUi.iUiStates->IsZoomModeOn() )
       
  6534                 {
       
  6535                 // If zoom feature is active, stop that
       
  6536                 MVtUiFeature* zm = iAppUi.iFeatureManager->GetFeatureById( EVtUiFeatureIdZoom );
       
  6537                 if ( zm )
       
  6538                     {
       
  6539                     if ( zm->State() ==  MVtUiFeature::EActive )
       
  6540                         {
       
  6541                         __VTPRINT( DEBUG_GEN, "CVtUiAppUi.VolumeKeyPressedL zm->STOP" )
       
  6542                         zm->Stop();
       
  6543                         }
       
  6544                     }
       
  6545                 }
  6521             volume->StartL();
  6546             volume->StartL();
       
  6547             
       
  6548             // Toolbar needs to be refreshed if zoom, contrat and brightness were dismissed
       
  6549             CVtUiToolbarBase* tb = static_cast< CVtUiToolbarBase* >(
       
  6550             iAppUi.iFeatureManager->GetFeatureById( EVtUiFeatureIdToolbar ) );
       
  6551             if ( tb )
       
  6552                 {
       
  6553                 tb->RefreshL();
       
  6554                 }
  6522             }
  6555             }
  6523         }
  6556         }
  6524     __VTPRINTEXIT( "CVtUiAppUi.VolumeKeyPressedL" )
  6557     __VTPRINTEXIT( "CVtUiAppUi.VolumeKeyPressedL" )
  6525     }
  6558     }
  6526 
  6559