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

korganizer

Public Slots | Signals | Public Member Functions | Static Public Member Functions | Protected Slots | Protected Member Functions | List of all members
ActionManager Class Reference

#include <actionmanager.h>

Inheritance diagram for ActionManager:
Inheritance graph
[legend]

Public Slots

void exportHTML ()
 
void exportHTML (KOrg::HTMLExportSettings *settings, bool autoMode=false)
 
void goDate (const QDate &)
 
void goDate (const QString &)
 
void importCalendar (const KUrl &url)
 
bool importURL (const KUrl &url, bool merge)
 
void keyBindings ()
 
void loadParts ()
 
void openEventEditor (const QString &)
 
void openEventEditor (const QString &summary, const QString &description, const QStringList &attachments)
 
void openEventEditor (const QString &summary, const QString &description, const QStringList &attachments, const QStringList &attendees)
 
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 &attachmentUris, const QStringList &attendees, const QStringList &attachmentMimetypes, bool attachmentIsInline)
 
void openJournalEditor (const QDate &date)
 
void openJournalEditor (const QString &text, const QDate &date)
 
void openJournalEditor (const QString &text)
 
void openTodoEditor (const QString &)
 
void openTodoEditor (const QString &summary, const QString &description, const QStringList &attachments)
 
void openTodoEditor (const QString &summary, const QString &description, const QStringList &attachments, const QStringList &attendees)
 
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 &attachmentUris, const QStringList &attendees, const QStringList &attachmentMimetypes, bool attachmentIsInline)
 
void processIncidenceSelection (const Akonadi::Item &item, const QDate &date)
 
void readProperties (const KConfigGroup &)
 
void readSettings ()
 
bool saveAsURL (const KUrl &kurl)
 
void saveProperties (KConfigGroup &)
 
bool saveURL ()
 
void showDate (const QDate &date)
 
void showEventView ()
 
void showJournalView ()
 
void showTodoView ()
 
void toggleMenubar (bool dontShowWarning=false)
 
void updateConfig ()
 
void writeSettings ()
 

Signals

void configChanged ()
 
void toggleMenuBar ()
 

Public Member Functions

 ActionManager (KXMLGUIClient *client, CalendarView *widget, QObject *parent, KOrg::MainWindow *mainWindow, bool isPart, KMenuBar *menuBar=0)
 
virtual ~ActionManager ()
 
bool addIncidence (const QString &ical)
 
void createCalendarAkonadi ()
 
virtual bool deleteIncidence (Akonadi::Item::Id id, bool force=false)
 
bool editIncidence (Akonadi::Item::Id id)
 
QString getCurrentURLasString () const
 
bool handleCommandLine ()
 
void init ()
 
QString localFileName ()
 
bool mergeURL (const QString &url)
 
bool openURL (const QString &url)
 
bool queryClose ()
 
bool saveAsURL (const QString &url)
 
bool showIncidence (Akonadi::Item::Id id)
 
bool showIncidenceContext (Akonadi::Item::Id id)
 
KUrl url () const
 
CalendarView * view () const
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
 QObject (QObject *parent, const char *name)
 
virtual  ~QObject ()
 
bool blockSignals (bool block)
 
QObject * child (const char *objName, const char *inheritsClass, bool recursiveSearch) const
 
const QObjectList & children () const
 
const char * className () const
 
bool connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const QObject *receiver, const char *method)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method)
 
void dumpObjectInfo ()
 
void dumpObjectTree ()
 
QList< QByteArray > dynamicPropertyNames () const
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
T findChild (const QString &name) const
 
QList< T > findChildren (const QRegExp &regExp) const
 
QList< T > findChildren (const QString &name) const
 
bool inherits (const char *className) const
 
void insertChild (QObject *object)
 
void installEventFilter (QObject *filterObj)
 
bool isA (const char *className) const
 
bool isWidgetType () const
 
void killTimer (int id)
 
virtual const QMetaObject * metaObject () const
 
void moveToThread (QThread *targetThread)
 
const char * name () const
 
const char * name (const char *defaultName) const
 
QString objectName () const
 
QObject * parent () const
 
QVariant property (const char *name) const
 
void removeChild (QObject *object)
 
void removeEventFilter (QObject *obj)
 
void setName (const char *name)
 
