equal
deleted
inserted
replaced
46 #include "OstTraceDefinitions.h" |
46 #include "OstTraceDefinitions.h" |
47 #ifdef OST_TRACE_COMPILER_IN_USE |
47 #ifdef OST_TRACE_COMPILER_IN_USE |
48 #include "CamPreCaptureViewBaseTraces.h" |
48 #include "CamPreCaptureViewBaseTraces.h" |
49 #endif |
49 #endif |
50 |
50 |
|
51 #include "camstartuplogocontroller.h" |
51 |
52 |
52 // =========================================================================== |
53 // =========================================================================== |
53 // Constants |
54 // Constants |
54 |
55 |
55 |
56 |
544 // This will happen only if camera is started directly to portrait |
545 // This will happen only if camera is started directly to portrait |
545 // secondary camera i.e. Lens cover feature is supported |
546 // secondary camera i.e. Lens cover feature is supported |
546 TBool noToolbar = (ECamCompleting == iController.CurrentOperation() ) && appUi->IsSecondCameraEnabled(); |
547 TBool noToolbar = (ECamCompleting == iController.CurrentOperation() ) && appUi->IsSecondCameraEnabled(); |
547 |
548 |
548 if ( ECamCameraPreparedImage == iController.CameraState() && |
549 if ( ECamCameraPreparedImage == iController.CameraState() && |
549 !appUi->IsBurstEnabled() && !noToolbar ) |
550 !appUi->IsBurstEnabled() && !noToolbar |
|
551 && !iStandbyModeActive ) |
550 { |
552 { |
551 // Also fixed toolbar might need to be enabled. |
553 // Also fixed toolbar might need to be enabled. |
552 appUi->SetToolbarVisibility(); |
554 appUi->SetToolbarVisibility(); |
553 } |
555 } |
554 } |
556 } |
889 // |
891 // |
890 void CCamPreCaptureViewBase::ExitCaptureSetupModeL() |
892 void CCamPreCaptureViewBase::ExitCaptureSetupModeL() |
891 { |
893 { |
892 PRINT( _L("Camera => CCamPreCaptureViewBase::ExitCaptureSetupModeL") ) |
894 PRINT( _L("Camera => CCamPreCaptureViewBase::ExitCaptureSetupModeL") ) |
893 |
895 |
894 |
896 CCamCaptureSetupViewBase::ExitCaptureSetupModeL(); |
895 iController.SetViewfinderWindowHandle( &iContainer->Window() ); |
897 iController.SetViewfinderWindowHandle( &iContainer->Window() ); |
896 CCamCaptureSetupViewBase::ExitCaptureSetupModeL(); |
898 |
897 |
899 |
898 if( !iController.IsViewFinding() && !iController.InVideocallOrRinging() ) |
900 if( !iController.IsViewFinding() && !iController.InVideocallOrRinging() ) |
899 { |
901 { |
900 TCamCameraMode mode = iController.CurrentMode(); |
902 TCamCameraMode mode = iController.CurrentMode(); |
901 PRINT1( _L("Camera => CCamPreCaptureViewBase::ExitCaptureSetupModeL - CurrentMode %d"), mode ); |
903 PRINT1( _L("Camera => CCamPreCaptureViewBase::ExitCaptureSetupModeL - CurrentMode %d"), mode ); |
1047 iToolbarExtensionInvisible = ETrue; |
1049 iToolbarExtensionInvisible = ETrue; |
1048 } |
1050 } |
1049 break; |
1051 break; |
1050 } |
1052 } |
1051 |
1053 |
1052 if ( iController.InVideocallOrRinging() ) |
1054 if ( iController.InVideocallOrRinging() || !iController.IssueModeChangeSequenceSucceeded() ) |
1053 { |
1055 { |
1054 return; |
1056 return; |
1055 } |
1057 } |
1056 |
1058 |
1057 appUi->HandleCommandL(ECamCmdSwitchToPrecapture); |
1059 appUi->HandleCommandL(ECamCmdSwitchToPrecapture); |
|
1060 |
1058 |
1061 |
1059 if ( !( iController.UiConfigManagerPtr() && |
1062 if ( !( iController.UiConfigManagerPtr() && |
1060 iController.UiConfigManagerPtr()->IsUIOrientationOverrideSupported() ) ) |
1063 iController.UiConfigManagerPtr()->IsUIOrientationOverrideSupported() ) ) |
1061 { |
1064 { |
1062 TCamOrientation orientation = appUi->CamOrientation(); |
1065 TCamOrientation orientation = appUi->CamOrientation(); |
1291 if ( fixedToolbar ) |
1294 if ( fixedToolbar ) |
1292 { |
1295 { |
1293 fixedToolbar->SetToolbarVisibility( EFalse ); |
1296 fixedToolbar->SetToolbarVisibility( EFalse ); |
1294 } |
1297 } |
1295 } |
1298 } |
1296 |
1299 |
|
1300 // Hide the startup logo in standby mode. |
|
1301 // Camera application will enter standby mode if it detect camera hardware is in use |
|
1302 // by another application (such as video call) when camera application is starting up. |
|
1303 // If this, we need hiding startup logo in standby mode. |
|
1304 CCamAppUi* appUi = static_cast<CCamAppUi*>( iEikonEnv->AppUi() ); |
|
1305 if ( appUi->StartupLogoController() ) |
|
1306 { |
|
1307 appUi->StartupLogoController()->HideLogo(); |
|
1308 } |
|
1309 |
1297 // stop viewfinding |
1310 // stop viewfinding |
1298 StopViewFinder(); |
1311 StopViewFinder(); |
1299 |
1312 |
1300 CCamViewBase::SwitchToStandbyModeL( aViewId, aError ); |
1313 CCamViewBase::SwitchToStandbyModeL( aViewId, aError ); |
1301 |
1314 |
1769 |
1782 |
1770 // Create gesture fw object, set observer and gesture interest |
1783 // Create gesture fw object, set observer and gesture interest |
1771 if ( iGestureFw ) |
1784 if ( iGestureFw ) |
1772 { |
1785 { |
1773 delete iGestureFw; |
1786 delete iGestureFw; |
|
1787 iGestureFw = NULL; |
1774 } |
1788 } |
1775 |
1789 |
1776 iGestureFw = CAknTouchGestureFw::NewL( *this, *iContainer ); |
1790 iGestureFw = CAknTouchGestureFw::NewL( *this, *iContainer ); |
1777 iGestureFw->SetGestureInterestL( EAknTouchGestureFwGroupPinch | EAknTouchGestureFwGroupTap ); |
1791 iGestureFw->SetGestureInterestL( EAknTouchGestureFwGroupPinch | EAknTouchGestureFwGroupTap ); |
1778 |
1792 |
1853 } |
1867 } |
1854 |
1868 |
1855 PRINT( _L("Camera <= CCamPreCaptureViewBase::HandleTouchGestureL") ); |
1869 PRINT( _L("Camera <= CCamPreCaptureViewBase::HandleTouchGestureL") ); |
1856 } |
1870 } |
1857 |
1871 |
|
1872 // --------------------------------------------------------------------------- |
|
1873 // CCamPreCaptureViewBase::IsCaptureSetupMenuModeActive |
|
1874 // |
|
1875 // --------------------------------------------------------------------------- |
|
1876 // |
|
1877 TBool CCamPreCaptureViewBase::IsSetupModeActive() |
|
1878 { |
|
1879 TBool trueValue = ETrue; |
|
1880 TBool ret = ( iCaptureSetupModeActive == trueValue || |
|
1881 iCaptureSetupMenuModeActive == trueValue || |
|
1882 iSceneSettingModeActive == trueValue || |
|
1883 iInfoListBoxActive == trueValue |
|
1884 ); |
|
1885 PRINT1( _L("Camera <> CCamPreCaptureViewBase::IsSetupModeActive %d"), ret ); |
|
1886 return ret; |
|
1887 } |
1858 // End of File |
1888 // End of File |
|
1889 |