camerauis/cameraapp/generic/src/CamCaptureSetupControlHandler.cpp
branchRCL_3
changeset 10 8c55c525d5d7
parent 2 e8773a61782d
--- a/camerauis/cameraapp/generic/src/CamCaptureSetupControlHandler.cpp	Fri Mar 12 15:41:04 2010 +0200
+++ b/camerauis/cameraapp/generic/src/CamCaptureSetupControlHandler.cpp	Mon Mar 15 12:39:00 2010 +0200
@@ -67,7 +67,8 @@
 // Ownership is transferred to the calling class.
 // -----------------------------------------------------------------------------
 //
-CCoeControl* CCamCaptureSetupControlHandler::CreateCaptureSetupControlL( const CCoeControl* aParent )
+CCoeControl* CCamCaptureSetupControlHandler::CreateCaptureSetupControlL( const CCoeControl* aParent,
+        TBool aSkinnedBackGround )
     {
     // create a new control determined by iSettingType.
     // set self as observer
@@ -84,7 +85,7 @@
 			{
 			// create and return a slider control
             CCamCaptureSetupSlider* captureSetupControl = 
-					CCamCaptureSetupSlider::NewL( aParent, this, iSettingType, 0 );
+					CCamCaptureSetupSlider::NewL( aParent, this, iSettingType, 0, aSkinnedBackGround );
             CleanupStack::PushL( captureSetupControl );                    
             captureSetupControl->InitializeL
                 ( iController.IntegerSettingValue( iSettingType ) );
@@ -101,7 +102,7 @@
 				// create and return a radio-button listbox    
 				CCamCaptureSetupListBox* captureSetupControl = 
 						new( ELeave ) CCamCaptureSetupListBox( this,
-										iController ); 
+										iController, aSkinnedBackGround ); 
 
 				CleanupStack::PushL( captureSetupControl );
 				captureSetupControl->ConstructL( aParent, resourceId, iSettingType );
@@ -289,9 +290,7 @@
 //
 TBool CCamCaptureSetupControlHandler::ControlUsesViewFinder() const
     {
-    return ( ( iSettingType != ECamSettingItemDynamicPhotoFlash ) &&
-        ( iSettingType != ECamSettingItemUserSceneFlash ) &&
-        ( iSettingType != ECamSettingItemDynamicSelfTimer ));
+    return ETrue;
     }