27#ifndef KORG_ACTIONMANAGER_H
28#define KORG_ACTIONMANAGER_H
32#include <korganizer/part.h>
49class TDEActionCollection;
50class TDERecentFilesAction;
63class HTMLExportSettings;
73class TDE_EXPORT ActionManager :
public TQObject,
public KCalendarIface
78 ActionManager( KXMLGUIClient *client,
CalendarView *widget,
81 virtual ~ActionManager();
121 bool openURL(
const KURL &
url,
bool merge =
false );
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 );
273 void saveProperties( TDEConfig * );
274 void readProperties( TDEConfig * );
278 void importCalendar(
const KURL &
url );
322 void downloadNewStuff();
323 void uploadNewStuff();
325 void toggleResourceButtons();
327 void toggleDateNavigator();
328 void toggleTodoView();
329 void toggleEventViewer();
330 void toggleResourceView();
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 );
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;
bool saveURL()
Save calendar file to URL of current calendar.
KURL getSaveURL()
Get URL for saving.
void file_open()
open a file, load it into the calendar.
void slotAutoArchivingSettingsModified()
connected to CalendarView's signal which comes from the ArchiveDialog
void file_close()
close a file, prompt for save if changes made.
void file_save()
save a file with the current fileName.
void file_icalimport()
import a calendar from another program like ical.
void createCalendarResources()
Create Calendar object based on the resource framework and set it on the view.
void loadResourceCalendar()
Load the resource based calendar.
void file_new()
open new window
void showTipOnStart()
Show tip of the day.
void createCalendarLocal()
Create Calendar object based on local file and set it on the view.
void readSettings()
Using the TDEConfig associated with the kapp variable, read in the settings from the config file.
bool saveResourceCalendar()
Save the resource based calendar.
void saveCalendar()
Save calendar to disk.
void showTip()
Show tip of the day.
TQWidget * dialogParent()
Return widget used as parent for dialogs and message boxes.
void updateConfig()
Options dialog made a changed to the configuration.
void writeSettings()
Write current state to config file.
bool saveModifiedURL()
Save calendar if it is modified by the user.
void slotAutoArchive()
called by the auto archive timer to automatically delete/archive events
void closingDown()
Emitted when the topwidget is closing down, so that any attached child windows can also close.
void file_revert()
revert to saved
void checkAutoSave()
called by the autoSaveTimer to automatically save the calendar
void file_merge()
open a calendar and add the contents to the current calendar.
void actionNew(const KURL &url=KURL())
Emitted when the "New" action is activated.
void init()
Peform initialization that requires this* to be full constructed.
void file_archive()
delete or archive old entries in your calendar for speed/space.
void configChanged()
When change is made to options dialog, the topwidget will catch this and emit this signal which notif...
bool saveAsURL(const KURL &kurl)
Save calendar file to URL.
bool addResource(const KURL &mUrl)
Add a new resource.
void resourceAdded(ResourceCalendar *)
Indicates that a new resource was added.
bool openURL(const KURL &url, bool merge=false)
Open calendar file from URL.
KURL url() const
Get current URL.
void file_saveas()
save a file under a (possibly) different filename.
void configureDateTime()
Open kcontrol module for configuring date and time formats.
This is the main calendar widget.
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.