27 #ifndef KORG_ACTIONMANAGER_H
28 #define KORG_ACTIONMANAGER_H
32 #include <korganizer/part.h>
33 #include <tdemacros.h>
49 class TDEActionCollection;
50 class TDERecentFilesAction;
51 class TDESelectAction;
52 class TDEToggleAction;
63 class HTMLExportSettings;
91 void createCalendarLocal();
96 void createCalendarResources();
107 bool saveResourceCalendar();
112 void loadResourceCalendar();
116 bool addResource(
const KURL &mUrl );
121 bool openURL(
const KURL &url,
bool merge =
false );
125 bool saveAsURL(
const KURL &kurl );
127 bool saveModifiedURL();
130 void exportHTML( HTMLExportSettings * );
133 KURL
url()
const {
return mURL; }
138 bool openURL(
const TQString &url );
140 bool mergeURL(
const TQString &url );
142 bool saveAsURL(
const TQString &url );
146 TQString getCurrentURLasString()
const;
153 virtual bool deleteIncidence(
const TQString& uid,
bool force =
false );
155 bool editIncidence(
const TQString &uid );
156 bool editIncidence(
const TQString &uid,
const TQDate &date );
163 bool addIncidence(
const TQString& ical );
166 virtual ResourceRequestReply resourceRequest(
const TQValueList<TQPair<TQDateTime, TQDateTime> >& busy,
167 const TQCString& resource,
168 const TQString& vCalIn );
170 void openEventEditor(
const TQString& );
171 void openEventEditor(
const TQString& summary,
172 const TQString& description,
173 const TQString& attachment );
174 void openEventEditor(
const TQString& summary,
175 const TQString& description,
176 const TQString& attachment,
177 const TQStringList& attendees );
178 void openEventEditor(
const TQString& summary,
179 const TQString& description,
181 const TQString& file,
182 const TQStringList& attendees,
183 const TQString& attachmentMimetype );
185 void openTodoEditor(
const TQString& );
186 void openTodoEditor(
const TQString& summary,
187 const TQString& description,
188 const TQString& attachment );
189 void openTodoEditor(
const TQString& summary,
190 const TQString& description,
191 const TQString& attachment,
192 const TQStringList& attendees );
193 void openTodoEditor(
const TQString& summary,
194 const TQString& description,
196 const TQString& file,
197 const TQStringList& attendees,
198 const TQString& attachmentMimetype,
201 void openJournalEditor(
const TQDate& date );
202 void openJournalEditor(
const TQString& text,
const TQDate& date );
203 void openJournalEditor(
const TQString& text );
209 void showJournalView();
211 void showEventView();
213 void goDate(
const TQDate& );
214 void goDate(
const TQString& );
215 void showDate(
const TQDate &date );
217 TQString localFileName();
221 void loadProfile(
const TQString & path );
223 void saveToProfile(
const TQString & path )
const;
225 bool handleCommandLine();
256 void setDestinationPolicy();
258 void processIncidenceSelection(
Incidence *incidence,
const TQDate &date );
270 void writeSettings();
273 void saveProperties( TDEConfig * );
274 void readProperties( TDEConfig * );
278 void importCalendar(
const KURL &url );
290 void file_open(
const KURL &url );
293 void file_icalimport();
314 void configureDateTime();
320 void showTipOnStart();
322 void downloadNewStuff();
323 void uploadNewStuff();
325 void toggleResourceButtons();
327 void toggleDateNavigator();
328 void toggleTodoView();
329 void toggleEventViewer();
330 void toggleResourceView();
333 void checkAutoSave();
336 void slotAutoArchivingSettingsModified();
339 void slotAutoArchive();
341 void configureDateTimeFinished(TDEProcess *);
345 void updateUndoAction(
const TQString & );
347 void updateRedoAction(
const TQString & );
349 void slotPreviewDialogFinished( PreviewDialog * );
355 void showStatusMessageOpen(
const KURL &url,
bool merge );
362 TQWidget *dialogParent();
365 void dumpText(
const TQString & );
368 class ActionStringsVisitor;
372 void enableIncidenceActions(
bool enable );
374 TQPair<ResourceCalendar *, TQString> viewSubResourceCalendar();
375 bool isWritable(
ResourceCalendar *res,
const TQString &subRes,
const TQString &contentsType );
377 KOrg::Part::List mParts;
382 KTempFile *mTempFile;
383 TQTimer *mAutoSaveTimer;
384 TQTimer *mAutoArchiveTimer;
390 TDERecentFilesAction *mRecent;
391 TDEToggleAction *mResourceButtonsAction;
393 TDEToggleAction *mDateNavigatorShowAction;
394 TDEToggleAction *mTodoViewShowAction;
395 TDEToggleAction *mResourceViewShowAction;
396 TDEToggleAction *mEventViewerShowAction;
399 TDEAction *mShowIncidenceAction;
400 TDEAction *mEditIncidenceAction;
401 TDEAction *mDeleteIncidenceAction;
404 TDEAction *mCutAction;
405 TDEAction *mCopyAction;
406 TDEAction *mDeleteAction;
407 TDEAction *mNextXDays;
408 TDEAction *mPublishEvent;
409 TDEAction *mForwardEvent;
411 TDEAction *mSendInvitation;
412 TDEAction *mSendCancel;
413 TDEAction *mSendStatusUpdate;
415 TDEAction *mRequestChange;
416 TDEAction *mRequestUpdate;
418 TDEAction *mUndoAction;
419 TDEAction *mRedoAction;
421 TDESelectAction *mFilterAction;
423 KXMLGUIClient *mGUIClient;
424 TDEActionCollection *mACollection;
429 KONewStuff *mNewStuff;
430 bool mHtmlExportSync;
The ActionManager creates all the actions in KOrganizer.
void closingDown()
Emitted when the topwidget is closing down, so that any attached child windows can also close.
void actionNew(const KURL &url=KURL())
Emitted when the "New" action is activated.
void configChanged()
When change is made to options dialog, the topwidget will catch this and emit this signal which notif...
void resourceAdded(ResourceCalendar *)
Indicates that a new resource was added.
KURL url() const
Get current URL.
This is the main calendar widget.
Interface class for calendar requests.
This class manages a list of KOrganizer instances, each associated with a window displaying a calenda...
interface for korganizer main window
This is the main class for KOrganizer.
This class provides a view of calendar resources.
This file is a generic DCOP interface, shared between KDE applications.
bool view(TQWidget *parent, Attachment *attachment)