-rw-r--r-- | korganizer/kdatenavigator.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/korganizer/kdatenavigator.h b/korganizer/kdatenavigator.h index 0aeb77a..56822fa 100644 --- a/korganizer/kdatenavigator.h +++ b/korganizer/kdatenavigator.h | |||
@@ -54,25 +54,25 @@ class KDateNavigator: public QFrame | |||
54 | * With FollowMonth, it has the same effect | 54 | * With FollowMonth, it has the same effect |
55 | * as FollowDay but also adjusts the month that is | 55 | * as FollowDay but also adjusts the month that is |
56 | * visible and emits monthPassed() when the month changes. | 56 | * visible and emits monthPassed() when the month changes. |
57 | */ | 57 | */ |
58 | enum RolloverType { None, FollowDay, FollowMonth } ; | 58 | enum RolloverType { None, FollowDay, FollowMonth } ; |
59 | void enableRollover( RolloverType ); | 59 | void enableRollover( RolloverType ); |
60 | 60 | ||
61 | void setShowWeekNums( bool enabled ); | 61 | void setShowWeekNums( bool enabled ); |
62 | void setCalendar( Calendar * ); | 62 | void setCalendar( Calendar * ); |
63 | void setBaseDate( const QDate & ); | 63 | void setBaseDate( const QDate & ); |
64 | KCal::DateList selectedDates() const { return mSelectedDates; } | 64 | KCal::DateList selectedDates() const { return mSelectedDates; } |
65 | NavigatorBar *navigatorBar() const { return mNavigatorBar; } | 65 | NavigatorBar *navigatorBar() const { return mNavigatorBar; } |
66 | 66 | void setMonthSignalOffset ( int off ) { mMonthSignalOffset = off;} | |
67 | public slots: | 67 | public slots: |
68 | void selectDates( const KCal::DateList & ); | 68 | void selectDates( const KCal::DateList & ); |
69 | void updateView(); | 69 | void updateView(); |
70 | void updateConfig(); | 70 | void updateConfig(); |
71 | void updateDayMatrix(); | 71 | void updateDayMatrix(); |
72 | 72 | ||
73 | signals: | 73 | signals: |
74 | void datesSelected( const KCal::DateList & ); | 74 | void datesSelected( const KCal::DateList & ); |
75 | void eventDropped( Event * ); | 75 | void eventDropped( Event * ); |
76 | void weekClicked( const QDate &); | 76 | void weekClicked( const QDate &); |
77 | 77 | ||
78 | void goPrevious(); | 78 | void goPrevious(); |
@@ -96,33 +96,34 @@ class KDateNavigator: public QFrame | |||
96 | * if you leave KOrganizer idle for long periods of time. | 96 | * if you leave KOrganizer idle for long periods of time. |
97 | * | 97 | * |
98 | * Until we have a reliable way of setting QTimers to go | 98 | * Until we have a reliable way of setting QTimers to go |
99 | * off at a particular wall-clock time, we need this, | 99 | * off at a particular wall-clock time, we need this, |
100 | * which calls passedMidnight() at the right moments. | 100 | * which calls passedMidnight() at the right moments. |
101 | */ | 101 | */ |
102 | void possiblyPastMidnight(); | 102 | void possiblyPastMidnight(); |
103 | 103 | ||
104 | /** handles updating the view when midnight has come by due to idle time. | 104 | /** handles updating the view when midnight has come by due to idle time. |
105 | * | 105 | * |
106 | */ | 106 | */ |
107 | void passedMidnight(); | 107 | void passedMidnight(); |
108 | 108 | void slotMonthSelected( int m ); | |
109 | protected: | 109 | protected: |
110 | void updateDates(); | 110 | void updateDates(); |
111 | 111 | ||
112 | void wheelEvent (QWheelEvent *); | 112 | void wheelEvent (QWheelEvent *); |
113 | 113 | ||
114 | bool eventFilter (QObject *,QEvent *); | 114 | bool eventFilter (QObject *,QEvent *); |
115 | 115 | ||
116 | private: | 116 | private: |
117 | int mMonthSignalOffset; | ||
117 | NavigatorBar *mNavigatorBar; | 118 | NavigatorBar *mNavigatorBar; |
118 | 119 | ||
119 | QFrame *headingSep; | 120 | QFrame *headingSep; |
120 | QFrame *weeknumSep; | 121 | QFrame *weeknumSep; |
121 | QLabel *headings[7]; | 122 | QLabel *headings[7]; |
122 | QLabel *weeknos[7]; | 123 | QLabel *weeknos[7]; |
123 | KODayMatrix *daymatrix; | 124 | KODayMatrix *daymatrix; |
124 | 125 | ||
125 | KCal::DateList mSelectedDates; | 126 | KCal::DateList mSelectedDates; |
126 | QDate m_MthYr; | 127 | QDate m_MthYr; |
127 | int m_fstDayOfWk; | 128 | int m_fstDayOfWk; |
128 | bool m_bShowWeekNums; | 129 | bool m_bShowWeekNums; |