summaryrefslogtreecommitdiff
path: root/core/pim/datebook/datebookweek.h
authoralwin <alwin>2005-03-17 14:01:23 (UTC)
committer alwin <alwin>2005-03-17 14:01:23 (UTC)
commit8752141a5341877369f89a42fa1f0b5d08f56dbd (patch) (side-by-side diff)
tree63dc48ee207a4e9fbb6b9e8abddb239ec724c155 /core/pim/datebook/datebookweek.h
parentafee05f4b4c1e8dab8463e3423fcfc8f9d45aa8b (diff)
downloadopie-8752141a5341877369f89a42fa1f0b5d08f56dbd.zip
opie-8752141a5341877369f89a42fa1f0b5d08f56dbd.tar.gz
opie-8752141a5341877369f89a42fa1f0b5d08f56dbd.tar.bz2
1. datebookweeklist - a week has SEVEN days, not SIX. I'm wondering why
events on sunday never showed there ;) 2. extra file datebooktypes contains some special classes used by datebook so other classes must not include the big mainheader file. 3. added support for holiday-plugins to week-views. Month view is a little bit more tricky 'cause TT has never heard about virtual methods and so I have the choice between complete copy the monthview and make the modifications or changing the interface of datebookdb-class to virtual. both isn't nice.
Diffstat (limited to 'core/pim/datebook/datebookweek.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/datebook/datebookweek.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/core/pim/datebook/datebookweek.h b/core/pim/datebook/datebookweek.h
index c273e30..ddf54ed 100644
--- a/core/pim/datebook/datebookweek.h
+++ b/core/pim/datebook/datebookweek.h
@@ -28,6 +28,7 @@
#include <qvaluelist.h>
class DateBookDB;
+class DateBookDBHoliday;
class DateBookWeekHeader;
class QDate;
class QLabel;
@@ -58,7 +59,7 @@ class DateBookWeekView : public QScrollView
Q_OBJECT
public:
DateBookWeekView( bool ampm, bool weekOnMonday, QWidget *parent = 0,
- const char *name = 0 );
+ const char *name = 0 );
bool whichClock() const;
void showEvents( QValueList<EffectiveEvent> &ev );
@@ -100,8 +101,8 @@ class DateBookWeek : public QWidget
Q_OBJECT
public:
- DateBookWeek( bool ampm, bool weekOnMonday, DateBookDB *newDB,
- QWidget *parent = 0, const char *name = 0 );
+ DateBookWeek( bool ampm, bool weekOnMonday, DateBookDBHoliday *newDB,
+ QWidget *parent = 0, const char *name = 0 );
void setDate( int y, int m, int d );
void setDate( QDate d );
QDate date() const;
@@ -153,7 +154,7 @@ private:
QDate bdate;
DateBookWeekHeader *header;
DateBookWeekView *view;
- DateBookDB *db;
+ DateBookDBHoliday *db;
QLabel *lblDesc;
QTimer *tHide;
int startTime;