-rw-r--r-- | korganizer/kodaymatrix.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/korganizer/kodaymatrix.h b/korganizer/kodaymatrix.h index 2dd112a..ba4853f 100644 --- a/korganizer/kodaymatrix.h +++ b/korganizer/kodaymatrix.h | |||
@@ -114,13 +114,14 @@ public: | |||
114 | * be a KDateNavigator | 114 | * be a KDateNavigator |
115 | * @param calendar instance of a calendar on which all calculations are based | 115 | * @param calendar instance of a calendar on which all calculations are based |
116 | * @param date start date of the matrix (is expected to be already fixed). It is | 116 | * @param date start date of the matrix (is expected to be already fixed). It is |
117 | * assumed that this date is the first week day to be shown in the matrix. | 117 | * assumed that this date is the first week day to be shown in the matrix. |
118 | * @param name name of the widget | 118 | * @param name name of the widget |
119 | */ | 119 | */ |
120 | KODayMatrix(QWidget *parent, Calendar* calendar, QDate date, const char *name ); | 120 | KODayMatrix( QWidget *parent, const char *name ); |
121 | //KODayMatrix(QWidget *parent, Calendar* calendar, QDate date, const char *name ); | ||
121 | 122 | ||
122 | /** destructor that deallocates all dynamically allocated private members. | 123 | /** destructor that deallocates all dynamically allocated private members. |
123 | */ | 124 | */ |
124 | ~KODayMatrix(); | 125 | ~KODayMatrix(); |
125 | 126 | ||
126 | /** updates the day matrix to start with the given date. Does all the necessary | 127 | /** updates the day matrix to start with the given date. Does all the necessary |
@@ -128,18 +129,19 @@ public: | |||
128 | * Does NOT update the view visually. Call repaint() for this. | 129 | * Does NOT update the view visually. Call repaint() for this. |
129 | * | 130 | * |
130 | * @param actdate recalculates the day matrix to show NUMDAYS starting from this | 131 | * @param actdate recalculates the day matrix to show NUMDAYS starting from this |
131 | * date. | 132 | * date. |
132 | */ | 133 | */ |
133 | void updateView(QDate actdate); | 134 | void updateView(QDate actdate); |
135 | void updateEvents(); | ||
134 | 136 | ||
135 | /** returns the QDate object associated with day indexed by the | 137 | /** returns the QDate object associated with day indexed by the |
136 | * supplied offset. | 138 | * supplied offset. |
137 | */ | 139 | */ |
138 | const QDate& getDate(int offset); | 140 | const QDate& getDate(int offset); |
139 | 141 | void setCalendar( Calendar * ); | |
140 | /** returns the official name of this holy day or 0 if there is no label | 142 | /** returns the official name of this holy day or 0 if there is no label |
141 | * for this day. | 143 | * for this day. |
142 | */ | 144 | */ |
143 | QString getHolidayLabel(int offset); | 145 | QString getHolidayLabel(int offset); |
144 | 146 | ||
145 | /** adds all actual selected days from mSelStart to mSelEnd to the supplied | 147 | /** adds all actual selected days from mSelStart to mSelEnd to the supplied |
@@ -149,13 +151,13 @@ public: | |||
149 | 151 | ||
150 | /** sets the actual to be displayed selection in the day matrix starting from | 152 | /** sets the actual to be displayed selection in the day matrix starting from |
151 | * start and ending with end. Theview must be manually updated by calling | 153 | * start and ending with end. Theview must be manually updated by calling |
152 | * repaint. (?) | 154 | * repaint. (?) |
153 | */ | 155 | */ |
154 | void setSelectedDaysFrom(const QDate& start, const QDate& end); | 156 | void setSelectedDaysFrom(const QDate& start, const QDate& end); |
155 | 157 | void clearSelection(); | |
156 | 158 | ||
157 | /** Is today visible in the view? Keep this in sync with | 159 | /** Is today visible in the view? Keep this in sync with |
158 | * the values today (below) can take. | 160 | * the values today (below) can take. |
159 | */ | 161 | */ |
160 | bool isTodayVisible() const { return today>=0; } ; | 162 | bool isTodayVisible() const { return today>=0; } ; |
161 | 163 | ||