#ifndef _DATEBOOKWEEKLISTVIEW_H #define _DATEBOOKWEEKLISTVIEW_H #include #include #include #include #include class QKeyEvent; class QVBoxLayout; class DateBookWeekLstView: public QWidget { Q_OBJECT public: DateBookWeekLstView(QValueList &ev, const QDate &d, bool onM, bool showAmPm, QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); ~DateBookWeekLstView(); void setEvents(QValueList &ev, const QDate &d, bool onM); signals: void editEvent(const Event &e); void duplicateEvent(const Event &e); void removeEvent(const Event &e); void beamEvent(const Event &e); void redraw(); void showDate(int y, int m, int d); void addEvent(const QDateTime &start, const QDateTime &stop, const QString &str, const QString &location); protected: bool bStartOnMonday; bool ampm; QValueList childs; QVBoxLayout*m_MainLayout; protected slots: void keyPressEvent(QKeyEvent *); void slotClockChanged( bool ap ); }; #endif