equal
deleted
inserted
replaced
65 // CCamCaptureSetupControlHandler::CreateCaptureSetupControlL |
65 // CCamCaptureSetupControlHandler::CreateCaptureSetupControlL |
66 // Create a new capture setup control with self as observer. |
66 // Create a new capture setup control with self as observer. |
67 // Ownership is transferred to the calling class. |
67 // Ownership is transferred to the calling class. |
68 // ----------------------------------------------------------------------------- |
68 // ----------------------------------------------------------------------------- |
69 // |
69 // |
70 CCoeControl* CCamCaptureSetupControlHandler::CreateCaptureSetupControlL( const CCoeControl* aParent ) |
70 CCoeControl* CCamCaptureSetupControlHandler::CreateCaptureSetupControlL( const CCoeControl* aParent, |
|
71 TBool aSkinnedBackGround ) |
71 { |
72 { |
72 // create a new control determined by iSettingType. |
73 // create a new control determined by iSettingType. |
73 // set self as observer |
74 // set self as observer |
74 switch( iSettingType ) |
75 switch( iSettingType ) |
75 { |
76 { |
82 case ECamSettingItemUserSceneBrightness: |
83 case ECamSettingItemUserSceneBrightness: |
83 case ECamSettingItemUserSceneContrast: |
84 case ECamSettingItemUserSceneContrast: |
84 { |
85 { |
85 // create and return a slider control |
86 // create and return a slider control |
86 CCamCaptureSetupSlider* captureSetupControl = |
87 CCamCaptureSetupSlider* captureSetupControl = |
87 CCamCaptureSetupSlider::NewL( aParent, this, iSettingType, 0 ); |
88 CCamCaptureSetupSlider::NewL( aParent, this, iSettingType, 0, aSkinnedBackGround ); |
88 CleanupStack::PushL( captureSetupControl ); |
89 CleanupStack::PushL( captureSetupControl ); |
89 captureSetupControl->InitializeL |
90 captureSetupControl->InitializeL |
90 ( iController.IntegerSettingValue( iSettingType ) ); |
91 ( iController.IntegerSettingValue( iSettingType ) ); |
91 CleanupStack::Pop( captureSetupControl ); |
92 CleanupStack::Pop( captureSetupControl ); |
92 |
93 |
99 if ( resourceId != 0 ) |
100 if ( resourceId != 0 ) |
100 { |
101 { |
101 // create and return a radio-button listbox |
102 // create and return a radio-button listbox |
102 CCamCaptureSetupListBox* captureSetupControl = |
103 CCamCaptureSetupListBox* captureSetupControl = |
103 new( ELeave ) CCamCaptureSetupListBox( this, |
104 new( ELeave ) CCamCaptureSetupListBox( this, |
104 iController ); |
105 iController, aSkinnedBackGround ); |
105 |
106 |
106 CleanupStack::PushL( captureSetupControl ); |
107 CleanupStack::PushL( captureSetupControl ); |
107 captureSetupControl->ConstructL( aParent, resourceId, iSettingType ); |
108 captureSetupControl->ConstructL( aParent, resourceId, iSettingType ); |
108 captureSetupControl->InitializeL |
109 captureSetupControl->InitializeL |
109 ( iController.IntegerSettingValue( iSettingType ) ); |
110 ( iController.IntegerSettingValue( iSettingType ) ); |
287 // Whether or not the control requires a viewfinder preview pane |
288 // Whether or not the control requires a viewfinder preview pane |
288 // ----------------------------------------------------------------------------- |
289 // ----------------------------------------------------------------------------- |
289 // |
290 // |
290 TBool CCamCaptureSetupControlHandler::ControlUsesViewFinder() const |
291 TBool CCamCaptureSetupControlHandler::ControlUsesViewFinder() const |
291 { |
292 { |
292 return ( ( iSettingType != ECamSettingItemDynamicPhotoFlash ) && |
293 return ETrue; |
293 ( iSettingType != ECamSettingItemUserSceneFlash ) && |
|
294 ( iSettingType != ECamSettingItemDynamicSelfTimer )); |
|
295 } |
294 } |
296 |
295 |
297 |
296 |
298 // ----------------------------------------------------------------------------- |
297 // ----------------------------------------------------------------------------- |
299 // CCamCaptureSetupControlHandler::ControlIsListBox |
298 // CCamCaptureSetupControlHandler::ControlIsListBox |