korganizer
CalendarView Class Reference
#include <calendarview.h>

Detailed Description
This is the main calendar widget.It provides the different views on the calendar data as well as the date navigator. It also handles synchronization of the different views and controls the different dialogs like preferences, event editor, search dialog etc.
main calendar view widget
Definition at line 91 of file calendarview.h.
Public Slots | |
| bool | addIncidence (const QString &ical) |
| void | addIncidenceOn (Incidence *, const QDate &) |
| void | appointment_delete () |
| void | appointment_edit () |
| void | appointment_show () |
| void | archiveCalendar () |
| void | changeIncidenceDisplay (Incidence *, int) |
| void | checkClipboard () |
| void | closeCalendar () |
| void | connectIncidenceEditor (KOIncidenceEditor *) |
| void | copyIncidence (Incidence *) |
| void | cutIncidence (Incidence *) |
| bool | deleteEvent (Event *) |
| bool | deleteIncidence (const QString &uid, bool force=false) |
| void | deleteIncidence (Incidence *, bool force=false) |
| void | deleteIncidence () |
| bool | deleteJournal (Journal *) |
| void | deleteSubTodosIncidence (Todo *todo) |
| bool | deleteTodo (Todo *) |
| void | deleteTodoIncidence (Todo *todo, bool force=false) |
| void | dialogClosing (Incidence *) |
| void | dissociateFutureOccurrence (Incidence *, const QDate &) |
| void | dissociateOccurrence (Incidence *, const QDate &) |
| void | edit_copy () |
| void | edit_cut () |
| void | edit_options () |
| void | edit_paste () |
| void | editCanceled (Incidence *) |
| void | editFilters () |
| bool | editIncidence (Incidence *) |
| bool | editIncidence (const QString &uid) |
| void | editIncidence () |
| void | endMultiModify () |
| void | eventUpdated (Incidence *) |
| void | exportICalendar () |
| void | exportVCalendar () |
| void | exportWeb () |
| void | filterActivated (int filterNum) |
| void | goDate (const QDate &date) |
| void | goNext () |
| void | goPrevious () |
| void | goToday () |
| void | incidenceAdded (Incidence *) |
| void | incidenceChanged (Incidence *oldEvent, Incidence *newEvent, int what) |
| void | incidenceChanged (Incidence *oldEvent, Incidence *newEvent) |
| void | incidenceDeleted (Incidence *) |
| void | incidenceToBeDeleted (Incidence *incidence) |
| bool | isModified () |
| bool | isReadOnly () |
| void | mailFreeBusy (int daysToPublish=30) |
| bool | makeSubTodosIndependents (Todo *todo) |
| bool | makeSubTodosIndependents () |
| void | moveIncidenceTo (Incidence *, const QDate &) |
| void | newEvent (const QString &summary, const QString &description=QString(), const QStringList &attachment=QStringList(), const QStringList &attendees=QStringList(), const QStringList &attachmentMimetypes=QStringList(), bool inlineAttachment=false) |
| void | newEvent (const QDateTime &startDt, const QDateTime &EndDt, bool allDay=false) |
| void | newEvent (const QDateTime &startDt) |
| void | newEvent (const QDate &startDt) |
| void | newEvent () |
| void | newFloatingEvent () |
| void | newJournal (const QString &text, const QDate &date=QDate()) |
| void | newJournal (const QDate &date) |
| void | newJournal () |
| void | newSubTodo (Todo *) |
| void | newSubTodo () |
| void | newTodo (const QString &summary, const QString &description=QString(), const QStringList &attachments=QStringList(), const QStringList &attendees=QStringList(), const QStringList &attachmentMimetypes=QStringList(), bool inlineAttachment=false) |
| void | newTodo (const QDate &date) |
| void | newTodo () |
| void | openAddressbook () |
| bool | openCalendar (const QString &filename, bool merge=false) |
| void | print () |
| void | processIncidenceSelection (Incidence *) |
| void | processMainViewSelection (Incidence *) |
| void | processTodoListSelection (Incidence *) |
| void | purgeCompleted () |
| void | readFilterSettings (KConfig *config) |
| void | readSettings () |
| bool | saveCalendar (const QString &filename) |
| void | schedule (iTIPMethod, Incidence *incidence) |
| void | schedule_add (Incidence *incidence=0) |
| void | schedule_cancel (Incidence *incidence=0) |
| void | schedule_counter (Incidence *incidence=0) |
| void | schedule_declinecounter (Incidence *incidence=0) |
| void | schedule_forward (Incidence *incidence=0) |
| void | schedule_publish (Incidence *incidence=0) |
| void | schedule_refresh (Incidence *incidence=0) |
| void | schedule_reply (Incidence *incidence=0) |
| void | schedule_request (Incidence *incidence=0) |
| void | setModified (bool modified=true) |
| void | setReadOnly (bool readOnly=true) |
| void | showDate (const QDate &date) |
| void | showDateNavigator (bool) |
| void | showErrorMessage (const QString &) |
| void | showEventViewer (bool) |
| void | showIncidence (Incidence *) |
| bool | showIncidence (const QString &uid) |
| void | showIncidence () |
| void | showIncidenceContext (Incidence *incidence) |
| bool | showIncidenceContext (const QString &uid) |
| void | showIntro () |
| void | showLeftFrame (bool show=true) |
| void | showTodoView (bool) |
| void | slotAutoArchivingSettingsModified () |
| void | slotCalendarChanged () |
| void | startMultiModify (const QString &text) |
| void | takeOverCalendar () |
| void | takeOverEvent () |
| bool | todo_unsub (Todo *todo) |
| void | todo_unsub () |
| void | toggleAlarm (Incidence *) |
| void | updateCategories () |
| void | updateConfig (const QByteArray &) |
| void | updateFilter () |
| void | updateUnmanagedViews () |
| void | updateView () |
| void | updateView (const QDate &start, const QDate &end) |
| void | uploadFreeBusy () |
| void | writeFilterSettings (KConfig *config) |
| void | writeSettings () |
Signals | |
| void | autoArchivingSettingsModified () |
| void | calendarViewExpanded (bool) |
| void | cancelAttendees (Incidence *) |
| void | categoriesChanged () |
| void | categoryConfigChanged () |
| void | changeNavStringNext (const QString &) |
| void | changeNavStringPrev (const QString &) |
| void | closed (QWidget *) |
| void | closingDown () |
| void | configChanged () |
| void | dayPassed (const QDate &) |
| void | exportHTML (HTMLExportSettings *) |
| void | filterChanged () |
| void | groupEventsSelected (bool) |
| void | incidenceSelected (Incidence *) |
| void | modifiedChanged (bool) |
| void | newFilterListSignal (const QStringList &) |
| void | newIncidenceChanger (IncidenceChangerBase *) |
| void | organizerEventsSelected (bool) |
| void | pasteEnabled (bool) |
| void | readOnlyChanged (bool) |
| void | selectFilterSignal (int) |
| void | statusMessage (const QString &) |
| void | subtodoSelected (bool) |
| void | todoSelected (bool) |
Public Member Functions | |
| void | adaptNavigationUnits () |
| void | addExtension (CalendarViewExtension::Factory *) |
| void | addView (KOrg::BaseView *) |
| Calendar * | calendar () |
| CalendarView (QWidget *parent=0) | |
| QString | currentFilterName () const |
| Incidence * | currentSelection () |
| DateNavigator * | dateNavigator () const |
| KODialogManager * | dialogManager () const |
| KOIncidenceEditor * | editorDialog (Incidence *incidence) const |
| QDate | endDate () |
| History * | history () const |
| IncidenceChangerBase * | incidenceChanger () const |
| QWidget * | leftFrame () const |
| int | msgCalModified () |
| NavigatorBar * | navigatorBar () const |
| Incidence * | selectedIncidence () |
| void | setCalendar (Calendar *) |
| void | showView (KOrg::BaseView *) |
| QDate | startDate () |
| KOViewManager * | viewManager () const |
| QStackedWidget * | viewStack () const |
| virtual | ~CalendarView () |
Protected Slots | |
| void | showDates (const KCal::DateList &) |
Protected Member Functions | |
| void | checkForFilteredChange (Incidence *incidence) |
| void | dateTimesForNewEvent (QDateTime &startDt, QDateTime &endDt, bool &allDay) |
| int | msgItemDelete (Incidence *incidence) |
| KOEventEditor * | newEventEditor (const QDateTime &startDtParam=QDateTime(), const QDateTime &endDtParam=QDateTime(), bool allDayParam=false) |
| Todo * | selectedTodo () |
| void | setIncidenceChanger (IncidenceChangerBase *changer) |
| void | warningChangeFailed (Incidence *) |
Classes | |
| class | CalendarViewVisitor |
| class | CanDeleteIncidenceVisitor |
Constructor & Destructor Documentation
| CalendarView::CalendarView | ( | QWidget * | parent = 0 |
) |
Constructs a new calendar view widget.
- Parameters:
-
parent parent window
Definition at line 112 of file calendarview.cpp.
| CalendarView::~CalendarView | ( | ) | [virtual] |
Definition at line 253 of file calendarview.cpp.
Member Function Documentation
| void CalendarView::adaptNavigationUnits | ( | ) |
Adapt navigation units corresponding to step size of navigation of the current view.
Definition at line 1556 of file calendarview.cpp.
| void CalendarView::addExtension | ( | CalendarViewExtension::Factory * | factory | ) |
Add calendar view extension widget.
CalendarView takes ownership of the objects created by the factory.
Definition at line 1770 of file calendarview.cpp.
| bool CalendarView::addIncidence | ( | const QString & | ical | ) | [slot] |
Add an incidence to the active calendar.
- Parameters:
-
ical A calendar in iCalendar format containing the incidence. The calendar must consist of a VCALENDAR component which contains the incidence (VEVENT, VTODO, VJOURNAL or VFREEBUSY) and optionally a VTIMEZONE component. If there is more than one incidence, only the first is added to KOrganizer's calendar.
Definition at line 1057 of file calendarview.cpp.
| void CalendarView::addIncidenceOn | ( | Incidence * | incadd, | |
| const QDate & | dt | |||
| ) | [slot] |
Definition at line 2248 of file calendarview.cpp.
| void CalendarView::addView | ( | KOrg::BaseView * | view | ) |
Definition at line 1760 of file calendarview.cpp.
| void CalendarView::appointment_delete | ( | ) | [slot] |
pop up dialog confirming deletion of currently selected event in the View.
Definition at line 1093 of file calendarview.cpp.
| void CalendarView::appointment_edit | ( | ) | [slot] |
pop up an Appointment Dialog to edit an existing appointment.
Get information on the appointment from the list of unique IDs that is currently in the View, called currIds.
Definition at line 1083 of file calendarview.cpp.
| void CalendarView::appointment_show | ( | ) | [slot] |
| void CalendarView::archiveCalendar | ( | ) | [slot] |
| void CalendarView::autoArchivingSettingsModified | ( | ) | [signal] |
Emitted when auto-archiving options were modified.
| Calendar * CalendarView::calendar | ( | ) |
Definition at line 311 of file calendarview.cpp.
| void CalendarView::calendarViewExpanded | ( | bool | ) | [signal] |
| void CalendarView::cancelAttendees | ( | Incidence * | ) | [signal] |
Attendees were removed from this incidence.
Only the removed attendees are present in the incidence, so we just need to send a cancel messages to all attendees groupware messages are enabled at all.
| void CalendarView::categoriesChanged | ( | ) | [signal] |
Emitted when the categories were updated, and thus the categories editor dialog needs to reload the list of categories.
| void CalendarView::categoryConfigChanged | ( | ) | [signal] |
Emitted when the categories were edited by the user, and thus the views need to reload the list of categories.
| void CalendarView::changeIncidenceDisplay | ( | Incidence * | incidence, | |
| int | action | |||
| ) | [slot] |
passes on the message that an event has changed to the currently activated view so that it can make appropriate display changes.
Definition at line 752 of file calendarview.cpp.
| void CalendarView::changeNavStringNext | ( | const QString & | ) | [signal] |
| void CalendarView::changeNavStringPrev | ( | const QString & | ) | [signal] |
Emitted when the unit of navigation changes.
| void CalendarView::checkClipboard | ( | ) | [slot] |
Check if clipboard contains vCalendar event.
The signal pasteEnabled() is emitted as result.
Definition at line 1615 of file calendarview.cpp.
| void CalendarView::checkForFilteredChange | ( | Incidence * | incidence | ) | [protected] |
Definition at line 727 of file calendarview.cpp.
| void CalendarView::closeCalendar | ( | ) | [slot] |
Close calendar.
Clear calendar data and reset views to display an empty calendar.
Definition at line 419 of file calendarview.cpp.
| void CalendarView::closed | ( | QWidget * | ) | [signal] |
Emitted right before we die.
| void CalendarView::closingDown | ( | ) | [signal] |
Emitted when the topwidget is closing down, so that any attached child windows can also close.
| void CalendarView::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 CalendarView::connectIncidenceEditor | ( | KOIncidenceEditor * | editor | ) | [slot] |
Definition at line 2133 of file calendarview.cpp.
| void CalendarView::copyIncidence | ( | Incidence * | incidence | ) | [slot] |
Copies the selected incidence using the edit_copy() method.
Definition at line 1884 of file calendarview.cpp.
| QString CalendarView::currentFilterName | ( | ) | const |
| Incidence * CalendarView::currentSelection | ( | ) |
currentSelection() returns a pointer to the incidence selected in the current view
Definition at line 1820 of file calendarview.cpp.
| void CalendarView::cutIncidence | ( | Incidence * | incidence | ) | [slot] |
Cuts the selected incidence using the edit_cut() method.
Definition at line 1878 of file calendarview.cpp.
| DateNavigator* CalendarView::dateNavigator | ( | ) | const [inline] |
Definition at line 136 of file calendarview.h.
| void CalendarView::dateTimesForNewEvent | ( | QDateTime & | startDt, | |
| QDateTime & | endDt, | |||
| bool & | allDay | |||
| ) | [protected] |
Adjust the given date/times by valid defaults (selection or configured defaults, if invalid values are given) and allow the view to adjust the type.
Definition at line 893 of file calendarview.cpp.
| void CalendarView::dayPassed | ( | const QDate & | ) | [signal] |
Emitted, when a day changed (i.e.
korganizer was running at midnight). The argument is the new date
| bool CalendarView::deleteEvent | ( | Event * | ) | [inline, slot] |
| bool CalendarView::deleteIncidence | ( | const QString & | uid, | |
| bool | force = false | |||
| ) | [slot] |
Delete the incidence with the given unique ID.
Returns false, if event wasn't found.
- Parameters:
-
uid The 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 1170 of file calendarview.cpp.
| void CalendarView::deleteIncidence | ( | Incidence * | incidence, | |
| bool | force = false | |||
| ) | [slot] |
Delete the supplied incidence.
It calls the correct deleteXXX method
- Parameters:
-
force If true, all recurrences and sub-todos (if applicable) will be deleted without prompting for confirmation.
Definition at line 2031 of file calendarview.cpp.
| void CalendarView::deleteIncidence | ( | ) | [slot] |
Definition at line 1873 of file calendarview.cpp.
| bool CalendarView::deleteJournal | ( | Journal * | ) | [inline, slot] |
| void CalendarView::deleteSubTodosIncidence | ( | Todo * | todo | ) | [slot] |
| bool CalendarView::deleteTodo | ( | Todo * | ) | [inline, slot] |
| void CalendarView::deleteTodoIncidence | ( | Todo * | todo, | |
| bool | force = false | |||
| ) | [slot] |
Delete the todo incidence, and its sub-to-dos.
- Parameters:
-
todo The todo to delete. force If true, all sub-todos will be deleted without prompting for confirmation.
Definition at line 1986 of file calendarview.cpp.
| void CalendarView::dialogClosing | ( | Incidence * | in | ) | [slot] |
Definition at line 1813 of file calendarview.cpp.
| KODialogManager* CalendarView::dialogManager | ( | ) | const [inline] |
Definition at line 131 of file calendarview.h.
| void CalendarView::dissociateFutureOccurrence | ( | Incidence * | incidence, | |
| const QDate & | date | |||
| ) | [slot] |
Definition at line 1238 of file calendarview.cpp.
| void CalendarView::dissociateOccurrence | ( | Incidence * | incidence, | |
| const QDate & | date | |||
| ) | [slot] |
Definition at line 1209 of file calendarview.cpp.
| void CalendarView::edit_copy | ( | ) | [slot] |
| void CalendarView::edit_cut | ( | ) | [slot] |
| void CalendarView::edit_options | ( | ) | [slot] |
| void CalendarView::edit_paste | ( | ) | [slot] |
paste the current vobject(s) in the clipboard buffer into calendar
Definition at line 829 of file calendarview.cpp.
| void CalendarView::editCanceled | ( | Incidence * | incidence | ) | [slot] |
Definition at line 2222 of file calendarview.cpp.
| void CalendarView::editFilters | ( | ) | [slot] |
Definition at line 1637 of file calendarview.cpp.
| bool CalendarView::editIncidence | ( | Incidence * | incidence | ) | [slot] |
Create an editor for the supplied incidence.
It calls the correct editXXX method
Definition at line 1927 of file calendarview.cpp.
| bool CalendarView::editIncidence | ( | const QString & | uid | ) | [slot] |
Definition at line 1847 of file calendarview.cpp.
| void CalendarView::editIncidence | ( | ) | [slot] |
Definition at line 1842 of file calendarview.cpp.
| KOIncidenceEditor * CalendarView::editorDialog | ( | Incidence * | incidence | ) | const |
Definition at line 320 of file calendarview.cpp.
| QDate CalendarView::endDate | ( | ) |
Definition at line 335 of file calendarview.cpp.
| void CalendarView::endMultiModify | ( | ) | [slot] |
Definition at line 747 of file calendarview.cpp.
| void CalendarView::eventUpdated | ( | Incidence * | ) | [slot] |
Definition at line 1548 of file calendarview.cpp.
| void CalendarView::exportHTML | ( | HTMLExportSettings * | ) | [signal] |
| void CalendarView::exportICalendar | ( | ) | [slot] |
| void CalendarView::exportVCalendar | ( | ) | [slot] |
| void CalendarView::exportWeb | ( | ) | [slot] |
| void CalendarView::filterActivated | ( | int | filterNum | ) | [slot] |
Definition at line 1675 of file calendarview.cpp.
| void CalendarView::filterChanged | ( | ) | [signal] |
| void CalendarView::goDate | ( | const QDate & | date | ) | [slot] |
| void CalendarView::goNext | ( | ) | [slot] |
| void CalendarView::goPrevious | ( | ) | [slot] |
| void CalendarView::goToday | ( | ) | [slot] |
| void CalendarView::groupEventsSelected | ( | bool | ) | [signal] |
Emitted when state of events selection has changed and user is attendee.
| History* CalendarView::history | ( | ) | const [inline] |
Definition at line 128 of file calendarview.h.
| void CalendarView::incidenceAdded | ( | Incidence * | incidence | ) | [slot] |
Definition at line 632 of file calendarview.cpp.
| void CalendarView::incidenceChanged | ( | Incidence * | oldEvent, | |
| Incidence * | newEvent, | |||
| int | what | |||
| ) | [slot] |
Definition at line 647 of file calendarview.cpp.
| void CalendarView::incidenceChanged | ( | Incidence * | oldEvent, | |
| Incidence * | newEvent | |||
| ) | [slot] |
Definition at line 641 of file calendarview.cpp.
| IncidenceChangerBase* CalendarView::incidenceChanger | ( | ) | const [inline] |
Definition at line 139 of file calendarview.h.
| void CalendarView::incidenceDeleted | ( | Incidence * | incidence | ) | [slot] |
Definition at line 721 of file calendarview.cpp.
| void CalendarView::incidenceSelected | ( | Incidence * | ) | [signal] |
Emitted when an incidence gets selected.
If the selection is cleared the signal is emitted with 0 as argument.
| void CalendarView::incidenceToBeDeleted | ( | Incidence * | incidence | ) | [slot] |
Definition at line 708 of file calendarview.cpp.
| bool CalendarView::isModified | ( | ) | [slot] |
| bool CalendarView::isReadOnly | ( | ) | [slot] |
| QWidget* CalendarView::leftFrame | ( | ) | const [inline] |
Definition at line 134 of file calendarview.h.
| void CalendarView::mailFreeBusy | ( | int | daysToPublish = 30 |
) | [slot] |
Definition at line 1366 of file calendarview.cpp.
| bool CalendarView::makeSubTodosIndependents | ( | Todo * | todo | ) | [slot] |
Make all sub-to-dos of todo independents, not update the view.
Definition at line 1147 of file calendarview.cpp.
| bool CalendarView::makeSubTodosIndependents |
KDE 4.1 API Reference