author | alwin <alwin> | 2005-03-16 13:14:26 (UTC) |
---|---|---|
committer | alwin <alwin> | 2005-03-16 13:14:26 (UTC) |
commit | 3d43b9e40e562957e1a3fcbe9268634db45951ce (patch) (unidiff) | |
tree | 637f67a6768f6a90e7834b96100f6c70bb66950b /core/pim/datebook/datebookdayallday.h | |
parent | 4fef85eb55dbef5f8546caee084e4f0ce51081d3 (diff) | |
download | opie-3d43b9e40e562957e1a3fcbe9268634db45951ce.zip opie-3d43b9e40e562957e1a3fcbe9268634db45951ce.tar.gz opie-3d43b9e40e562957e1a3fcbe9268634db45951ce.tar.bz2 |
ho.
in dayview a holiday will displayed (if plugin found)
generated a straight forward dummy-holiday-plugin for testing the
stuff.
Diffstat (limited to 'core/pim/datebook/datebookdayallday.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/datebook/datebookdayallday.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/pim/datebook/datebookdayallday.h b/core/pim/datebook/datebookdayallday.h index f5867e5..4f5cffa 100644 --- a/core/pim/datebook/datebookdayallday.h +++ b/core/pim/datebook/datebookdayallday.h | |||
@@ -15,61 +15,65 @@ class DatebookAlldayDisp; | |||
15 | class DatebookEventDesc; | 15 | class DatebookEventDesc; |
16 | class DateBookDB; | 16 | class DateBookDB; |
17 | 17 | ||
18 | class DatebookdayAllday : public QScrollView | 18 | class DatebookdayAllday : public QScrollView |
19 | { | 19 | { |
20 | Q_OBJECT | 20 | Q_OBJECT |
21 | 21 | ||
22 | public: | 22 | public: |
23 | DatebookdayAllday(DateBookDB* db, | 23 | DatebookdayAllday(DateBookDB* db, |
24 | QWidget* parent = 0, const char* name = 0, WFlags fl = 0); | 24 | QWidget* parent = 0, const char* name = 0, WFlags fl = 0); |
25 | ~DatebookdayAllday(); | 25 | ~DatebookdayAllday(); |
26 | DatebookAlldayDisp* addEvent(const EffectiveEvent&e); | 26 | DatebookAlldayDisp* addEvent(const EffectiveEvent&e); |
27 | DatebookAlldayDisp* addHoliday(const QString&e); | ||
27 | const unsigned int items()const{return item_count;} | 28 | const unsigned int items()const{return item_count;} |
28 | 29 | ||
29 | public slots: | 30 | public slots: |
30 | void removeAllEvents(); | 31 | void removeAllEvents(); |
31 | 32 | ||
32 | protected: | 33 | protected: |
33 | QFrame * m_MainFrame; | 34 | QFrame * m_MainFrame; |
34 | QVBoxLayout* datebookdayalldayLayout; | 35 | QVBoxLayout* datebookdayalldayLayout; |
35 | DatebookEventDesc * lblDesc; | 36 | DatebookEventDesc * lblDesc; |
36 | unsigned int item_count; | 37 | unsigned int item_count; |
37 | QList<DatebookAlldayDisp> subWidgets; | 38 | QList<DatebookAlldayDisp> subWidgets; |
38 | DateBookDB *dateBook; | 39 | DateBookDB *dateBook; |
39 | }; | 40 | }; |
40 | 41 | ||
41 | class DatebookAlldayDisp : public QLabel | 42 | class DatebookAlldayDisp : public QLabel |
42 | { | 43 | { |
43 | Q_OBJECT | 44 | Q_OBJECT |
44 | 45 | ||
45 | public: | 46 | public: |
46 | DatebookAlldayDisp(DateBookDB* db,const EffectiveEvent& e, | 47 | DatebookAlldayDisp(DateBookDB* db,const EffectiveEvent& e, |
47 | QWidget* parent=0,const char* name = 0, WFlags fl=0); | 48 | QWidget* parent=0,const char* name = 0, WFlags fl=0); |
49 | DatebookAlldayDisp(const QString&aholiday, | ||
50 | QWidget* parent=0,const char* name = 0, WFlags fl=0); | ||
48 | virtual ~DatebookAlldayDisp(); | 51 | virtual ~DatebookAlldayDisp(); |
49 | 52 | ||
50 | signals: | 53 | signals: |
51 | void deleteMe( const Event &e ); | 54 | void deleteMe( const Event &e ); |
52 | void duplicateMe( const Event &e ); | 55 | void duplicateMe( const Event &e ); |
53 | void editMe( const Event &e ); | 56 | void editMe( const Event &e ); |
54 | void beamMe( const Event &e ); | 57 | void beamMe( const Event &e ); |
55 | void displayMe(const Event &e); | 58 | void displayMe(const Event &e); |
56 | 59 | ||
57 | public slots: | 60 | public slots: |
58 | 61 | ||
59 | protected: | 62 | protected: |
60 | EffectiveEvent m_Ev; | 63 | EffectiveEvent m_Ev; |
61 | DateBookDB* dateBook; | 64 | DateBookDB* dateBook; |
62 | void mousePressEvent( QMouseEvent *e ); | 65 | void mousePressEvent( QMouseEvent *e ); |
63 | void beam_single_event(); | 66 | void beam_single_event(); |
67 | bool m_holiday:1; | ||
64 | }; | 68 | }; |
65 | 69 | ||
66 | class DatebookEventDesc: public QLabel | 70 | class DatebookEventDesc: public QLabel |
67 | { | 71 | { |
68 | Q_OBJECT | 72 | Q_OBJECT |
69 | 73 | ||
70 | public: | 74 | public: |
71 | DatebookEventDesc(QWidget* Parent=0,const char* name = 0); | 75 | DatebookEventDesc(QWidget* Parent=0,const char* name = 0); |
72 | virtual ~DatebookEventDesc(); | 76 | virtual ~DatebookEventDesc(); |
73 | 77 | ||
74 | public slots: | 78 | public slots: |
75 | void disp_event(const Event&e); | 79 | void disp_event(const Event&e); |