author | zautrix <zautrix> | 2005-06-16 11:32:35 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-16 11:32:35 (UTC) |
commit | c0384f1ed99f108d7b2120900ff7d7f090ad6250 (patch) (unidiff) | |
tree | 9a02c76a023c6dd94273b21dc9d3621549790d55 /korganizer/calendarview.h | |
parent | 9f60da2b6768e94d2aeb2f94a4479b6678f2aa76 (diff) | |
download | kdepimpi-c0384f1ed99f108d7b2120900ff7d7f090ad6250.zip kdepimpi-c0384f1ed99f108d7b2120900ff7d7f090ad6250.tar.gz kdepimpi-c0384f1ed99f108d7b2120900ff7d7f090ad6250.tar.bz2 |
fixxxx
-rw-r--r-- | korganizer/calendarview.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/korganizer/calendarview.h b/korganizer/calendarview.h index d836fee..be18e8f 100644 --- a/korganizer/calendarview.h +++ b/korganizer/calendarview.h | |||
@@ -101,192 +101,193 @@ class MissedAlarmTextBrowser : public QTextBrowser { | |||
101 | }; | 101 | }; |
102 | 102 | ||
103 | 103 | ||
104 | class CalendarView : public KOrg::CalendarViewBase, public KCal::Calendar::Observer, public KSyncInterface | 104 | class CalendarView : public KOrg::CalendarViewBase, public KCal::Calendar::Observer, public KSyncInterface |
105 | { | 105 | { |
106 | Q_OBJECT | 106 | Q_OBJECT |
107 | public: | 107 | public: |
108 | /** | 108 | /** |
109 | Constructs a new calendar view widget. | 109 | Constructs a new calendar view widget. |
110 | 110 | ||
111 | @param calendar calendar document | 111 | @param calendar calendar document |
112 | @param parent parent window | 112 | @param parent parent window |
113 | @param name Qt internal widget object name | 113 | @param name Qt internal widget object name |
114 | */ | 114 | */ |
115 | CalendarView( CalendarResources *calendar, QWidget *parent = 0, | 115 | CalendarView( CalendarResources *calendar, QWidget *parent = 0, |
116 | const char *name = 0 ); | 116 | const char *name = 0 ); |
117 | CalendarView( Calendar *calendar, QWidget *parent = 0, | 117 | CalendarView( Calendar *calendar, QWidget *parent = 0, |
118 | const char *name = 0 ); | 118 | const char *name = 0 ); |
119 | virtual ~CalendarView(); | 119 | virtual ~CalendarView(); |
120 | 120 | ||
121 | Calendar *calendar() { return mCalendar; } | 121 | Calendar *calendar() { return mCalendar; } |
122 | 122 | ||
123 | KOViewManager *viewManager(); | 123 | KOViewManager *viewManager(); |
124 | KODialogManager *dialogManager(); | 124 | KODialogManager *dialogManager(); |
125 | 125 | ||
126 | QDate startDate(); | 126 | QDate startDate(); |
127 | QDate endDate(); | 127 | QDate endDate(); |
128 | 128 | ||
129 | QWidgetStack *viewStack(); | 129 | QWidgetStack *viewStack(); |
130 | QWidget *leftFrame(); | 130 | QWidget *leftFrame(); |
131 | 131 | ||
132 | DateNavigator *dateNavigator(); | 132 | DateNavigator *dateNavigator(); |
133 | KDateNavigator *dateNavigatorWidget(); | 133 | KDateNavigator *dateNavigatorWidget(); |
134 | 134 | ||
135 | void addView(KOrg::BaseView *); | 135 | void addView(KOrg::BaseView *); |
136 | void showView(KOrg::BaseView *); | 136 | void showView(KOrg::BaseView *); |
137 | KOEventViewerDialog* getEventViewerDialog(); | 137 | KOEventViewerDialog* getEventViewerDialog(); |
138 | Incidence *currentSelection(); | 138 | Incidence *currentSelection(); |
139 | 139 | ||
140 | signals: | 140 | signals: |
141 | void save (); | 141 | void save (); |
142 | void saveStopTimer (); | 142 | void saveStopTimer (); |
143 | void tempDisableBR(bool); | 143 | void tempDisableBR(bool); |
144 | /** This todo has been modified */ | 144 | /** This todo has been modified */ |
145 | void todoModified(Todo *, int); | 145 | void todoModified(Todo *, int); |
146 | 146 | ||
147 | /** when change is made to options dialog, the topwidget will catch this | 147 | /** when change is made to options dialog, the topwidget will catch this |
148 | * and emit this signal which notifies all widgets which have registered | 148 | * and emit this signal which notifies all widgets which have registered |
149 | * for notification to update their settings. */ | 149 | * for notification to update their settings. */ |
150 | void configChanged(); | 150 | void configChanged(); |
151 | /** emitted when the topwidget is closing down, so that any attached | 151 | /** emitted when the topwidget is closing down, so that any attached |
152 | child windows can also close. */ | 152 | child windows can also close. */ |
153 | void closingDown(); | 153 | void closingDown(); |
154 | /** emitted right before we die */ | 154 | /** emitted right before we die */ |
155 | void closed(QWidget *); | 155 | void closed(QWidget *); |
156 | 156 | ||
157 | /** Emitted when state of modified flag changes */ | 157 | /** Emitted when state of modified flag changes */ |
158 | void modifiedChanged(bool); | 158 | void modifiedChanged(bool); |
159 | void signalmodified(); | 159 | void signalmodified(); |
160 | 160 | ||
161 | /** Emitted when state of read-only flag changes */ | 161 | /** Emitted when state of read-only flag changes */ |
162 | void readOnlyChanged(bool); | 162 | void readOnlyChanged(bool); |
163 | 163 | ||
164 | /** Emitted when the unit of navigation changes */ | 164 | /** Emitted when the unit of navigation changes */ |
165 | void changeNavStringPrev(const QString &); | 165 | void changeNavStringPrev(const QString &); |
166 | void changeNavStringNext(const QString &); | 166 | void changeNavStringNext(const QString &); |
167 | 167 | ||
168 | /** Emitted when state of events selection has changed and user is organizer*/ | 168 | /** Emitted when state of events selection has changed and user is organizer*/ |
169 | void organizerEventsSelected(bool); | 169 | void organizerEventsSelected(bool); |
170 | /** Emitted when state of events selection has changed and user is attendee*/ | 170 | /** Emitted when state of events selection has changed and user is attendee*/ |
171 | void groupEventsSelected(bool); | 171 | void groupEventsSelected(bool); |
172 | /** | 172 | /** |
173 | Emitted when an incidence gets selected. If the selection is cleared the | 173 | Emitted when an incidence gets selected. If the selection is cleared the |
174 | signal is emitted with 0 as argument. | 174 | signal is emitted with 0 as argument. |
175 | */ | 175 | */ |
176 | void incidenceSelected( Incidence * ); | 176 | void incidenceSelected( Incidence * ); |
177 | /** Emitted, when a todoitem is selected or deselected. */ | 177 | /** Emitted, when a todoitem is selected or deselected. */ |
178 | void todoSelected( bool ); | 178 | void todoSelected( bool ); |
179 | 179 | ||
180 | /** | 180 | /** |
181 | Emitted, when clipboard content changes. Parameter indicates if paste | 181 | Emitted, when clipboard content changes. Parameter indicates if paste |
182 | is possible or not. | 182 | is possible or not. |
183 | */ | 183 | */ |
184 | void pasteEnabled(bool); | 184 | void pasteEnabled(bool); |
185 | 185 | ||
186 | /** Emitted, when the number of incoming messages has changed. */ | 186 | /** Emitted, when the number of incoming messages has changed. */ |
187 | void numIncomingChanged(int); | 187 | void numIncomingChanged(int); |
188 | 188 | ||
189 | /** Emitted, when the number of outgoing messages has changed. */ | 189 | /** Emitted, when the number of outgoing messages has changed. */ |
190 | void numOutgoingChanged(int); | 190 | void numOutgoingChanged(int); |
191 | 191 | ||
192 | /** Send status message, which can e.g. be displayed in the status bar. */ | 192 | /** Send status message, which can e.g. be displayed in the status bar. */ |
193 | void statusMessage(const QString &); | 193 | void statusMessage(const QString &); |
194 | 194 | ||
195 | void calendarViewExpanded( bool ); | 195 | void calendarViewExpanded( bool ); |
196 | void updateSearchDialog(); | 196 | void updateSearchDialog(); |
197 | void filtersUpdated(); | ||
197 | 198 | ||
198 | 199 | ||
199 | public slots: | 200 | public slots: |
200 | void checkAlarms(); | 201 | void checkAlarms(); |
201 | void slotprintSelInc(); | 202 | void slotprintSelInc(); |
202 | void showNextAlarms(); | 203 | void showNextAlarms(); |
203 | void showOpenError(); | 204 | void showOpenError(); |
204 | void watchSavedFile(); | 205 | void watchSavedFile(); |
205 | void recheckTimerAlarm(); | 206 | void recheckTimerAlarm(); |
206 | void checkNextTimerAlarm(); | 207 | void checkNextTimerAlarm(); |
207 | void addAlarm(const QDateTime &qdt, const QString ¬i ); | 208 | void addAlarm(const QDateTime &qdt, const QString ¬i ); |
208 | void addSuspendAlarm(const QDateTime &qdt, const QString ¬i ); | 209 | void addSuspendAlarm(const QDateTime &qdt, const QString ¬i ); |
209 | void removeAlarm(const QDateTime &qdt, const QString ¬i ); | 210 | void removeAlarm(const QDateTime &qdt, const QString ¬i ); |
210 | 211 | ||
211 | /** options dialog made a changed to the configuration. we catch this | 212 | /** options dialog made a changed to the configuration. we catch this |
212 | * and notify all widgets which need to update their configuration. */ | 213 | * and notify all widgets which need to update their configuration. */ |
213 | void updateConfig(); | 214 | void updateConfig(); |
214 | 215 | ||
215 | void insertBirthdays(const QString& uid, const QStringList& birthdayList, | 216 | void insertBirthdays(const QString& uid, const QStringList& birthdayList, |
216 | const QStringList& anniversaryList, const QStringList& realNameList, | 217 | const QStringList& anniversaryList, const QStringList& realNameList, |
217 | const QStringList& emailList, const QStringList& assembledNameList, | 218 | const QStringList& emailList, const QStringList& assembledNameList, |
218 | const QStringList& uidList); | 219 | const QStringList& uidList); |
219 | 220 | ||
220 | /** | 221 | /** |
221 | Load calendar from file \a filename. If \a merge is true, load | 222 | Load calendar from file \a filename. If \a merge is true, load |
222 | calendar into existing one, if it is false, clear calendar, before | 223 | calendar into existing one, if it is false, clear calendar, before |
223 | loading. Return true, if calendar could be successfully loaded. | 224 | loading. Return true, if calendar could be successfully loaded. |
224 | */ | 225 | */ |
225 | bool openCalendar(QString filename, bool merge=false); | 226 | bool openCalendar(QString filename, bool merge=false); |
226 | bool loadCalendars(); | 227 | bool loadCalendars(); |
227 | bool saveCalendars(); | 228 | bool saveCalendars(); |
228 | bool restoreCalendarSettings(); | 229 | bool restoreCalendarSettings(); |
229 | bool addCalendar( KopiCalendarFile * ); | 230 | bool addCalendar( KopiCalendarFile * ); |
230 | void addCalendarId( int id ); | 231 | void addCalendarId( int id ); |
231 | bool syncCalendar(QString filename,int mode = 0 ); | 232 | bool syncCalendar(QString filename,int mode = 0 ); |
232 | 233 | ||
233 | /** | 234 | /** |
234 | Save calendar data to file. Return true if calendar could be | 235 | Save calendar data to file. Return true if calendar could be |
235 | successfully saved. | 236 | successfully saved. |
236 | */ | 237 | */ |
237 | bool saveCalendar(QString filename); | 238 | bool saveCalendar(QString filename); |
238 | 239 | ||
239 | /** | 240 | /** |
240 | Close calendar. Clear calendar data and reset views to display an empty | 241 | Close calendar. Clear calendar data and reset views to display an empty |
241 | calendar. | 242 | calendar. |
242 | */ | 243 | */ |
243 | void closeCalendar(); | 244 | void closeCalendar(); |
244 | 245 | ||
245 | /** Archive old events of calendar */ | 246 | /** Archive old events of calendar */ |
246 | void archiveCalendar(); | 247 | void archiveCalendar(); |
247 | 248 | ||
248 | void showIncidence(); | 249 | void showIncidence(); |
249 | void editIncidence(); | 250 | void editIncidence(); |
250 | void editIncidenceDescription(); | 251 | void editIncidenceDescription(); |
251 | void deleteIncidence(); | 252 | void deleteIncidence(); |
252 | void cloneIncidence(); | 253 | void cloneIncidence(); |
253 | void moveIncidence(); | 254 | void moveIncidence(); |
254 | void beamIncidence(); | 255 | void beamIncidence(); |
255 | void toggleCancelIncidence(); | 256 | void toggleCancelIncidence(); |
256 | 257 | ||
257 | /** create an editeventwin with supplied date/time, and if bool is true, | 258 | /** create an editeventwin with supplied date/time, and if bool is true, |
258 | * make the event take all day. */ | 259 | * make the event take all day. */ |
259 | void newEvent(QDateTime, QDateTime, bool allDay ); | 260 | void newEvent(QDateTime, QDateTime, bool allDay ); |
260 | void newEvent(QDateTime, QDateTime); | 261 | void newEvent(QDateTime, QDateTime); |
261 | void newEvent(QDateTime fh); | 262 | void newEvent(QDateTime fh); |
262 | void newEvent(QDate dt); | 263 | void newEvent(QDate dt); |
263 | /** create new event without having a date hint. Takes current date as | 264 | /** create new event without having a date hint. Takes current date as |
264 | default hint. */ | 265 | default hint. */ |
265 | void newEvent(); | 266 | void newEvent(); |
266 | void newFloatingEvent(); | 267 | void newFloatingEvent(); |
267 | 268 | ||
268 | /** Create a read-only viewer dialog for the supplied incidence. It calls the correct showXXX method*/ | 269 | /** Create a read-only viewer dialog for the supplied incidence. It calls the correct showXXX method*/ |
269 | void showIncidence(Incidence *); | 270 | void showIncidence(Incidence *); |
270 | void showIncidence(QString uid); | 271 | void showIncidence(QString uid); |
271 | /** Create an editor for the supplied incidence. It calls the correct editXXX method*/ | 272 | /** Create an editor for the supplied incidence. It calls the correct editXXX method*/ |
272 | void editIncidence(Incidence *); | 273 | void editIncidence(Incidence *); |
273 | /** Delete the supplied incidence. It calls the correct deleteXXX method*/ | 274 | /** Delete the supplied incidence. It calls the correct deleteXXX method*/ |
274 | void deleteIncidence(Incidence *); | 275 | void deleteIncidence(Incidence *); |
275 | void cloneIncidence(Incidence *); | 276 | void cloneIncidence(Incidence *); |
276 | void cancelIncidence(Incidence *); | 277 | void cancelIncidence(Incidence *); |
277 | /** Create an editor for the supplied event. */ | 278 | /** Create an editor for the supplied event. */ |
278 | void editEvent(Event *); | 279 | void editEvent(Event *); |
279 | /** Delete the supplied event. */ | 280 | /** Delete the supplied event. */ |
280 | void deleteEvent(Event *); | 281 | void deleteEvent(Event *); |
281 | /** Delete the event with the given unique ID. Returns false, if event wasn't | 282 | /** Delete the event with the given unique ID. Returns false, if event wasn't |
282 | found. */ | 283 | found. */ |
283 | bool deleteEvent(const QString &uid); | 284 | bool deleteEvent(const QString &uid); |
284 | /** Create a read-only viewer dialog for the supplied event. */ | 285 | /** Create a read-only viewer dialog for the supplied event. */ |
285 | void showEvent(Event *); | 286 | void showEvent(Event *); |
286 | 287 | ||
287 | void editJournal(Journal *); | 288 | void editJournal(Journal *); |
288 | void showJournal(Journal *); | 289 | void showJournal(Journal *); |
289 | void deleteJournal(Journal *); | 290 | void deleteJournal(Journal *); |
290 | /** Create an editor dialog for a todo */ | 291 | /** Create an editor dialog for a todo */ |
291 | void editTodo(Todo *); | 292 | void editTodo(Todo *); |
292 | /** Create a read-only viewer dialog for the supplied todo */ | 293 | /** Create a read-only viewer dialog for the supplied todo */ |