videoplayback/videoplaybackview/controlsrc/videoplaybackstatuspanecontrol.cpp
changeset 65 a9d57bd8d7b7
parent 52 e3cecb93e76a
equal deleted inserted replaced
62:0e1e938beb1a 65:a9d57bd8d7b7
    13 *
    13 *
    14 * Description:  Implementation of VideoPlaybackStatusPaneControl
    14 * Description:  Implementation of VideoPlaybackStatusPaneControl
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 // Version : %version: 22 %
    18 // Version : %version: 23 %
    19 
    19 
    20 
    20 
    21 
    21 
    22 #include <QFileInfo>
    22 #include <QFileInfo>
    23 
    23 
    99 //
    99 //
   100 void VideoPlaybackStatusPaneControl::setVisible( bool visible )
   100 void VideoPlaybackStatusPaneControl::setVisible( bool visible )
   101 {
   101 {
   102     MPX_DEBUG(_L("VideoPlaybackStatusPaneControl::setVisible visible = %d"), visible);
   102     MPX_DEBUG(_L("VideoPlaybackStatusPaneControl::setVisible visible = %d"), visible);
   103 
   103 
   104     mVisible = visible;
   104     if ( mVisible != visible )
   105 
   105     {
   106     if ( mVisible )
   106         mVisible = visible;
   107     {
   107 
   108         mController->view()->setTitleBarVisible( true );
   108         if ( mVisible )
   109         mController->view()->setStatusBarVisible( true );
   109         {
   110 
   110             mController->view()->setTitleBarVisible( true );
   111         if ( mController->viewMode() == EFullScreenView ||
   111             mController->view()->setStatusBarVisible( true );
   112              mController->viewMode() == EDetailsView )
   112 
   113         {
   113             if ( mController->viewMode() == EFullScreenView ||
       
   114                  mController->viewMode() == EDetailsView )
       
   115             {
       
   116                 if ( mTitleLayout )
       
   117                 {
       
   118                     mTitleLayout->setVisible( true );
       
   119                 }
       
   120             }
       
   121         }
       
   122         else
       
   123         {
       
   124             mController->view()->menu()->close();
       
   125             mController->view()->setTitleBarVisible( false );
       
   126             mController->view()->setStatusBarVisible( false );
       
   127 
   114             if ( mTitleLayout )
   128             if ( mTitleLayout )
   115             {
   129             {
   116                 mTitleLayout->setVisible( true );
   130                 mTitleLayout->setVisible( false );
   117             }
   131             }
   118         }
       
   119     }
       
   120     else
       
   121     {
       
   122         mController->view()->menu()->close();
       
   123         mController->view()->setTitleBarVisible( false );
       
   124         mController->view()->setStatusBarVisible( false );
       
   125 
       
   126         if ( mTitleLayout )
       
   127         {
       
   128             mTitleLayout->setVisible( false );
       
   129         }
   132         }
   130     }
   133     }
   131 }
   134 }
   132 
   135 
   133 // -------------------------------------------------------------------------------------------------
   136 // -------------------------------------------------------------------------------------------------
   318 //
   321 //
   319 void VideoPlaybackStatusPaneControl::openFullScreenView()
   322 void VideoPlaybackStatusPaneControl::openFullScreenView()
   320 {
   323 {
   321     MPX_DEBUG(_L("VideoPlaybackStatusPaneControl::openFullScreenView()"));
   324     MPX_DEBUG(_L("VideoPlaybackStatusPaneControl::openFullScreenView()"));
   322 
   325 
   323     mController->changeViewMode( EFullScreenView );
   326     mController->evaluateAndChangeViewMode( EFullScreenView, true );
   324 }
   327 }
   325 
   328 
   326 // End of file
   329 // End of file