equal
deleted
inserted
replaced
23 #include "CamUserSceneSetupContainer.h" |
23 #include "CamUserSceneSetupContainer.h" |
24 #include "Cam.hrh" |
24 #include "Cam.hrh" |
25 |
25 |
26 #include "CamPreCaptureContainerBase.h" |
26 #include "CamPreCaptureContainerBase.h" |
27 |
27 |
|
28 #include <eiksoftkeypostingtransparency.h> |
28 #include <eikbtgpc.h> |
29 #include <eikbtgpc.h> |
29 #include <avkon.rsg> |
30 #include <avkon.rsg> |
30 #include <StringLoader.h> |
31 #include <StringLoader.h> |
31 #include <AknQueryDialog.h> |
32 #include <AknQueryDialog.h> |
32 #include <cameraapp.rsg> |
33 #include <cameraapp.rsg> |
86 CCamUserSceneSetupContainer* userSceneSetup = |
87 CCamUserSceneSetupContainer* userSceneSetup = |
87 static_cast<CCamUserSceneSetupContainer*>( iContainer ); |
88 static_cast<CCamUserSceneSetupContainer*>( iContainer ); |
88 userSceneSetup->UpdateListItems(); |
89 userSceneSetup->UpdateListItems(); |
89 break; |
90 break; |
90 } |
91 } |
|
92 case ECamCmdSetUserDefault: |
|
93 { |
|
94 TInt currentVal = iController.IntegerSettingValue( ECamSettingItemUserSceneDefault ); |
|
95 if ( currentVal ) |
|
96 { |
|
97 currentVal = ECamSettNo; |
|
98 } |
|
99 else |
|
100 { |
|
101 currentVal = ECamSettYes; |
|
102 } |
|
103 TRAP_IGNORE( iController.SetIntegerSettingValueL( ECamSettingItemUserSceneDefault, currentVal) ); |
|
104 CCamUserSceneSetupContainer* userSceneSetup = static_cast<CCamUserSceneSetupContainer*>( iContainer ); |
|
105 userSceneSetup->UpdateListItems(); |
|
106 userSceneSetup->UpdateDisplayL(); |
|
107 } |
|
108 break; |
91 case ECamCmdUserSceneReset: |
109 case ECamCmdUserSceneReset: |
92 { |
110 { |
93 DisplayResetUserSceneDlgL(); |
111 DisplayResetUserSceneDlgL(); |
94 } |
112 } |
95 break; |
113 break; |
111 SwitchToSceneSettingModeL(); |
129 SwitchToSceneSettingModeL(); |
112 } |
130 } |
113 break; |
131 break; |
114 case ECamCmdCaptureSetupLightSensitivityUser: |
132 case ECamCmdCaptureSetupLightSensitivityUser: |
115 { |
133 { |
116 SwitchToInfoListBoxL( EInfoListBoxModeISO ); |
134 SwitchToInfoListBoxL( EInfoListBoxModeISO, ETrue ); |
117 } |
135 } |
118 break; |
136 break; |
119 // If capture setup menu is active and user presses softkey cancel, |
137 // If capture setup menu is active and user presses softkey cancel, |
120 // deactivate the menu. |
138 // deactivate the menu. |
121 case EAknSoftkeyBack: |
139 case EAknSoftkeyBack: |
422 SetSoftKeysL( R_CAM_SOFTKEYS_OPTIONS_EXIT ); |
440 SetSoftKeysL( R_CAM_SOFTKEYS_OPTIONS_EXIT ); |
423 } |
441 } |
424 // if the view is in capture setup mode |
442 // if the view is in capture setup mode |
425 else if ( iCaptureSetupModeActive ) |
443 else if ( iCaptureSetupModeActive ) |
426 { |
444 { |
427 SetSoftKeysL( R_AVKON_SOFTKEYS_OK_CANCEL__OK ); |
445 if( iForceAvkonCBA ) |
|
446 { |
|
447 SetSoftKeysL( R_AVKON_SOFTKEYS_OK_CANCEL__OK ); //Avkon softkeys. Not transparent |
|
448 } |
|
449 else |
|
450 { |
|
451 SetSoftKeysL( R_CAM_SOFTKEYS_SELECT_CANCEL ); |
|
452 } |
428 } |
453 } |
429 else if ( iSceneSettingModeActive ) |
454 else if ( iSceneSettingModeActive ) |
430 { |
455 { |
431 SetSoftKeysL( R_CAM_SOFTKEYS_SETTINGS_SELECT_BACK__CHANGE ); |
456 SetSoftKeysL( R_CAM_SOFTKEYS_SETTINGS_SELECT_BACK__CHANGE ); |
|
457 if( iForceAvkonCBA ) |
|
458 { |
|
459 EikSoftkeyPostingTransparency::MakeTransparent( |
|
460 *ViewCba(), EFalse ); |
|
461 } |
432 } |
462 } |
433 else if ( iInfoListBoxActive ) |
463 else if ( iInfoListBoxActive ) |
434 { |
464 { |
435 SetSoftKeysL( R_CAM_SOFTKEYS_SETTINGS_SELECT_BACK__CHANGE ); |
465 SetSoftKeysL( R_CAM_SOFTKEYS_SETTINGS_SELECT_BACK__CHANGE ); |
|
466 if( iForceAvkonCBA ) |
|
467 { |
|
468 EikSoftkeyPostingTransparency::MakeTransparent( |
|
469 *ViewCba(), EFalse ); |
|
470 } |
436 } |
471 } |
437 // if the view is user scene setup |
472 // if the view is user scene setup |
438 else |
473 else |
439 { |
474 { |
440 // R_AVKON_SOFTKEYS_OPTIONS_BACK --> |
475 // R_AVKON_SOFTKEYS_OPTIONS_BACK --> |
480 iUserSceneSetupModeActive = ETrue; |
515 iUserSceneSetupModeActive = ETrue; |
481 |
516 |
482 StatusPane()->MakeVisible( ETrue ); |
517 StatusPane()->MakeVisible( ETrue ); |
483 |
518 |
484 // Update the command button array. |
519 // Update the command button array. |
|
520 iForceAvkonCBA=ETrue; |
485 UpdateCbaL(); |
521 UpdateCbaL(); |
486 SetTitlePaneTextL(); |
522 SetTitlePaneTextL(); |
487 PRINT( _L("Camera <= CCamUserSceneSetupViewBase::SwitchToUserSceneSetupModeL()") ); |
523 PRINT( _L("Camera <= CCamUserSceneSetupViewBase::SwitchToUserSceneSetupModeL()") ); |
488 } |
524 } |
489 |
525 |
506 |
542 |
507 SetCaptureSetupModeActive(ETrue); |
543 SetCaptureSetupModeActive(ETrue); |
508 |
544 |
509 // Remove the view's main container, and add the capture setup |
545 // Remove the view's main container, and add the capture setup |
510 // control associated with the input command to the container stack. |
546 // control associated with the input command to the container stack. |
511 CCamCaptureSetupViewBase::SwitchToCaptureSetupModeL( aSetupCommand ); |
547 CCamCaptureSetupViewBase::SwitchToCaptureSetupModeL( aSetupCommand, EFalse ); |
512 StatusPane()->MakeVisible( EFalse ); |
548 StatusPane()->MakeVisible( EFalse ); |
513 PRINT( _L("Camera <= CCamUserSceneSetupViewBase::SwitchToCaptureSetupModeL()") ); |
549 PRINT( _L("Camera <= CCamUserSceneSetupViewBase::SwitchToCaptureSetupModeL()") ); |
514 } |
550 } |
515 |
551 |
516 |
552 |