calendarui/views/inc/calenmonthgrid.h
changeset 26 a949c2543c15
parent 23 fd30d51f876b
child 32 ea672fcb0ea0
--- a/calendarui/views/inc/calenmonthgrid.h	Mon May 03 12:30:32 2010 +0300
+++ b/calendarui/views/inc/calenmonthgrid.h	Fri May 14 15:51:09 2010 +0300
@@ -56,7 +56,11 @@
 	~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();
 
@@ -64,11 +68,15 @@
 	void orientationChanged(Qt::Orientation newOrientation);
 		
 private:
+	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();
@@ -80,7 +88,6 @@
 	void downGesture(int value);
 	void upGesture(int value);
 	void panGesture(const QPointF &delta);
-	void timerExpired();
 
 private:
 	QStandardItemModel *mModel;
@@ -97,6 +104,8 @@
 	QColor mGridLineColor;
 	QColor mGridBorderColor;
 	QGraphicsWidget* mContentWidget;
+	QList<QString> mLocalisedDates;
+	QPointF mStartPos;
 };
 
 #endif // CALENMONTHGRID_H