--- 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<CalenMonthData> &monthDataArray,
- int indexToBeScrolled);
+ int indexToBeScrolled, bool isFirstTime);
+ void updateMonthGridWithInActiveMonths(
+ QList<CalenMonthData> &monthDataArray);
+ void updateMonthGridWithEventIndicators(
+ QList<CalenMonthData> &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<CalenMonthData > &monthDataList);
+ void handleAppendingRows(QList<CalenMonthData > &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<CalenMonthData> mMonthDataArray;
@@ -97,6 +102,8 @@
QColor mGridLineColor;
QColor mGridBorderColor;
QGraphicsWidget* mContentWidget;
+ QList<QString> mLocalisedDates;
+ QPointF mStartPos;
};
#endif // CALENMONTHGRID_H