mobilemessaging/mmsui/viewersrc/UniMmsViewerAppUi.cpp
branchRCL_3
changeset 9 1d7827e39b52
parent 2 0bf1d54f37d9
child 12 caea42e26caa
equal deleted inserted replaced
5:4697dfb2d7ad 9:1d7827e39b52
  2816 #ifdef RD_SCALABLE_UI_V2
  2816 #ifdef RD_SCALABLE_UI_V2
  2817             if ( AknLayoutUtils::PenEnabled() )
  2817             if ( AknLayoutUtils::PenEnabled() )
  2818                 {
  2818                 {
  2819                 TPointerEvent* pointerEvent = static_cast<TPointerEvent*>( aArg2 );
  2819                 TPointerEvent* pointerEvent = static_cast<TPointerEvent*>( aArg2 );
  2820                 CMsgBaseControl* baseControl = static_cast<CMsgBaseControl*>( aArg1 );
  2820                 CMsgBaseControl* baseControl = static_cast<CMsgBaseControl*>( aArg1 );
  2821                 if(iLongTapDetector)
  2821                 
  2822                 {
       
  2823                     iLongTapDetector->EnableLongTapAnimation(ETrue);
       
  2824                     iLongTapDetector->PointerEventL( *pointerEvent );
       
  2825                 }
       
  2826                 if (    pointerEvent
  2822                 if (    pointerEvent
  2827                     &&  pointerEvent->iType == TPointerEvent::EButton1Down )
  2823                     &&  pointerEvent->iType == TPointerEvent::EButton1Down )
  2828                     {
  2824                     {
  2829                     // We are looking for a valid tap (button down and up)
  2825                     // We are looking for a valid tap (button down and up)
  2830                     // on a focused object.
  2826                     // on a focused object.
  2831                     iPointerTarget = baseControl;
  2827                     iPointerTarget = baseControl;
       
  2828                     
       
  2829                     if(baseControl && (iMskId ==  R_MMSVIEWER_MSK_BUTTON_PLAY_PRESENTATION 
       
  2830                             || iMskId == R_MMSVIEWER_MSK_BUTTON_PLAY_AUDIO
       
  2831                             || iMskId ==R_MMSVIEWER_MSK_BUTTON_OPEN_IMAGE
       
  2832                             || iMskId ==R_MMSVIEWER_MSK_BUTTON_PLAY_VIDEO
       
  2833                             || iMskId ==R_MMSVIEWER_MSK_BUTTON_STOP_AUDIO
       
  2834                             || iMskId ==R_MMSVIEWER_MSK_BUTTON_STOP_VIDEO
       
  2835                             || iMskId ==R_MMSVIEWER_MSK_BUTTON_OPEN_OBJECTS
       
  2836 #ifdef RD_SVGT_IN_MESSAGING                     
       
  2837                             || iMskId ==R_MMSVIEWER_MSK_BUTTON_PLAY_SVG)
       
  2838 #endif   
       
  2839                     )
       
  2840                         {
       
  2841                         if(iLongTapDetector)
       
  2842                             {
       
  2843                             iLongTapDetector->EnableLongTapAnimation(ETrue);
       
  2844                             iLongTapDetector->PointerEventL( *pointerEvent );
       
  2845                             }
       
  2846                         }
  2832                     iTapConsumed = EFalse;
  2847                     iTapConsumed = EFalse;
  2833                     }
  2848                     }
  2834                 else if ( (!iTapConsumed) && (pointerEvent
  2849                 else if ( (!iTapConsumed) && (pointerEvent
  2835                         &&  pointerEvent->iType == TPointerEvent::EButton1Up) )
  2850                         &&  pointerEvent->iType == TPointerEvent::EButton1Up) )
  2836                     {
  2851                     {