equal
deleted
inserted
replaced
49 const TInt KGridVrtLines = 2; |
49 const TInt KGridVrtLines = 2; |
50 const TInt KGridThickness = 2; |
50 const TInt KGridThickness = 2; |
51 const TRgb KGridColor = KRgbGray; |
51 const TRgb KGridColor = KRgbGray; |
52 const CGraphicsContext::TPenStyle KGridStyle = CGraphicsContext::ESolidPen; |
52 const CGraphicsContext::TPenStyle KGridStyle = CGraphicsContext::ESolidPen; |
53 |
53 |
|
54 _LIT(KCamBitmapFile, "z:\\resource\\apps\\cameraapp.mif"); |
|
55 const TSize KIconSize(35, 35); |
54 |
56 |
55 // ================= MEMBER FUNCTIONS ======================= |
57 // ================= MEMBER FUNCTIONS ======================= |
56 |
58 |
57 // --------------------------------------------------------------------------- |
59 // --------------------------------------------------------------------------- |
58 // CCamStillPreCaptureContainer::NewL |
60 // CCamStillPreCaptureContainer::NewL |
97 flashStatus->Subscribe( NULL ); |
99 flashStatus->Subscribe( NULL ); |
98 |
100 |
99 delete iFlashBitmap; |
101 delete iFlashBitmap; |
100 delete iFlashBitmapMask; |
102 delete iFlashBitmapMask; |
101 } |
103 } |
|
104 |
|
105 if ( iCaptureIcon ) |
|
106 { |
|
107 delete iCaptureIcon; |
|
108 delete iCaptureMask; |
|
109 } |
|
110 |
102 PRINT( _L("Camera <= ~CCamStillPreCaptureContainer" )) |
111 PRINT( _L("Camera <= ~CCamStillPreCaptureContainer" )) |
103 } |
112 } |
104 |
113 |
105 // --------------------------------------------------------- |
114 // --------------------------------------------------------- |
106 // CCamStillPreCaptureContainer::ConstructL |
115 // CCamStillPreCaptureContainer::ConstructL |
149 OstTrace0( CAMERAAPP_PERFORMANCE, CCAMSTILLPRECAPTURECONTAINER_CONSTRUCTL, "e_CAM_APP_AP_SETUP 1" ); |
158 OstTrace0( CAMERAAPP_PERFORMANCE, CCAMSTILLPRECAPTURECONTAINER_CONSTRUCTL, "e_CAM_APP_AP_SETUP 1" ); |
150 static_cast<CCamPreCaptureContainerBase*>( this ) |
159 static_cast<CCamPreCaptureContainerBase*>( this ) |
151 ->SetupActivePaletteL( static_cast<CCamViewBase*>(&iView) ); |
160 ->SetupActivePaletteL( static_cast<CCamViewBase*>(&iView) ); |
152 OstTrace0( CAMERAAPP_PERFORMANCE, DUP1_CCAMSTILLPRECAPTURECONTAINER_CONSTRUCTL, "e_CAM_APP_AP_SETUP 0" ); |
161 OstTrace0( CAMERAAPP_PERFORMANCE, DUP1_CCAMSTILLPRECAPTURECONTAINER_CONSTRUCTL, "e_CAM_APP_AP_SETUP 0" ); |
153 } |
162 } |
|
163 |
|
164 // Load capture icon |
|
165 AknIconUtils::CreateIconL( |
|
166 iCaptureIcon, |
|
167 iCaptureMask, |
|
168 KCamBitmapFile(), |
|
169 EMbmCameraappQgn_indi_cam4_capture, |
|
170 EMbmCameraappQgn_indi_cam4_capture_mask ); |
|
171 AknIconUtils::SetSize( iCaptureIcon, KIconSize, EAspectRatioPreserved ); |
|
172 AknIconUtils::SetSize( iCaptureMask, KIconSize, EAspectRatioPreserved ); |
|
173 |
154 PRINT( _L("Camera <= CCamStillPreCaptureContainer::ConstructL" )) |
174 PRINT( _L("Camera <= CCamStillPreCaptureContainer::ConstructL" )) |
155 } |
175 } |
156 |
176 |
157 // --------------------------------------------------------- |
177 // --------------------------------------------------------- |
158 // CCamContainerBase::BaseConstructL |
178 // CCamContainerBase::BaseConstructL |
509 __ASSERT_DEBUG(appui, CamPanic(ECamPanicNullPointer)); |
529 __ASSERT_DEBUG(appui, CamPanic(ECamPanicNullPointer)); |
510 TBool MSKCapture(EFalse); |
530 TBool MSKCapture(EFalse); |
511 // First handle middle softkey and enter key capture event |
531 // First handle middle softkey and enter key capture event |
512 if ( !appui->IsToolBarVisible() |
532 if ( !appui->IsToolBarVisible() |
513 && ( aKeyEvent.iScanCode == EStdKeyDevice3 |
533 && ( aKeyEvent.iScanCode == EStdKeyDevice3 |
514 || aKeyEvent.iScanCode == EStdKeyEnter ) ) |
534 || aKeyEvent.iScanCode == EStdKeyEnter |
|
535 || aKeyEvent.iScanCode == EStdKeyNkpEnter ) ) |
515 { |
536 { |
516 if ( iController.UiConfigManagerPtr() ) |
537 if ( iController.UiConfigManagerPtr() ) |
517 { |
538 { |
518 if ( iController.UiConfigManagerPtr()->IsOpticalJoyStickSupported() ) |
539 if ( iController.UiConfigManagerPtr()->IsOpticalJoyStickSupported() ) |
519 { |
540 { |