menufw/menufwui/mmwidgets/inc/mmgrid.h
branchRCL_3
changeset 102 ba63c83f4716
parent 88 3321d3e205b6
equal deleted inserted replaced
93:b01126ce0bec 102:ba63c83f4716
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:  CMmGrid declaration
    14 * Description:  CMmGrid declaration
    15 *  Version     : %version: MM_32.1.26 % << Don't touch! Updated by Synergy at check-out.
    15 *  Version     : %version: MM_32.1.25 % << Don't touch! Updated by Synergy at check-out.
    16 *
    16 *
    17 */
    17 */
    18 
    18 
    19 
    19 
    20 #ifndef C_MMGRID_H
    20 #ifndef C_MMGRID_H
   395      * @param aEventType Type of scrollbar event.
   395      * @param aEventType Type of scrollbar event.
   396      */
   396      */
   397     void ProcessScrollEventL( CEikScrollBar* aScrollBar,
   397     void ProcessScrollEventL( CEikScrollBar* aScrollBar,
   398             TEikScrollEvent aEventType );
   398             TEikScrollEvent aEventType );
   399 
   399 
       
   400     /**
       
   401      * Handles periodic events from @c iRedrawTimer.
       
   402      * Such events are generated at equal time intervals while
       
   403      * the view is being scrolled using the scrollbar.
       
   404      * This function typically calls @c ProcessScrollEventL,
       
   405      * which actually scrolls the view and causes a redraw.
       
   406      */
       
   407     void HandleRedrawTimerEventL();
       
   408 
       
   409 private:
       
   410     /**
       
   411      * Callback function for @c iRedrawTimer.
       
   412      * It simply calls @c HandleRedrawTimerEventL and returns 0.
       
   413      *
       
   414      * @param aPtr A pointer to CMmGrid object.
       
   415      * @return 0 (always).
       
   416      */
       
   417     static TInt RedrawTimerCallback( TAny* aPtr );
       
   418 
   400 private:
   419 private:
   401     /**
   420     /**
   402      * Grid model.
   421      * Grid model.
   403      */
   422      */
   404     CMmGridModel* iMmModel;
   423     CMmGridModel* iMmModel;
   451      * This member is only used in edit mode to store the position of the pointer
   470      * This member is only used in edit mode to store the position of the pointer
   452      * during EButton1Down event.
   471      * during EButton1Down event.
   453      */
   472      */
   454     TPoint iButton1DownPos;
   473     TPoint iButton1DownPos;
   455 
   474 
       
   475     /**
       
   476      * ETrue if the view is being scrolled with the scrollbar.
       
   477      */
       
   478     TBool iScrollbarThumbIsBeingDragged;
       
   479 
       
   480     /**
       
   481      * Stores the number of scrollbar events that were ignored.
       
   482      * It is only used while scrolling the view using scrollbar,
       
   483      * in such situation the scroll events that this object receives
       
   484      * are ignored, and actual scrolling is done only when
       
   485      * iRedrawTimer completes.
       
   486      */
       
   487     TInt iSkippedScrollbarEventsCount;
       
   488 
       
   489     /**
       
   490      * A timer that initiates redraws at certain time intervals.
       
   491      * It is used to refresh the view while scrolling with
       
   492      * the scrollbar.
       
   493      */
       
   494     CPeriodic* iRedrawTimer;
   456     };
   495     };
   457 
   496 
   458 #endif // C_MMGRID_H
   497 #endif // C_MMGRID_H