equal
deleted
inserted
replaced
24 #include "CamPanic.h" |
24 #include "CamPanic.h" |
25 #include <aknlists.h> |
25 #include <aknlists.h> |
26 #include <AknIconArray.h> |
26 #include <AknIconArray.h> |
27 #include <barsread.h> |
27 #include <barsread.h> |
28 #include <aknview.h> |
28 #include <aknview.h> |
|
29 #include "CameraUiConfigManager.h" |
29 |
30 |
30 #include "CamUtility.h" |
31 #include "CamUtility.h" |
31 |
32 |
32 |
33 |
33 // ================= MEMBER FUNCTIONS ======================= |
34 // ================= MEMBER FUNCTIONS ======================= |
209 void CCamUserSceneSetupContainer::ConstructL |
210 void CCamUserSceneSetupContainer::ConstructL |
210 ( const TRect& aRect, TInt aResourceId ) |
211 ( const TRect& aRect, TInt aResourceId ) |
211 { |
212 { |
212 const TInt KSettingItemArrayGranularity = 5; |
213 const TInt KSettingItemArrayGranularity = 5; |
213 |
214 |
214 CreateWindowL(); |
215 CCamContainerBase::BaseConstructL( aRect ); |
|
216 |
|
217 //CreateWindowL(); |
215 |
218 |
216 // Create the listbox in the right style |
219 // Create the listbox in the right style |
217 iUserSceneSetupList = new ( ELeave ) CAknSettingStyleListBox; |
220 iUserSceneSetupList = new ( ELeave ) CAknSettingStyleListBox; |
218 iUserSceneSetupList->ConstructL( this, CEikListBox::ELeftDownInViewRect ); |
221 iUserSceneSetupList->ConstructL( this, CEikListBox::ELeftDownInViewRect ); |
219 |
222 |
440 // |
443 // |
441 TKeyResponse CCamUserSceneSetupContainer::OfferKeyEventL( |
444 TKeyResponse CCamUserSceneSetupContainer::OfferKeyEventL( |
442 const TKeyEvent& aKeyEvent, |
445 const TKeyEvent& aKeyEvent, |
443 TEventCode aType ) |
446 TEventCode aType ) |
444 { |
447 { |
|
448 if ( iController.UiConfigManagerPtr() |
|
449 && iController.UiConfigManagerPtr()->IsAutoFocusSupported() ) |
|
450 { |
|
451 if( aType == EEventKeyDown && IsShutterKeyL( aKeyEvent, aType ) ) |
|
452 { |
|
453 TKeyResponse response = iUserSceneSetupList->OfferKeyEventL( aKeyEvent, aType ); |
|
454 iView.HandleCommandL( EAknSoftkeyBack ); |
|
455 return response; |
|
456 } |
|
457 } |
|
458 else if( aType == EEventKeyDown && IsCaptureKeyL( aKeyEvent, aType ) ) |
|
459 { |
|
460 TKeyResponse response = iUserSceneSetupList->OfferKeyEventL( aKeyEvent, aType ); |
|
461 iView.HandleCommandL( EAknSoftkeyBack ); |
|
462 return response; |
|
463 } |
|
464 |
445 return iUserSceneSetupList->OfferKeyEventL( aKeyEvent, aType ); |
465 return iUserSceneSetupList->OfferKeyEventL( aKeyEvent, aType ); |
446 } |
466 } |
447 |
467 |
448 // --------------------------------------------------------------------------- |
468 // --------------------------------------------------------------------------- |
449 // CCamUserSceneSetupContainer::ListBox |
469 // CCamUserSceneSetupContainer::ListBox |