Diffstat (limited to 'korganizer/datenavigatorcontainer.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | korganizer/datenavigatorcontainer.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/korganizer/datenavigatorcontainer.h b/korganizer/datenavigatorcontainer.h index d5e5adf..df8efae 100644 --- a/korganizer/datenavigatorcontainer.h +++ b/korganizer/datenavigatorcontainer.h | |||
@@ -34,64 +34,66 @@ using namespace KCal; | |||
34 | class DateNavigatorContainer: public QWidget | 34 | class DateNavigatorContainer: public QWidget |
35 | { | 35 | { |
36 | Q_OBJECT | 36 | Q_OBJECT |
37 | public: | 37 | public: |
38 | DateNavigatorContainer( QWidget *parent = 0, const char *name = 0 ); | 38 | DateNavigatorContainer( QWidget *parent = 0, const char *name = 0 ); |
39 | ~DateNavigatorContainer(); | 39 | ~DateNavigatorContainer(); |
40 | 40 | ||
41 | /** | 41 | /** |
42 | Associate date navigator with a calendar. It is used by KODayMatrix. | 42 | Associate date navigator with a calendar. It is used by KODayMatrix. |
43 | */ | 43 | */ |
44 | void setCalendar( Calendar * ); | 44 | void setCalendar( Calendar * ); |
45 | 45 | ||
46 | QSize minimumSizeHint() const; | 46 | QSize minimumSizeHint() const; |
47 | QSize sizeHint() const; | 47 | QSize sizeHint() const; |
48 | KDateNavigator * navigatorView() { return mNavigatorView;} | 48 | KDateNavigator * navigatorView() { return mNavigatorView;} |
49 | QDate lastAvailableDate() const ; | 49 | QDate lastAvailableDate() const ; |
50 | QDate firstAvailableDate() const ; | 50 | QDate firstAvailableDate() const ; |
51 | 51 | ||
52 | public slots: | 52 | public slots: |
53 | void selectDates( const KCal::DateList & ); | 53 | void selectDates( const KCal::DateList & ); |
54 | void updateView(); | 54 | void updateView(); |
55 | void updateConfig(); | 55 | void updateConfig(); |
56 | void updateDayMatrix(); | 56 | void updateDayMatrix(); |
57 | void updateDayMatrixDates(); | 57 | void updateDayMatrixDates(); |
58 | void checkUpdateDayMatrixDates(); | ||
58 | void updateToday(); | 59 | void updateToday(); |
59 | void slotMonthSelected( int month ); | 60 | void slotMonthSelected( int month ); |
60 | 61 | ||
61 | signals: | 62 | signals: |
62 | void datesSelected( const KCal::DateList & ); | 63 | void datesSelected( const KCal::DateList & ); |
63 | void incidenceDropped( Incidence *, const QDate & ); | 64 | void incidenceDropped( Incidence *, const QDate & ); |
64 | void incidenceDroppedMove( Incidence *, const QDate & ); | 65 | void incidenceDroppedMove( Incidence *, const QDate & ); |
65 | void weekClicked( const QDate &); | 66 | void weekClicked( const QDate &); |
66 | 67 | ||
67 | void goPrevious(); | 68 | void goPrevious(); |
68 | void goNext(); | 69 | void goNext(); |
69 | 70 | ||
70 | void goNextMonth(); | 71 | void goNextMonth(); |
71 | void goPrevMonth(); | 72 | void goPrevMonth(); |
72 | void goNextYear(); | 73 | void goNextYear(); |
73 | void goPrevYear(); | 74 | void goPrevYear(); |
74 | 75 | ||
75 | void monthSelected( int month ); | 76 | void monthSelected( int month ); |
76 | 77 | ||
77 | protected: | 78 | protected: |
78 | void resizeEvent( QResizeEvent * ); | 79 | void resizeEvent( QResizeEvent * ); |
79 | 80 | ||
80 | void setBaseDates(); | 81 | void setBaseDates(); |
81 | void connectNavigatorView( KDateNavigator *v ); | 82 | void connectNavigatorView( KDateNavigator *v ); |
82 | 83 | ||
83 | private: | 84 | private: |
85 | QTimer* mUpdateTimer; | ||
84 | int mLastDisplayedDN; | 86 | int mLastDisplayedDN; |
85 | QDate mFirstSelectedDate; | 87 | QDate mFirstSelectedDate; |
86 | int mSelectedDateCount; | 88 | int mSelectedDateCount; |
87 | KDateNavigator *mNavigatorView; | 89 | KDateNavigator *mNavigatorView; |
88 | 90 | ||
89 | KCal::Calendar *mCalendar; | 91 | KCal::Calendar *mCalendar; |
90 | 92 | ||
91 | QPtrList<KDateNavigator> mExtraViews; | 93 | QPtrList<KDateNavigator> mExtraViews; |
92 | 94 | ||
93 | int mHorizontalCount; | 95 | int mHorizontalCount; |
94 | int mVerticalCount; | 96 | int mVerticalCount; |
95 | }; | 97 | }; |
96 | 98 | ||
97 | #endif | 99 | #endif |