calendarui/views/dayview/inc/calendaycontainer.h
changeset 83 5aadd1120515
parent 57 bb2d3e476f29
equal deleted inserted replaced
82:dcd0ca396fa1 83:5aadd1120515
    25 #include "../../../../../mw/hb/src/hbwidgets/itemviews/hbabstractitemcontainer_p.h"
    25 #include "../../../../../mw/hb/src/hbwidgets/itemviews/hbabstractitemcontainer_p.h"
    26 
    26 
    27 // Forward declarations
    27 // Forward declarations
    28 class CalenDayInfo;
    28 class CalenDayInfo;
    29 class TouchEventAbsorber;
    29 class TouchEventAbsorber;
       
    30 class CalenDayEventsPane;
       
    31 class CalenDayItem;
    30 
    32 
    31 // Class declaration
    33 // Class declaration
    32 class CalenDayContainer : public HbAbstractItemContainer
    34 class CalenDayContainer : public HbAbstractItemContainer
    33 {
    35 {
    34     Q_OBJECT
    36     Q_OBJECT
    35 
    37 
    36 public:
    38 public:
    37     CalenDayContainer(QGraphicsItem *parent = 0);
    39     CalenDayContainer(QGraphicsObject *parent = 0);
    38     ~CalenDayContainer();
    40     ~CalenDayContainer();
    39 
    41 
    40     void itemAdded(int index, HbAbstractViewItem *item, bool animate);
    42     void itemAdded(int index, HbAbstractViewItem *item, bool animate);
    41     void itemRemoved(HbAbstractViewItem *item, bool animate);
    43     void itemRemoved(HbAbstractViewItem *item, bool animate);
    42     void reset();
    44     void reset();
    44 
    46 
    45     void setDayInfo(CalenDayInfo* dayInfo);
    47     void setDayInfo(CalenDayInfo* dayInfo);
    46     CalenDayInfo* dayInfo();
    48     CalenDayInfo* dayInfo();
    47     void setDate(const QDate &date);
    49     void setDate(const QDate &date);
    48     const QDate &date() const;
    50     const QDate &date() const;
       
    51     
       
    52     QDateTime dateTimeAtPos(const QPointF &pos);
    49 
    53 
    50 public slots:
    54 public slots:
    51     void orientationChanged(Qt::Orientation orientation);
    55     void orientationChanged(Qt::Orientation orientation);
       
    56     void updateFloatingItemsList(const CalenDayItem *item);
    52 
    57 
    53 protected:
    58 protected:
    54     HbAbstractViewItem * createDefaultPrototype() const;
    59     HbAbstractViewItem * createDefaultPrototype() const;
    55     void setItemModelIndex(HbAbstractViewItem *item, const QModelIndex &index);
    60     void setItemModelIndex(HbAbstractViewItem *item, const QModelIndex &index);
    56 
    61 
   100     bool mGeometryUpdated;  //!< Indicates if geometry needs to be updated
   105     bool mGeometryUpdated;  //!< Indicates if geometry needs to be updated
   101     CalenDayInfo* mInfo; //!< Day event info. Not owned.
   106     CalenDayInfo* mInfo; //!< Day event info. Not owned.
   102     LayoutValues mLayoutValues; //!< Keeps layout values, see LayoutValues class
   107     LayoutValues mLayoutValues; //!< Keeps layout values, see LayoutValues class
   103     QList<TouchEventAbsorber*> mAbsorbers; //!< Keeps needed touch absorbers
   108     QList<TouchEventAbsorber*> mAbsorbers; //!< Keeps needed touch absorbers
   104     QDate mDate; //!< Keeps date currently associated with this container
   109     QDate mDate; //!< Keeps date currently associated with this container
       
   110     QList<const CalenDayItem*> mFloatingItemsList; //!<Stores list of items that have floating background.
       
   111 	QList<CalenDayEventsPane*> mEventsPaneElements; //!< List of event panes
   105 };
   112 };
   106 
   113 
   107 
   114 
   108 
   115 
   109 /*!
   116 /*!