korganizer

ActionManager Class Reference

#include <actionmanager.h>

Inheritance diagram for ActionManager:

KCalendarIface List of all members.

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)
virtual ~ActionManager ()
void init ()
CalendarViewview () 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 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::MainWindowfindInstance (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 (  ) 

Save calendar to disk.

Definition at line 1832 of file actionmanager.cpp.

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 1849 of file actionmanager.cpp.

bool ActionManager::addResource ( const KURL &  mUrl  )  [slot]

Add a new resource.

Definition at line 913 of file actionmanager.cpp.

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 853 of file actionmanager.cpp.

bool ActionManager::saveURL (  )  [slot]

Save calendar file to URL of current calendar.

Definition at line 977 of file actionmanager.cpp.

bool ActionManager::saveAsURL ( const KURL &  kurl  )  [slot]

Save calendar file to URL.

Definition at line 1100 of file actionmanager.cpp.

bool ActionManager::saveModifiedURL (  )  [slot]

Save calendar if it is modified by the user.

Ask user what to do.

Definition at line 1146 of file actionmanager.cpp.

KURL ActionManager::url (  )  const [inline]

Get current URL.

Definition at line 128 of file actionmanager.h.

KOrg::MainWindow * ActionManager::findInstance ( const KURL &  url  )  [static]

Is there a instance with this URL?

Definition at line 1312 of file actionmanager.cpp.

bool ActionManager::openURL ( const QString &  url  ) 

Open calendar file from URL.

Definition at line 1364 of file actionmanager.cpp.

bool ActionManager::mergeURL ( const QString &  url  ) 

Open calendar file from URL.

Definition at line 1369 of file actionmanager.cpp.

bool ActionManager::saveAsURL ( const QString &  url  ) 

Save calendar file to URL.

Definition at line 1374 of file actionmanager.cpp.

void ActionManager::closeURL (  ) 

Close calendar file opened from URL.

Definition at line 970 of file actionmanager.cpp.

QString ActionManager::getCurrentURLasString (  )  const

Get current URL as QString.

Definition at line 1379 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 1389 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 1394 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 1251 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 652 of file actionmanager.cpp.

void ActionManager::writeSettings (  )  [slot]

Write current state to config file.

Definition at line 662 of file actionmanager.cpp.

void ActionManager::file_new (  )  [protected, slot]

open new window

Definition at line 700 of file actionmanager.cpp.

void ActionManager::file_open (  )  [protected, slot]

open a file, load it into the calendar.

Definition at line 705 of file actionmanager.cpp.

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 715 of file actionmanager.cpp.

void ActionManager::file_icalimport (  )  [protected, slot]

import a calendar from another program like ical.

Definition at line 736 of file actionmanager.cpp.

void ActionManager::file_merge (  )  [protected, slot]

open a calendar and add the contents to the current calendar.

Definition at line 794 of file actionmanager.cpp.

void ActionManager::file_revert (  )  [protected, slot]

revert to saved

Definition at line 808 of file actionmanager.cpp.

void ActionManager::file_archive (  )  [protected, slot]

delete or archive old entries in your calendar for speed/space.

Definition at line 803 of file actionmanager.cpp.

void ActionManager::file_save (  )  [protected, slot]

save a file with the current fileName.

Definition at line 822 of file actionmanager.cpp.

void ActionManager::file_saveas (  )  [protected, slot]

save a file under a (possibly) different filename.

Definition at line 813 of file actionmanager.cpp.

void ActionManager::file_close (  )  [protected, slot]

close a file, prompt for save if changes made.

Definition at line 841 of file actionmanager.cpp.

void ActionManager::configureDateTime (  )  [protected, slot]

Open kcontrol module for configuring date and time formats.

Definition at line 1287 of file actionmanager.cpp.

void ActionManager::showTip (  )  [protected, slot]

Show tip of the day.

Definition at line 1302 of file actionmanager.cpp.

void ActionManager::showTipOnStart (  )  [protected, slot]

Show tip of the day.

Definition at line 1307 of file actionmanager.cpp.

void ActionManager::checkAutoSave (  )  [protected, slot]

called by the autoSaveTimer to automatically save the calendar

Definition at line 1234 of file actionmanager.cpp.

void ActionManager::slotAutoArchivingSettingsModified (  )  [protected, slot]

connected to CalendarView's signal which comes from the ArchiveDialog

Definition at line 1897 of file actionmanager.cpp.

void ActionManager::slotAutoArchive (  )  [protected, slot]

called by the auto archive timer to automatically delete/archive events

Definition at line 1905 of file actionmanager.cpp.

KURL ActionManager::getSaveURL (  )  [protected]

Get URL for saving.

Opens FileDialog.

Definition at line 1184 of file actionmanager.cpp.

QWidget * ActionManager::dialogParent (  )  [protected]

Return widget used as parent for dialogs and message boxes.

Definition at line 1957 of file actionmanager.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys