632 * the amount of pixels not scrolled. |
632 * the amount of pixels not scrolled. |
633 * @param aDirection Scrolling direction. |
633 * @param aDirection Scrolling direction. |
634 */ |
634 */ |
635 void DoScrollViewL( TInt& aPixelsToScroll, |
635 void DoScrollViewL( TInt& aPixelsToScroll, |
636 TMsgScrollDirection aDirection ); |
636 TMsgScrollDirection aDirection ); |
|
637 /** |
|
638 * Handle text scrolling from pointer event. |
|
639 * |
|
640 * @param aPointerEvent Current pointer event received from HandlePointerEventL. |
|
641 */ |
|
642 TBool HandleScrollEventL(const TPointerEvent& aPointerEvent); |
|
643 |
|
644 /** |
|
645 * Throw the pointer event (which is not consumed by text scrolling) to other handler. |
|
646 * |
|
647 * @param aPointerEvent Current pointer event received from HandlePointerEventL. |
|
648 */ |
|
649 |
|
650 void ThrowOutPointerEventL(const TPointerEvent& aPointerEvent); |
|
651 |
|
652 /** |
|
653 * Move current view up or down with screen height. |
|
654 * |
|
655 * @param aOffset Offset positive/negative will indicate the direction. |
|
656 */ |
|
657 |
|
658 void ScrollPartL(TInt aOffset); |
|
659 |
|
660 /** |
|
661 * Change to the previous or the next part(slide) if possible. |
|
662 * |
|
663 * @param aOffset Offset positive/negative will indicate the direction. |
|
664 */ |
|
665 |
|
666 void ScrollPageL(TInt aOffset); |
|
667 |
|
668 /** |
|
669 * Scroll text in current part (slide). This will not trigger part change. |
|
670 * |
|
671 * @param aScrolledPixels Pixels wanted to be scrolled. |
|
672 * |
|
673 * @return Pixels scrolled. |
|
674 */ |
|
675 |
|
676 TInt ScrollL(TInt aScrolledPixels); |
637 |
677 |
638 |
678 |
639 private: |
679 private: |
640 |
680 |
641 MMsgEditorObserver& iEditorObserver; |
681 MMsgEditorObserver& iEditorObserver; |
662 |
702 |
663 MEikEdwinObserver* iEdwinObserver; |
703 MEikEdwinObserver* iEdwinObserver; |
664 RConeResourceLoader iResourceLoader; |
704 RConeResourceLoader iResourceLoader; |
665 TMsgFocus iPrevFocus; |
705 TMsgFocus iPrevFocus; |
666 TBool iMoveUpDownEvent; |
706 TBool iMoveUpDownEvent; |
|
707 TBool iHaveScrolled; |
|
708 TPoint iScrollPos; |
|
709 TPointerEvent iFirstPointerDown; |
|
710 TBool iIsScrolling; |
667 }; |
711 }; |
668 |
712 |
669 #include <MsgEditorView.inl> |
713 #include <MsgEditorView.inl> |
670 |
714 |
671 // ========================================================= |
715 // ========================================================= |