summaryrefslogtreecommitdiff
path: root/core/pim/datebook/datebookweeklst.h
Unidiff
Diffstat (limited to 'core/pim/datebook/datebookweeklst.h') (more/less context) (show whitespace changes)
-rw-r--r--core/pim/datebook/datebookweeklst.h24
1 files changed, 22 insertions, 2 deletions
diff --git a/core/pim/datebook/datebookweeklst.h b/core/pim/datebook/datebookweeklst.h
index 39c956d..b0b0417 100644
--- a/core/pim/datebook/datebookweeklst.h
+++ b/core/pim/datebook/datebookweeklst.h
@@ -31,6 +31,7 @@ public slots:
31 void setDate(int y, int m, int d); 31 void setDate(int y, int m, int d);
32signals: 32signals:
33 void dateChanged(int y, int w); 33 void dateChanged(int y, int w);
34 void setDbl(bool on);
34private: 35private:
35 QDate date; 36 QDate date;
36 bool onMonday; 37 bool onMonday;
@@ -73,7 +74,7 @@ class DateBookWeekLstView: public QWidget
73{ 74{
74 Q_OBJECT 75 Q_OBJECT
75public: 76public:
76 DateBookWeekLstView(QValueList<EffectiveEvent> &ev, QDate &d, bool onM, 77 DateBookWeekLstView(QValueList<EffectiveEvent> &ev, const QDate &d, bool onM,
77 QWidget* parent = 0, const char* name = 0, 78 QWidget* parent = 0, const char* name = 0,
78 WFlags fl = 0 ); 79 WFlags fl = 0 );
79 ~DateBookWeekLstView(); 80 ~DateBookWeekLstView();
@@ -88,6 +89,21 @@ protected slots:
88 void keyPressEvent(QKeyEvent *); 89 void keyPressEvent(QKeyEvent *);
89}; 90};
90 91
92class DateBookWeekLstDblView: public QWidget {
93 Q_OBJECT
94public:
95 DateBookWeekLstDblView(QValueList<EffectiveEvent> &ev1,
96 QValueList<EffectiveEvent> &ev2,
97 QDate &d, bool onM,
98 QWidget* parent = 0, const char* name = 0,
99 WFlags fl = 0 );
100signals:
101 void editEvent(const Event &e);
102 void showDate(int y, int m, int d);
103 void addEvent(const QDateTime &start, const QDateTime &stop,
104 const QString &str);
105};
106
91class DateBookWeekLst : public QWidget 107class DateBookWeekLst : public QWidget
92{ 108{
93 Q_OBJECT 109 Q_OBJECT
@@ -96,6 +112,7 @@ public:
96 DateBookWeekLst( bool ampm, bool onM, DateBookDB *newDB, 112 DateBookWeekLst( bool ampm, bool onM, DateBookDB *newDB,
97 QWidget *parent = 0, 113 QWidget *parent = 0,
98 const char *name = 0 ); 114 const char *name = 0 );
115 ~DateBookWeekLst();
99 void setDate( int y, int w ); 116 void setDate( int y, int w );
100 void setDate(const QDate &d ); 117 void setDate(const QDate &d );
101 int week() const { return _week; }; 118 int week() const { return _week; };
@@ -104,8 +121,10 @@ public:
104public slots: 121public slots:
105 void redraw(); 122 void redraw();
106 void dateChanged(int y, int w); 123 void dateChanged(int y, int w);
124
107protected slots: 125protected slots:
108 void keyPressEvent(QKeyEvent *); 126 void keyPressEvent(QKeyEvent *);
127 void setDbl(bool on);
109 128
110signals: 129signals:
111 void showDate(int y, int m, int d); 130 void showDate(int y, int m, int d);
@@ -118,9 +137,10 @@ private:
118 int startTime; 137 int startTime;
119 bool ampm; 138 bool ampm;
120 bool onMonday; 139 bool onMonday;
140 bool dbl;
121 int year, _week; 141 int year, _week;
122 DateBookWeekLstHeader *header; 142 DateBookWeekLstHeader *header;
123 DateBookWeekLstView *view; 143 QWidget *view;
124 QVBoxLayout *layout; 144 QVBoxLayout *layout;
125 QScrollView *scroll; 145 QScrollView *scroll;
126 146