diff -r 53c8aa5d97a3 -r 8f559c47d7fd camerauis/cameraapp/generic/src/CamVideoPreCaptureContainer.cpp --- a/camerauis/cameraapp/generic/src/CamVideoPreCaptureContainer.cpp Tue May 25 12:22:04 2010 +0300 +++ b/camerauis/cameraapp/generic/src/CamVideoPreCaptureContainer.cpp Wed Jun 09 09:21:41 2010 +0300 @@ -48,10 +48,6 @@ #endif -// CONSTANTS -_LIT(KCamBitmapFile, "z:\\resource\\apps\\cameraapp.mif"); -const TSize KIconSize(35, 35); - // ================= MEMBER FUNCTIONS ======================= @@ -84,12 +80,6 @@ iFeedback->RemoveFeedbackForControl( this ); } delete iFileTypeIndicator; - - if ( iCaptureIcon ) - { - delete iCaptureIcon; - delete iCaptureMask; - } PRINT( _L("Camera <= ~CCamVideoPreCaptureContainer") ); } @@ -101,11 +91,8 @@ void CCamVideoPreCaptureContainer::ConstructL( const TRect& aRect ) { PRINT( _L("Camera => CCamVideoPreCaptureContainer::ConstructL")) - PRINT( _L("Camera => CCamVideoPreCaptureContainer::ConstructL C")) TCamVideoResolution res = iController.GetCurrentVideoResolution(); - PRINT( _L("Camera => CCamVideoPreCaptureContainer::ConstructL D")) iVFRes = iController.VideoViewFinderResourceId( res ); - PRINT( _L("Camera => CCamVideoPreCaptureContainer::ConstructL E")) BaseConstructL( aRect ); iShowReticule = EFalse; @@ -161,16 +148,6 @@ if ( !iFeedback ) iFeedback = MTouchFeedback::CreateInstanceL(); } - - // Load record icon - AknIconUtils::CreateIconL( - iCaptureIcon, - iCaptureMask, - KCamBitmapFile(), - EMbmCameraappQgn_indi_cam4_video, - EMbmCameraappQgn_indi_cam4_video_mask ); - AknIconUtils::SetSize( iCaptureIcon, KIconSize, EAspectRatioPreserved ); - AknIconUtils::SetSize( iCaptureMask, KIconSize, EAspectRatioPreserved ); } // --------------------------------------------------------------------------- @@ -438,6 +415,20 @@ { CCamAppUi* appUi = static_cast( iEikonEnv->AppUi() ); + if ( iController.UiConfigManagerPtr() + && !iController.UiConfigManagerPtr()->IsAutoFocusSupported() + && iController.IsTouchScreenSupported() ) + { + CAknToolbar* fixedToolbar = appUi->CurrentFixedToolbar(); + if ( fixedToolbar ) + { + CAknToolbarExtension* extension = fixedToolbar->ToolbarExtension(); + if ( extension ) + { + extension->SetShown( EFalse ); + } + } + } // neither recording nor paused // so attempt to start recording PRINT( _L("Camera <> starting capture") ); @@ -446,10 +437,6 @@ // Hide the toolbar if we are capturing if( EKeyWasConsumed == keyResponse ) { - // Hide capture button if we are capturing - iCaptureButtonShown = CaptureButtonActive(); - DrawNow( iCaptureRect ); - // Repeated key events (MSK) are ignored. iController.SetDemandKeyRelease( ETrue );