-rw-r--r-- | korganizer/komonthview.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/korganizer/komonthview.h b/korganizer/komonthview.h index 9e724c7..c1ca3d4 100644 --- a/korganizer/komonthview.h +++ b/korganizer/komonthview.h | |||
@@ -52,24 +52,29 @@ class KOWeekButton : public QPushButton | |||
52 | QPushButton( parent, name) | 52 | QPushButton( parent, name) |
53 | { | 53 | { |
54 | connect( this, SIGNAL( clicked() ), | 54 | connect( this, SIGNAL( clicked() ), |
55 | SLOT( bottonClicked() )); | 55 | SLOT( bottonClicked() )); |
56 | mNumber = -1; | 56 | mNumber = -1; |
57 | } | 57 | } |
58 | void setWeekNum ( int num ) {mNumber = num; setText( QString::number ( num ));} | 58 | void setWeekNum ( int num ) {mNumber = num; setText( QString::number ( num ));} |
59 | int getWeekNum() { return mNumber;} | 59 | int getWeekNum() { return mNumber;} |
60 | signals: | 60 | signals: |
61 | void selectWeekNum ( int ); | 61 | void selectWeekNum ( int ); |
62 | private: | 62 | private: |
63 | int mNumber; | 63 | int mNumber; |
64 | void keyPressEvent ( QKeyEvent * e ) | ||
65 | { | ||
66 | e->ignore(); | ||
67 | } | ||
68 | |||
64 | private slots : | 69 | private slots : |
65 | void bottonClicked() { if ( mNumber > 0 ) emit selectWeekNum ( mNumber ); } | 70 | void bottonClicked() { if ( mNumber > 0 ) emit selectWeekNum ( mNumber ); } |
66 | }; | 71 | }; |
67 | 72 | ||
68 | class KNoScrollListBox: public QListBox | 73 | class KNoScrollListBox: public QListBox |
69 | { | 74 | { |
70 | Q_OBJECT | 75 | Q_OBJECT |
71 | public: | 76 | public: |
72 | KNoScrollListBox(QWidget *parent=0, const char *name=0); | 77 | KNoScrollListBox(QWidget *parent=0, const char *name=0); |
73 | ~KNoScrollListBox(); | 78 | ~KNoScrollListBox(); |
74 | QString getWhatsThisText(QPoint p) ; | 79 | QString getWhatsThisText(QPoint p) ; |
75 | 80 | ||
@@ -154,25 +159,24 @@ class MonthViewCell : public KNoScrollListBox | |||
154 | void insertTodo(Todo *); | 159 | void insertTodo(Todo *); |
155 | 160 | ||
156 | void updateConfig( bool bigFont = false ); | 161 | void updateConfig( bool bigFont = false ); |
157 | 162 | ||
158 | void enableScrollBars( bool ); | 163 | void enableScrollBars( bool ); |
159 | 164 | ||
160 | Incidence *selectedIncidence(); | 165 | Incidence *selectedIncidence(); |
161 | QDate selectedIncidenceDate(); | 166 | QDate selectedIncidenceDate(); |
162 | QPushButton * dateLabel() { return mLabel; } | 167 | QPushButton * dateLabel() { return mLabel; } |
163 | 168 | ||
164 | void deselect(); | 169 | void deselect(); |
165 | void select(); | 170 | void select(); |
166 | |||
167 | #ifdef DESKTOP_VERSION | 171 | #ifdef DESKTOP_VERSION |
168 | static QToolTipGroup *toolTipGroup(); | 172 | static QToolTipGroup *toolTipGroup(); |
169 | #endif | 173 | #endif |
170 | signals: | 174 | signals: |
171 | void defaultAction( Incidence * ); | 175 | void defaultAction( Incidence * ); |
172 | void newEventSignal( QDateTime ); | 176 | void newEventSignal( QDateTime ); |
173 | void showDaySignal( QDate ); | 177 | void showDaySignal( QDate ); |
174 | 178 | ||
175 | protected: | 179 | protected: |
176 | QStringList mToolTip; | 180 | QStringList mToolTip; |
177 | void resizeEvent( QResizeEvent * ); | 181 | void resizeEvent( QResizeEvent * ); |
178 | 182 | ||
@@ -248,24 +252,26 @@ class KOMonthView: public KOEventView | |||
248 | virtual void updateConfig(); | 252 | virtual void updateConfig(); |
249 | virtual void showDates(const QDate &start, const QDate &end); | 253 | virtual void showDates(const QDate &start, const QDate &end); |
250 | virtual void showEvents(QPtrList<Event> eventList); | 254 | virtual void showEvents(QPtrList<Event> eventList); |
251 | 255 | ||
252 | void changeEventDisplay(Event *, int); | 256 | void changeEventDisplay(Event *, int); |
253 | 257 | ||
254 | void clearSelection(); | 258 | void clearSelection(); |
255 | 259 | ||
256 | void showContextMenu( Incidence * ); | 260 | void showContextMenu( Incidence * ); |
257 | 261 | ||
258 | void setSelectedCell( MonthViewCell * ); | 262 | void setSelectedCell( MonthViewCell * ); |
259 | void switchView(); | 263 | void switchView(); |
264 | void setKeyBoardFocus(); | ||
265 | void setKeyBFocus(); | ||
260 | 266 | ||
261 | protected slots: | 267 | protected slots: |
262 | void slotComputeLayout(); | 268 | void slotComputeLayout(); |
263 | void selectInternalWeekNum ( int ); | 269 | void selectInternalWeekNum ( int ); |
264 | void processSelectionChange(); | 270 | void processSelectionChange(); |
265 | signals: | 271 | signals: |
266 | void nextMonth(); | 272 | void nextMonth(); |
267 | void prevMonth(); | 273 | void prevMonth(); |
268 | void selectWeekNum ( int ); | 274 | void selectWeekNum ( int ); |
269 | void selectMonth (); | 275 | void selectMonth (); |
270 | void showDaySignal( QDate ); | 276 | void showDaySignal( QDate ); |
271 | protected: | 277 | protected: |