meetingrequest/mrgui/mrfieldbuilderplugin/src/cmrattachmentsfield.cpp
branchRCL_3
changeset 34 cd2816114bd1
parent 33 da5135c61bad
child 24 b5fbb9b25d57
equal deleted inserted replaced
33:da5135c61bad 34:cd2816114bd1
   489 		HandleTactileFeedbackL();
   489 		HandleTactileFeedbackL();
   490         }
   490         }
   491     else if ( aCommand == EESMREditorAddAttachment )
   491     else if ( aCommand == EESMREditorAddAttachment )
   492         {
   492         {
   493         handled = AddAttachmentL();
   493         handled = AddAttachmentL();
   494         if( handled )
       
   495         	{
       
   496 			HandleTactileFeedbackL();
       
   497         	}
       
   498         }
   494         }
   499 
   495 
   500     else if ( IsValidAttachmentEditorCommand(aCommand) &&
   496     else if ( IsValidAttachmentEditorCommand(aCommand) &&
   501             iAttCommandHandler )
   497             iAttCommandHandler )
   502         {
   498         {
   849     // will execute single tap the action
   845     // will execute single tap the action
   850     if( iAttachmentCount == 0 )
   846     if( iAttachmentCount == 0 )
   851         {
   847         {
   852         if( Rect().Contains( aPosition ) )
   848         if( Rect().Contains( aPosition ) )
   853             {
   849             {
       
   850 			HandleTactileFeedbackL();
       
   851 			
   854             ret = AddAttachmentL();
   852             ret = AddAttachmentL();
   855             if( ret )
       
   856             	{
       
   857 				HandleTactileFeedbackL();
       
   858             	}
       
   859             }
   853             }
   860         }
   854         }
   861     // Otherwise only the title and the fieldIcon will
   855     // Otherwise only the title and the fieldIcon will
   862     // execute the single tap action
   856     // execute the single tap action
   863     else
   857     else
   864         {
   858         {
   865         if( iTitle->Rect().Contains( aPosition ) ||
   859         if( iTitle->Rect().Contains( aPosition ) ||
   866                 iFieldIcon->Rect().Contains( aPosition ) )
   860                 iFieldIcon->Rect().Contains( aPosition ) )
   867             {
   861             {
   868             ret = AddAttachmentL();
   862 			HandleTactileFeedbackL();
   869             if( ret )
   863 			
   870             	{
   864 			ret = AddAttachmentL();
   871 				HandleTactileFeedbackL();
       
   872             	}
       
   873             }
   865             }
   874         }
   866         }
   875 
   867 
   876     return ret;
   868     return ret;
   877     }
   869     }
   886     // will execute long tap the action
   878     // will execute long tap the action
   887     if( iAttachmentCount == 0 )
   879     if( iAttachmentCount == 0 )
   888         {
   880         {
   889         if( Rect().Contains( aPosition ) )
   881         if( Rect().Contains( aPosition ) )
   890             {
   882             {
   891             if( AddAttachmentL() )
   883 			AddAttachmentL();
   892             	{
       
   893 				HandleTactileFeedbackL();
       
   894             	}
       
   895             }
   884             }
   896         }
   885         }
   897     else
   886     else
   898         {
   887         {
   899         if ( iRichTextViewer->Rect().Contains( aPosition ) )
   888         if ( iRichTextViewer->Rect().Contains( aPosition ) )
   900             {
   889             {
   901             if( iRichTextViewer->LinkSelectedL() )
   890 			iRichTextViewer->LinkSelectedL();
   902             	{
       
   903 				HandleTactileFeedbackL();
       
   904             	}
       
   905             }
   891             }
   906 
   892 
   907         if( iTitle->Rect().Contains( aPosition ) ||
   893         if( iTitle->Rect().Contains( aPosition ) ||
   908                 iFieldIcon->Rect().Contains( aPosition ) )
   894                 iFieldIcon->Rect().Contains( aPosition ) )
   909             {
   895             {
   910             if( AddAttachmentL() )
   896 			AddAttachmentL();
   911             	{
       
   912 				HandleTactileFeedbackL();
       
   913             	}
       
   914             }
   897             }
   915         }
   898         }
   916     }
   899     }
   917 
   900 
   918 // ---------------------------------------------------------------------------
   901 // ---------------------------------------------------------------------------