void setObjectName (const QString &name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool signalsBlocked () const
 
int startTimer (int interval)
 
QThread * thread () const
 

Static Public Member Functions

static KOrg::MainWindow * findInstance (const KUrl &url)
 
- Static Public Member Functions inherited from QObject
bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
QString trUtf8 (const char *sourceText, const char *disambiguation, int n)
 

Protected Slots

void checkAutoExport ()
 
void configureDateTime ()
 
void downloadNewStuff ()
 
void file_archive ()
 
void file_icalimport ()
 
void file_import ()
 
void file_open ()
 
void file_open (const KUrl &url)
 
void setItems (const QStringList &, int)
 
void setTitle ()
 
void showTip ()
 
void showTipOnStart ()
 
void slotAutoArchive ()
 
void slotAutoArchivingSettingsModified ()
 
void toggleDateNavigator ()
 
void toggleEventViewer ()
 
void toggleResourceView ()
 
void toggleTodoView ()
 
void updateUndoRedoActions ()
 

Protected Member Functions

QWidget * dialogParent ()
 
KUrl getSaveURL ()
 
- Protected Member Functions inherited from QObject
bool checkConnectArgs (const char *signal, const QObject *object, const char *method)
 
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const char *signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const char *signal)
 
int receivers (const char *signal) const
 
QObject * sender () const
 
int senderSignalIndex () const
 
virtual void timerEvent (QTimerEvent *event)
 

Additional Inherited Members

- Static Protected Member Functions inherited from QObject
QByteArray normalizeSignalSlot (const char *signalSlot)
 
- Properties inherited from QObject
 objectName
 

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 D-Bus interfaces.

Definition at line 66 of file actionmanager.h.

Constructor & Destructor Documentation

ActionManager::ActionManager ( KXMLGUIClient *  client,
CalendarView *  widget,
QObject *  parent,
KOrg::MainWindow *  mainWindow,
bool  isPart,
KMenuBar *  menuBar = 0 
)

Definition at line 96 of file actionmanager.cpp.

ActionManager::~ActionManager ( )
virtual

Definition at line 117 of file actionmanager.cpp.

Member Function Documentation

bool ActionManager::addIncidence ( const QString &  ical)

Add an incidence to the active calendar.

Parameters
icalA calendar in iCalendar format containing the incidence.

Definition at line 1403 of file actionmanager.cpp.

void ActionManager::checkAutoExport ( )
protectedslot

called by the autoExportTimer to automatically export the calendar

Definition at line 1919 of file actionmanager.cpp.

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

Open kcontrol module for configuring date and time formats.

Definition at line 1250 of file actionmanager.cpp.

void ActionManager::createCalendarAkonadi ( )

Create Calendar object based on the akonadi framework and set it on the view.

Definition at line 210 of file actionmanager.cpp.

bool ActionManager::deleteIncidence ( Akonadi::Item::Id  id,
bool  force = false 
)
virtual

Delete the incidence with the given unique id from current calendar.

Parameters
uidUID of the incidence to delete.
forceIf true, all recurrences and sub-todos (if applicable) will be deleted without prompting for confirmation.

Definition at line 1398 of file actionmanager.cpp.

QWidget * ActionManager::dialogParent ( )
protected

Return widget used as parent for dialogs and message boxes.

Definition at line 1914 of file actionmanager.cpp.

void ActionManager::downloadNewStuff ( )
protectedslot

Definition at line 1408 of file actionmanager.cpp.

bool ActionManager::editIncidence ( Akonadi::Item::Id  id)

Definition at line 1348 of file actionmanager.cpp.

void ActionManager::exportHTML ( )
slot

Export the calendar to an HTML file.

Reads up the user settings as needed. Intended to be used as part of the auto HTML export feature.

Definition at line 1010 of file actionmanager.cpp.

void ActionManager::exportHTML ( KOrg::HTMLExportSettings *  settings,
bool  autoMode = false 
)
slot

Export the calendar to an HTML file, per the user settings.

Parameters
settingsis a pointer to an KOrg::HTMLExportSettings instance.
autoModeif true, indicates that this export is for an autosave; if false, then the export is explicitly user invoked.

Definition at line 1032 of file actionmanager.cpp.

void ActionManager::file_archive ( )
protectedslot

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

Definition at line 932 of file actionmanager.cpp.

void ActionManager::file_icalimport ( )
protectedslot

import a non-ics calendar from another program like ical.

Definition at line 872 of file actionmanager.cpp.

void ActionManager::file_import ( )
protectedslot

import a generic ics file

Definition at line 922 of file actionmanager.cpp.

void ActionManager::file_open ( )
protectedslot

open new window

open a file, load it into the calendar.

Definition at line 844 of file actionmanager.cpp.

void ActionManager::file_open ( const KUrl &  url)
protectedslot

open a file from the list of recent files.

Also called from file_open() after the URL is obtained from the user.

Parameters
urlthe URL to open

Definition at line 852 of file actionmanager.cpp.

KOrg::MainWindow * ActionManager::findInstance ( const KUrl &  url)
static

Is there a instance with this URL?

Definition at line 1273 of file actionmanager.cpp.

QString ActionManager::getCurrentURLasString ( ) const

Get current URL as QString.

Definition at line 1343 of file actionmanager.cpp.

KUrl ActionManager::getSaveURL ( )
protected

Get URL for saving.

Opens FileDialog.

Definition at line 1184 of file actionmanager.cpp.

void ActionManager::goDate ( const QDate &  date)
slot

Definition at line 1811 of file actionmanager.cpp.

void ActionManager::goDate ( const QString &  date)
slot

Definition at line 1816 of file actionmanager.cpp.

bool ActionManager::handleCommandLine ( )

Called by KOrganizerUniqueAppHandler in the kontact plugin Returns true if the command line was successfully handled false otherwise.

Definition at line 1363 of file actionmanager.cpp.

void ActionManager::importCalendar ( const KUrl &  url)
slot

Definition at line 1854 of file actionmanager.cpp.

bool ActionManager::importURL ( const KUrl &  url,
bool  merge 
)
slot

Definition at line 937 of file actionmanager.cpp.

void ActionManager::init ( )

Peform initialization that requires this* to be full constructed.

Definition at line 152 of file actionmanager.cpp.

void ActionManager::keyBindings ( )
slot

Definition at line 1583 of file actionmanager.cpp.

void ActionManager::loadParts ( )
slot

Definition at line 1599 of file actionmanager.cpp.

QString ActionManager::localFileName ( )

Definition at line 1453 of file actionmanager.cpp.

bool ActionManager::mergeURL ( const QString &  url)

Open calendar file from URL.

Definition at line 1333 of file actionmanager.cpp.

void ActionManager::openEventEditor ( const QString &  text)
slot

Definition at line 1609 of file actionmanager.cpp.

void ActionManager::openEventEditor ( const QString &  summary,
const QString &  description,
const QStringList &  attachments 
)
slot

Definition at line 1614 of file actionmanager.cpp.

void ActionManager::openEventEditor ( const QString &  summary,
const QString &  description,
const QStringList &  attachments,
const QStringList &  attendees 
)
slot

Definition at line 1621 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 1629 of file actionmanager.cpp.

void ActionManager::openEventEditor ( const QString &  summary,
const QString &  description,
const QStringList &  attachmentUris,
const QStringList &  attendees,
const QStringList &  attachmentMimetypes,
bool  attachmentIsInline 
)
slot

Definition at line 1948 of file actionmanager.cpp.

void ActionManager::openJournalEditor ( const QDate &  date)
slot

Definition at line 1781 of file actionmanager.cpp.

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

Definition at line 1786 of file actionmanager.cpp.

void ActionManager::openJournalEditor ( const QString &  text)
slot

Definition at line 1791 of file actionmanager.cpp.

void ActionManager::openTodoEditor ( const QString &  text)
slot

Definition at line 1716 of file actionmanager.cpp.

void ActionManager::openTodoEditor ( const QString &  summary,
const QString &  description,
const QStringList &  attachments 
)
slot

Definition at line 1721 of file actionmanager.cpp.

void ActionManager::openTodoEditor ( const QString &  summary,
const QString &  description,
const QStringList &  attachments,
const QStringList &  attendees 
)
slot

Definition at line 1727 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 1735 of file actionmanager.cpp.

void ActionManager::openTodoEditor ( const QString &  summary,
const QString &  description,
const QStringList &  attachmentUris,
const QStringList &  attendees,
const QStringList &  attachmentMimetypes,
bool  attachmentIsInline 
)
slot

Definition at line 1932 of file actionmanager.cpp.

bool ActionManager::openURL ( const QString &  url)

Open calendar file from URL.

Definition at line 1286 of file actionmanager.cpp.

void ActionManager::processIncidenceSelection ( const Akonadi::Item &  item,
const QDate &  date 
)
slot

Definition at line 1529 of file actionmanager.cpp.

bool ActionManager::queryClose ( )

Definition at line 1849 of file actionmanager.cpp.

void ActionManager::readProperties ( const KConfigGroup &  )
slot

Definition at line 1220 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 791 of file actionmanager.cpp.

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

Save calendar file to URL.

Definition at line 1097 of file actionmanager.cpp.

bool ActionManager::saveAsURL ( const QString &  url)

Save calendar file to URL.

Definition at line 1338 of file actionmanager.cpp.

void ActionManager::saveProperties ( KConfigGroup &  config)
slot

Definition at line 1210 of file actionmanager.cpp.

bool ActionManager::saveURL ( )
slot

Save calendar file to URL of current calendar.

Definition at line 960 of file actionmanager.cpp.

void ActionManager::setItems ( const QStringList &  lst,
int  idx 
)
protectedslot

Definition at line 728 of file actionmanager.cpp.

void ActionManager::setTitle ( )
protectedslot

Definition at line 1604 of file actionmanager.cpp.

void ActionManager::showDate ( const QDate &  date)
slot

Definition at line 1821 of file actionmanager.cpp.

void ActionManager::showEventView ( )
slot

Definition at line 1806 of file actionmanager.cpp.

bool ActionManager::showIncidence ( Akonadi::Item::Id  id)

Definition at line 1353 of file actionmanager.cpp.

bool ActionManager::showIncidenceContext ( Akonadi::Item::Id  id)

Show an incidence in context.

This means showing the todo, agenda or journal view (as appropriate) and scrolling it to show the incidence.

Parameters
uidUnique ID of the incidence to show.

Definition at line 1358 of file actionmanager.cpp.

void ActionManager::showJournalView ( )
slot

Definition at line 1796 of file actionmanager.cpp.

void ActionManager::showTip ( )
protectedslot

Show tip of the day.

Definition at line 1261 of file actionmanager.cpp.

void ActionManager::showTipOnStart ( )
protectedslot

Show tip of the day.

Definition at line 1266 of file actionmanager.cpp.

void ActionManager::showTodoView ( )
slot

Definition at line 1801 of file actionmanager.cpp.

void ActionManager::slotAutoArchive ( )
protectedslot

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

Definition at line 1899 of file actionmanager.cpp.

void ActionManager::slotAutoArchivingSettingsModified ( )
protectedslot

connected to CalendarView's signal which comes from the ArchiveDialog

Definition at line 1890 of file actionmanager.cpp.

void ActionManager::toggleDateNavigator ( )
protectedslot

Definition at line 1297 of file actionmanager.cpp.

void ActionManager::toggleEventViewer ( )
protectedslot

Definition at line 1313 of file actionmanager.cpp.

void ActionManager::toggleMenubar ( bool  dontShowWarning = false)
slot

Definition at line 133 of file actionmanager.cpp.

void ActionManager::toggleMenuBar ( )
signal

Emitted when the "New" action is activated.

void ActionManager::toggleResourceView ( )
protectedslot

Definition at line 1321 of file actionmanager.cpp.

void ActionManager::toggleTodoView ( )
protectedslot

Definition at line 1305 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 1226 of file actionmanager.cpp.

void ActionManager::updateUndoRedoActions ( )
protectedslot

Definition at line 1826 of file actionmanager.cpp.

KUrl ActionManager::url ( ) const
inline

Get current URL.

Definition at line 111 of file actionmanager.h.

CalendarView* ActionManager::view ( ) const
inline

Definition at line 78 of file actionmanager.h.

void ActionManager::writeSettings ( )
slot

Write current state to config file.

Definition at line 806 of file actionmanager.cpp.


The documentation for this class was generated from the following files:
  • actionmanager.h
  • actionmanager.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

korganizer

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

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer
  • pimprint

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal