Diffstat (limited to 'core/pim/datebook/modules/monthview/odatebookmonth.h') (more/less context) (show whitespace changes)
-rw-r--r-- | core/pim/datebook/modules/monthview/odatebookmonth.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/pim/datebook/modules/monthview/odatebookmonth.h b/core/pim/datebook/modules/monthview/odatebookmonth.h index e967abe..a81a161 100644 --- a/core/pim/datebook/modules/monthview/odatebookmonth.h +++ b/core/pim/datebook/modules/monthview/odatebookmonth.h | |||
@@ -60,50 +60,52 @@ public: | |||
60 | QSize minimumSize() const { return sizeHint(); } | 60 | QSize minimumSize() const { return sizeHint(); } |
61 | void getDate( int& y, int &m, int &d ) const {y=selYear;m=selMonth;d=selDay;} | 61 | void getDate( int& y, int &m, int &d ) const {y=selYear;m=selMonth;d=selDay;} |
62 | void setWeekStart( bool onMonday ); | 62 | void setWeekStart( bool onMonday ); |
63 | signals: | 63 | signals: |
64 | void dateClicked( int year, int month, int day ); | 64 | void dateClicked( int year, int month, int day ); |
65 | 65 | ||
66 | protected: | 66 | protected: |
67 | virtual void viewportMouseReleaseEvent( QMouseEvent * ); | 67 | virtual void viewportMouseReleaseEvent( QMouseEvent * ); |
68 | 68 | ||
69 | protected slots: | 69 | protected slots: |
70 | 70 | ||
71 | virtual void keyPressEvent(QKeyEvent *e ) { | 71 | virtual void keyPressEvent(QKeyEvent *e ) { |
72 | e->ignore(); | 72 | e->ignore(); |
73 | } | 73 | } |
74 | 74 | ||
75 | private slots: | 75 | private slots: |
76 | void dayClicked( int row, int col ); | 76 | void dayClicked( int row, int col ); |
77 | void dragDay( int row, int col ); | 77 | void dragDay( int row, int col ); |
78 | 78 | ||
79 | private: | 79 | private: |
80 | void setupTable(); | 80 | void setupTable(); |
81 | void setupLabels(); | 81 | void setupLabels(); |
82 | 82 | ||
83 | void findDay( int day, int &row, int &col ); | 83 | void findDay( int day, int &row, int &col ); |
84 | bool findDate( QDate date, int &row, int &col ); | ||
84 | void getEvents(); | 85 | void getEvents(); |
85 | void changeDaySelection( int row, int col ); | 86 | void changeDaySelection( int row, int col ); |
87 | QDate getDateAt( int row, int col ); | ||
86 | 88 | ||
87 | int year, month, day; | 89 | int year, month, day; |
88 | int selYear, selMonth, selDay; | 90 | int selYear, selMonth, selDay; |
89 | QValueList<Event> monthsEvents; // not used anymore... | 91 | QValueList<Event> monthsEvents; // not used anymore... |
90 | DateBookDBHoliday *db; | 92 | DateBookDBHoliday *db; |
91 | ODateBookMonthTablePrivate *d; | 93 | ODateBookMonthTablePrivate *d; |
92 | }; | 94 | }; |
93 | 95 | ||
94 | class ODateBookMonthPrivate; | 96 | class ODateBookMonthPrivate; |
95 | class ODateBookMonth : public QVBox | 97 | class ODateBookMonth : public QVBox |
96 | { | 98 | { |
97 | Q_OBJECT | 99 | Q_OBJECT |
98 | 100 | ||
99 | public: | 101 | public: |
100 | /* ac = Auto Close */ | 102 | /* ac = Auto Close */ |
101 | ODateBookMonth( QWidget *parent = 0, const char *name = 0, bool ac = FALSE, | 103 | ODateBookMonth( QWidget *parent = 0, const char *name = 0, bool ac = FALSE, |
102 | DateBookDBHoliday *data = 0 ); | 104 | DateBookDBHoliday *data = 0 ); |
103 | virtual ~ODateBookMonth(); | 105 | virtual ~ODateBookMonth(); |
104 | QDate selectedDate() const; | 106 | QDate selectedDate() const; |
105 | 107 | ||
106 | signals: | 108 | signals: |
107 | /* ### FIXME add a signal with QDate -zecke */ | 109 | /* ### FIXME add a signal with QDate -zecke */ |
108 | void dateClicked( int year, int month, int day ); | 110 | void dateClicked( int year, int month, int day ); |
109 | 111 | ||