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 | |||
@@ -28,4 +28,7 @@ | |||
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; |
@@ -35,4 +38,20 @@ 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 | { |
@@ -47,4 +66,5 @@ 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: |
@@ -52,5 +72,5 @@ signals: | |||
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 ); |
@@ -59,7 +79,10 @@ protected: | |||
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 | ||