mulwidgets/mulcoverflowwidget/src/mulcoverflowcontrol.cpp
branchRCL_3
changeset 20 03228bb411ae
parent 11 6e36eeb89e69
child 21 125793e17004
equal deleted inserted replaced
18:1ff7a906e138 20:03228bb411ae
  1285         
  1285         
  1286         case EGestureTap:
  1286         case EGestureTap:
  1287         	{
  1287         	{
  1288         	MUL_LOG_INFO("MUL::MulCoverFlowControl:HandleNormalGestureEvents EGestureTap ");
  1288         	MUL_LOG_INFO("MUL::MulCoverFlowControl:HandleNormalGestureEvents EGestureTap ");
  1289             HandleSingleTap(aEvent); 
  1289             HandleSingleTap(aEvent); 
       
  1290             mFeedback->InstantFeedback(ETouchFeedbackList);
  1290             break;   
  1291             break;   
  1291         	}
  1292         	}
  1292         
  1293         
  1293         case EGestureDoubleTap:
  1294         case EGestureDoubleTap:
  1294            {
  1295            {
  1315                     }
  1316                     }
  1316                 doubleTapData.mTapVisualIndex = hitVisualIndex;
  1317                 doubleTapData.mTapVisualIndex = hitVisualIndex;
  1317                 }
  1318                 }
  1318             doubleTapData.mDoubleTapPoint = aEvent.CurrentPos();
  1319             doubleTapData.mDoubleTapPoint = aEvent.CurrentPos();
  1319             
  1320             
  1320             mFeedback->InstantFeedback(ETouchFeedbackBasic); 
  1321             mFeedback->InstantFeedback(ETouchFeedbackList); 
  1321             CAlfWidgetControl::processEvent ( TAlfEvent ( ETypeDoubleTap,
  1322             CAlfWidgetControl::processEvent ( TAlfEvent ( ETypeDoubleTap,
  1322                     uint(&doubleTapData)));
  1323                     uint(&doubleTapData)));
  1323             break;  
  1324             break;  
  1324             }
  1325             }
  1325                            	
  1326                            	
  1365             }
  1366             }
  1366         case EGestureMultiTouchStart:
  1367         case EGestureMultiTouchStart:
  1367            {
  1368            {
  1368             MUL_LOG_INFO("MUL::MulCoverFlowControl:HandleNormalGestureEvents EGestureMultiTouchStart");
  1369             MUL_LOG_INFO("MUL::MulCoverFlowControl:HandleNormalGestureEvents EGestureMultiTouchStart");
  1369             mData->mBaseElement->StopDoodling(0);
  1370             mData->mBaseElement->StopDoodling(0);
       
  1371             mFeedback->InstantFeedback(ETouchFeedbackMultiTouchRecognized);
  1370             break;
  1372             break;
  1371           }
  1373           }
  1372         case EGestureMultiTouchReleased:
  1374         case EGestureMultiTouchReleased:
  1373             MUL_LOG_INFO("MUL::MulCoverFlowControl:HandleNormalGestureEvents EGestureMultiTouchReleased");
  1375             MUL_LOG_INFO("MUL::MulCoverFlowControl:HandleNormalGestureEvents EGestureMultiTouchReleased");
  1374             break;
  1376             break;
  1377             CAlfWidgetControl::processEvent ( TAlfEvent ( ETypePinch,aEvent.PinchPercent()));
  1379             CAlfWidgetControl::processEvent ( TAlfEvent ( ETypePinch,aEvent.PinchPercent()));
  1378             break;
  1380             break;
  1379         case EGestureReleased:
  1381         case EGestureReleased:
  1380         	{
  1382         	{
  1381         	 MUL_LOG_INFO("MUL::MulCoverFlowControl:HandleNormalGestureEvents EGestureReleased");
  1383         	 MUL_LOG_INFO("MUL::MulCoverFlowControl:HandleNormalGestureEvents EGestureReleased");
  1382         	 mFeedback->InstantFeedback(ETouchFeedbackBasic);
  1384         	 break;
  1383          	 break;
       
  1384 			}
  1385 			}
  1385         default:
  1386         default:
  1386             break;
  1387             break;
  1387         } // end of switch
  1388         } // end of switch
  1388     }
  1389     }
  1523         return;   
  1524         return;   
  1524         }
  1525         }
  1525     CAlfVisual* hitVisual = aEvent.Visual();
  1526     CAlfVisual* hitVisual = aEvent.Visual();
  1526     if((hitVisual && hitVisual->Tag() == KCoverflowIcon) || (mData->mCoverFlow2DTemplate->IsUiOnOffFlagEnabled() )) 
  1527     if((hitVisual && hitVisual->Tag() == KCoverflowIcon) || (mData->mCoverFlow2DTemplate->IsUiOnOffFlagEnabled() )) 
  1527         {
  1528         {
  1528         mFeedback->InstantFeedback(ETouchFeedbackBasic);  
  1529         mFeedback->InstantFeedback(ETouchFeedbackList);  
  1529         }    
  1530         }    
  1530     }
  1531     }
  1531 // ---------------------------------------------------------------------------
  1532 // ---------------------------------------------------------------------------
  1532 // HandleSwipe
  1533 // HandleSwipe
  1533 // Handle the swipe events (swipe left and swipe right) provided by the gesture helper.
  1534 // Handle the swipe events (swipe left and swipe right) provided by the gesture helper.
  1584 			HandleNavigationEvent( event );	
  1585 			HandleNavigationEvent( event );	
  1585 			}
  1586 			}
  1586 		HandleNavigationEvent( event );
  1587 		HandleNavigationEvent( event );
  1587 		env.SetRefreshMode(oldRefreshMode);			
  1588 		env.SetRefreshMode(oldRefreshMode);			
  1588 		}
  1589 		}
  1589 	// Commented feedback for swipe event
  1590 	
  1590 	//mFeedback->InstantFeedback(ETouchFeedbackBasic);
       
  1591 	HandleNavigationEvent( event );
  1591 	HandleNavigationEvent( event );
       
  1592 	// Feedback for swipe event
       
  1593 	mFeedback->InstantFeedback(ETouchFeedbackList);
  1592     }
  1594     }
  1593 
  1595 
  1594 // ---------------------------------------------------------------------------	
  1596 // ---------------------------------------------------------------------------	
  1595 // HandleHoldGestureEvents
  1597 // HandleHoldGestureEvents
  1596 // ---------------------------------------------------------------------------
  1598 // ---------------------------------------------------------------------------