CalendarView Class Reference
This is the main calendar widget.main calendar view widget. More...
#include <calendarview.h>
Inherits KOrg::CalendarViewBase, and Observer.
Public Slots
- void updateConfig ()
- void updateCategories ()
- bool openCalendar (const QString &filename, bool merge=false)
- bool saveCalendar (const QString &filename)
- void closeCalendar ()
- void archiveCalendar ()
- void showIncidence ()
- void editIncidence ()
- bool editIncidence (const QString &uid)
- void deleteIncidence ()
- void connectIncidenceEditor (KOIncidenceEditor *)
- void newEvent (const QDateTime &, const QDateTime &, bool allDay=false)
- void newEvent (const QDateTime &fh)
- void newEvent (const QDate &dt)
- void newEvent ()
- void newEvent (const QString &)
- void newEvent (const QString &summary, const QString &description, const QString &attachment)
- void newEvent (const QString &summary, const QString &description, const QString &attachment, const QStringList &attendees)
- void newFloatingEvent ()
- void showIncidence (Incidence *)
- bool editIncidence (Incidence *)
- void deleteIncidence (Incidence *)
- void deleteSubTodosIncidence (Todo *todo)
- void deleteTodoIncidence (Todo *todo)
- bool deleteEvent (Event *)
- bool deleteTodo (Todo *)
- bool deleteJournal (Journal *)
- bool deleteIncidence (const QString &uid)
- void newTodo ()
- void newTodo (const QDate &date)
- void newSubTodo ()
- void newSubTodo (Todo *)
- void newTodo (const QString &)
- void newTodo (const QString &summary, const QString &description, const QString &attachment)
- void newTodo (const QString &summary, const QString &description, const QString &attachment, const QStringList &attendees)
- void newJournal (const QDate &date)
- void newJournal (const QString &text, const QDate &date)
- void newJournal (const QString &text)
- void toggleAlarm (Incidence *)
- void dissociateOccurrence (Incidence *, const QDate &)
- void dissociateFutureOccurrence (Incidence *, const QDate &)
- void checkClipboard ()
- void readSettings ()
- void writeSettings ()
- void readFilterSettings (KConfig *config)
- void writeFilterSettings (KConfig *config)
- void changeIncidenceDisplay (Incidence *, int)
- void incidenceAdded (Incidence *)
- void incidenceChanged (Incidence *oldEvent, Incidence *newEvent)
- void incidenceChanged (Incidence *oldEvent, Incidence *newEvent, int what)
- void incidenceToBeDeleted (Incidence *incidence)
- void incidenceDeleted (Incidence *)
- void startMultiModify (const QString &text)
- void endMultiModify ()
- void editCanceled (Incidence *)
- void updateView (const QDate &start, const QDate &end)
- void updateView ()
- void updateUnmanagedViews ()
- void edit_cut ()
- void edit_copy ()
- void edit_paste ()
- void edit_options ()
- void print ()
- void exportWeb ()
- void exportICalendar ()
- void exportVCalendar ()
- void appointment_show ()
- void appointment_edit ()
- void appointment_delete ()
- void todo_unsub ()
- bool todo_unsub (Todo *todo)
- bool makeSubTodosIndependents ()
- bool makeSubTodosIndependents (Todo *todo)
- void takeOverEvent ()
- void takeOverCalendar ()
- bool isModified ()
- void setModified (bool modified=true)
- bool isReadOnly ()
- void setReadOnly (bool readOnly=true)
- void eventUpdated (Incidence *)
- void schedule_publish (Incidence *incidence=0)
- void schedule_request (Incidence *incidence=0)
- void schedule_refresh (Incidence *incidence=0)
- void schedule_cancel (Incidence *incidence=0)
- void schedule_add (Incidence *incidence=0)
- void schedule_reply (Incidence *incidence=0)
- void schedule_counter (Incidence *incidence=0)
- void schedule_declinecounter (Incidence *incidence=0)
- void mailFreeBusy (int daysToPublish=30)
- void uploadFreeBusy ()
- void openAddressbook ()
- void editFilters ()
- void updateFilter ()
- void showIntro ()
- void showDateNavigator (bool)
- void showTodoView (bool)
- void showEventViewer (bool)
- void goDate (const QDate &date)
- void goToday ()
- void goNext ()
- void goPrevious ()
- void toggleExpand ()
- void showLeftFrame (bool show=true)
- void dialogClosing (Incidence *)
- void processMainViewSelection (Incidence *)
- void processTodoListSelection (Incidence *)
- void processIncidenceSelection (Incidence *)
- void purgeCompleted ()
- void slotCalendarChanged ()
- void slotAutoArchivingSettingsModified ()
- void importQtopia (const QString &categoriesFile, const QString &datebookFile, const QString &tasklistFile)
- void showErrorMessage (const QString &)
- void schedule (Scheduler::Method, Incidence *incidence)
- void addIncidenceOn (Incidence *, const QDate &)
- void moveIncidenceTo (Incidence *, const QDate &)
- void filterActivated (int filterNum)
Signals
- void configChanged ()
- void categoriesChanged ()
- void closingDown ()
- void closed (QWidget *)
- void modifiedChanged (bool)
- void readOnlyChanged (bool)
- void changeNavStringPrev (const QString &)
- void changeNavStringNext (const QString &)
- void organizerEventsSelected (bool)
- void groupEventsSelected (bool)
- void incidenceSelected (Incidence *)
- void todoSelected (bool)
- void subtodoSelected (bool)
- void dayPassed (const QDate &)
- void cancelAttendees (Incidence *)
- void pasteEnabled (bool)
- void statusMessage (const QString &)
- void calendarViewExpanded (bool)
- void autoArchivingSettingsModified ()
- void newIncidenceChanger (IncidenceChangerBase *)
- void exportHTML (HTMLExportSettings *)
- void newFilterListSignal (const QStringList &)
- void selectFilterSignal (int)
- void filterChanged ()
Public Member Functions
- CalendarView (QWidget *parent=0, const char *name=0)
- void setCalendar (Calendar *)
- Calendar * calendar ()
- KOrg::History * history () const
- KOViewManager * viewManager () const
- KODialogManager * dialogManager () const
- QWidgetStack * viewStack () const
- QWidget * leftFrame () const
- NavigatorBar * navigatorBar () const
- DateNavigator * dateNavigator () const
- KOIncidenceEditor * editorDialog (Incidence *) const
- IncidenceChangerBase * incidenceChanger () const
- QDate startDate ()
- QDate endDate ()
- void addView (KOrg::BaseView *)
- void showView (KOrg::BaseView *)
- void addExtension (CalendarViewExtension::Factory *)
- Incidence * currentSelection ()
- Incidence * selectedIncidence ()
- QString currentFilterName () const
- int msgCalModified ()
- void adaptNavigationUnits ()
Protected Slots
- void showDates (const KCal::DateList &)
Protected Member Functions
- void setIncidenceChanger (IncidenceChangerBase *changer)
- int msgItemDelete (Incidence *incidence)
- Todo * selectedTodo ()
- void warningChangeFailed (Incidence *)
- void checkForFilteredChange (Incidence *incidence)
Detailed Description
This is the main calendar widget.main calendar view widget.It provides the different vies on t he 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.
- Author:
- Cornelius Schumacher
Constructor & Destructor Documentation
|
Constructs a new calendar view widget.
|
Member Function Documentation
|
changes the view to be the currently selected view
Implements KOrg::CalendarViewBase. |
|
Add calendar view extension widget. CalendarView takes ownership of the objects created by the factory. |
|
currentSelection() returns a pointer to the incidence selected in the current view
Implements KOrg::CalendarViewBase. |
|
Return a pointer to the incidence selected in the current view. If there is no selection, return the selected todo from the todo list on the left |
|
Returns the name of the current filter.
|
|
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.
|
|
Emitted when the categories were updated, and thus the categories editor dialog needs to reload the list of categories.
|
|
emitted when the topwidget is closing down, so that any attached child windows can also close.
|
|
emitted right before we die
|
|
Emitted when state of modified flag changes.
|
|
Emitted when state of read-only flag changes.
|
|
Emitted when the unit of navigation changes.
|
|
Emitted when state of events selection has changed and user is organizer.
|
|
Emitted when state of events selection has changed and user is attendee.
|
|
Emitted when an incidence gets selected. If the selection is cleared the signal is emitted with 0 as argument. |
|
Emitted, when a todoitem is selected or deselected. the connected slots enables/disables the corresponding menu items |
|
Emitted, when a day changed (i.e. korganizer was running at midnight). The argument is the new date |
|
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. |
|
Emitted, when clipboard content changes. Parameter indicates if paste is possible or not. |
|
Send status message, which can e.g. be displayed in the status bar. |
|
Emitted when auto-archiving options were modified.
|
|
options dialog made a changed to the configuration. we catch this and notify all widgets which need to update their configuration. |
|
Calendar configuration was changed, so refresh categories list.
Implements KOrg::CalendarViewBase. |
|
Load calendar from file filename. If merge is true, load calendar into existing one, if it is false, clear calendar, before loading. Return true, if calendar could be successfully loaded. |
|
Save calendar data to file. Return true if calendar could be successfully saved. |
|
Close calendar. Clear calendar data and reset views to display an empty calendar. |
|
Archive old events of calendar.
|
|
create an editeventwin with supplied date/time, and if bool is true, make the event take all day.
|
|
create new event without having a date hint. Takes current date as default hint. |
|
Create new Event from given string.
|
|
Create a read-only viewer dialog for the supplied incidence. It calls the correct showXXX method |
|
Create an editor for the supplied incidence. It calls the correct editXXX method |
|
Delete the supplied incidence. It calls the correct deleteXXX method |
|
Delete the supplied todo and all sub-todos.
|
|
Delete the todo incidence, this is special to can delete sub-to-dos.
|
|
Check if deleting the supplied event is allowed.
|
|
Check if deleting the todo is allowed.
|
|
Check if deleting the supplied journal is allowed.
|
|
Delete the event with the given unique ID. Returns false, if event wasn't found. |
|
create new todo
|
|
create new todo, due on date
|
|
create new todo with a parent todo
|
|
create new todo with a parent todo
|
|
Check if clipboard contains vCalendar event. The signal pasteEnabled() is emitted as result. |
|
Using the KConfig associated with the kapp variable, read in the settings from the config file. You have to call setCalendar before calling readSettings. |
|
write current state to config file.
|
|
read settings for calendar filters
|
|
write settings for calendar filters
|
|
passes on the message that an event has changed to the currently activated view so that it can make appropriate display changes.
|
|
cut the current appointment to the clipboard
|
|
copy the current appointment(s) to the clipboard
|
|
paste the current vobject(s) in the clipboard buffer into calendar
|
|
edit viewing and configuration options.
|
|
Functions for printing, previewing a print, and setting up printing parameters.
|
|
Export as HTML file.
|
|
Export as iCalendar file.
|
|
Export as vCalendar file.
|
|
pop up a dialog to show an existing appointment.
|
|
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. |
|
pop up dialog confirming deletion of currently selected event in the View.
|
|
Make all sub-to-dos of todo independents, update the view.
|
|
Make all sub-to-dos of todo independents, not update the view.
|
|
Take ownership of selected event.
|
|
Take ownership of all events in calendar.
|
|
query whether or not the calendar is "dirty".
|
|
set the state of calendar. Modified means "dirty", i.e. needing a save. |
|
query if the calendar is read-only.
|
|
set state of calendar to read-only
|
|
Filter configuration changed.
|
|
Move the current view date to the specified date.
|
|
Move the current view date to today.
|
|
Move to the next date(s) in the current view.
|
|
Move to the previous date(s) in the current view.
|
|
A different filter was selected.
|
|
Select a view or adapt the current view to display the specified dates.
|
|
Adapt navigation units corresponding to step size of navigation of the current view.
|
The documentation for this class was generated from the following files:
- calendarview.h
- calendarview.cpp