22 #include <AknQueryDialog.h> |
22 #include <AknQueryDialog.h> |
23 #include <AiwCommon.hrh> |
23 #include <AiwCommon.hrh> |
24 #include <sendnorm.rsg> |
24 #include <sendnorm.rsg> |
25 #include <sendui.h> |
25 #include <sendui.h> |
26 #include <akntoolbar.h> |
26 #include <akntoolbar.h> |
|
27 #include <aknbutton.h> |
27 #ifndef __WINS__ |
28 #ifndef __WINS__ |
28 //#include <SFIUtilsAppInterface.h> |
29 //#include <SFIUtilsAppInterface.h> |
29 #include <aknnotewrappers.h> // CAknInformationNote |
30 #include <aknnotewrappers.h> // CAknInformationNote |
30 #endif |
31 #endif |
31 |
32 |
231 menuBar->SetMenuTitleResourceId( |
232 menuBar->SetMenuTitleResourceId( |
232 ROID( R_CAM_VIDEO_POST_CAPTURE_MENUBAR_ID ) ); |
233 ROID( R_CAM_VIDEO_POST_CAPTURE_MENUBAR_ID ) ); |
233 } |
234 } |
234 |
235 |
235 CCamAppUi* appUi = static_cast<CCamAppUi*>( AppUi() ); |
236 CCamAppUi* appUi = static_cast<CCamAppUi*>( AppUi() ); |
236 |
237 /*if ( iController.IsTouchScreenSupported() ) |
237 if ( iController.IsTouchScreenSupported() ) |
|
238 { |
238 { |
239 if ( appUi->IsSecondCameraEnabled() ) |
239 if ( appUi->IsSecondCameraEnabled() ) |
240 { |
240 { |
241 if ( iOneClickUploadUtility->OneClickUploadSupported() ) |
241 if ( iOneClickUploadUtility->OneClickUploadSupported() ) |
242 { |
242 { |
262 else |
262 else |
263 { |
263 { |
264 CreateAndSetToolbarL( R_CAM_VIDEO_POSTCAPTURE_TOOLBAR ); |
264 CreateAndSetToolbarL( R_CAM_VIDEO_POSTCAPTURE_TOOLBAR ); |
265 } |
265 } |
266 } |
266 } |
267 } |
267 }*/ |
268 |
268 |
269 iAiwServiceHandler->Reset(); |
269 iAiwServiceHandler->Reset(); |
270 iAiwServiceHandler->AttachMenuL( ROID( R_CAM_VIDEO_POST_CAPTURE_MENU_ID ), |
270 iAiwServiceHandler->AttachMenuL( ROID( R_CAM_VIDEO_POST_CAPTURE_MENU_ID ), |
271 R_CAM_SHARE_ON_OVI_INTEREST ); |
271 R_CAM_SHARE_ON_OVI_INTEREST ); |
|
272 |
|
273 // SHARE_AIW |
|
274 iAiwServiceHandler->AttachMenuL( ROID( R_CAM_STILL_POST_CAPTURE_MENU_ID), |
|
275 R_CAM_AIW_VIEW_INTEREST ); |
272 |
276 |
273 CCamPostCaptureViewBase::DoActivateL( |
277 CCamPostCaptureViewBase::DoActivateL( |
274 aPreViewId, aCustomMessageId, aCustomMessage ); |
278 aPreViewId, aCustomMessageId, aCustomMessage ); |
275 |
279 |
276 if ( !iController.IsTouchScreenSupported() ) |
280 if ( !iController.IsTouchScreenSupported() ) |
328 PRINT( _L("Camera => CCamVideoPostCaptureView::ConstructL")) |
332 PRINT( _L("Camera => CCamVideoPostCaptureView::ConstructL")) |
329 BaseConstructL( ROID(R_CAM_VIDEO_POST_CAPTURE_VIEW_ID)); |
333 BaseConstructL( ROID(R_CAM_VIDEO_POST_CAPTURE_VIEW_ID)); |
330 CCamPostCaptureViewBase::ConstructL(); |
334 CCamPostCaptureViewBase::ConstructL(); |
331 |
335 |
332 iAiwServiceHandler->AttachMenuL( ROID( R_CAM_VIDEO_POST_CAPTURE_MENU_ID ), R_CAM_SHARE_ON_OVI_INTEREST ); |
336 iAiwServiceHandler->AttachMenuL( ROID( R_CAM_VIDEO_POST_CAPTURE_MENU_ID ), R_CAM_SHARE_ON_OVI_INTEREST ); |
|
337 // SHARE_AIW |
|
338 iAiwServiceHandler->AttachMenuL( ROID( R_CAM_STILL_POST_CAPTURE_MENU_ID), R_CAM_AIW_VIEW_INTEREST ); |
333 |
339 |
334 PRINT( _L("Camera <= CCamVideoPostCaptureView::ConstructL")) |
340 PRINT( _L("Camera <= CCamVideoPostCaptureView::ConstructL")) |
335 } |
341 } |
336 |
342 |
337 // --------------------------------------------------------------------------- |
343 // --------------------------------------------------------------------------- |
491 { |
497 { |
492 aMenuPane->SetItemDimmed( |
498 aMenuPane->SetItemDimmed( |
493 ECamCmdSendToCallerMultimedia, !showSendToCaller ); |
499 ECamCmdSendToCallerMultimedia, !showSendToCaller ); |
494 } |
500 } |
495 |
501 |
|
502 if(iController.IntegerSettingValue(ECamSettingItemVideoEditorSupport)) |
|
503 { |
|
504 showSend = ETrue; |
|
505 } |
|
506 |
496 if( aMenuPane->MenuItemExists( ECamCmdSend, itemPos ) ) |
507 if( aMenuPane->MenuItemExists( ECamCmdSend, itemPos ) ) |
497 { |
508 { |
498 aMenuPane->SetItemDimmed( |
509 aMenuPane->SetItemDimmed( |
499 ECamCmdSend, !showSend ); |
510 ECamCmdSend, !showSend ); |
500 } |
511 } |
554 { |
565 { |
555 PRINT2( _L("Camera => CCamVideoPostCaptureView::DynInitToolbarL(%d, 0x%X)" ), aResourceId, aToolbar ); |
566 PRINT2( _L("Camera => CCamVideoPostCaptureView::DynInitToolbarL(%d, 0x%X)" ), aResourceId, aToolbar ); |
556 (void)aResourceId; // remove compiler warning |
567 (void)aResourceId; // remove compiler warning |
557 |
568 |
558 // fixed toolbar is used only with touch devices |
569 // fixed toolbar is used only with touch devices |
559 if ( iController.IsTouchScreenSupported() && iEmbedded && aToolbar ) |
570 if ( iController.IsTouchScreenSupported() && aToolbar ) |
560 { |
571 { |
561 // HideItem will not do anything if a button for the given |
572 // HideItem will not do anything if a button for the given |
562 // command ID is not found. |
573 // command ID is not found. |
563 aToolbar->HideItem( ECamCmdSend, ETrue, EFalse ); |
574 if( iEmbedded ) |
564 aToolbar->HideItem( ECamCmdDelete, ETrue, EFalse ); |
575 { |
565 aToolbar->HideItem( ECamCmdOneClickUpload, ETrue, EFalse ); |
576 aToolbar->HideItem( ECamCmdSend, ETrue, EFalse ); |
566 aToolbar->HideItem( ECamCmdPlay, ETrue, EFalse ); |
577 aToolbar->HideItem( ECamCmdEdit, ETrue, EFalse ); |
|
578 aToolbar->HideItem( ECamCmdDelete, ETrue, EFalse ); |
|
579 aToolbar->HideItem( ECamCmdOneClickUpload, ETrue, EFalse ); |
|
580 aToolbar->HideItem( ECamCmdPlay, ETrue, EFalse ); |
|
581 } |
|
582 else |
|
583 { |
|
584 if(iController.IntegerSettingValue(ECamSettingItemVideoEditorSupport)) |
|
585 { |
|
586 aToolbar->RemoveItem( ECamCmdSend ); |
|
587 CAknButton* editButton = dynamic_cast<CAknButton*>(aToolbar->ControlOrNull( ECamCmdEdit )); |
|
588 if( editButton ) |
|
589 { |
|
590 CAknButtonState* state = editButton->State(); |
|
591 if( state ) |
|
592 { |
|
593 HBufC* helpText = StringLoader::LoadLC( R_QTN_LCAM_TT_VIDEO_EDITOR ); |
|
594 state->SetHelpTextL(*helpText); |
|
595 CleanupStack::PopAndDestroy(helpText); |
|
596 } |
|
597 } |
|
598 } |
|
599 else |
|
600 { |
|
601 aToolbar->RemoveItem( ECamCmdEdit ); |
|
602 } |
|
603 |
|
604 if(iOneClickUploadUtility->OneClickUploadSupported()) |
|
605 { |
|
606 aToolbar->RemoveItem( ECamCmdPhotos ); |
|
607 } |
|
608 else |
|
609 { |
|
610 aToolbar->RemoveItem( ECamCmdOneClickUpload ); |
|
611 } |
|
612 |
|
613 } |
567 } |
614 } |
568 |
615 |
569 PRINT2( _L("Camera <= CCamVideoPostCaptureView::DynInitToolbarL(%d, 0x%X)" ), aResourceId, aToolbar ); |
616 PRINT2( _L("Camera <= CCamVideoPostCaptureView::DynInitToolbarL(%d, 0x%X)" ), aResourceId, aToolbar ); |
570 } |
617 } |
571 |
618 |