camerauis/cameraapp/generic/src/CamVideoPreCaptureView.cpp
branchRCL_3
changeset 27 53c8aa5d97a3
parent 25 bf64cebf4673
child 31 8f559c47d7fd
--- a/camerauis/cameraapp/generic/src/CamVideoPreCaptureView.cpp	Tue May 11 15:56:11 2010 +0300
+++ b/camerauis/cameraapp/generic/src/CamVideoPreCaptureView.cpp	Tue May 25 12:22:04 2010 +0300
@@ -40,6 +40,7 @@
 #include <cameraapp.mbg>
 #include "CamCaptureSetupMenu.h"
 #include "CamPanic.h"
+#include "CamSidePane.h"
 
 #include "CamShootingModeContainer.h"
 #include "CamVideoPreCaptureContainer.h"
@@ -668,7 +669,7 @@
         }
     else
         {
-        SetSoftKeysL( R_CAM_SOFTKEYS_SELECT_CANCEL );
+        SetSoftKeysL( R_AVKON_SOFTKEYS_SELECT_CANCEL  );
         }
     }
   else if ( iStandbyModeActive )
@@ -1243,6 +1244,7 @@
 //
 void CCamVideoPreCaptureView::UpdateToolbarIconsL()
     {
+    PRINT( _L("Camera => CCamVideoPreCaptureView::UpdateToolbarIconsL") );
     // fixed toolbar is used only with touch devices
     if (!iController.IsTouchScreenSupported() )
         return;
@@ -1251,6 +1253,7 @@
      UpdateVideoColorToneIconsL();
      UpdateVideoWhitebalanceIconsL();
 	 RedrawToolBar();
+	PRINT( _L("Camera <= CCamVideoPreCaptureView::UpdateToolbarIconsL") );
     }
 
 // ---------------------------------------------------------------------------
@@ -1407,6 +1410,11 @@
      CamUtility::ResourceFileName( iconFileName );
      TCamSceneId scene = static_cast< TCamSceneId > ( 
          iController.IntegerSettingValue( ECamSettingItemDynamicVideoScene ) );
+     
+     // For use with scene indicator
+     TInt32 iconId = EMbmCameraappQgn_indi_cam4_mode_auto;
+     TInt32 maskId = EMbmCameraappQgn_indi_cam4_mode_auto_mask;
+
      switch ( scene )
          {
          case ECamSceneAuto:
@@ -1419,6 +1427,8 @@
                  EMbmCameraappQgn_indi_cam4_mode_auto_mask,
                  skinInstance,
                  KAknsIIDQgnIndiCam4ModeAuto );
+             iconId = EMbmCameraappQgn_indi_cam4_mode_auto;
+             maskId = EMbmCameraappQgn_indi_cam4_mode_auto_mask;
              break;
              }
          case ECamSceneNight:
@@ -1430,6 +1440,8 @@
                  EMbmCameraappQgn_indi_cam4_mode_night_mask,
                  skinInstance,
                  KAknsIIDQgnIndiCam4ModeNight );
+             iconId = EMbmCameraappQgn_indi_cam4_mode_night;
+             maskId = EMbmCameraappQgn_indi_cam4_mode_night_mask;
              break;
              }
          case ECamSceneLowLight: 
@@ -1441,6 +1453,8 @@
                  EMbmCameraappQgn_indi_cam4_wb_tungsten_mask,
                  skinInstance,
                  KAknsIIDQgnIndiCam4WbTungsten );
+             iconId = EMbmCameraappQgn_indi_cam4_wb_tungsten;
+             maskId = EMbmCameraappQgn_indi_cam4_wb_tungsten_mask;
              break;
              }
          default:
@@ -1449,6 +1463,19 @@
              }
              break;
          }
+
+     // Update the icon in the side pane
+     if ( iController.UiConfigManagerPtr()->IsCustomCaptureButtonSupported() )
+         {
+         CCamAppUi* appUi = static_cast<CCamAppUi*>( iEikonEnv->AppUi() );
+         CCamSidePane* sidePane = appUi->SidePane();
+    
+         if ( sidePane )
+             {
+             PRINT( _L("Camera <> CCamVideoPreCaptureView::UpdateVideoSceneModeIconsL - Updating side pane indicator") );
+             sidePane->UpdateSceneIndicatorL( iconId, maskId );
+             }
+         }
      }
 
  // ---------------------------------------------------------------------------