Diffstat (limited to 'core/pim/datebook/datebookdayallday.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/datebook/datebookdayallday.h | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/core/pim/datebook/datebookdayallday.h b/core/pim/datebook/datebookdayallday.h new file mode 100644 index 0000000..c781785 --- a/dev/null +++ b/core/pim/datebook/datebookdayallday.h | |||
@@ -0,0 +1,80 @@ | |||
1 | #ifndef DATEBOOKDAYALLDAYBASE_H | ||
2 | #define DATEBOOKDAYALLDAYBASE_H | ||
3 | |||
4 | #include <qvariant.h> | ||
5 | #include <qframe.h> | ||
6 | #include <qlabel.h> | ||
7 | #include <qlist.h> | ||
8 | #include <qpe/event.h> | ||
9 | |||
10 | class QVBoxLayout; | ||
11 | class QHBoxLayout; | ||
12 | class QGridLayout; | ||
13 | class DatebookAlldayDisp; | ||
14 | class DatebookEventDesc; | ||
15 | class DateBookDB; | ||
16 | |||
17 | class DatebookdayAllday : public QWidget | ||
18 | { | ||
19 | Q_OBJECT | ||
20 | |||
21 | public: | ||
22 | DatebookdayAllday(DateBookDB* db, | ||
23 | QWidget* parent = 0, const char* name = 0, WFlags fl = 0); | ||
24 | ~DatebookdayAllday(); | ||
25 | DatebookAlldayDisp* addEvent(const EffectiveEvent&e); | ||
26 | const unsigned int items()const{return item_count;} | ||
27 | |||
28 | public slots: | ||
29 | void removeAllEvents(); | ||
30 | |||
31 | protected: | ||
32 | QVBoxLayout* datebookdayalldayLayout; | ||
33 | DatebookEventDesc * lblDesc; | ||
34 | unsigned int item_count; | ||
35 | QList<DatebookAlldayDisp> subWidgets; | ||
36 | DateBookDB *dateBook; | ||
37 | }; | ||
38 | |||
39 | class DatebookAlldayDisp : public QLabel | ||
40 | { | ||
41 | Q_OBJECT | ||
42 | |||
43 | public: | ||
44 | DatebookAlldayDisp(DateBookDB* db,const EffectiveEvent& e, | ||
45 | QWidget* parent=0,const char* name = 0, WFlags fl=0); | ||
46 | virtual ~DatebookAlldayDisp(); | ||
47 | |||
48 | signals: | ||
49 | void deleteMe( const Event &e ); | ||
50 | void duplicateMe( const Event &e ); | ||
51 | void editMe( const Event &e ); | ||
52 | void beamMe( const Event &e ); | ||
53 | void displayMe(const Event &e); | ||
54 | |||
55 | public slots: | ||
56 | |||
57 | protected: | ||
58 | EffectiveEvent m_Ev; | ||
59 | DateBookDB* dateBook; | ||
60 | void mousePressEvent( QMouseEvent *e ); | ||
61 | void beam_single_event(); | ||
62 | }; | ||
63 | |||
64 | class DatebookEventDesc: public QLabel | ||
65 | { | ||
66 | Q_OBJECT | ||
67 | |||
68 | public: | ||
69 | DatebookEventDesc(QWidget* Parent=0,const char* name = 0); | ||
70 | virtual ~DatebookEventDesc(); | ||
71 | |||
72 | public slots: | ||
73 | void disp_event(const Event&e); | ||
74 | |||
75 | protected: | ||
76 | void mousePressEvent(QMouseEvent*e); | ||
77 | QTimer* m_Timer; | ||
78 | }; | ||
79 | |||
80 | #endif // DATEBOOKDAYALLDAYBASE_H | ||