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 76 of file actionmanager.h.
Public Slots | |
| bool | addResource (const KUrl &mUrl) |
| void | exportHTML (HTMLExportSettings *) |
| void | exportHTML () |
| void | goDate (const QString &) |
| void | goDate (const QDate &) |
| void | importCalendar (const KUrl &url) |
| void | keyBindings () |
| void | loadParts () |
| void | openEventEditor (const QString &summary, const QString &description, const QString &uri, const QString &file, const QStringList &attendees, const QString &attachmentMimetype) |
| void | openEventEditor (const QString &summary, const QString &description, const QStringList &attachments, const QStringList &attendees) |
| void | openEventEditor (const QString &summary, const QString &description, const QStringList &attachments) |
| void | openEventEditor (const QString &) |
| void | openJournalEditor (const QString &text) |
| void | openJournalEditor (const QString &text, const QDate &date) |
| void | openJournalEditor (const QDate &date) |
| void | openTodoEditor (const QString &summary, const QString &description, const QString &uri, const QString &file, const QStringList &attendees, const QString &attachmentMimetype) |
| void | openTodoEditor (const QString &summary, const QString &description, const QStringList &attachments, const QStringList &attendees) |
| void | openTodoEditor (const QString &summary, const QString &description, const QStringList &attachments) |
| void | openTodoEditor (const QString &) |
| bool | openURL (const KUrl &url, bool merge=false) |
| void | processIncidenceSelection (Incidence *) |
| void | readProperties (const KConfigGroup &) |
| void | readSettings () |
| virtual ResourceRequestReply | resourceRequest (const QList< QPair< QDateTime, QDateTime > > &busy, const QByteArray &resource, const QString &vCalIn) |
| bool | saveAsURL (const KUrl &kurl) |
| bool | saveModifiedURL () |
| void | saveProperties (KConfigGroup &) |
| bool | saveURL () |
| void | setDestinationPolicy () |
| void | showDate (const QDate &date) |
| void | showEventView () |
| void | showJournalView () |
| void | showTodoView () |
| void | updateConfig () |
| void | writeSettings () |
Signals | |
| void | actionNew (const KUrl &url=KUrl()) |
| void | closingDown () |
| void | configChanged () |
| void | resourceAdded (ResourceCalendar *) |
Public Member Functions | |
| ActionManager (KXMLGUIClient *client, CalendarView *widget, QObject *parent, KOrg::MainWindow *mainWindow, bool isPart) | |
| bool | addIncidence (const QString &ical) |
| void | closeUrl () |
| void | createCalendarLocal () |
| void | createCalendarResources () |
| virtual bool | deleteIncidence (const QString &uid, bool force=false) |
| bool | editIncidence (const QString &uid) |
| QString | getCurrentURLasString () const |
| void | init () |
| QString | localFileName () |
| bool | mergeURL (const QString &url) |
| bool | openURL (const QString &url) |
| bool | queryClose () |
| bool | saveAsURL (const QString &url) |
| void | saveCalendar () |
| bool | saveResourceCalendar () |
| bool | showIncidence (const QString &uid) |
| bool | showIncidenceContext (const QString &uid) |
| KUrl | url () const |
| CalendarView * | view () const |
| virtual | ~ActionManager () |
Static Public Member Functions | |
| static KOrg::MainWindow * | findInstance (const KUrl &url) |
Protected Slots | |
| void | checkAutoSave () |
| void | configureDateTime () |
| void | downloadNewStuff () |
| void | file_archive () |
| void | file_close () |
| void | file_icalimport () |
| void | file_merge () |
| void | file_new () |
| void | file_open (const KUrl &url) |
| void | file_open () |
| void | file_revert () |
| void | file_save () |
| void | file_saveas () |
| void | setItems (const QStringList &) |
| void | setTitle () |
| void | showTip () |
| void | showTipOnStart () |
| void | slotAutoArchive () |
| void | slotAutoArchivingSettingsModified () |
| void | slotImportDialogFinished (ImportDialog *) |
| void | toggleDateNavigator () |
| void | toggleEventViewer () |
| void | toggleResourceView () |
| void | toggleTodoView () |
| void | updateRedoAction (const QString &) |
| void | updateUndoAction (const QString &) |
| void | uploadNewStuff () |
Protected Member Functions | |
| QWidget * | dialogParent () |
| KUrl | getSaveURL () |
| void | initCalendar (Calendar *cal) |
| void | showStatusMessageOpen (const KUrl &url, bool merge) |
Classes | |
| struct | ResourceRequestReply |
Constructor & Destructor Documentation
| ActionManager::ActionManager | ( | KXMLGUIClient * | client, | |
| CalendarView * | widget, | |||
| QObject * | parent, | |||
| KOrg::MainWindow * | mainWindow, | |||
| bool | isPart | |||
| ) |
Definition at line 87 of file actionmanager.cpp.
| ActionManager::~ActionManager | ( | ) | [virtual] |
Definition at line 106 of file actionmanager.cpp.
Member Function Documentation
| void ActionManager::actionNew | ( | const KUrl & | url = KUrl() |
) | [signal] |
Emitted when the "New" action is activated.
| 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 1481 of file actionmanager.cpp.
| bool ActionManager::addResource | ( | const KUrl & | mUrl | ) | [slot] |
Add a new resource.
- Parameters:
-
mUrl The url for the new resource. Either a local or a remote resource will be added, depending on the type of the url.
Definition at line 972 of file actionmanager.cpp.
| void ActionManager::checkAutoSave | ( | ) | [protected, slot] |
called by the autoSaveTimer to automatically save the calendar
Definition at line 1298 of file actionmanager.cpp.
| void ActionManager::closeUrl | ( | ) |
| void ActionManager::closingDown | ( | ) | [signal] |
Emitted when the topwidget is closing down, so that any attached child windows can also close.
| 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::configureDateTime | ( | ) | [protected, slot] |
Open kcontrol module for configuring date and time formats.
Definition at line 1364 of file actionmanager.cpp.
| void ActionManager::createCalendarLocal | ( | ) |
Create Calendar object based on local file and set it on the view.
Definition at line 177 of file actionmanager.cpp.
| void ActionManager::createCalendarResources | ( | ) |
Create Calendar object based on the resource framework and set it on the view.
Definition at line 186 of file actionmanager.cpp.
| 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 1476 of file actionmanager.cpp.
| QWidget * ActionManager::dialogParent | ( | ) | [protected] |
Return widget used as parent for dialogs and message boxes.
Definition at line 2080 of file actionmanager.cpp.
| void ActionManager::downloadNewStuff | ( | ) | [protected, slot] |
Definition at line 1486 of file actionmanager.cpp.
| bool ActionManager::editIncidence | ( | const QString & | uid | ) |
Definition at line 1461 of file actionmanager.cpp.
| void ActionManager::exportHTML | ( | HTMLExportSettings * | settings | ) | [slot] |
Definition at line 1116 of file actionmanager.cpp.
| void ActionManager::exportHTML | ( | ) | [slot] |
Definition at line 1095 of file actionmanager.cpp.
| void ActionManager::file_archive | ( | ) | [protected, slot] |
delete or archive old entries in your calendar for speed/space.
Definition at line 858 of file actionmanager.cpp.
| void ActionManager::file_close | ( | ) | [protected, slot] |
| 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 848 of file actionmanager.cpp.
| void ActionManager::file_new | ( | ) | [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.
- Parameters:
-
url the URL to open
Definition at line 765 of file actionmanager.cpp.
| void ActionManager::file_open | ( | ) | [protected, slot] |
| void ActionManager::file_revert | ( | ) | [protected, slot] |
| void ActionManager::file_save | ( | ) | [protected, slot] |
| void ActionManager::file_saveas | ( | ) | [protected, slot] |
save a file under a (possibly) different filename.
Definition at line 868 of file actionmanager.cpp.
| KOrg::MainWindow * ActionManager::findInstance | ( | const KUrl & | url | ) | [static] |
| QString ActionManager::getCurrentURLasString | ( | ) | const |
| KUrl ActionManager::getSaveURL | ( | ) | [protected] |
| void ActionManager::goDate | ( | const QString & | date | ) | [slot] |
Definition at line 1892 of file actionmanager.cpp.
| void ActionManager::goDate | ( | const QDate & | date | ) | [slot] |
Definition at line 1887 of file actionmanager.cpp.
| void ActionManager::importCalendar | ( | const KUrl & | url | ) | [slot] |
Definition at line 2028 of file actionmanager.cpp.
| void ActionManager::init | ( | ) |
Peform initialization that requires this* to be full constructed.
Definition at line 123 of file actionmanager.cpp.
| void ActionManager::initCalendar | ( | Calendar * | cal | ) | [protected] |
Definition at line 218 of file actionmanager.cpp.
| void ActionManager::keyBindings | ( | ) | [slot] |
Definition at line 1655 of file actionmanager.cpp.
| void ActionManager::loadParts | ( | ) | [slot] |
Definition at line 1671 of file actionmanager.cpp.
| QString ActionManager::localFileName | ( | ) |
Definition at line 1554 of file actionmanager.cpp.
| bool ActionManager::mergeURL | ( | const QString & | url | ) |
| void ActionManager::openEventEditor | ( | const QString & | summary, | |
| const QString & | description, | |||
| const QString & | uri, | |||
| const QString & | file, | |||
| const QStringList & | attendees, | |||
| const QString & | attachmentMimetype | |||
| ) | [slot] |
Definition at line 1712 of file actionmanager.cpp.
| void ActionManager::openEventEditor | ( | const QString & | summary, | |
| const QString & | description, | |||
| const QStringList & | attachments, | |||
| const QStringList & | attendees | |||
| ) | [slot] |
Definition at line 1704 of file actionmanager.cpp.
| void ActionManager::openEventEditor | ( | const QString & | summary, | |
| const QString & | description, | |||
| const QStringList & | attachments | |||
| ) | [slot] |
Definition at line 1697 of file actionmanager.cpp.
| void ActionManager::openEventEditor | ( | const QString & | text | ) | [slot] |
Definition at line 1692 of file actionmanager.cpp.
| void ActionManager::openJournalEditor | ( | const QString & | text | ) | [slot] |
Definition at line 1859 of file actionmanager.cpp.
Definition at line 1854 of file actionmanager.cpp.
| void ActionManager::openJournalEditor | ( | const QDate & | date | ) | [slot] |
Definition at line 1849 of file actionmanager.cpp.
| void ActionManager::openTodoEditor | ( | const QString & | summary, | |
| const QString & | description, | |||
| const QString & | uri, | |||
| const QString & | file, | |||
| const QStringList & | attendees, | |||
| const QString & | attachmentMimetype | |||
| ) | [slot] |
Definition at line 1809 of file actionmanager.cpp.
| void ActionManager::openTodoEditor | ( | const QString & | summary, | |
| const QString & | description, | |||
| const QStringList & | attachments, | |||
| const QStringList & | attendees | |||
| ) | [slot] |
Definition at line 1801 of file actionmanager.cpp.
| void ActionManager::openTodoEditor | ( | const QString & | summary, | |
| const QString & | description, | |||
| const QStringList & | attachments | |||
| ) | [slot] |
Definition at line 1794 of file actionmanager.cpp.
| void ActionManager::openTodoEditor | ( | const QString & | text | ) | [slot] |
Definition at line 1789 of file actionmanager.cpp.
| bool ActionManager::openURL | ( | const QString & | url | ) |
| bool ActionManager::openURL | ( | const KUrl & | url, | |
| bool | merge = false | |||
| ) | [slot] |
Open calendar file from URL.
Merge into current calendar, if merge is true.
- Parameters:
-
url The URL to open merge If true, the items from the url will be inserted into the current calendar (default resource). Otherwise a new resource is added for the given url.
Definition at line 912 of file actionmanager.cpp.
| void ActionManager::processIncidenceSelection | ( | Incidence * | incidence | ) | [slot] |
Definition at line 1617 of file actionmanager.cpp.
| bool ActionManager::queryClose | ( | ) |
Definition at line 1931 of file actionmanager.cpp.
| void ActionManager::readProperties | ( | const KConfigGroup & | config | ) | [slot] |
Definition at line 1281 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 704 of file actionmanager.cpp.
| void ActionManager::resourceAdded | ( | ResourceCalendar * | ) | [signal] |
Indicates that a new resource was added.
| ActionManager::ResourceRequestReply ActionManager::resourceRequest | ( | const QList< QPair< QDateTime, QDateTime > > & | busy, | |
| const QByteArray & | resource, | |||
| const QString & | vCalIn | |||
| ) | [virtual, slot] |
Definition at line 1682 of file actionmanager.cpp.
| bool ActionManager::saveAsURL | ( | const QString & | url | ) |
| bool ActionManager::saveAsURL | ( | const KUrl & | kurl | ) | [slot] |
| void ActionManager::saveCalendar | ( | ) |
| bool ActionManager::saveModifiedURL | ( | ) | [slot] |
Save calendar if it is modified by the user.
Ask user what to do.
Definition at line 1206 of file actionmanager.cpp.
| void ActionManager::saveProperties | ( | KConfigGroup & | config | ) | [slot] |
Definition at line 1271 of file actionmanager.cpp.
| bool ActionManager::saveResourceCalendar | ( | ) |
Save the resource based calendar.
Return false if an error occurred and the user decides to not ignore the error. Otherwise it returns true.
Definition at line 2001 of file actionmanager.cpp.
| bool ActionManager::saveURL | ( | ) | [slot] |
| void ActionManager::setDestinationPolicy | ( | ) | [slot] |
Definition at line 1353 of file actionmanager.cpp.
| void ActionManager::setItems | ( | const QStringList & | lst | ) | [protected, slot] |
Definition at line 699 of file actionmanager.cpp.
| void ActionManager::setTitle | ( | ) | [protected, slot] |
Definition at line 1676 of file actionmanager.cpp.
| void ActionManager::showDate | ( | const QDate & | date | ) | [slot] |
Definition at line 1897 of file actionmanager.cpp.
| void ActionManager::showEventView | ( | ) | [slot] |
Definition at line 1882 of file actionmanager.cpp.
| bool ActionManager::showIncidence | ( | const QString & | uid | ) |
Definition at line 1466 of file actionmanager.cpp.
| bool ActionManager::showIncidenceContext | ( | const QString & | uid | ) |
Show an incidence in context.
This means showing the todo, agenda or journal view (as appropriate) and scrolling it to show the incidence.
- Parameters:
-
uid Unique ID of the incidence to show.
Definition at line 1471 of file actionmanager.cpp.
| void ActionManager::showJournalView | ( | ) | [slot] |
Definition at line 1872 of file actionmanager.cpp.
| void ActionManager::showStatusMessageOpen | ( | const KUrl & | url, | |
| bool | merge | |||
| ) | [protected] |
Definition at line 1016 of file actionmanager.cpp.
| void ActionManager::showTip | ( | ) | [protected, slot] |
| void ActionManager::showTipOnStart | ( | ) | [protected, slot] |
| void ActionManager::showTodoView | ( | ) | [slot] |
Definition at line 1877 of file actionmanager.cpp.
| void ActionManager::slotAutoArchive | ( | ) | [protected, slot] |
called by the auto archive timer to automatically delete/archive events
Definition at line 2065 of file actionmanager.cpp.
| void ActionManager::slotAutoArchivingSettingsModified | ( | ) | [protected, slot] |
connected to CalendarView's signal which comes from the ArchiveDialog
Definition at line 2056 of file actionmanager.cpp.
| void ActionManager::slotImportDialogFinished | ( | ImportDialog * | dlg | ) | [protected, slot] |
Definition at line 2050 of file actionmanager.cpp.
| void ActionManager::toggleDateNavigator | ( | ) | [protected, slot] |
Definition at line 1403 of file actionmanager.cpp.
| void ActionManager::toggleEventViewer | ( | ) | [protected, slot] |
Definition at line 1419 of file actionmanager.cpp.
| void ActionManager::toggleResourceView | ( | ) | [protected, slot] |
Definition at line 1427 of file actionmanager.cpp.
| void ActionManager::toggleTodoView | ( | ) | [protected, slot] |
Definition at line 1411 of file actionmanager.cpp.
| 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 1316 of file actionmanager.cpp.
| void ActionManager::updateRedoAction | ( | const QString & | text | ) | [protected, slot] |
Definition at line 1916 of file actionmanager.cpp.
| void ActionManager::updateUndoAction | ( | const QString & | text | ) | [protected, slot] |
Definition at line 1902 of file actionmanager.cpp.
| void ActionManager::uploadNewStuff | ( | ) | [protected, slot] |
Definition at line 1537 of file actionmanager.cpp.
| KUrl ActionManager::url | ( | ) | const [inline] |
| CalendarView* ActionManager::view | ( | ) | const [inline] |
Definition at line 88 of file actionmanager.h.
| void ActionManager::writeSettings | ( | ) | [slot] |
The documentation for this class was generated from the following files:
KDE 4.1 API Reference