• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

korganizer

ActionManager Class Reference

#include <actionmanager.h>

Inheritance diagram for ActionManager:

Inheritance graph
[legend]

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 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 (  ) 

Close calendar file opened from URL.

Definition at line 1027 of file actionmanager.cpp.

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]

close a file, prompt for save if changes made.

Definition at line 898 of file actionmanager.cpp.

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

import a calendar from another program like ical.

Definition at line 791 of file actionmanager.cpp.

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]

open new window

Definition at line 750 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.

Parameters:
url the URL to open

Definition at line 765 of file actionmanager.cpp.

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

open a file, load it into the calendar.

Definition at line 755 of file actionmanager.cpp.

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

revert to saved

Definition at line 863 of file actionmanager.cpp.

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

save a file with the current fileName.

Definition at line 879 of file actionmanager.cpp.

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]

Is there a instance with this URL?

Definition at line 1385 of file actionmanager.cpp.

QString ActionManager::getCurrentURLasString (  )  const

Get current URL as QString.

Definition at line 1456 of file actionmanager.cpp.

KUrl ActionManager::getSaveURL (  )  [protected]

Get URL for saving.

Opens FileDialog.

Definition at line 1245 of file actionmanager.cpp.

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  ) 

Open calendar file from URL.

Definition at line 1446 of file actionmanager.cpp.

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.

void ActionManager::openJournalEditor ( const QString &  text,
const QDate &  date 
) [slot]

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  ) 

Open calendar file from URL.

Definition at line 1441 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.

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  ) 

Save calendar file to URL.

Definition at line 1451 of file actionmanager.cpp.

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

Save calendar file to URL.

Definition at line 1157 of file actionmanager.cpp.

void ActionManager::saveCalendar (  ) 

Save calendar to disk.

Definition at line 1984 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 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]

Save calendar file to URL of current calendar.

Definition at line 1034 of file actionmanager.cpp.

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]

Show tip of the day.

Definition at line 1375 of file actionmanager.cpp.

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

Show tip of the day.

Definition at line 1380 of file actionmanager.cpp.

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]

Get current URL.

Definition at line 141 of file actionmanager.h.

CalendarView* ActionManager::view (  )  const [inline]

Definition at line 88 of file actionmanager.h.

void ActionManager::writeSettings (  )  [slot]

Write current state to config file.

Definition at line 716 of file actionmanager.cpp.


The documentation for this class was generated from the following files:
  • actionmanager.h
  • actionmanager.cpp

korganizer

Skip menu "korganizer"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members