ActionManager Class Reference
The ActionManager creates all the actions in KOrganizer. More...
#include <actionmanager.h>
Inheritance diagram for ActionManager:

Public Slots | |
bool | openURL (const KURL &url, bool merge=false) |
bool | saveURL () |
bool | saveAsURL (const KURL &kurl) |
bool | saveModifiedURL () |
void | updateConfig () |
void | setDestinationPolicy () |
void | processIncidenceSelection (Incidence *) |
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 | actionKeyBindings () |
void | configChanged () |
void | closingDown () |
void | filterActivated (int) |
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 (QString url) |
bool | mergeURL (QString url) |
bool | saveAsURL (QString url) |
void | closeURL () |
QString | getCurrentURLasString () const |
virtual bool | deleteEvent (const QString &uid) |
bool | eventRequest (const QString &request, const QString &receiver, const QString &ical) |
bool | eventReply (const QString &ical) |
bool | cancelEvent (const QString &ical) |
bool | editIncidence (const QString &uid) |
virtual ResourceRequestReply | resourceRequest (const QValueList< QPair< QDateTime, QDateTime > > &busy, const QCString &resource, const QString &vCalIn) |
void | openEventEditor (QString) |
void | openEventEditor (QString summary, QString description, QString attachment) |
void | openEventEditor (QString summary, QString description, QString attachment, QStringList attendees) |
void | openTodoEditor (QString) |
void | openTodoEditor (QString summary, QString description, QString attachment) |
void | openTodoEditor (QString summary, QString description, QString attachment, QStringList attendees) |
void | showTodoView () |
void | showEventView () |
void | goDate (QDate) |
void | goDate (QString) |
QString | localFileName () |
bool | queryClose () |
Static Public Member Functions | |
KOrg::MainWindow * | findInstance (const KURL &url) |
Protected Slots | |
void | file_new () |
void | file_open () |
void | file_openRecent (const KURL &url) |
void | file_import () |
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 | toggleFilterView () |
void | toggleResourceButtons () |
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) |
void | exportToHTML () |
QWidget * | dialogParent () |
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 70 of file actionmanager.h.
Member Function Documentation
|
Peform initialization that requires this* to be full constructed.
|
|
Create Calendar object based on local file and set it on the view.
Definition at line 160 of file actionmanager.cpp. References CalendarView::readSettings(), and CalendarView::setCalendar(). |
|
Create Calendar object based on the resource framework and set it on the view.
Definition at line 169 of file actionmanager.cpp. References CalendarView::addExtension(), configChanged(), CalendarView::readSettings(), CalendarView::setCalendar(), and updateConfig(). |
|
Save calendar to disk.
Definition at line 1445 of file actionmanager.cpp. References CalendarView::isModified(), saveAsURL(), saveURL(), and url(). Referenced by checkAutoSave(). |
|
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 1462 of file actionmanager.cpp. |
|
Open calendar file from URL. Merge into current calendar, if merge is true. Definition at line 764 of file actionmanager.cpp. References dialogParent(), CalendarView::openCalendar(), openURL(), CalendarView::setModified(), and KOrg::MainWindow::showStatusMessage(). Referenced by file_merge(), file_open(), file_openRecent(), file_revert(), mergeURL(), KOrganizer::openURL(), and openURL(). |
|
Save calendar file to URL of current calendar.
Definition at line 842 of file actionmanager.cpp. References dialogParent(), CalendarView::saveCalendar(), CalendarView::setModified(), and KOrg::MainWindow::showStatusMessage(). Referenced by file_save(), saveAsURL(), saveCalendar(), saveModifiedURL(), and KOrganizer::saveURL(). |
|
Save calendar file to URL.
Definition at line 957 of file actionmanager.cpp. References saveAsURL(), and saveURL(). Referenced by file_saveas(), KOrganizer::saveAsURL(), saveAsURL(), saveCalendar(), and saveModifiedURL(). |
|
Save calendar if it is modified by the user. Ask user what to do. Definition at line 1002 of file actionmanager.cpp. References dialogParent(), getSaveURL(), CalendarView::isModified(), saveAsURL(), and saveURL(). Referenced by file_close(). |
|
Get current URL.
Definition at line 119 of file actionmanager.h. Referenced by checkAutoSave(), file_merge(), file_open(), file_saveas(), KOrganizer::getCurrentURL(), saveCalendar(), and KOrganizer::setTitle(). |
|
Is there a instance with this URL?
Definition at line 1163 of file actionmanager.cpp. References KOWindowList::defaultInstance(), KOWindowList::findInstance(), and findInstance(). Referenced by file_open(), file_openRecent(), and findInstance(). |
|
Open calendar file from URL.
Definition at line 1193 of file actionmanager.cpp. References openURL(). |
|
Open calendar file from URL.
Definition at line 1198 of file actionmanager.cpp. References mergeURL(), and openURL(). Referenced by mergeURL(). |
|
Save calendar file to URL.
Definition at line 1203 of file actionmanager.cpp. References saveAsURL(). |
|
Close calendar file opened from URL.
Definition at line 835 of file actionmanager.cpp. References file_close(). |
|
Get current URL as QString.
Definition at line 1208 of file actionmanager.cpp. |
|
Delete event with the given unique id from current calendar.
Definition at line 1218 of file actionmanager.cpp. References CalendarView::deleteEvent(), and deleteEvent(). Referenced by deleteEvent(). |
|
Handle incoming event scheduling.
Definition at line 1223 of file actionmanager.cpp. References eventRequest(). Referenced by eventRequest(). |
|
Handle event replies.
Definition at line 1232 of file actionmanager.cpp. References eventReply(). Referenced by eventReply(). |
|
Handle cancelling an event.
Definition at line 1238 of file actionmanager.cpp. References cancelEvent(). Referenced by cancelEvent(). |
|
Emitted when the "New" action is activated.
Referenced by file_new(), and file_open(). |
|
Emitted when the "Configure Key Bindings" action is activated.
|
|
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.
Referenced by createCalendarResources(). |
|
Emitted when the topwidget is closing down, so that any attached child windows can also close.
|
|
Announce filter selection changes.
|
|
Options dialog made a changed to the configuration. we catch this and notify all widgets which need to update their configuration. Definition at line 1107 of file actionmanager.cpp. References checkAutoSave(). Referenced by createCalendarResources(). |
|
Using the KConfig associated with the kapp variable, read in the settings from the config file.
Definition at line 574 of file actionmanager.cpp. References CalendarView::readSettings(). Referenced by KOrganizer::readSettings(). |
|
Write current state to config file.
Definition at line 584 of file actionmanager.cpp. References CalendarView::writeSettings(). Referenced by KOrganizer::writeSettings(). |
|
open new window
Definition at line 604 of file actionmanager.cpp. References actionNew(). |
|
open a file, load it into the calendar.
Definition at line 609 of file actionmanager.cpp. References actionNew(), dialogParent(), findInstance(), CalendarView::isModified(), openURL(), KOrg::MainWindow::topLevelWidget(), and url(). |
|
open a file from the list of recent files.
Definition at line 635 of file actionmanager.cpp. References file_openRecent(), findInstance(), openURL(), and KOrg::MainWindow::topLevelWidget(). Referenced by file_openRecent(). |
|
import a calendar from another program like ical.
Definition at line 648 of file actionmanager.cpp. References dialogParent(), and CalendarView::openCalendar(). |
|
open a calendar and add the contents to the current calendar.
Definition at line 705 of file actionmanager.cpp. References dialogParent(), openURL(), and url(). |
|
revert to saved
Definition at line 718 of file actionmanager.cpp. References openURL(). |
|
delete or archive old entries in your calendar for speed/space.
Definition at line 713 of file actionmanager.cpp. References CalendarView::archiveCalendar(). |
|
save a file with the current fileName.
Definition at line 732 of file actionmanager.cpp. References CalendarView::calendar(), file_saveas(), KOrg::MainWindow::hasDocument(), and saveURL(). |
|
save a file under a (possibly) different filename.
Definition at line 723 of file actionmanager.cpp. References getSaveURL(), saveAsURL(), and url(). Referenced by file_save(). |
|
close a file, prompt for save if changes made.
Definition at line 752 of file actionmanager.cpp. References CalendarView::closeCalendar(), and saveModifiedURL(). Referenced by closeURL(). |
|
Open kcontrol module for configuring date and time formats.
Definition at line 1138 of file actionmanager.cpp. References dialogParent(). |
|
Show tip of the day.
Definition at line 1153 of file actionmanager.cpp. References dialogParent(). |
|
Show tip of the day.
Definition at line 1158 of file actionmanager.cpp. References dialogParent(). |
|
called by the autoSaveTimer to automatically save the calendar
Definition at line 1090 of file actionmanager.cpp. References saveCalendar(), and url(). Referenced by updateConfig(). |
|
connected to CalendarView's signal which comes from the ArchiveDialog
Definition at line 1512 of file actionmanager.cpp. Referenced by slotAutoArchive(). |
|
called by the auto archive timer to automatically delete/archive events
Definition at line 1520 of file actionmanager.cpp. References CalendarView::calendar(), EventArchiver::runAuto(), and slotAutoArchivingSettingsModified(). |
|
Get URL for saving. Opens FileDialog. Definition at line 1040 of file actionmanager.cpp. References dialogParent(). Referenced by file_saveas(), and saveModifiedURL(). |
|
Return widget used as parent for dialogs and message boxes.
Definition at line 1532 of file actionmanager.cpp. Referenced by configureDateTime(), file_import(), file_merge(), file_open(), getSaveURL(), openURL(), saveModifiedURL(), saveURL(), showTip(), and showTipOnStart(). |
The documentation for this class was generated from the following files: