camerauis/cameraapp/generic/src/CamViewBase.cpp
branchRCL_3
changeset 35 e32fcfe0045f
parent 27 53c8aa5d97a3
child 50 f54ad444594d
equal deleted inserted replaced
31:8f559c47d7fd 35:e32fcfe0045f
    37 #include "CamUtility.h"
    37 #include "CamUtility.h"
    38 #include <AknWaitDialog.h>
    38 #include <AknWaitDialog.h>
    39 #include "CamWaitDialog.h"
    39 #include "CamWaitDialog.h"
    40 #include "CamCommandHandlerAo.h"
    40 #include "CamCommandHandlerAo.h"
    41 #include "CameraUiConfigManager.h"
    41 #include "CameraUiConfigManager.h"
       
    42 #include "CamNaviProgressBarModel.h"
    42 
    43 
    43 
    44 
    44 static const TRect KCamCbaHiddenRect = TRect(640,640,640,640);
    45 static const TRect KCamCbaHiddenRect = TRect(640,640,640,640);
    45 
    46 
    46 
    47 
   120 // -----------------------------------------------------------------------------
   121 // -----------------------------------------------------------------------------
   121 //
   122 //
   122 void CCamViewBase::HandleCommandL( TInt aCommand )
   123 void CCamViewBase::HandleCommandL( TInt aCommand )
   123     {
   124     {
   124     PRINT( _L("Camera => CCamViewBase::HandleCommandL"))
   125     PRINT( _L("Camera => CCamViewBase::HandleCommandL"))
       
   126     CCamAppUi* appUi =  static_cast<CCamAppUi*>( AppUi() );
       
   127 
   125     switch(aCommand)
   128     switch(aCommand)
   126         {
   129         {
   127         case ECamCmdInternalExit:
   130         case ECamCmdInternalExit:
   128             {   
   131             {   
   129             TInt standbyError = KErrNone;        
   132             TInt standbyError = KErrNone;        
   153             	{
   156             	{
   154             	iContainer->DrawDeferred();
   157             	iContainer->DrawDeferred();
   155             	}           
   158             	}           
   156             }
   159             }
   157             break;
   160             break;
   158             
   161 
       
   162         case ECamCmdRedrawVideoTime:
       
   163             {
       
   164             if( iContainer )
       
   165             	{
       
   166             	if(appUi)
       
   167             	    {
       
   168             	    iContainer->DrawNow( appUi->NaviProgressBarModel()->ProgPaneRect() );    
       
   169             	    }
       
   170                 else
       
   171                     {
       
   172             	    iContainer->DrawDeferred();
       
   173             	    }
       
   174             	}           
       
   175             }
       
   176             break;
       
   177 
       
   178         case ECamCmdRedrawZoom:
       
   179             {    
       
   180             if( iContainer )
       
   181             	{
       
   182             	if(appUi)
       
   183             	    {
       
   184             	    iContainer->DrawNow( appUi->ZoomPane()->Rect() );    
       
   185             	    }
       
   186             	else
       
   187             	    {
       
   188             	    PRINT( _L("Camera <> CCamViewBase::HandleCommandL ECamCmdRedrawZoom zoomRect"))                	        
       
   189             	    iContainer->DrawDeferred();
       
   190             	    }
       
   191             	}           
       
   192             }
       
   193             break;
       
   194 
   159         default:
   195         default:
   160             {
   196             {
   161             AppUi()->HandleCommandL( aCommand );
   197             AppUi()->HandleCommandL( aCommand );
   162             break;
   198             break;
   163             }
   199             }