26 class QGraphicsWidget; |
26 class QGraphicsWidget; |
27 class QGraphicsLinearLayout; |
27 class QGraphicsLinearLayout; |
28 class HbIconItem; |
28 class HbIconItem; |
29 class HbTextItem; |
29 class HbTextItem; |
30 class HbFrameItem; |
30 class HbFrameItem; |
31 class CalenGridItem; |
31 class CalenTodayIndicatorLineDrawer; |
|
32 |
|
33 // CONSTANTS |
|
34 const QString focusIconName = "qtg_fr_cal_focused_day_ind"; |
|
35 const QString eventIndname = "qtg_graf_cal_event_ind"; |
32 |
36 |
33 class CalenGridItemPrototype : public HbGridViewItem |
37 class CalenGridItemPrototype : public HbGridViewItem |
34 { |
38 { |
35 Q_OBJECT |
39 Q_OBJECT |
36 |
40 |
37 public: |
41 public: |
|
42 CalenGridItemPrototype(QColor todayIndColor, QColor activeColor, QColor inActiveColor, |
|
43 QGraphicsWidget *parent = 0); |
38 CalenGridItemPrototype(QGraphicsWidget *parent = 0); |
44 CalenGridItemPrototype(QGraphicsWidget *parent = 0); |
39 virtual ~CalenGridItemPrototype() |
45 virtual ~CalenGridItemPrototype() |
40 { |
46 { |
41 } |
47 } |
42 |
48 |
44 HbAbstractViewItem *createItem(); |
50 HbAbstractViewItem *createItem(); |
45 void updateChildItems(); |
51 void updateChildItems(); |
46 void pressStateChanged(bool pressed,bool animate); |
52 void pressStateChanged(bool pressed,bool animate); |
47 void pressStateChanged(bool animate); |
53 void pressStateChanged(bool animate); |
48 bool canSetModelIndex(const QModelIndex& index); |
54 bool canSetModelIndex(const QModelIndex& index); |
|
55 void createPrimitives(); |
49 |
56 |
50 private: |
57 private: |
51 void drawUnderline(bool underlineEnabled); |
58 QColor mTodayUnderLineColor; |
52 private: |
59 QColor mActiveTextColor; |
53 QGraphicsLinearLayout *mLayout; |
60 QColor mInActiveTextColor; |
54 CalenGridItem *mWidget; |
|
55 QColor mCurrentDateColor; |
61 QColor mCurrentDateColor; |
56 QColor mGridBorderColor; |
62 QColor mGridBorderColor; |
57 HbIconItem *mEventIndicatorItem; |
63 HbIconItem *mEventIndicatorItem; |
58 HbTextItem *mMonthDayInfoItem; |
64 HbTextItem *mMonthDayInfoItem; |
59 HbFrameItem *mFocusIndicatorItem; |
65 HbFrameItem *mFocusIndicatorItem; |
60 HbIconItem *mTodayIndicatorItem; |
66 CalenTodayIndicatorLineDrawer *mTodayIndicatorItem; |
61 QColor mTodayUnderLineColor; |
|
62 }; |
67 }; |
63 |
68 |
64 #endif // CALENGRIDITEMPROTOTYPE_H |
69 #endif // CALENGRIDITEMPROTOTYPE_H |
65 |
70 |
66 // End of file --Don't remove this. |
71 // End of file --Don't remove this. |