photosgallery/viewframework/views/zoomview/inc/glxzoomeventhandler.h
branchRCL_3
changeset 23 b023a8d2866a
parent 21 f9e827349359
equal deleted inserted replaced
21:f9e827349359 23:b023a8d2866a
    70     void CancelUITimer();
    70     void CancelUITimer();
    71     
    71     
    72     /*
    72     /*
    73      * ActivateZoom from the Zoom control
    73      * ActivateZoom from the Zoom control
    74      */
    74      */
    75     void ActivateZoom(TInt initialZoomRatio, 
    75     void ActivateZoom(  TInt aInitialZoomRatio,
    76                         TSize imageSize, 
    76                         TSize imageSize, 
    77                         TZoomStartMode aStartMode, 
    77                         TZoomStartMode aStartMode, 
    78                         TInt aMinSliderRange, 
    78                         TInt aMinZoomRatio, 
    79                         TInt aMaxSliderRange,
    79                         TInt aMaxZoomRatio,
    80                         TSize& aOriginalDimensions, 
       
    81                         TPoint* aZoomFocus);
    80                         TPoint* aZoomFocus);
    82     
    81     
    83     /*
    82     /*
    84      * DeactivateZoom from the Zoom control
    83      * DeactivateZoom from the Zoom control
    85      */
    84      */
   269     CPeriodic*          iUiTimer;                       // The Timer used to Hide the UI/Screen Furniture[Back Key/Slider] after 2 seconds
   268     CPeriodic*          iUiTimer;                       // The Timer used to Hide the UI/Screen Furniture[Back Key/Slider] after 2 seconds
   270     CPeriodic*          iZoomPanTimer;                  // The Timer used  for Zooming/Panning the Image Exponentially
   269     CPeriodic*          iZoomPanTimer;                  // The Timer used  for Zooming/Panning the Image Exponentially
   271     TPoint              iStartDisplayPoint;             // The variable holds the starting pointer posistion to determine the Drag Distance
   270     TPoint              iStartDisplayPoint;             // The variable holds the starting pointer posistion to determine the Drag Distance
   272     TTime               iDoubleTap;                     // This Variable is used to determine the double tap,by using the difference of the time 
   271     TTime               iDoubleTap;                     // This Variable is used to determine the double tap,by using the difference of the time 
   273                                                         // between subsequent single Tap.
   272                                                         // between subsequent single Tap.
   274     TInt                iInitialZoomRatio;
       
   275     TInt                iZoomRatio;
   273     TInt                iZoomRatio;
   276     TRect               iDoubleTapRect;                 // This varaible holds the rect for the Double Tap
   274     TRect               iDoubleTapRect;                 // This varaible holds the rect for the Double Tap
   277     TBool               iDragOngoing;                   // Is a drag event ongoing
   275     TBool               iDragOngoing;                   // Is a drag event ongoing
   278     TBool               iZoomActivated;                 // To Denote if zoom is activated
   276     TBool               iZoomActivated;                 // To Denote if zoom is activated
   279     TUiState            iZoomUiState;                   // To Denote if the Ui is On in zoom
   277     TUiState            iZoomUiState;                   // To Denote if the Ui is On in zoom
   280     TInt                iPrevPinchFactor;                // To avoid the bouce while pinch gesture end
   278     TInt                iPrevPinchPercentage;                // To avoid the bouce while pinch gesture end
   281     
   279     
   282     TPoint              iPreviousPointerPosition;
   280     TPoint              iPreviousPointerPosition;
   283     TPoint              iPreviousDragStartPosition;
   281     TPoint              iPreviousDragStartPosition;
   284 
   282 
   285     TBool               iIsZoomingInAnimatedState;
   283     TBool               iIsZoomingInAnimatedState;