1 /* |
1 /* |
2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
234 PRINT( _L("Camera => CCamPreCaptureContainerBase::BaseConstructL - create iLocationIconController") ) |
234 PRINT( _L("Camera => CCamPreCaptureContainerBase::BaseConstructL - create iLocationIconController") ) |
235 iLocationIconController = CCamLocationIconController::NewL( iController, *this, ETrue, Locrect ); |
235 iLocationIconController = CCamLocationIconController::NewL( iController, *this, ETrue, Locrect ); |
236 SetLocationIndicatorVisibility(); |
236 SetLocationIndicatorVisibility(); |
237 } |
237 } |
238 |
238 |
239 TBool dsaAlways = iController.IsDirectScreenVFSupported( ETrue ) && |
239 TBool dsaAlways( EFalse ); // Offscreen bitmap is needed with the emulator |
240 iController.IsDirectScreenVFSupported( EFalse ); |
240 #ifndef __WINS__ |
|
241 dsaAlways = iController.IsDirectScreenVFSupported( ETrue ) && |
|
242 iController.IsDirectScreenVFSupported( EFalse ); |
|
243 #endif |
241 |
244 |
242 if ( !dsaAlways ) |
245 if ( !dsaAlways ) |
243 { |
246 { |
244 // If bitmap VF is not possible in this configuration, |
247 // If bitmap VF is not possible in this configuration, |
245 // offscreen bitmap is not needed |
248 // offscreen bitmap is not needed |
2507 TAknLayoutRect resolutionIconLayout; |
2510 TAknLayoutRect resolutionIconLayout; |
2508 TAknLayoutRect indicatorPane; |
2511 TAknLayoutRect indicatorPane; |
2509 if ( CamUtility::IsNhdDevice() ) |
2512 if ( CamUtility::IsNhdDevice() ) |
2510 { |
2513 { |
2511 TInt variant = Layout_Meta_Data::IsLandscapeOrientation(); |
2514 TInt variant = Layout_Meta_Data::IsLandscapeOrientation(); |
2512 indicatorPane.LayoutRect( Rect(), |
2515 if ( appUi->TargetMode() == ECamControllerVideo ) |
2513 AknLayoutScalable_Apps::cam4_indicators_pane( variant ) ); |
2516 { |
2514 |
2517 TRect rect; |
2515 resolutionIconLayout.LayoutRect( indicatorPane.Rect(), |
2518 TAknLayoutRect vidProgressPane; |
2516 AknLayoutScalable_Apps::cam4_indicators_pane_g1() ); |
2519 AknLayoutUtils::LayoutMetricsRect( AknLayoutUtils::EScreen, rect ); |
|
2520 vidProgressPane.LayoutRect( rect, |
|
2521 AknLayoutScalable_Apps::vid4_progress_pane( variant ) ); |
|
2522 resolutionIconLayout.LayoutRect( vidProgressPane.Rect(), |
|
2523 AknLayoutScalable_Apps::vid4_progress_pane_g1() ); |
|
2524 } |
|
2525 else |
|
2526 { |
|
2527 indicatorPane.LayoutRect( Rect(), |
|
2528 AknLayoutScalable_Apps::cam4_indicators_pane( variant ) ); |
|
2529 |
|
2530 resolutionIconLayout.LayoutRect( indicatorPane.Rect(), |
|
2531 AknLayoutScalable_Apps::cam4_indicators_pane_g1() ); |
|
2532 } |
2517 } |
2533 } |
2518 else |
2534 else |
2519 { |
2535 { |
2520 TInt cba = AknLayoutUtils::CbaLocation() == |
2536 TInt cba = AknLayoutUtils::CbaLocation() == |
2521 AknLayoutUtils::EAknCbaLocationLeft? |
2537 AknLayoutUtils::EAknCbaLocationLeft? |