equal
deleted
inserted
replaced
133 //---------------------------------------------------------------------------------- |
133 //---------------------------------------------------------------------------------- |
134 // CGlxZoomPanEventHandler SetupAnimatedZoom |
134 // CGlxZoomPanEventHandler SetupAnimatedZoom |
135 //---------------------------------------------------------------------------------- |
135 //---------------------------------------------------------------------------------- |
136 // |
136 // |
137 // Todo: Combine logics of setting up animated zoom and pan. |
137 // Todo: Combine logics of setting up animated zoom and pan. |
138 void CGlxZoomPanEventHandler::SetupAnimatedZoom(TZoomMode aZoomMode, TPoint* aZoomFocus) |
138 void CGlxZoomPanEventHandler::SetupAnimatedZoom(TZoomMode aZoomMode, TPoint* /*aZoomFocus*/) |
139 { |
139 { |
140 TRACER("CGlxZoomPanEventHandler::SetupAnimatedZoom"); |
140 TRACER("CGlxZoomPanEventHandler::SetupAnimatedZoom"); |
141 |
141 |
142 iTargetAnimatedZoomRatio = (iMaxZoomRatio + iMinZoomRatio)/2 ; |
142 iTargetAnimatedZoomRatio = (iMaxZoomRatio + iMinZoomRatio)/2 ; |
143 |
143 |
604 |
604 |
605 // ----------------------------------------------------------------------------- |
605 // ----------------------------------------------------------------------------- |
606 // HandleGestureReleased |
606 // HandleGestureReleased |
607 // ----------------------------------------------------------------------------- |
607 // ----------------------------------------------------------------------------- |
608 // |
608 // |
609 void CGlxZoomPanEventHandler::HandleGestureReleased(const GestureHelper::MGestureEvent& aEvent ) |
609 void CGlxZoomPanEventHandler::HandleGestureReleased(const GestureHelper::MGestureEvent& /*aEvent*/ ) |
610 { |
610 { |
611 TRACER("CGlxZoomPanEventHandler::HandleGestureReleasedEvent(const GestureHelper::MGestureEvent& )"); |
611 TRACER("CGlxZoomPanEventHandler::HandleGestureReleasedEvent(const GestureHelper::MGestureEvent& )"); |
612 |
612 |
613 if ( /*(EGestureUnknown == iPreviousGestureCode) |
613 if ( /*(EGestureUnknown == iPreviousGestureCode) |
614 ||*/(EGestureSwipeLeft == iPreviousGestureCode) |
614 ||*/(EGestureSwipeLeft == iPreviousGestureCode) |
708 |
708 |
709 // ----------------------------------------------------------------------------- |
709 // ----------------------------------------------------------------------------- |
710 // HandleDoubleTap |
710 // HandleDoubleTap |
711 // ----------------------------------------------------------------------------- |
711 // ----------------------------------------------------------------------------- |
712 // |
712 // |
713 void CGlxZoomPanEventHandler::HandleDoubleTap(const GestureHelper::MGestureEvent& aEvent ) |
713 void CGlxZoomPanEventHandler::HandleDoubleTap(const GestureHelper::MGestureEvent& /*aEvent*/ ) |
714 { |
714 { |
715 TRACER("CGlxZoomControl::HandleDoubleTap(GestureHelper::MGestureEvent&)"); |
715 TRACER("CGlxZoomControl::HandleDoubleTap(GestureHelper::MGestureEvent&)"); |
716 |
716 |
717 // Ignore events when we are animating in Zoom |
717 // Ignore events when we are animating in Zoom |
718 if (iIsZoomingInAnimatedState) |
718 if (iIsZoomingInAnimatedState) |
725 |
725 |
726 // ----------------------------------------------------------------------------- |
726 // ----------------------------------------------------------------------------- |
727 // HandleSingleTap |
727 // HandleSingleTap |
728 // ----------------------------------------------------------------------------- |
728 // ----------------------------------------------------------------------------- |
729 // |
729 // |
730 void CGlxZoomPanEventHandler::HandleSingleTap(const GestureHelper::MGestureEvent& aEvent ) |
730 void CGlxZoomPanEventHandler::HandleSingleTap(const GestureHelper::MGestureEvent& /*aEvent*/ ) |
731 { |
731 { |
732 TRACER("CGlxZoomControl::HandleSingleTap(GestureHelper::MGestureEvent&)"); |
732 TRACER("CGlxZoomControl::HandleSingleTap(GestureHelper::MGestureEvent&)"); |
733 |
733 |
734 // Ignore events when we are animating in Zoom |
734 // Ignore events when we are animating in Zoom |
735 if (iIsZoomingInAnimatedState) |
735 if (iIsZoomingInAnimatedState) |
1149 // ----------------------------------------------------------------------------- |
1149 // ----------------------------------------------------------------------------- |
1150 // |
1150 // |
1151 void CGlxZoomPanEventHandler::HandleMultiTouchReleased() |
1151 void CGlxZoomPanEventHandler::HandleMultiTouchReleased() |
1152 { |
1152 { |
1153 TRACER("CGlxZoomPanEventHandler::HandleMultiTouchReleased"); |
1153 TRACER("CGlxZoomPanEventHandler::HandleMultiTouchReleased"); |
1154 |
1154 //Do nothing |
1155 // ShowScreenFurniture(KGlxScreenTimeout); |
1155 } |
1156 } |
|