diff -r fd30d51f876b -r b6db4fd4947b calendarui/views/inc/calenmonthgrid.h --- a/calendarui/views/inc/calenmonthgrid.h Mon May 03 12:30:32 2010 +0300 +++ b/calendarui/views/inc/calenmonthgrid.h Mon Jun 28 15:22:02 2010 +0530 @@ -56,19 +56,30 @@ ~CalenMonthGrid(); void setView(CalenMonthView *view); void updateMonthGridModel(QList &monthDataArray, - int indexToBeScrolled); + int indexToBeScrolled, bool isFirstTime); + void updateMonthGridWithInActiveMonths( + QList &monthDataArray); + void updateMonthGridWithEventIndicators( + QList &monthDataArray); void setCurrentIdex(int index); int getCurrentIndex(); protected: void orientationChanged(Qt::Orientation newOrientation); + void gestureEvent(QGestureEvent *event); private: + void downGesture(); + void upGesture(); + void handlePrependingRows(QList &monthDataList); + void handleAppendingRows(QList &monthDataList); + void handlePanGestureFinished(); void mousePressEvent(QGraphicsSceneMouseEvent* event); void mouseReleaseEvent(QGraphicsSceneMouseEvent* event); void setFocusToProperDay(); void setActiveDates(QDate activeDate); - void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget); + void paint(QPainter* painter, + const QStyleOptionGraphicsItem* option, QWidget* widget); public slots: void scrollingFinished(); @@ -76,12 +87,6 @@ void appendRows(); void itemActivated(const QModelIndex &index); -protected slots: - void downGesture(int value); - void upGesture(int value); - void panGesture(const QPointF &delta); - void timerExpired(); - private: QStandardItemModel *mModel; QList mMonthDataArray; @@ -97,6 +102,8 @@ QColor mGridLineColor; QColor mGridBorderColor; QGraphicsWidget* mContentWidget; + QList mLocalisedDates; + QPointF mStartPos; }; #endif // CALENMONTHGRID_H