equal
deleted
inserted
replaced
279 iUiConstructionComplete = EFalse; |
279 iUiConstructionComplete = EFalse; |
280 iDSASupported = iController.UiConfigManagerPtr()->IsDSAViewFinderSupported(); |
280 iDSASupported = iController.UiConfigManagerPtr()->IsDSAViewFinderSupported(); |
281 |
281 |
282 TBool uiOrientationOverride = iController.UiConfigManagerPtr()->IsUIOrientationOverrideSupported(); |
282 TBool uiOrientationOverride = iController.UiConfigManagerPtr()->IsUIOrientationOverrideSupported(); |
283 |
283 |
|
284 // Get the screenmode values used for setting the orientation |
|
285 RArray<TInt> screenModeValues; |
|
286 if ( uiOrientationOverride ) |
|
287 { |
|
288 iController.UiConfigManagerPtr()->SupportedScreenModesL( screenModeValues ); |
|
289 iLandscapeScreenMode = screenModeValues[0]; |
|
290 iPortraitScreenMode = screenModeValues[1]; |
|
291 } |
|
292 |
284 // The embedded views are set after ConstructL completes |
293 // The embedded views are set after ConstructL completes |
285 // but the value is only of interest if the app is embedded |
294 // but the value is only of interest if the app is embedded |
286 iEmbeddedViewSet = !IsEmbedded(); |
295 iEmbeddedViewSet = !IsEmbedded(); |
287 PRINT1( _L("Camera => CCamAppUi::ConstructL iEmbeddedViewSet:%d"), iEmbeddedViewSet ); |
296 PRINT1( _L("Camera => CCamAppUi::ConstructL iEmbeddedViewSet:%d"), iEmbeddedViewSet ); |
288 |
297 |
383 ? ECamOrientationCamcorderLeft |
392 ? ECamOrientationCamcorderLeft |
384 : ECamOrientationCamcorder; |
393 : ECamOrientationCamcorder; |
385 if( uiOrientationOverride ) |
394 if( uiOrientationOverride ) |
386 { |
395 { |
387 //set orientation to CCamera |
396 //set orientation to CCamera |
388 iController.SetCameraOrientationModeL( CFbsBitGc::EGraphicsOrientationRotated90 ); |
397 iController.SetCameraOrientationModeL( iLandscapeScreenMode ); |
389 // and complete the cameracontroller construction |
398 // and complete the cameracontroller construction |
390 iController.CompleteCameraConstructionL(); |
399 iController.CompleteCameraConstructionL(); |
391 } |
400 } |
392 PRINT( _L("Camera <> Calling BaseConstructL") ) |
401 PRINT( _L("Camera <> Calling BaseConstructL") ) |
393 OstTrace0( CAMERAAPP_PERFORMANCE, CCAMAPPUI_CONSTRUCTL, "e_CAM_APP_BASE_CONSTRUCT 1" ); //CCORAPP_APP_BASE_CONSTRUCT_START |
402 OstTrace0( CAMERAAPP_PERFORMANCE, CCAMAPPUI_CONSTRUCTL, "e_CAM_APP_BASE_CONSTRUCT 1" ); //CCORAPP_APP_BASE_CONSTRUCT_START |
401 PRINT( _L("Camera <> orientation is portrait") ) |
410 PRINT( _L("Camera <> orientation is portrait") ) |
402 iCamOrientation = ECamOrientationPortrait; |
411 iCamOrientation = ECamOrientationPortrait; |
403 if( uiOrientationOverride ) |
412 if( uiOrientationOverride ) |
404 { |
413 { |
405 //set orientation to CCamera |
414 //set orientation to CCamera |
406 iController.SetCameraOrientationModeL( CFbsBitGc::EGraphicsOrientationRotated270 ); |
415 iController.SetCameraOrientationModeL( iPortraitScreenMode ); |
407 // and complete the cameracontroller construction |
416 // and complete the cameracontroller construction |
408 iController.CompleteCameraConstructionL(); |
417 iController.CompleteCameraConstructionL(); |
409 } |
418 } |
410 PRINT( _L("Camera <> Calling BaseConstructL") ) |
419 PRINT( _L("Camera <> Calling BaseConstructL") ) |
411 OstTrace0( CAMERAAPP_PERFORMANCE, DUP4_CCAMAPPUI_CONSTRUCTL, "e_CAM_APP_BASE_CONSTRUCT 1" ); |
420 OstTrace0( CAMERAAPP_PERFORMANCE, DUP4_CCAMAPPUI_CONSTRUCTL, "e_CAM_APP_BASE_CONSTRUCT 1" ); |
453 |
462 |
454 if ( !iEngineConstructionDelayed ) |
463 if ( !iEngineConstructionDelayed ) |
455 { |
464 { |
456 OstTrace0( CAMERAAPP_PERFORMANCE_DETAIL, DUP8_CCAMAPPUI_CONSTRUCTL, "e_EngineConstructionDelayed 1" ); |
465 OstTrace0( CAMERAAPP_PERFORMANCE_DETAIL, DUP8_CCAMAPPUI_CONSTRUCTL, "e_EngineConstructionDelayed 1" ); |
457 iController.CompleteConstructionL(); |
466 iController.CompleteConstructionL(); |
|
467 iController.StoreUserSceneSettingsL(); |
458 OstTrace0( CAMERAAPP_PERFORMANCE_DETAIL, DUP9_CCAMAPPUI_CONSTRUCTL, "e_EngineConstructionDelayed 0" ); |
468 OstTrace0( CAMERAAPP_PERFORMANCE_DETAIL, DUP9_CCAMAPPUI_CONSTRUCTL, "e_EngineConstructionDelayed 0" ); |
459 |
469 |
460 } |
470 } |
461 } |
471 } |
462 else |
472 else |
1941 } |
1951 } |
1942 break; |
1952 break; |
1943 } |
1953 } |
1944 // ----------------------------------------------------- |
1954 // ----------------------------------------------------- |
1945 case ECamCameraEventPowerOnRequested: |
1955 case ECamCameraEventPowerOnRequested: |
|
1956 case ECamCameraEventReserveRequested: |
1946 { |
1957 { |
1947 // event only send if UIOrientationOverride feature is supported, |
1958 // event only send if UIOrientationOverride feature is supported, |
1948 // in that case UI construction is divided into two parts, call here |
1959 // in that case UI construction is divided into two parts, call here |
1949 // to complete the construction if in first startup |
1960 // to complete the construction if in first startup |
1950 if( iFirstBoot ) |
1961 if( iFirstBoot ) |
1951 { |
1962 { |
1952 PRINT( _L( "Camera <> CCamAppUi::HandleCameraEventL ECamCameraEventPowerOnRequested" ) ) |
1963 PRINT( _L( "Camera <> CCamAppUi::HandleCameraEventL ECamCameraEventReserveRequested/ECamCameraEventPowerOnRequested" ) ) |
1953 if ( iWaitTimer->IsActive() ) |
1964 if ( iWaitTimer->IsActive() ) |
1954 { |
1965 { |
1955 PRINT( _L( "Camera <> timer already active" ) ) |
1966 PRINT( _L( "Camera <> timer already active" ) ) |
1956 iWaitTimer->Cancel(); |
1967 iWaitTimer->Cancel(); |
1957 } |
1968 } |
8263 PRINT( _L("Camera => CCamAppUi::CompleteAppUIConstructionL") ) |
8274 PRINT( _L("Camera => CCamAppUi::CompleteAppUIConstructionL") ) |
8264 iUiConstructionComplete = ETrue; |
8275 iUiConstructionComplete = ETrue; |
8265 // Load the settings model static settings |
8276 // Load the settings model static settings |
8266 PRINT( _L("Camera <> call CCamAppController::LoadStaticSettingsL..") ) |
8277 PRINT( _L("Camera <> call CCamAppController::LoadStaticSettingsL..") ) |
8267 iController.LoadStaticSettingsL( IsEmbedded() ); |
8278 iController.LoadStaticSettingsL( IsEmbedded() ); |
|
8279 // store the userscene settings |
|
8280 iController.StoreUserSceneSettingsL(); |
8268 |
8281 |
8269 /*#ifndef __WINSCW__ |
8282 /*#ifndef __WINSCW__ |
8270 if ( !iSFIUtils ) |
8283 if ( !iSFIUtils ) |
8271 { |
8284 { |
8272 // Initialize SFIUtils |
8285 // Initialize SFIUtils |
8316 PRINT( _L("Camera <> CCamAppUi::CompleteAppUIConstructionL create doc handler") ); |
8329 PRINT( _L("Camera <> CCamAppUi::CompleteAppUIConstructionL create doc handler") ); |
8317 iDocHandler = CDocumentHandler::NewL( CEikonEnv::Static()->Process() ); |
8330 iDocHandler = CDocumentHandler::NewL( CEikonEnv::Static()->Process() ); |
8318 |
8331 |
8319 // Check to see if we are set to use mmc storage but the card has |
8332 // Check to see if we are set to use mmc storage but the card has |
8320 // been removed. |
8333 // been removed. |
8321 if( iController.CheckMemoryToUseL() ) |
8334 iController.CheckMemoryToUseL(); |
8322 { |
|
8323 // Record that we need to show the mmc removal note when the ui is |
|
8324 // ready. |
|
8325 iMMCRemoveNoteRequired = ETrue; |
|
8326 } |
|
8327 |
8335 |
8328 // create navi-pane and navi-porgress bar for use in camcorder mode |
8336 // create navi-pane and navi-porgress bar for use in camcorder mode |
8329 PRINT( _L("Camera <> CCamAppUi::CompleteAppUIConstructionL create navicounter control") ); |
8337 PRINT( _L("Camera <> CCamAppUi::CompleteAppUIConstructionL create navicounter control") ); |
8330 iNaviCounterControl = CCamNaviCounterControl::NewL( *iNaviCounterModel ); |
8338 iNaviCounterControl = CCamNaviCounterControl::NewL( *iNaviCounterModel ); |
8331 iNaviCounterControl->SetExtentToWholeScreen(); |
8339 iNaviCounterControl->SetExtentToWholeScreen(); |