summaryrefslogtreecommitdiffabout
path: root/korganizer/komonthview.h
Unidiff
Diffstat (limited to 'korganizer/komonthview.h') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/komonthview.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/korganizer/komonthview.h b/korganizer/komonthview.h
index b79a41f..f92a69a 100644
--- a/korganizer/komonthview.h
+++ b/korganizer/komonthview.h
@@ -181,97 +181,97 @@ class MonthViewCell : public QWidget
181 private: 181 private:
182 KOMonthView *mMonthView; 182 KOMonthView *mMonthView;
183 183
184 QDate mDate; 184 QDate mDate;
185 bool mPrimary; 185 bool mPrimary;
186 bool mHoliday; 186 bool mHoliday;
187 QString mHolidayString; 187 QString mHolidayString;
188 188
189 //QLabel *mLabel; 189 //QLabel *mLabel;
190 QPushButton *mLabel; 190 QPushButton *mLabel;
191 QListBox *mItemList; 191 QListBox *mItemList;
192#ifdef DESKTOP_VERSION 192#ifdef DESKTOP_VERSION
193 static QToolTipGroup *mToolTipGroup; 193 static QToolTipGroup *mToolTipGroup;
194#endif 194#endif
195 QSize mLabelSize; 195 QSize mLabelSize;
196 QSize mLabelBigSize; 196 QSize mLabelBigSize;
197 QPalette mHolidayPalette; 197 QPalette mHolidayPalette;
198 QPalette mStandardPalette; 198 QPalette mStandardPalette;
199 QPalette mPrimaryPalette; 199 QPalette mPrimaryPalette;
200 QPalette mNonPrimaryPalette; 200 QPalette mNonPrimaryPalette;
201 void setMyPalette(); 201 void setMyPalette();
202 QPalette getPalette (); 202 QPalette getPalette ();
203 void keyPressEvent ( QKeyEvent * ) ; 203 void keyPressEvent ( QKeyEvent * ) ;
204 204
205}; 205};
206 206
207 207
208class KOMonthView: public KOEventView 208class KOMonthView: public KOEventView
209{ 209{
210 Q_OBJECT 210 Q_OBJECT
211 public: 211 public:
212 KOMonthView(Calendar *cal, QWidget *parent = 0, const char *name = 0 ); 212 KOMonthView(Calendar *cal, QWidget *parent = 0, const char *name = 0 );
213 ~KOMonthView(); 213 ~KOMonthView();
214 214
215 /** Returns maximum number of days supported by the komonthview */ 215 /** Returns maximum number of days supported by the komonthview */
216 virtual int maxDatesHint(); 216 virtual int maxDatesHint();
217 217
218 /** Returns number of currently shown dates. */ 218 /** Returns number of currently shown dates. */
219 virtual int currentDateCount(); 219 virtual int currentDateCount();
220 220
221 /** returns the currently selected events */ 221 /** returns the currently selected events */
222 virtual QPtrList<Incidence> selectedIncidences(); 222 virtual QPtrList<Incidence> selectedIncidences();
223 223
224 /** returns dates of the currently selected events */ 224 /** returns dates of the currently selected events */
225 virtual DateList selectedDates(); 225 virtual DateList selectedDates();
226 226
227 virtual void printPreview(CalPrinter *calPrinter, 227 virtual void printPreview(CalPrinter *calPrinter,
228 const QDate &, const QDate &); 228 const QDate &, const QDate &);
229 bool isMonthView() { return true; } 229 bool isMonthView() { return !mShowWeekView; }
230 bool isUpdatePossible() { return updatePossible; } 230 bool isUpdatePossible() { return updatePossible; }
231 231
232 MonthViewCell * selectedCell(); 232 MonthViewCell * selectedCell();
233 bool skipResize; 233 bool skipResize;
234 NavigatorBar* navigatorBar() { return mNavigatorBar ;} 234 NavigatorBar* navigatorBar() { return mNavigatorBar ;}
235 public slots: 235 public slots:
236 virtual void updateView(); 236 virtual void updateView();
237 virtual void updateConfig(); 237 virtual void updateConfig();
238 virtual void showDates(const QDate &start, const QDate &end); 238 virtual void showDates(const QDate &start, const QDate &end);
239 virtual void showEvents(QPtrList<Event> eventList); 239 virtual void showEvents(QPtrList<Event> eventList);
240 240
241 void changeEventDisplay(Event *, int); 241 void changeEventDisplay(Event *, int);
242 242
243 void clearSelection(); 243 void clearSelection();
244 244
245 void showContextMenu( Incidence * ); 245 void showContextMenu( Incidence * );
246 246
247 void setSelectedCell( MonthViewCell * ); 247 void setSelectedCell( MonthViewCell * );
248 void switchView(); 248 void switchView();
249 249
250 protected slots: 250 protected slots:
251 void selectInternalWeekNum ( int ); 251 void selectInternalWeekNum ( int );
252 void processSelectionChange(); 252 void processSelectionChange();
253 signals: 253 signals:
254 void nextMonth(); 254 void nextMonth();
255 void prevMonth(); 255 void prevMonth();
256 void selectWeekNum ( int ); 256 void selectWeekNum ( int );
257 void selectMonth (); 257 void selectMonth ();
258 void showDaySignal( QDate ); 258 void showDaySignal( QDate );
259 protected: 259 protected:
260 void resizeEvent(QResizeEvent *); 260 void resizeEvent(QResizeEvent *);
261 void viewChanged(); 261 void viewChanged();
262 void updateDayLabels(); 262 void updateDayLabels();
263 263
264 private: 264 private:
265 NavigatorBar* mNavigatorBar; 265 NavigatorBar* mNavigatorBar;
266 int currentWeek(); 266 int currentWeek();
267 bool clPending; 267 bool clPending;
268 QWidgetStack * mWidStack; 268 QWidgetStack * mWidStack;
269 QWidget* mMonthView; 269 QWidget* mMonthView;
270 QWidget* mWeekView; 270 QWidget* mWeekView;
271 bool mShowWeekView; 271 bool mShowWeekView;
272 bool updatePossible; 272 bool updatePossible;
273 int mDaysPerWeek; 273 int mDaysPerWeek;
274 int mNumWeeks; 274 int mNumWeeks;
275 int mNumCells; 275 int mNumCells;
276 bool mWeekStartsMonday; 276 bool mWeekStartsMonday;
277 bool mShowSatSunComp; 277 bool mShowSatSunComp;