-rw-r--r-- | korganizer/koagendaview.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/korganizer/koagendaview.h b/korganizer/koagendaview.h index 3cf938f..01d74a1 100644 --- a/korganizer/koagendaview.h +++ b/korganizer/koagendaview.h | |||
@@ -141,66 +141,69 @@ class KOAgendaView : public KOEventView { | |||
141 | KOAgenda *agenda() { return mAgenda;} | 141 | KOAgenda *agenda() { return mAgenda;} |
142 | virtual void printPreview(CalPrinter *calPrinter, | 142 | virtual void printPreview(CalPrinter *calPrinter, |
143 | const QDate &, const QDate &); | 143 | const QDate &, const QDate &); |
144 | 144 | ||
145 | /** start-datetime of selection */ | 145 | /** start-datetime of selection */ |
146 | QDateTime selectionStart() {return mTimeSpanBegin;} | 146 | QDateTime selectionStart() {return mTimeSpanBegin;} |
147 | /** end-datetime of selection */ | 147 | /** end-datetime of selection */ |
148 | QDateTime selectionEnd() {return mTimeSpanEnd;} | 148 | QDateTime selectionEnd() {return mTimeSpanEnd;} |
149 | /** returns true if selection is for whole day */ | 149 | /** returns true if selection is for whole day */ |
150 | bool selectedIsAllDay() {return mTimeSpanInAllDay;} | 150 | bool selectedIsAllDay() {return mTimeSpanInAllDay;} |
151 | /** make selected start/end invalid */ | 151 | /** make selected start/end invalid */ |
152 | void deleteSelectedDateTime(); | 152 | void deleteSelectedDateTime(); |
153 | void repaintAgenda(); | 153 | void repaintAgenda(); |
154 | public slots: | 154 | public slots: |
155 | virtual void updateView(); | 155 | virtual void updateView(); |
156 | virtual void updateConfig(); | 156 | virtual void updateConfig(); |
157 | virtual void showDates(const QDate &start, const QDate &end); | 157 | virtual void showDates(const QDate &start, const QDate &end); |
158 | virtual void showEvents(QPtrList<Event> eventList); | 158 | virtual void showEvents(QPtrList<Event> eventList); |
159 | 159 | ||
160 | void updateTodo( Todo *, int ); | 160 | void updateTodo( Todo *, int ); |
161 | void changeEventDisplay(Event *, int); | 161 | void changeEventDisplay(Event *, int); |
162 | 162 | ||
163 | void clearSelection(); | 163 | void clearSelection(); |
164 | 164 | ||
165 | void newTodo(int gx,int gy); | ||
165 | void newEvent(int gx,int gy); | 166 | void newEvent(int gx,int gy); |
166 | void newEvent(int gxStart, int gyStart, int gxEnd, int gyEnd); | 167 | void newEvent(int gxStart, int gyStart, int gxEnd, int gyEnd); |
167 | void newEventAllDay(int gx, int gy); | 168 | void newEventAllDay(int gx, int gy); |
169 | void newTodoAllDay(int gx, int gy); | ||
168 | 170 | ||
169 | void startDrag(Event *); | 171 | void startDrag(Event *); |
170 | 172 | ||
171 | void readSettings(); | 173 | void readSettings(); |
172 | void readSettings(KConfig *); | 174 | void readSettings(KConfig *); |
173 | void writeSettings(KConfig *); | 175 | void writeSettings(KConfig *); |
174 | 176 | ||
175 | void setContentsPos(int y); | 177 | void setContentsPos(int y); |
176 | 178 | ||
177 | void setExpandedButton( bool expanded ); | 179 | void setExpandedButton( bool expanded ); |
178 | void scrollOneHourUp(); | 180 | void scrollOneHourUp(); |
179 | void scrollOneHourDown(); | 181 | void scrollOneHourDown(); |
180 | void addToCalSlot(Incidence *, Incidence *); | 182 | void addToCalSlot(Incidence *, Incidence *); |
181 | 183 | ||
182 | signals: | 184 | signals: |
185 | void newTodoSignal( QDateTime ,bool ); | ||
183 | void toggleExpand(); | 186 | void toggleExpand(); |
184 | void todoMoved( Todo *, int ); | 187 | void todoMoved( Todo *, int ); |
185 | void incidenceChanged(Incidence * , int ); | 188 | void incidenceChanged(Incidence * , int ); |
186 | // void cloneIncidenceSignal(Incidence *); | 189 | // void cloneIncidenceSignal(Incidence *); |
187 | 190 | ||
188 | protected: | 191 | protected: |
189 | bool mBlockUpdating; | 192 | bool mBlockUpdating; |
190 | int mUpcomingWidth; | 193 | int mUpcomingWidth; |
191 | /** Fill agenda beginning with date startDate */ | 194 | /** Fill agenda beginning with date startDate */ |
192 | void fillAgenda(const QDate &startDate); | 195 | void fillAgenda(const QDate &startDate); |
193 | void resizeEvent( QResizeEvent* e ); | 196 | void resizeEvent( QResizeEvent* e ); |
194 | /** Fill agenda using the current set value for the start date */ | 197 | /** Fill agenda using the current set value for the start date */ |
195 | void fillAgenda(); | 198 | void fillAgenda(); |
196 | 199 | ||
197 | /** Create labels for the selected dates. */ | 200 | /** Create labels for the selected dates. */ |
198 | void createDayLabels(); | 201 | void createDayLabels(); |
199 | 202 | ||
200 | /** | 203 | /** |
201 | Set the masks on the agenda widgets indicating, which days are holidays. | 204 | Set the masks on the agenda widgets indicating, which days are holidays. |
202 | */ | 205 | */ |
203 | void setHolidayMasks(); | 206 | void setHolidayMasks(); |
204 | 207 | ||
205 | protected slots: | 208 | protected slots: |
206 | /** Update event belonging to agenda item */ | 209 | /** Update event belonging to agenda item */ |