calendarui/views/inc/calengriditemprototype.h
changeset 63 a3cb48f6c889
parent 45 b6db4fd4947b
equal deleted inserted replaced
57:bb2d3e476f29 63:a3cb48f6c889
    30 class HbFrameItem;
    30 class HbFrameItem;
    31 class CalenTodayIndicatorLineDrawer;
    31 class CalenTodayIndicatorLineDrawer;
    32 
    32 
    33 // CONSTANTS
    33 // CONSTANTS
    34 const QString focusIconName = "qtg_fr_cal_focused_day_ind";
    34 const QString focusIconName = "qtg_fr_cal_focused_day_ind";
    35 const QString eventIndname = "qtg_graf_cal_event_ind";
    35 const QString eventIndname = ":/qtg_graf_cal_event_ind.svg";
    36 
    36 
    37 class CalenGridItemPrototype : public HbGridViewItem
    37 class CalenGridItemPrototype : public HbGridViewItem
    38 {
    38 {
    39 	Q_OBJECT
    39 	Q_OBJECT
    40 
    40 
    41 public:
    41 public:
    42 	CalenGridItemPrototype(QColor todayIndColor, QColor activeColor, QColor inActiveColor, 
       
    43 	                       QGraphicsWidget *parent = 0);
       
    44 	CalenGridItemPrototype(QGraphicsWidget *parent = 0);
    42 	CalenGridItemPrototype(QGraphicsWidget *parent = 0);
    45 	virtual ~CalenGridItemPrototype()
    43 	virtual ~CalenGridItemPrototype()
    46 	{
    44 	{
    47 	}
    45 	}
    48 
    46 
    52 	void pressStateChanged(bool pressed,bool animate);
    50 	void pressStateChanged(bool pressed,bool animate);
    53 	void pressStateChanged(bool  animate);
    51 	void pressStateChanged(bool  animate);
    54 	bool canSetModelIndex(const QModelIndex& index);
    52 	bool canSetModelIndex(const QModelIndex& index);
    55 	void createPrimitives();
    53 	void createPrimitives();
    56 
    54 
       
    55 public slots:
       
    56 
       
    57 	void handleThemeChange();
       
    58 
    57 private:
    59 private:
    58 	QColor mTodayUnderLineColor;
       
    59 	QColor mActiveTextColor;
    60 	QColor mActiveTextColor;
    60 	QColor mInActiveTextColor;
    61 	QColor mInActiveTextColor;
    61 	QColor mCurrentDateColor;
    62 	QColor mCurrentDateColor;
    62 	QColor mGridBorderColor;
       
    63 	HbIconItem *mEventIndicatorItem;
    63 	HbIconItem *mEventIndicatorItem;
    64 	HbTextItem *mMonthDayInfoItem;
    64 	HbTextItem *mMonthDayInfoItem;
    65 	HbFrameItem *mFocusIndicatorItem;
    65 	HbFrameItem *mFocusIndicatorItem;
    66 	CalenTodayIndicatorLineDrawer *mTodayIndicatorItem;
    66 	CalenTodayIndicatorLineDrawer *mTodayIndicatorItem;
    67 };
    67 };