Diffstat (limited to 'core/pim/datebook/datebookday.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/datebook/datebookday.h | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/core/pim/datebook/datebookday.h b/core/pim/datebook/datebookday.h index 2faf24e..961f60f 100644 --- a/core/pim/datebook/datebookday.h +++ b/core/pim/datebook/datebookday.h | |||
@@ -27,6 +27,9 @@ | |||
27 | #include <qvbox.h> | 27 | #include <qvbox.h> |
28 | #include <qlist.h> | 28 | #include <qlist.h> |
29 | 29 | ||
30 | #include "datebook.h" | ||
31 | #include <qlineedit.h> | ||
32 | |||
30 | class DateBookDayHeader; | 33 | class DateBookDayHeader; |
31 | class DateBookDB; | 34 | class DateBookDB; |
32 | class QDateTime; | 35 | class QDateTime; |
@@ -34,6 +37,22 @@ class QMouseEvent; | |||
34 | class QPaintEvent; | 37 | class QPaintEvent; |
35 | class QResizeEvent; | 38 | class QResizeEvent; |
36 | 39 | ||
40 | class DateBookDayViewQuickLineEdit : public QLineEdit | ||
41 | { | ||
42 | Q_OBJECT | ||
43 | public: | ||
44 | DateBookDayViewQuickLineEdit(const QDateTime &start, const QDateTime &end,QWidget * parent, const char *name=0); | ||
45 | protected: | ||
46 | Event quickEvent; | ||
47 | int active; | ||
48 | void focusOutEvent( QFocusEvent *e ); | ||
49 | protected slots: | ||
50 | void slotReturnPressed(void); | ||
51 | signals: | ||
52 | void insertEvent(const Event &e); | ||
53 | }; | ||
54 | |||
55 | |||
37 | class DateBookDayView : public QTable | 56 | class DateBookDayView : public QTable |
38 | { | 57 | { |
39 | Q_OBJECT | 58 | Q_OBJECT |
@@ -46,21 +65,25 @@ public: | |||
46 | public slots: | 65 | public slots: |
47 | void moveUp(); | 66 | void moveUp(); |
48 | void moveDown(); | 67 | void moveDown(); |
68 | void slotDateChanged( int year, int month, int day ); | ||
49 | 69 | ||
50 | signals: | 70 | signals: |
51 | void sigColWidthChanged(); | 71 | void sigColWidthChanged(); |
52 | void sigCapturedKey( const QString &txt ); | 72 | void sigCapturedKey( const QString &txt ); |
53 | protected slots: | 73 | protected slots: |
54 | void slotChangeClock( bool ); | 74 | void slotChangeClock( bool ); |
55 | protected: | 75 | protected: |
56 | virtual void paintCell( QPainter *p, int row, int col, const QRect &cr, bool selected ); | 76 | virtual void paintCell( QPainter *p, int row, int col, const QRect &cr, bool selected ); |
57 | virtual void paintFocus( QPainter *p, const QRect &cr ); | 77 | virtual void paintFocus( QPainter *p, const QRect &cr ); |
58 | 78 | ||
59 | virtual void resizeEvent( QResizeEvent *e ); | 79 | virtual void resizeEvent( QResizeEvent *e ); |
60 | void keyPressEvent( QKeyEvent *e ); | 80 | void keyPressEvent( QKeyEvent *e ); |
81 | void contentsMouseReleaseEvent( QMouseEvent *e ); | ||
61 | void initHeader(); | 82 | void initHeader(); |
62 | private: | 83 | private: |
63 | bool ampm; | 84 | bool ampm; |
85 | QDate currDate; | ||
86 | DateBookDayViewQuickLineEdit *quickLineEdit; | ||
64 | }; | 87 | }; |
65 | 88 | ||
66 | class DateBookDay; | 89 | class DateBookDay; |