calendarui/views/inc/calenpreviewpane.h
changeset 45 b6db4fd4947b
parent 23 fd30d51f876b
child 55 2c54b51f39c4
child 58 ef813d54df51
equal deleted inserted replaced
23:fd30d51f876b 45:b6db4fd4947b
    21 #define CALENPREVIEWPANE_H_
    21 #define CALENPREVIEWPANE_H_
    22 
    22 
    23 // System includes
    23 // System includes
    24 #include <qdatetime.h>
    24 #include <qdatetime.h>
    25 #include <hbscrollarea.h>
    25 #include <hbscrollarea.h>
    26 #include <hbgridviewitem.h>
       
    27 
    26 
    28 // Forward declarations
    27 // Forward declarations
    29 class HbLabel;
    28 class HbLabel;
    30 class MCalenServices;
    29 class MCalenServices;
    31 class AgendaEntry;
    30 class AgendaEntry;
    48 public:
    47 public:
    49 	void setNoEntriesLabel(HbLabel* label);
    48 	void setNoEntriesLabel(HbLabel* label);
    50 	void populateLabel( QDateTime date);
    49 	void populateLabel( QDateTime date);
    51 	QDateTime Date();
    50 	QDateTime Date();
    52 	void startAutoScroll();
    51 	void startAutoScroll();
    53 	void mousePressEvent(QGraphicsSceneMouseEvent* event);
       
    54 	void mouseReleaseEvent(QGraphicsSceneMouseEvent* event);
       
    55 	void mouseMoveEvent(QGraphicsSceneMouseEvent* event);
       
    56 	void setView(CalenMonthView* view);
    52 	void setView(CalenMonthView* view);
    57 	void stopScrolling();
    53 	void stopScrolling();
       
    54 	
       
    55 protected:
       
    56 	void gestureEvent(QGestureEvent *event);
    58 	
    57 	
    59 private:
    58 private:
    60 	void GetInstanceListL();
    59 	void GetInstanceListL();
    61 
    60 
    62 public slots:
    61 public slots:
    80 	scrollDirection mScrollDirection;
    79 	scrollDirection mScrollDirection;
    81 	int mNumOfScrolls;
    80 	int mNumOfScrolls;
    82 	HbLabel* mNoEntriesLabel;
    81 	HbLabel* mNoEntriesLabel;
    83 	bool mIsNoEntriesAdded;
    82 	bool mIsNoEntriesAdded;
    84 	bool mIsGestureHandled;
    83 	bool mIsGestureHandled;
       
    84 	qreal mHtDiff;
       
    85 	int mScrollDuration;
    85 };
    86 };
    86 
    87 
    87 #endif /* CALENPREVIEWPANE_H_ */
    88 #endif /* CALENPREVIEWPANE_H_ */
    88 
    89 
    89 // End of file  --Don't remove this.
    90 // End of file  --Don't remove this.