287 { |
287 { |
288 menuBar->SetMenuTitleResourceId( |
288 menuBar->SetMenuTitleResourceId( |
289 ROID(R_CAM_STILL_POST_CAPTURE_MENUBAR_ID)); |
289 ROID(R_CAM_STILL_POST_CAPTURE_MENUBAR_ID)); |
290 } |
290 } |
291 } |
291 } |
292 /*if ( iController.IsTouchScreenSupported() ) |
|
293 { |
|
294 if ( appUi->IsSecondCameraEnabled() ) |
|
295 { |
|
296 if ( iOneClickUploadUtility->OneClickUploadSupported() ) |
|
297 { |
|
298 TInt resourceId = appUi->IsQwerty2ndCamera()? |
|
299 R_CAM_STILL_POSTCAPTURE_TOOLBAR_LANDSCAPE_UPLOAD: |
|
300 R_CAM_STILL_POSTCAPTURE_TOOLBAR_PORTRAIT_UPLOAD; |
|
301 //CreateAndSetToolbarL( resourceId ); |
|
302 } |
|
303 else |
|
304 { |
|
305 TInt resourceId = appUi->IsQwerty2ndCamera()? |
|
306 R_CAM_STILL_POSTCAPTURE_TOOLBAR_LANDSCAPE: |
|
307 R_CAM_STILL_POSTCAPTURE_TOOLBAR_PORTRAIT; |
|
308 CreateAndSetToolbarL( resourceId ); |
|
309 } |
|
310 } |
|
311 else |
|
312 { |
|
313 if ( iOneClickUploadUtility->OneClickUploadSupported() ) |
|
314 { |
|
315 CreateAndSetToolbarL( |
|
316 R_CAM_STILL_POSTCAPTURE_TOOLBAR_UPLOAD ); |
|
317 } |
|
318 else |
|
319 { |
|
320 CreateAndSetToolbarL( |
|
321 R_CAM_STILL_POSTCAPTURE_TOOLBAR ); |
|
322 } |
|
323 } |
|
324 }*/ |
|
325 |
292 |
326 iAiwServiceHandler->Reset(); |
293 iAiwServiceHandler->Reset(); |
327 CCamPostCaptureViewBase::DoActivateL( |
294 CCamPostCaptureViewBase::DoActivateL( |
328 aPreViewId, aCustomMessageId, aCustomMessage ); |
295 aPreViewId, aCustomMessageId, aCustomMessage ); |
329 |
296 |
330 PERF_EVENT_END_L2( EPerfEventStillPostCaptureViewActivation ); |
297 PERF_EVENT_END_L2( EPerfEventStillPostCaptureViewActivation ); |
331 //iAiwServiceHandler->Reset(); |
298 |
332 // attach interest for PRINT from Active Toolbar |
299 // Attach interest for PRINT from Active Toolbar |
333 iAiwServiceHandler->AttachL( R_CAM_MOVE_TO_STILL_IMAGE_INTEREST_AT ); |
300 iAiwServiceHandler->AttachL( R_CAM_MOVE_TO_STILL_IMAGE_INTEREST_AT ); |
334 |
301 |
335 iAiwServiceHandler->AttachMenuL( ROID(R_CAM_STILL_POST_CAPTURE_MENU_ID), |
302 iAiwServiceHandler->AttachMenuL( ROID(R_CAM_STILL_POST_CAPTURE_MENU_ID), |
336 R_CAM_MOVE_TO_STILL_IMAGE_INTEREST ); |
303 R_CAM_MOVE_TO_STILL_IMAGE_INTEREST ); |
337 |
304 |
|
305 // Attach share interest: toolbar item |
338 iAiwServiceHandler->AttachMenuL( ROID( R_CAM_STILL_POST_CAPTURE_MENU_ID), |
306 iAiwServiceHandler->AttachMenuL( ROID( R_CAM_STILL_POST_CAPTURE_MENU_ID), |
339 R_CAM_SHARE_ON_OVI_INTEREST ); |
307 R_CAM_SHARE_ON_OVI_INTEREST ); |
340 |
308 |
341 // SHARE_AIW |
309 // Attach share interest: menu item |
342 iAiwServiceHandler->AttachMenuL( ROID( R_CAM_STILL_POST_CAPTURE_MENU_ID), |
310 iAiwServiceHandler->AttachMenuL( ROID( R_CAM_STILL_POST_CAPTURE_MENU_ID), |
343 R_CAM_AIW_VIEW_INTEREST ); |
311 R_CAM_AIW_VIEW_INTEREST ); |
344 |
312 |
345 if ( iController.IntegerSettingValue(ECamSettingItemPhotoEditorSupport) != ECamNoEditorSupport ) |
313 if ( iController.IntegerSettingValue(ECamSettingItemPhotoEditorSupport) ) |
346 { |
314 { |
347 iAiwServiceHandler->AttachMenuL( ROID( R_CAM_STILL_POST_CAPTURE_MENU_ID), |
315 iAiwServiceHandler->AttachMenuL( ROID( R_CAM_STILL_POST_CAPTURE_MENU_ID), |
348 R_CAM_SET_AS_CALL_IMAGE_INTEREST_EDITOR ); |
316 R_CAM_SET_AS_CALL_IMAGE_INTEREST_EDITOR ); |
349 } |
317 } |
350 else |
318 else |
556 } |
524 } |
557 |
525 |
558 if ( aResourceId == ROID( R_CAM_STILL_POST_CAPTURE_MENU_ID ) || |
526 if ( aResourceId == ROID( R_CAM_STILL_POST_CAPTURE_MENU_ID ) || |
559 aResourceId == ROID( R_CAM_STILL_POST_CAPTURE_OK_MENU_ID ) ) |
527 aResourceId == ROID( R_CAM_STILL_POST_CAPTURE_OK_MENU_ID ) ) |
560 { |
528 { |
|
529 TBool showSend = ETrue; |
|
530 TBool showSendToCaller = EFalse; |
|
531 |
|
532 /*#ifndef __WINS__ |
|
533 if ( iSFIUtils->IsCLIValidL() ) |
|
534 { |
|
535 showSend = EFalse; |
|
536 showSendToCaller = ETrue; |
|
537 } |
|
538 #endif*/ |
|
539 |
|
540 TCamOrientation orientation = |
|
541 static_cast<CCamAppUiBase*>( AppUi() )->CamOrientation(); |
|
542 |
|
543 if ( orientation == ECamOrientationCamcorder || |
|
544 orientation == ECamOrientationCamcorderLeft || |
|
545 orientation == ECamOrientationPortrait ) |
|
546 { |
|
547 showSend = EFalse; |
|
548 showSendToCaller = EFalse; |
|
549 } |
|
550 |
561 TInt itemPos = 0; |
551 TInt itemPos = 0; |
562 if ( aMenuPane->MenuItemExists( ECamCmdSendToCallerMultimedia, itemPos ) ) |
552 if ( aMenuPane->MenuItemExists( ECamCmdSendToCallerMultimedia, itemPos ) ) |
563 { |
553 { |
564 aMenuPane->SetItemDimmed( |
554 aMenuPane->SetItemDimmed( |
565 ECamCmdSendToCallerMultimedia, ETrue ); |
555 ECamCmdSendToCallerMultimedia, !showSendToCaller ); |
566 } |
556 } |
567 |
557 |
568 TInt editorSupport = iController.IntegerSettingValue(ECamSettingItemPhotoEditorSupport); |
558 if(iController.IntegerSettingValue(ECamSettingItemPhotoEditorSupport)) |
|
559 { |
|
560 showSend = ETrue; |
|
561 } |
569 |
562 |
570 if( editorSupport == ECamNoEditorSupport || |
563 if ( aMenuPane->MenuItemExists( ECamCmdSend, itemPos ) ) |
571 editorSupport == ECamEditorSupportInOptions ) |
564 { |
572 { |
565 aMenuPane->SetItemDimmed( |
573 if ( aMenuPane->MenuItemExists( ECamCmdSend, itemPos ) ) |
566 ECamCmdSend, !showSend ); |
574 { |
567 } |
575 aMenuPane->SetItemDimmed( |
568 |
576 ECamCmdSend, ETrue ); |
|
577 } |
|
578 } |
|
579 if( editorSupport == ECamNoEditorSupport || |
|
580 editorSupport == ECamEditorSupportInToolbar ) |
|
581 { |
|
582 if ( aMenuPane->MenuItemExists( ECamCmdEditPhoto, itemPos ) ) |
|
583 { |
|
584 aMenuPane->SetItemDimmed( |
|
585 ECamCmdEditPhoto, ETrue ); |
|
586 } |
|
587 } |
|
588 |
|
589 /* |
569 /* |
590 * MSK : ContextOptions --> We just hide Help and Exit from the Options Menu when |
570 * MSK : ContextOptions --> We just hide Help and Exit from the Options Menu when |
591 * the MSK is pressed in the postcapture still view |
571 * the MSK is pressed in the postcapture still view |
592 * iRockerKeyPress represents MSK key event in still postcapture view |
572 * iRockerKeyPress represents MSK key event in still postcapture view |
593 */ |
573 */ |
654 aToolbar->HideItem( ECamCmdOneClickUpload, ETrue, EFalse ); |
634 aToolbar->HideItem( ECamCmdOneClickUpload, ETrue, EFalse ); |
655 aToolbar->HideItem( ECamCmdDelete, ETrue, EFalse ); |
635 aToolbar->HideItem( ECamCmdDelete, ETrue, EFalse ); |
656 } |
636 } |
657 else |
637 else |
658 { |
638 { |
659 TInt editorSupport = iController.IntegerSettingValue(ECamSettingItemPhotoEditorSupport); |
639 if(iController.IntegerSettingValue(ECamSettingItemPhotoEditorSupport)) |
660 if( editorSupport == ECamEditorSupportInToolbar ) |
|
661 { |
640 { |
662 aToolbar->RemoveItem( ECamCmdSend ); |
641 aToolbar->RemoveItem( ECamCmdSend ); |
663 CAknButton* editButton = dynamic_cast<CAknButton*>(aToolbar->ControlOrNull( ECamCmdEdit )); |
642 CAknButton* editButton = dynamic_cast<CAknButton*>(aToolbar->ControlOrNull( ECamCmdEdit )); |
664 if( editButton ) |
643 if( editButton ) |
665 { |
644 { |