korganizer
ActionManager Class Reference
#include <actionmanager.h>

Detailed Description
The ActionManager creates all the actions in KOrganizer.This class is shared between the main application and the part so all common actions are in one location. It also provides DCOP interface[s].
Definition at line 74 of file actionmanager.h.
Public Slots | |
bool | addResource (const KURL &mUrl) |
bool | openURL (const KURL &url, bool merge=false) |
bool | saveURL () |
bool | saveAsURL (const KURL &kurl) |
bool | saveModifiedURL () |
void | exportHTML () |
void | exportHTML (HTMLExportSettings *) |
void | updateConfig () |
void | setDestinationPolicy () |
void | processIncidenceSelection (Incidence *incidence, const QDate &date) |
void | keyBindings () |
void | readSettings () |
void | writeSettings () |
void | saveProperties (KConfig *) |
void | readProperties (KConfig *) |
void | loadParts () |
void | importCalendar (const KURL &url) |
Signals | |
void | actionNew (const KURL &url=KURL()) |
void | configChanged () |
void | closingDown () |
void | resourceAdded (ResourceCalendar *) |
Public Member Functions | |
ActionManager (KXMLGUIClient *client, CalendarView *widget, QObject *parent, KOrg::MainWindow *mainWindow, bool isPart) | |
void | init () |
CalendarView * | view () const |
void | createCalendarLocal () |
void | createCalendarResources () |
void | saveCalendar () |
bool | saveResourceCalendar () |
KURL | url () const |
bool | openURL (const QString &url) |
bool | mergeURL (const QString &url) |
bool | saveAsURL (const QString &url) |
void | closeURL () |
QString | getCurrentURLasString () const |
virtual bool | deleteIncidence (const QString &uid, bool force=false) |
bool | editIncidence (const QString &uid) |
bool | editIncidence (const QString &uid, const QDate &date) |
bool | addIncidence (const QString &ical) |
virtual ResourceRequestReply | resourceRequest (const QValueList< QPair< QDateTime, QDateTime > > &busy, const QCString &resource, const QString &vCalIn) |
void | openEventEditor (const QString &) |
void | openEventEditor (const QString &summary, const QString &description, const QString &attachment) |
void | openEventEditor (const QString &summary, const QString &description, const QString &attachment, const QStringList &attendees) |
void | openEventEditor (const QString &summary, const QString &description, const QString &uri, const QString &file, const QStringList &attendees, const QString &attachmentMimetype) |
void | openTodoEditor (const QString &) |
void | openTodoEditor (const QString &summary, const QString &description, const QString &attachment) |
void | openTodoEditor (const QString &summary, const QString &description, const QString &attachment, const QStringList &attendees) |
void | openTodoEditor (const QString &summary, const QString &description, const QString &uri, const QString &file, const QStringList &attendees, const QString &attachmentMimetype, bool isTask) |
void | openJournalEditor (const QDate &date) |
void | openJournalEditor (const QString &text, const QDate &date) |
void | openJournalEditor (const QString &text) |
void | showJournalView () |
void | showTodoView () |
void | showEventView () |
void | goDate (const QDate &) |
void | goDate (const QString &) |
void | showDate (const QDate &date) |
QString | localFileName () |
bool | queryClose () |
void | loadProfile (const QString &path) |
void | saveToProfile (const QString &path) const |
Static Public Member Functions | |
static KOrg::MainWindow * | findInstance (const KURL &url) |
Protected Slots | |
void | file_new () |
void | file_open () |
void | file_open (const KURL &url) |
void | file_icalimport () |
void | file_merge () |
void | file_revert () |
void | file_archive () |
void | file_save () |
void | file_saveas () |
void | file_close () |
void | configureDateTime () |
void | showTip () |
void | showTipOnStart () |
void | downloadNewStuff () |
void | uploadNewStuff () |
void | toggleResourceButtons () |
void | toggleDateNavigator () |
void | toggleTodoView () |
void | toggleEventViewer () |
void | toggleResourceView () |
void | checkAutoSave () |
void | slotAutoArchivingSettingsModified () |
void | slotAutoArchive () |
void | configureDateTimeFinished (KProcess *) |
void | setTitle () |
void | updateUndoAction (const QString &) |
void | updateRedoAction (const QString &) |
void | slotImportDialogFinished (ImportDialog *) |
Protected Member Functions | |
KURL | getSaveURL () |
void | showStatusMessageOpen (const KURL &url, bool merge) |
void | initCalendar (Calendar *cal) |
QWidget * | dialogParent () |
Member Function Documentation
void ActionManager::init | ( | ) |
Peform initialization that requires this* to be full constructed.
Definition at line 118 of file actionmanager.cpp.
void ActionManager::createCalendarLocal | ( | ) |
Create Calendar object based on local file and set it on the view.
Definition at line 167 of file actionmanager.cpp.
void ActionManager::createCalendarResources | ( | ) |
Create Calendar object based on the resource framework and set it on the view.
Definition at line 176 of file actionmanager.cpp.
void ActionManager::saveCalendar | ( | ) |
bool ActionManager::saveResourceCalendar | ( | ) |
Save the resource based calendar.
Return false if an error occured and the user decidec to not ignore the error. Otherwise it returns true.
Definition at line 1867 of file actionmanager.cpp.
bool ActionManager::addResource | ( | const KURL & | mUrl | ) | [slot] |
bool ActionManager::openURL | ( | const KURL & | url, | |
bool | merge = false | |||
) | [slot] |
Open calendar file from URL.
Merge into current calendar, if merge is true.
Definition at line 855 of file actionmanager.cpp.
bool ActionManager::saveURL | ( | ) | [slot] |
bool ActionManager::saveAsURL | ( | const KURL & | kurl | ) | [slot] |
bool ActionManager::saveModifiedURL | ( | ) | [slot] |
Save calendar if it is modified by the user.
Ask user what to do.
Definition at line 1148 of file actionmanager.cpp.
KURL ActionManager::url | ( | ) | const [inline] |
KOrg::MainWindow * ActionManager::findInstance | ( | const KURL & | url | ) | [static] |
bool ActionManager::openURL | ( | const QString & | url | ) |
bool ActionManager::mergeURL | ( | const QString & | url | ) |
bool ActionManager::saveAsURL | ( | const QString & | url | ) |
void ActionManager::closeURL | ( | ) |
QString ActionManager::getCurrentURLasString | ( | ) | const |
bool ActionManager::deleteIncidence | ( | const QString & | uid, | |
bool | force = false | |||
) | [virtual] |
Delete the incidence with the given unique id from current calendar.
- Parameters:
-
uid UID of the incidence to delete. force If true, all recurrences and sub-todos (if applicable) will be deleted without prompting for confirmation.
Definition at line 1396 of file actionmanager.cpp.
bool ActionManager::addIncidence | ( | const QString & | ical | ) |
Add an incidence to the active calendar.
- Parameters:
-
ical A calendar in iCalendar format containing the incidence.
Definition at line 1401 of file actionmanager.cpp.
void ActionManager::actionNew | ( | const KURL & | url = KURL() |
) | [signal] |
Emitted when the "New" action is activated.
void ActionManager::configChanged | ( | ) | [signal] |
When change is made to options dialog, the topwidget will catch this and emit this signal which notifies all widgets which have registered for notification to update their settings.
void ActionManager::closingDown | ( | ) | [signal] |
Emitted when the topwidget is closing down, so that any attached child windows can also close.
void ActionManager::resourceAdded | ( | ResourceCalendar * | ) | [signal] |
Indicates that a new resource was added.
void ActionManager::updateConfig | ( | ) | [slot] |
Options dialog made a changed to the configuration.
we catch this and notify all widgets which need to update their configuration.
Definition at line 1253 of file actionmanager.cpp.
void ActionManager::readSettings | ( | ) | [slot] |
Using the KConfig associated with the kapp variable, read in the settings from the config file.
Definition at line 654 of file actionmanager.cpp.
void ActionManager::writeSettings | ( | ) | [slot] |
void ActionManager::file_new | ( | ) | [protected, slot] |
void ActionManager::file_open | ( | ) | [protected, slot] |
void ActionManager::file_open | ( | const KURL & | url | ) | [protected, slot] |
open a file from the list of recent files.
Also called from file_open() after the URL is obtained from the user.
Definition at line 717 of file actionmanager.cpp.
void ActionManager::file_icalimport | ( | ) | [protected, slot] |
void ActionManager::file_merge | ( | ) | [protected, slot] |
open a calendar and add the contents to the current calendar.
Definition at line 796 of file actionmanager.cpp.
void ActionManager::file_revert | ( | ) | [protected, slot] |
void ActionManager::file_archive | ( | ) | [protected, slot] |
delete or archive old entries in your calendar for speed/space.
Definition at line 805 of file actionmanager.cpp.
void ActionManager::file_save | ( | ) | [protected, slot] |
void ActionManager::file_saveas | ( | ) | [protected, slot] |
save a file under a (possibly) different filename.
Definition at line 815 of file actionmanager.cpp.
void ActionManager::file_close | ( | ) | [protected, slot] |
void ActionManager::configureDateTime | ( | ) | [protected, slot] |
Open kcontrol module for configuring date and time formats.
Definition at line 1289 of file actionmanager.cpp.
void ActionManager::showTip | ( | ) | [protected, slot] |
void ActionManager::showTipOnStart | ( | ) | [protected, slot] |
void ActionManager::checkAutoSave | ( | ) | [protected, slot] |
called by the autoSaveTimer to automatically save the calendar
Definition at line 1236 of file actionmanager.cpp.
void ActionManager::slotAutoArchivingSettingsModified | ( | ) | [protected, slot] |
connected to CalendarView's signal which comes from the ArchiveDialog
Definition at line 1915 of file actionmanager.cpp.
void ActionManager::slotAutoArchive | ( | ) | [protected, slot] |
called by the auto archive timer to automatically delete/archive events
Definition at line 1923 of file actionmanager.cpp.
KURL ActionManager::getSaveURL | ( | ) | [protected] |
QWidget * ActionManager::dialogParent | ( | ) | [protected] |
Return widget used as parent for dialogs and message boxes.
Definition at line 1975 of file actionmanager.cpp.
The documentation for this class was generated from the following files: