camerauis/cameraapp/generic/src/CamVideoPostCaptureView.cpp
branchRCL_3
changeset 22 f54ad444594d
parent 17 8f559c47d7fd
equal deleted inserted replaced
21:289bbfdb6627 22:f54ad444594d
   275     iAiwServiceHandler->Reset();
   275     iAiwServiceHandler->Reset();
   276     iAiwServiceHandler->AttachMenuL( ROID( R_CAM_VIDEO_POST_CAPTURE_MENU_ID ),
   276     iAiwServiceHandler->AttachMenuL( ROID( R_CAM_VIDEO_POST_CAPTURE_MENU_ID ),
   277             R_CAM_SHARE_ON_OVI_INTEREST );
   277             R_CAM_SHARE_ON_OVI_INTEREST );
   278 
   278 
   279     // SHARE_AIW
   279     // SHARE_AIW
   280     iAiwServiceHandler->AttachMenuL( ROID( R_CAM_STILL_POST_CAPTURE_MENU_ID),
   280     iAiwServiceHandler->AttachMenuL( ROID( R_CAM_VIDEO_POST_CAPTURE_MENU_ID),
   281                                      R_CAM_AIW_VIEW_INTEREST );
   281                                      R_CAM_AIW_VIEW_INTEREST );
   282 
   282 
   283     CCamPostCaptureViewBase::DoActivateL(
   283     CCamPostCaptureViewBase::DoActivateL(
   284             aPreViewId, aCustomMessageId, aCustomMessage );
   284             aPreViewId, aCustomMessageId, aCustomMessage );
   285 
   285 
   312             }
   312             }
   313         else
   313         else
   314             {   
   314             {   
   315             }
   315             }
   316         }
   316         }
   317     if ( iController.IntegerSettingValue(ECamSettingItemVideoEditorSupport) )
   317     if ( iController.IntegerSettingValue(ECamSettingItemVideoEditorSupport) != ECamNoEditorSupport )
   318         {
   318         {
   319         iAiwServiceHandler->AttachMenuL( ROID( R_CAM_VIDEO_POST_CAPTURE_MENU_ID ), 
   319         iAiwServiceHandler->AttachMenuL( ROID( R_CAM_VIDEO_POST_CAPTURE_MENU_ID ), 
   320                 R_CAM_SET_AS_RING_TONE_INTEREST_EDITOR );
   320                 R_CAM_SET_AS_RING_TONE_INTEREST_EDITOR );
   321         }
   321         }
   322     else
   322     else
   474     TInt itemPos(0);
   474     TInt itemPos(0);
   475 
   475 
   476     if ( aResourceId == ROID( R_CAM_VIDEO_POST_CAPTURE_MENU_ID ) ||
   476     if ( aResourceId == ROID( R_CAM_VIDEO_POST_CAPTURE_MENU_ID ) ||
   477          aResourceId == ROID( R_CAM_VIDEO_POST_CAPTURE_OK_MENU_ID ) )
   477          aResourceId == ROID( R_CAM_VIDEO_POST_CAPTURE_OK_MENU_ID ) )
   478         {
   478         {
   479         TBool showSend = ETrue;
       
   480         TBool showSendToCaller = EFalse;
       
   481 
       
   482 /*#ifndef __WINS__
       
   483         if ( iSFIUtils->IsCLIValidL() )
       
   484             {
       
   485             showSend = EFalse;
       
   486             showSendToCaller = ETrue;
       
   487 
       
   488             if ( iController.IntegerSettingValue( ECamSettingItemVideoQuality ) 
       
   489                 == ECamVideoQualityHigh )
       
   490                 {
       
   491                 showSendToCaller = EFalse;
       
   492                 }
       
   493             }
       
   494 #endif*/
       
   495 
       
   496         if ( !iController.IsTouchScreenSupported() ||
       
   497              !iOneClickUploadUtility->OneClickUploadSupported() )
       
   498             {
       
   499             // In non-touch UI Send/Send to caller are always in AP.
       
   500             // No need for Options menu items.
       
   501 
       
   502             // If 1-click upload is not supported in touch UI, then there is
       
   503             // a send button in the fixed toolbar. There is no need to
       
   504             // have it in Options menu.
       
   505             showSend = EFalse;
       
   506             showSendToCaller = EFalse;
       
   507             }
       
   508 
   479 
   509         if( aMenuPane->MenuItemExists( ECamCmdSendToCallerMultimedia, itemPos ) )
   480         if( aMenuPane->MenuItemExists( ECamCmdSendToCallerMultimedia, itemPos ) )
   510             {
   481             {
   511             aMenuPane->SetItemDimmed(
   482             aMenuPane->SetItemDimmed(
   512                 ECamCmdSendToCallerMultimedia, !showSendToCaller );
   483                 ECamCmdSendToCallerMultimedia, ETrue );
   513             }
   484             }
   514 
   485 		TInt editorSupport = iController.IntegerSettingValue(ECamSettingItemPhotoEditorSupport);
   515         if(iController.IntegerSettingValue(ECamSettingItemVideoEditorSupport))
   486 		
   516             {
   487 		if( editorSupport == ECamNoEditorSupport || 
   517             showSend = ETrue;
   488 			editorSupport == ECamEditorSupportInOptions )
   518             }
   489             {
   519         
   490 			if ( aMenuPane->MenuItemExists( ECamCmdSend, itemPos ) )
   520         if( aMenuPane->MenuItemExists( ECamCmdSend, itemPos ) )
   491 				{
   521             {
   492 				aMenuPane->SetItemDimmed(
   522             aMenuPane->SetItemDimmed(
   493 					ECamCmdSend, ETrue );
   523                 ECamCmdSend, !showSend );
   494 				}
   524             }
   495 			}
   525 
   496 		if( editorSupport == ECamNoEditorSupport || 
       
   497 			editorSupport == ECamEditorSupportInToolbar )
       
   498 			{
       
   499 			if ( aMenuPane->MenuItemExists( ECamCmdEditPhoto, itemPos ) )
       
   500 				{
       
   501 				aMenuPane->SetItemDimmed(
       
   502 					ECamCmdEditPhoto, ETrue );
       
   503 				}			
       
   504 			}
   526         /*
   505         /*
   527          * MSK : ContextOptions --> We just hide Help and Exit from the Options Menu when
   506          * MSK : ContextOptions --> We just hide Help and Exit from the Options Menu when
   528          *       the MSK is pressed in the postcapture still view
   507          *       the MSK is pressed in the postcapture still view
   529          *       iRockerKeyPress represents MSK key event in still postcapture view
   508          *       iRockerKeyPress represents MSK key event in still postcapture view
   530          */
   509          */
   592 			aToolbar->HideItem( ECamCmdOneClickUpload, ETrue, EFalse );
   571 			aToolbar->HideItem( ECamCmdOneClickUpload, ETrue, EFalse );
   593 			aToolbar->HideItem( ECamCmdPlay, ETrue, EFalse );
   572 			aToolbar->HideItem( ECamCmdPlay, ETrue, EFalse );
   594 			}
   573 			}
   595         else
   574         else
   596 			{
   575 			{
   597             if(iController.IntegerSettingValue(ECamSettingItemVideoEditorSupport))
   576 			TInt editorSupport = iController.IntegerSettingValue(ECamSettingItemPhotoEditorSupport);
       
   577             if( editorSupport == ECamEditorSupportInToolbar )
   598                 {
   578                 {
   599                 aToolbar->RemoveItem( ECamCmdSend );
   579                 aToolbar->RemoveItem( ECamCmdSend );
   600                 CAknButton* editButton = dynamic_cast<CAknButton*>(aToolbar->ControlOrNull( ECamCmdEdit ));
   580                 CAknButton* editButton = dynamic_cast<CAknButton*>(aToolbar->ControlOrNull( ECamCmdEdit ));
   601                 if( editButton )
   581                 if( editButton )
   602                     {
   582                     {