-rw-r--r-- | korganizer/komonthview.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/korganizer/komonthview.h b/korganizer/komonthview.h index 51eb9e6..9dbe319 100644 --- a/korganizer/komonthview.h +++ b/korganizer/komonthview.h | |||
@@ -223,12 +223,13 @@ class KOMonthView: public KOEventView | |||
223 | virtual DateList selectedDates(); | 223 | virtual DateList selectedDates(); |
224 | 224 | ||
225 | virtual void printPreview(CalPrinter *calPrinter, | 225 | virtual void printPreview(CalPrinter *calPrinter, |
226 | const QDate &, const QDate &); | 226 | const QDate &, const QDate &); |
227 | bool isMonthView() { return true; } | 227 | bool isMonthView() { return true; } |
228 | bool isUpdatePossible() { return updatePossible; } | 228 | bool isUpdatePossible() { return updatePossible; } |
229 | void setIgnoreResizeEvent( int c ) { ignoreResizeEvent = c ;} | ||
229 | 230 | ||
230 | MonthViewCell * selectedCell(); | 231 | MonthViewCell * selectedCell(); |
231 | public slots: | 232 | public slots: |
232 | virtual void updateView(); | 233 | virtual void updateView(); |
233 | virtual void updateConfig(); | 234 | virtual void updateConfig(); |
234 | virtual void showDates(const QDate &start, const QDate &end); | 235 | virtual void showDates(const QDate &start, const QDate &end); |
@@ -255,35 +256,36 @@ class KOMonthView: public KOEventView | |||
255 | protected: | 256 | protected: |
256 | void resizeEvent(QResizeEvent *); | 257 | void resizeEvent(QResizeEvent *); |
257 | void viewChanged(); | 258 | void viewChanged(); |
258 | void updateDayLabels(); | 259 | void updateDayLabels(); |
259 | 260 | ||
260 | private: | 261 | private: |
262 | int ignoreResizeEvent; | ||
261 | int currentWeek(); | 263 | int currentWeek(); |
262 | bool clPending; | 264 | bool clPending; |
263 | QWidgetStack * mWidStack; | 265 | QWidgetStack * mWidStack; |
264 | QWidget* mMonthView; | 266 | QWidget* mMonthView; |
265 | QWidget* mWeekView; | 267 | QWidget* mWeekView; |
266 | bool mShowWeekView; | 268 | bool mShowWeekView; |
267 | bool updatePossible; | 269 | bool updatePossible; |
268 | int mDaysPerWeek; | 270 | int mDaysPerWeek; |
269 | int mNumWeeks; | 271 | int mNumWeeks; |
270 | int mNumCells; | 272 | int mNumCells; |
271 | bool mWeekStartsMonday; | 273 | bool mWeekStartsMonday; |
272 | bool mShowSatSunComp; | ||
273 | void computeLayout(); | 274 | void computeLayout(); |
274 | void computeLayoutWeek(); | 275 | void computeLayoutWeek(); |
275 | 276 | ||
276 | QPtrVector<MonthViewCell> mCells; | 277 | QPtrVector<MonthViewCell> mCells; |
277 | QPtrVector<QLabel> mDayLabels; | 278 | QPtrVector<QLabel> mDayLabels; |
278 | QPtrVector<KOWeekButton> mWeekLabels; | 279 | QPtrVector<KOWeekButton> mWeekLabels; |
279 | QPtrVector<MonthViewCell> mCellsW; | 280 | QPtrVector<MonthViewCell> mCellsW; |
280 | QPtrVector<QLabel> mDayLabelsW; | 281 | QPtrVector<QLabel> mDayLabelsW; |
281 | QPtrVector<KOWeekButton> mWeekLabelsW; | 282 | QPtrVector<KOWeekButton> mWeekLabelsW; |
282 | 283 | ||
283 | bool mShortDayLabels; | 284 | bool mShortDayLabelsM; |
285 | bool mShortDayLabelsW; | ||
284 | int mWidthLongDayLabel; | 286 | int mWidthLongDayLabel; |
285 | 287 | ||
286 | QDate mStartDate; | 288 | QDate mStartDate; |
287 | 289 | ||
288 | MonthViewCell *mSelectedCell; | 290 | MonthViewCell *mSelectedCell; |
289 | 291 | ||