#include <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 TQDate &date) |
| void | keyBindings () |
| void | readSettings () |
| void | writeSettings () |
| void | saveProperties (TDEConfig *) |
| void | readProperties (TDEConfig *) |
| 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, TQObject *parent, KOrg::MainWindow *mainWindow, bool isPart) | |
| void | init () |
| CalendarView * | view () const |
| void | createCalendarLocal () |
| void | createCalendarResources () |
| void | saveCalendar () |
| bool | saveResourceCalendar () |
| void | loadResourceCalendar () |
| KURL | url () const |
| bool | openURL (const TQString &url) |
| bool | mergeURL (const TQString &url) |
| bool | saveAsURL (const TQString &url) |
| void | closeURL () |
| TQString | getCurrentURLasString () const |
| virtual bool | deleteIncidence (const TQString &uid, bool force=false) |
| bool | editIncidence (const TQString &uid) |
| bool | editIncidence (const TQString &uid, const TQDate &date) |
| bool | addIncidence (const TQString &ical) |
| virtual ResourceRequestReply | resourceRequest (const TQValueList< TQPair< TQDateTime, TQDateTime > > &busy, const TQCString &resource, const TQString &vCalIn) |
| void | openEventEditor (const TQString &) |
| void | openEventEditor (const TQString &summary, const TQString &description, const TQString &attachment) |
| void | openEventEditor (const TQString &summary, const TQString &description, const TQString &attachment, const TQStringList &attendees) |
| void | openEventEditor (const TQString &summary, const TQString &description, const TQString &uri, const TQString &file, const TQStringList &attendees, const TQString &attachmentMimetype) |
| void | openTodoEditor (const TQString &) |
| void | openTodoEditor (const TQString &summary, const TQString &description, const TQString &attachment) |
| void | openTodoEditor (const TQString &summary, const TQString &description, const TQString &attachment, const TQStringList &attendees) |
| void | openTodoEditor (const TQString &summary, const TQString &description, const TQString &uri, const TQString &file, const TQStringList &attendees, const TQString &attachmentMimetype, bool isTask) |
| void | openJournalEditor (const TQDate &date) |
| void | openJournalEditor (const TQString &text, const TQDate &date) |
| void | openJournalEditor (const TQString &text) |
| void | showJournalView () |
| void | showTodoView () |
| void | showEventView () |
| void | goDate (const TQDate &) |
| void | goDate (const TQString &) |
| void | showDate (const TQDate &date) |
| TQString | localFileName () |
| bool | queryClose () |
| void | loadProfile (const TQString &path) |
| void | saveToProfile (const TQString &path) const |
| bool | handleCommandLine () |
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 (TDEProcess *) |
| void | setTitle () |
| void | updateUndoAction (const TQString &) |
| void | updateRedoAction (const TQString &) |
| void | slotPreviewDialogFinished (PreviewDialog *) |
Protected Member Functions | |
| KURL | getSaveURL () |
| void | showStatusMessageOpen (const KURL &url, bool merge) |
| void | initCalendar (Calendar *cal) |
| TQWidget * | 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 73 of file actionmanager.h.
Member Function Documentation
◆ actionNew
|
signal |
Emitted when the "New" action is activated.
◆ addIncidence()
| bool ActionManager::addIncidence | ( | const TQString & | ical | ) |
Add an incidence to the active calendar.
- Parameters
-
ical A calendar in iCalendar format containing the incidence.
Definition at line 1402 of file actionmanager.cpp.
◆ addResource
|
slot |
Add a new resource.
Definition at line 916 of file actionmanager.cpp.
◆ checkAutoSave
|
protectedslot |
called by the autoSaveTimer to automatically save the calendar
Definition at line 1237 of file actionmanager.cpp.
◆ closeURL()
| void ActionManager::closeURL | ( | ) |
Close calendar file opened from URL.
Definition at line 973 of file actionmanager.cpp.
◆ closingDown
|
signal |
Emitted when the topwidget is closing down, so that any attached child windows can also close.
◆ 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.
◆ configureDateTime
|
protectedslot |
Open kcontrol module for configuring date and time formats.
Definition at line 1290 of file actionmanager.cpp.
◆ createCalendarLocal()
| void ActionManager::createCalendarLocal | ( | ) |
Create Calendar object based on local file and set it on the view.
Definition at line 168 of file actionmanager.cpp.
◆ createCalendarResources()
| void ActionManager::createCalendarResources | ( | ) |
Create Calendar object based on the resource framework and set it on the view.
Definition at line 177 of file actionmanager.cpp.
◆ deleteIncidence()
|
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 1397 of file actionmanager.cpp.
◆ dialogParent()
|
protected |
Return widget used as parent for dialogs and message boxes.
Definition at line 2130 of file actionmanager.cpp.
◆ file_archive
|
protectedslot |
delete or archive old entries in your calendar for speed/space.
Definition at line 806 of file actionmanager.cpp.
◆ file_close
|
protectedslot |
close a file, prompt for save if changes made.
Definition at line 844 of file actionmanager.cpp.
◆ file_icalimport
|
protectedslot |
import a calendar from another program like ical.
Definition at line 739 of file actionmanager.cpp.
◆ file_merge
|
protectedslot |
open a calendar and add the contents to the current calendar.
Definition at line 797 of file actionmanager.cpp.
◆ file_new
|
protectedslot |
open new window
Definition at line 703 of file actionmanager.cpp.
◆ file_open [1/2]
|
protectedslot |
open a file, load it into the calendar.
Definition at line 708 of file actionmanager.cpp.
◆ file_open [2/2]
|
protectedslot |
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 718 of file actionmanager.cpp.
◆ file_revert
|
protectedslot |
revert to saved
Definition at line 811 of file actionmanager.cpp.
◆ file_save
|
protectedslot |
save a file with the current fileName.
Definition at line 825 of file actionmanager.cpp.
◆ file_saveas
|
protectedslot |
save a file under a (possibly) different filename.
Definition at line 816 of file actionmanager.cpp.
◆ findInstance()
|
static |
Is there a instance with this URL?
Definition at line 1315 of file actionmanager.cpp.
◆ getCurrentURLasString()
| TQString ActionManager::getCurrentURLasString | ( | ) | const |
Get current URL as TQString.
Definition at line 1382 of file actionmanager.cpp.
◆ getSaveURL()
|
protected |
◆ init()
| void ActionManager::init | ( | ) |
Peform initialization that requires this* to be full constructed.
Definition at line 119 of file actionmanager.cpp.
◆ loadResourceCalendar()
| void ActionManager::loadResourceCalendar | ( | ) |
Load the resource based calendar.
Definition at line 1993 of file actionmanager.cpp.
◆ mergeURL()
| bool ActionManager::mergeURL | ( | const TQString & | url | ) |
Open calendar file from URL.
Definition at line 1372 of file actionmanager.cpp.
◆ openURL [1/2]
|
slot |
Open calendar file from URL.
Merge into current calendar, if merge is true.
Definition at line 856 of file actionmanager.cpp.
◆ openURL() [2/2]
| bool ActionManager::openURL | ( | const TQString & | url | ) |
Open calendar file from URL.
Definition at line 1367 of file actionmanager.cpp.
◆ readSettings
|
slot |
Using the TDEConfig associated with the kapp variable, read in the settings from the config file.
Definition at line 655 of file actionmanager.cpp.
◆ resourceAdded
|
signal |
Indicates that a new resource was added.
◆ saveAsURL [1/2]
|
slot |
Save calendar file to URL.
Definition at line 1103 of file actionmanager.cpp.
◆ saveAsURL() [2/2]
| bool ActionManager::saveAsURL | ( | const TQString & | url | ) |
Save calendar file to URL.
Definition at line 1377 of file actionmanager.cpp.
◆ saveCalendar()
| void ActionManager::saveCalendar | ( | ) |
Save calendar to disk.
Definition at line 1956 of file actionmanager.cpp.
◆ saveModifiedURL
|
slot |
Save calendar if it is modified by the user.
Ask user what to do.
Definition at line 1149 of file actionmanager.cpp.
◆ saveResourceCalendar()
| 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 1973 of file actionmanager.cpp.
◆ saveURL
|
slot |
Save calendar file to URL of current calendar.
Definition at line 980 of file actionmanager.cpp.
◆ showTip
|
protectedslot |
Show tip of the day.
Definition at line 1305 of file actionmanager.cpp.
◆ showTipOnStart
|
protectedslot |
Show tip of the day.
Definition at line 1310 of file actionmanager.cpp.
◆ slotAutoArchive
|
protectedslot |
called by the auto archive timer to automatically delete/archive events
Definition at line 2042 of file actionmanager.cpp.
◆ slotAutoArchivingSettingsModified
|
protectedslot |
connected to CalendarView's signal which comes from the ArchiveDialog
Definition at line 2034 of file actionmanager.cpp.
◆ 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 1254 of file actionmanager.cpp.
◆ url()
|
inline |
Get current URL.
Definition at line 133 of file actionmanager.h.
◆ writeSettings
|
slot |
Write current state to config file.
Definition at line 665 of file actionmanager.cpp.
The documentation for this class was generated from the following files:
