korganizer

#include <actionmanager.h>

Inheritance diagram for ActionManager:
KCalendarIface

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 ()
 
CalendarViewview () 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::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 (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.

Constructor & Destructor Documentation

◆ ActionManager()

ActionManager::ActionManager ( KXMLGUIClient *  client,
CalendarView widget,
TQObject *  parent,
KOrg::MainWindow mainWindow,
bool  isPart 
)

Definition at line 82 of file actionmanager.cpp.

◆ ~ActionManager()

ActionManager::~ActionManager ( )
virtual

Definition at line 99 of file actionmanager.cpp.

Member Function Documentation

◆ actionNew

void ActionManager::actionNew ( const KURL &  url = KURL())
signal

Emitted when the "New" action is activated.

◆ addIncidence()

bool ActionManager::addIncidence ( const TQString &  ical)

Add an incidence to the active calendar.

Parameters
icalA calendar in iCalendar format containing the incidence.

Definition at line 1402 of file actionmanager.cpp.

◆ addResource

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

Add a new resource.

Definition at line 916 of file actionmanager.cpp.

◆ checkAutoSave

void ActionManager::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

void ActionManager::closingDown ( )
signal

Emitted when the topwidget is closing down, so that any attached child windows can also close.

◆ configChanged

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.

◆ configureDateTime

void ActionManager::configureDateTime ( )
protectedslot

Open kcontrol module for configuring date and time formats.

Definition at line 1290 of file actionmanager.cpp.

◆ configureDateTimeFinished

void ActionManager::configureDateTimeFinished ( TDEProcess *  proc)
protectedslot

Definition at line 1407 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()

bool ActionManager::deleteIncidence ( const TQString &  uid,
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 1397 of file actionmanager.cpp.

◆ dialogParent()

TQWidget * ActionManager::dialogParent ( )
protected

Return widget used as parent for dialogs and message boxes.

Definition at line 2130 of file actionmanager.cpp.

◆ downloadNewStuff

void ActionManager::downloadNewStuff ( )
protectedslot

Definition at line 1412 of file actionmanager.cpp.

◆ editIncidence() [1/2]

bool ActionManager::editIncidence ( const TQString &  uid)

Definition at line 1387 of file actionmanager.cpp.

◆ editIncidence() [2/2]

bool ActionManager::editIncidence ( const TQString &  uid,
const TQDate &  date 
)

Definition at line 1392 of file actionmanager.cpp.

◆ exportHTML [1/2]

void ActionManager::exportHTML ( )
slot

Definition at line 1037 of file actionmanager.cpp.

◆ exportHTML [2/2]

void ActionManager::exportHTML ( HTMLExportSettings *  settings)
slot

Definition at line 1057 of file actionmanager.cpp.

◆ file_archive

void ActionManager::file_archive ( )
protectedslot

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

Definition at line 806 of file actionmanager.cpp.

◆ file_close

void ActionManager::file_close ( )
protectedslot

close a file, prompt for save if changes made.

Definition at line 844 of file actionmanager.cpp.

◆ file_icalimport

void ActionManager::file_icalimport ( )
protectedslot

import a calendar from another program like ical.

Definition at line 739 of file actionmanager.cpp.

◆ file_merge

void ActionManager::file_merge ( )
protectedslot

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

Definition at line 797 of file actionmanager.cpp.

◆ file_new

void ActionManager::file_new ( )
protectedslot

open new window

Definition at line 703 of file actionmanager.cpp.

◆ file_open [1/2]

void ActionManager::file_open ( )
protectedslot

open a file, load it into the calendar.

Definition at line 708 of file actionmanager.cpp.

◆ file_open [2/2]

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.

Definition at line 718 of file actionmanager.cpp.

◆ file_revert

void ActionManager::file_revert ( )
protectedslot

revert to saved

Definition at line 811 of file actionmanager.cpp.

◆ file_save

void ActionManager::file_save ( )
protectedslot

save a file with the current fileName.

Definition at line 825 of file actionmanager.cpp.

◆ file_saveas

void ActionManager::file_saveas ( )
protectedslot

save a file under a (possibly) different filename.

Definition at line 816 of file actionmanager.cpp.

◆ findInstance()

KOrg::MainWindow * ActionManager::findInstance ( const KURL &  url)
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()

KURL ActionManager::getSaveURL ( )
protected

Get URL for saving.

Opens FileDialog.

Definition at line 1187 of file actionmanager.cpp.

◆ goDate() [1/2]

void ActionManager::goDate ( const TQDate &  date)
virtual

Implements KCalendarIface.

Definition at line 1870 of file actionmanager.cpp.

◆ goDate() [2/2]

void ActionManager::goDate ( const TQString &  date)
virtual

Implements KCalendarIface.

Definition at line 1875 of file actionmanager.cpp.

◆ handleCommandLine()

bool ActionManager::handleCommandLine ( )

Definition at line 2094 of file actionmanager.cpp.

◆ importCalendar

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

Definition at line 2004 of file actionmanager.cpp.

◆ init()

void ActionManager::init ( )

Peform initialization that requires this* to be full constructed.

Definition at line 119 of file actionmanager.cpp.

◆ initCalendar()

void ActionManager::initCalendar ( Calendar cal)
protected

Definition at line 211 of file actionmanager.cpp.

◆ keyBindings

void ActionManager::keyBindings ( )
slot

Definition at line 1513 of file actionmanager.cpp.

◆ loadParts

void ActionManager::loadParts ( )
slot

Definition at line 1526 of file actionmanager.cpp.

◆ loadProfile()

void ActionManager::loadProfile ( const TQString &  path)

Definition at line 2054 of file actionmanager.cpp.

◆ loadResourceCalendar()

void ActionManager::loadResourceCalendar ( )

Load the resource based calendar.

Definition at line 1993 of file actionmanager.cpp.

◆ localFileName()

TQString ActionManager::localFileName ( )

Definition at line 1426 of file actionmanager.cpp.

◆ mergeURL()

bool ActionManager::mergeURL ( const TQString &  url)

Open calendar file from URL.

Definition at line 1372 of file actionmanager.cpp.

◆ openEventEditor() [1/4]

void ActionManager::openEventEditor ( const TQString &  text)
virtual

Implements KCalendarIface.

Definition at line 1634 of file actionmanager.cpp.

◆ openEventEditor() [2/4]

void ActionManager::openEventEditor ( const TQString &  summary,
const TQString &  description,
const TQString &  attachment 
)
virtual

Implements KCalendarIface.

Definition at line 1642 of file actionmanager.cpp.

◆ openEventEditor() [3/4]

void ActionManager::openEventEditor ( const TQString &  summary,
const TQString &  description,
const TQString &  attachment,
const TQStringList &  attendees 
)
virtual

Implements KCalendarIface.

Definition at line 1650 of file actionmanager.cpp.

◆ openEventEditor() [4/4]

void ActionManager::openEventEditor ( const TQString &  summary,
const TQString &  description,
const TQString &  uri,
const TQString &  file,
const TQStringList &  attendees,
const TQString &  attachmentMimetype 
)
virtual

Implements KCalendarIface.

Definition at line 1658 of file actionmanager.cpp.

◆ openJournalEditor() [1/3]

void ActionManager::openJournalEditor ( const TQDate &  date)
virtual

Implements KCalendarIface.

Definition at line 1825 of file actionmanager.cpp.

◆ openJournalEditor() [2/3]

void ActionManager::openJournalEditor ( const TQString &  text)
virtual

Implements KCalendarIface.

Definition at line 1837 of file actionmanager.cpp.

◆ openJournalEditor() [3/3]

void ActionManager::openJournalEditor ( const TQString &  text,
const TQDate &  date 
)
virtual

Implements KCalendarIface.

Definition at line 1831 of file actionmanager.cpp.

◆ openTodoEditor() [1/4]

void ActionManager::openTodoEditor ( const TQString &  text)
virtual

Implements KCalendarIface.

Definition at line 1755 of file actionmanager.cpp.

◆ openTodoEditor() [2/4]

void ActionManager::openTodoEditor ( const TQString &  summary,
const TQString &  description,
const TQString &  attachment 
)
virtual

Implements KCalendarIface.

Definition at line 1763 of file actionmanager.cpp.

◆ openTodoEditor() [3/4]

void ActionManager::openTodoEditor ( const TQString &  summary,
const TQString &  description,
const TQString &  attachment,
const TQStringList &  attendees 
)
virtual

Implements KCalendarIface.

Definition at line 1771 of file actionmanager.cpp.

◆ openTodoEditor() [4/4]

void ActionManager::openTodoEditor ( const TQString &  summary,
const TQString &  description,
const TQString &  uri,
const TQString &  file,
const TQStringList &  attendees,
const TQString &  attachmentMimetype,
bool  isTask 
)
virtual

Implements KCalendarIface.

Definition at line 1780 of file actionmanager.cpp.

◆ openURL [1/2]

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 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.

◆ processIncidenceSelection

void ActionManager::processIncidenceSelection ( Incidence incidence,
const TQDate &  date 
)
slot

Definition at line 1470 of file actionmanager.cpp.

◆ queryClose()

bool ActionManager::queryClose ( )

Definition at line 1910 of file actionmanager.cpp.

◆ readProperties

void ActionManager::readProperties ( TDEConfig *  config)
slot

Definition at line 1220 of file actionmanager.cpp.

◆ readSettings

void ActionManager::readSettings ( )
slot

Using the TDEConfig associated with the tdeApp variable, read in the settings from the config file.

Definition at line 655 of file actionmanager.cpp.

◆ resourceAdded

void ActionManager::resourceAdded ( ResourceCalendar )
signal

Indicates that a new resource was added.

◆ resourceRequest()

KCalendarIface::ResourceRequestReply ActionManager::resourceRequest ( const TQValueList< TQPair< TQDateTime, TQDateTime > > &  busy,
const TQCString &  resource,
const TQString &  vCalIn 
)
virtual

Implements KCalendarIface.

Definition at line 1536 of file actionmanager.cpp.

◆ saveAsURL [1/2]

bool ActionManager::saveAsURL ( const KURL &  kurl)
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

bool ActionManager::saveModifiedURL ( )
slot

Save calendar if it is modified by the user.

Ask user what to do.

Definition at line 1149 of file actionmanager.cpp.

◆ saveProperties

void ActionManager::saveProperties ( TDEConfig *  config)
slot

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

◆ saveToProfile()

void ActionManager::saveToProfile ( const TQString &  path) const

Definition at line 2085 of file actionmanager.cpp.

◆ saveURL

bool ActionManager::saveURL ( )
slot

Save calendar file to URL of current calendar.

Definition at line 980 of file actionmanager.cpp.

◆ setDestinationPolicy

void ActionManager::setDestinationPolicy ( )
slot

Definition at line 1280 of file actionmanager.cpp.

◆ setTitle

void ActionManager::setTitle ( )
protectedslot

Definition at line 1531 of file actionmanager.cpp.

◆ showDate()

void ActionManager::showDate ( const TQDate &  date)
virtual

Implements KCalendarIface.

Definition at line 1880 of file actionmanager.cpp.

◆ showEventView()

void ActionManager::showEventView ( )
virtual

Implements KCalendarIface.

Definition at line 1865 of file actionmanager.cpp.

◆ showJournalView()

void ActionManager::showJournalView ( )
virtual

Implements KCalendarIface.

Definition at line 1855 of file actionmanager.cpp.

◆ showStatusMessageOpen()

void ActionManager::showStatusMessageOpen ( const KURL &  url,
bool  merge 
)
protected

Definition at line 962 of file actionmanager.cpp.

◆ showTip

void ActionManager::showTip ( )
protectedslot

Show tip of the day.

Definition at line 1305 of file actionmanager.cpp.

◆ showTipOnStart

void ActionManager::showTipOnStart ( )
protectedslot

Show tip of the day.

Definition at line 1310 of file actionmanager.cpp.

◆ showTodoView()

void ActionManager::showTodoView ( )
virtual

Implements KCalendarIface.

Definition at line 1860 of file actionmanager.cpp.

◆ slotAutoArchive

void ActionManager::slotAutoArchive ( )
protectedslot

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

Definition at line 2042 of file actionmanager.cpp.

◆ slotAutoArchivingSettingsModified

void ActionManager::slotAutoArchivingSettingsModified ( )
protectedslot

connected to CalendarView's signal which comes from the ArchiveDialog

Definition at line 2034 of file actionmanager.cpp.

◆ slotPreviewDialogFinished

void ActionManager::slotPreviewDialogFinished ( PreviewDialog *  dlg)
protectedslot

Definition at line 2028 of file actionmanager.cpp.

◆ toggleDateNavigator

void ActionManager::toggleDateNavigator ( )
protectedslot

Definition at line 1330 of file actionmanager.cpp.

◆ toggleEventViewer

void ActionManager::toggleEventViewer ( )
protectedslot

Definition at line 1342 of file actionmanager.cpp.

◆ toggleResourceButtons

void ActionManager::toggleResourceButtons ( )
protectedslot

Definition at line 1358 of file actionmanager.cpp.

◆ toggleResourceView

void ActionManager::toggleResourceView ( )
protectedslot

Definition at line 1348 of file actionmanager.cpp.

◆ toggleTodoView

void ActionManager::toggleTodoView ( )
protectedslot

Definition at line 1336 of file actionmanager.cpp.

◆ updateConfig

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

◆ updateRedoAction

void ActionManager::updateRedoAction ( const TQString &  text)
protectedslot

Definition at line 1898 of file actionmanager.cpp.

◆ updateUndoAction

void ActionManager::updateUndoAction ( const TQString &  text)
protectedslot

Definition at line 1886 of file actionmanager.cpp.

◆ uploadNewStuff

void ActionManager::uploadNewStuff ( )
protectedslot

Definition at line 1420 of file actionmanager.cpp.

◆ url()

KURL ActionManager::url ( ) const
inline

Get current URL.

Definition at line 133 of file actionmanager.h.

◆ view()

CalendarView * ActionManager::view ( ) const
inline

Definition at line 86 of file actionmanager.h.

◆ writeSettings

void ActionManager::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: