1349 // Update fixed toolbar icons according to current settings |
1347 // Update fixed toolbar icons according to current settings |
1350 // --------------------------------------------------------------------------- |
1348 // --------------------------------------------------------------------------- |
1351 // |
1349 // |
1352 void CCamStillPreCaptureView::UpdateToolbarIconsL() |
1350 void CCamStillPreCaptureView::UpdateToolbarIconsL() |
1353 { |
1351 { |
|
1352 PRINT( _L("Camera => CCamStillPreCaptureView::UpdateToolbarIconsL") ); |
1354 OstTrace0( CAMERAAPP_PERFORMANCE_DETAIL, CCAMSTILLPRECAPTUREVIEW_UPDATETOOLBARICONSL, "e_CCamStillPreCaptureView_UpdateToolbarIconsL 1" ); |
1353 OstTrace0( CAMERAAPP_PERFORMANCE_DETAIL, CCAMSTILLPRECAPTUREVIEW_UPDATETOOLBARICONSL, "e_CCamStillPreCaptureView_UpdateToolbarIconsL 1" ); |
1355 // fixed toolbar is used only with touch devices |
1354 // fixed toolbar is used only with touch devices |
1356 if(!iController.IsTouchScreenSupported()) |
1355 if(!iController.IsTouchScreenSupported()) |
1357 return; |
1356 return; |
1358 UpdateFlashIconsL(); |
1357 UpdateFlashIconsL(); |
1364 UpdateContrastIconsL(); |
1363 UpdateContrastIconsL(); |
1365 UpdateSceneModeIconsL(); |
1364 UpdateSceneModeIconsL(); |
1366 UpdateSelfTimerIconsL(); |
1365 UpdateSelfTimerIconsL(); |
1367 UpdateVFGridIconsL(); |
1366 UpdateVFGridIconsL(); |
1368 UpdateBurstModeIconsL(); |
1367 UpdateBurstModeIconsL(); |
1369 UpdateFaceTracKingIconsL(); |
1368 UpdateFaceTrackingIconsL(); |
1370 RedrawToolBar(); |
1369 RedrawToolBar(); |
1371 OstTrace0( CAMERAAPP_PERFORMANCE_DETAIL, DUP1_CCAMSTILLPRECAPTUREVIEW_UPDATETOOLBARICONSL, "e_CCamStillPreCaptureView_UpdateToolbarIconsL 0" ); |
1370 OstTrace0( CAMERAAPP_PERFORMANCE_DETAIL, DUP1_CCAMSTILLPRECAPTUREVIEW_UPDATETOOLBARICONSL, "e_CCamStillPreCaptureView_UpdateToolbarIconsL 0" ); |
|
1371 PRINT( _L("Camera <= CCamStillPreCaptureView::UpdateToolbarIconsL") ); |
1372 } |
1372 } |
1373 |
1373 |
1374 // --------------------------------------------------------------------------- |
1374 // --------------------------------------------------------------------------- |
1375 // CCamStillPreCaptureView::UpdateFlashIconsL |
1375 // CCamStillPreCaptureView::UpdateFlashIconsL |
1376 // --------------------------------------------------------------------------- |
1376 // --------------------------------------------------------------------------- |
2146 iconFileName, |
2146 iconFileName, |
2147 EMbmCameraappQgn_indi_cam4_viewfinder_off, |
2147 EMbmCameraappQgn_indi_cam4_viewfinder_off, |
2148 EMbmCameraappQgn_indi_cam4_viewfinder_off_mask, |
2148 EMbmCameraappQgn_indi_cam4_viewfinder_off_mask, |
2149 skinInstance, |
2149 skinInstance, |
2150 KAknsIIDQgnIndiCam4ViewfinderOff ); |
2150 KAknsIIDQgnIndiCam4ViewfinderOff ); |
2151 HBufC* buttonText = StringLoader::LoadLC( R_QTN_LCAM_TB_HIDE_VIEWFINDER_GRID ); |
2151 HBufC* buttonText = StringLoader::LoadLC( R_QTN_LCAM_TB_GRID ); |
2152 state->SetTextL( *buttonText ); |
2152 state->SetTextL( *buttonText ); |
2153 CleanupStack::PopAndDestroy( buttonText ); |
2153 CleanupStack::PopAndDestroy( buttonText ); |
2154 } |
2154 } |
2155 else |
2155 else |
2156 { |
2156 { |
2159 iconFileName, |
2159 iconFileName, |
2160 EMbmCameraappQgn_indi_cam4_viewfinder_on, |
2160 EMbmCameraappQgn_indi_cam4_viewfinder_on, |
2161 EMbmCameraappQgn_indi_cam4_viewfinder_on_mask, |
2161 EMbmCameraappQgn_indi_cam4_viewfinder_on_mask, |
2162 skinInstance, |
2162 skinInstance, |
2163 KAknsIIDQgnIndiCam4ViewfinderOn ); |
2163 KAknsIIDQgnIndiCam4ViewfinderOn ); |
2164 HBufC* buttonText = StringLoader::LoadLC( R_QTN_LCAM_TB_SHOW_VIEWFINDER_GRID ); |
2164 HBufC* buttonText = StringLoader::LoadLC( R_QTN_LCAM_TB_GRID ); |
2165 state->SetTextL( *buttonText ); |
2165 state->SetTextL( *buttonText ); |
2166 CleanupStack::PopAndDestroy( buttonText ); |
2166 CleanupStack::PopAndDestroy( buttonText ); |
2167 } |
2167 } |
2168 } |
2168 } |
2169 } |
2169 } |
2230 |
2230 |
2231 // --------------------------------------------------------------------------- |
2231 // --------------------------------------------------------------------------- |
2232 // CCamStillPreCaptureView::UpdateFaceTrackingIconsL |
2232 // CCamStillPreCaptureView::UpdateFaceTrackingIconsL |
2233 // --------------------------------------------------------------------------- |
2233 // --------------------------------------------------------------------------- |
2234 // |
2234 // |
2235 void CCamStillPreCaptureView::UpdateFaceTracKingIconsL() |
2235 void CCamStillPreCaptureView::UpdateFaceTrackingIconsL() |
2236 { |
2236 { |
2237 CAknButton* button = ToolbarButtonById( ECamCmdToggleFacetracking ); |
2237 CAknButton* button = ToolbarButtonById( ECamCmdToggleFacetracking ); |
2238 |
2238 |
2239 if ( button ) |
2239 if ( button ) |
2240 { |
2240 { |
2241 CAknButtonState* state = button->State(); |
2241 CAknButtonState* state = button->State(); |
2242 if ( state ) |
2242 if ( state ) |
2243 { |
2243 { |
2244 TInt face = iController.IntegerSettingValue( ECamSettingItemFaceTracking ); |
2244 TInt face = iController.IntegerSettingValue( |
|
2245 ECamSettingItemFaceTracking ); |
2245 |
2246 |
2246 MAknsSkinInstance* skinInstance = AknsUtils::SkinInstance(); |
2247 MAknsSkinInstance* skinInstance = AknsUtils::SkinInstance(); |
2247 TFileName iconFileName; |
2248 TFileName iconFileName; |
2248 CamUtility::ResourceFileName( iconFileName ); |
2249 CamUtility::ResourceFileName( iconFileName ); |
2249 if ( face == ECamSettOff ) |
2250 if ( face == ECamSettOff ) |
2250 { |
2251 { |
2251 PRINT( _L( "Camera => UpdateFaceTrackingIconL on" ) ); |
2252 PRINT( _L( "Camera => UpdateFaceTrackingIconL off" ) ); |
2252 SetIconL ( |
2253 SetIconL ( |
2253 button, |
2254 button, |
2254 iconFileName, |
2255 iconFileName, |
2255 EMbmCameraappQgn_indi_cam4_tb_facedet_off, |
2256 EMbmCameraappQgn_indi_cam4_tb_facedet_off, |
2256 EMbmCameraappQgn_indi_cam4_tb_facedet_off_mask, |
2257 EMbmCameraappQgn_indi_cam4_tb_facedet_off_mask, |
2257 skinInstance, |
2258 skinInstance, |
2258 KAknsIIDQgnIndiCam4TbFacedetOff ); |
2259 KAknsIIDQgnIndiCam4TbFacedetOff ); |
2259 |
2260 } |
2260 } |
2261 else |
2261 else |
2262 { |
2262 { |
2263 PRINT( _L( "Camera => UpdateFaceTrackingIconL on" ) ); |
2263 PRINT( _L( "Camera => UpdateFaceTrackingIconL off" ) ); |
2264 SetIconL ( |
2264 SetIconL ( |
2265 button, |
2265 button, |
2266 iconFileName, |
2266 iconFileName, |
2267 EMbmCameraappQgn_indi_cam4_tb_facedet, |
2267 EMbmCameraappQgn_indi_cam4_tb_facedet, |
2268 EMbmCameraappQgn_indi_cam4_tb_facedet_mask, |
2268 EMbmCameraappQgn_indi_cam4_tb_facedet_mask, |
2269 skinInstance, |
2269 skinInstance, |
2270 KAknsIIDQgnIndiCam4TbFacedet ); |
2270 KAknsIIDQgnIndiCam4TbFacedet ); |
2271 } |
2271 } |
2272 } |
2272 } |
2273 } |
2273 } |
2274 // Update the status indicator too. |
2274 |
2275 iController.NotifyControllerObservers( ECamEventFaceTrackingStateChanged ); |
2275 |
2276 } |
2276 |
|
2277 } |
|
2278 |
2277 |
2279 // End of File |
2278 // End of File |