CalendarView Class Reference
This is the main calendar widget. main calendar view widget. More...
#include <calendarview.h>
Inheritance diagram for CalendarView:

Public Slots | |
void | updateConfig () |
bool | openCalendar (const QString &filename, bool merge=false) |
bool | saveCalendar (const QString &filename) |
void | closeCalendar () |
void | archiveCalendar () |
void | showIncidence () |
void | editIncidence () |
void | deleteIncidence () |
void | newEvent (QDateTime, QDateTime, bool allDay=false) |
void | newEvent (QDateTime fh) |
void | newEvent (QDate dt) |
void | newEvent () |
void | newEvent (const QString &) |
void | newEvent (const QString &summary, const QString &description, const QString &attachment) |
void | newFloatingEvent () |
void | showIncidence (Incidence *) |
void | editIncidence (Incidence *) |
void | deleteIncidence (Incidence *) |
void | editEvent (Event *) |
void | deleteEvent (Event *) |
bool | deleteEvent (const QString &uid) |
void | showEvent (Event *) |
void | editTodo (Todo *) |
void | showTodo (Todo *) |
void | newTodo () |
void | newSubTodo () |
void | newSubTodo (Todo *) |
void | deleteTodo (Todo *) |
void | newTodo (const QString &) |
void | newTodo (const QString &summary, const QString &description, const QString &attachment) |
void | todoModified (Todo *, Todo *, int) |
void | checkClipboard () |
void | readSettings () |
void | writeSettings () |
void | readFilterSettings (KConfig *config) |
void | writeFilterSettings (KConfig *config) |
void | changeEventDisplay (Event *, int) |
void | incidenceAdded (Incidence *) |
void | incidenceChanged (Incidence *oldEvent, Incidence *newEvent) |
void | incidenceDeleted (Incidence *) |
void | eventAdded (Event *) |
void | eventChanged (Event *oldEvent, Event *newEvent) |
void | eventToBeDeleted (Event *) |
void | eventDeleted (Event *) |
void | todoAdded (Todo *) |
void | todoChanged (Todo *oldTodo, Todo *newTodo) |
void | todoDeleted (Todo *) |
void | editCanceled (Incidence *) |
void | updateView (const QDate &start, const QDate &end) |
void | updateView () |
void | updateTodoViews () |
void | updateUnmanagedViews () |
void | edit_cut () |
void | edit_copy () |
void | edit_paste () |
void | edit_options () |
void | print () |
void | printSetup () |
void | printPreview () |
void | exportICalendar () |
void | exportVCalendar () |
void | appointment_show () |
void | appointment_edit () |
void | appointment_delete () |
void | action_mail () |
void | todo_unsub () |
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 | schedule_publish_freebusy (int daysToPublish=30) |
void | openAddressbook () |
void | editFilters () |
void | showFilter (bool visible) |
void | updateFilter () |
void | filterEdited () |
void | showIntro () |
void | goToday () |
void | goNext () |
void | goPrevious () |
void | toggleExpand () |
void | showLeftFrame (bool show=true) |
void | dialogClosing (Incidence *) |
void | lookForIncomingMessages () |
void | lookForOutgoingMessages () |
void | processMainViewSelection (Incidence *) |
void | processTodoListSelection (Incidence *) |
void | processIncidenceSelection (Incidence *) |
void | purgeCompleted () |
void | slotCalendarChanged () |
void | importQtopia (const QString &categoriesFile, const QString &datebookFile, const QString &tasklistFile) |
Signals | |
void | configChanged () |
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 | pasteEnabled (bool) |
void | numIncomingChanged (int) |
void | numOutgoingChanged (int) |
void | statusMessage (const QString &) |
void | calendarViewExpanded (bool) |
Public Methods | |
CalendarView (QWidget *parent=0, const char *name=0) | |
virtual | ~CalendarView () |
void | setCalendar (Calendar *) |
Calendar * | calendar () |
KOrg::History * | history () |
KOViewManager * | viewManager () |
KODialogManager * | dialogManager () |
QDate | startDate () |
QDate | endDate () |
QWidgetStack * | viewStack () |
QWidget * | leftFrame () |
NavigatorBar * | navigatorBar () |
DateNavigator * | dateNavigator () |
void | addView (KOrg::BaseView *) |
void | showView (KOrg::BaseView *) |
void | addExtension (CalendarViewExtension::Factory *) |
Incidence * | currentSelection () |
Incidence * | selectedIncidence () |
int | msgCalModified () |
void | adaptNavigationUnits () |
Protected Slots | |
void | showDates (const KCal::DateList &) |
Protected Methods | |
void | schedule (Scheduler::Method, Incidence *incidence=0) |
int | msgItemDelete () |
Todo * | selectedTodo () |
void | warningChangeFailed (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
Definition at line 79 of file calendarview.h.
Constructor & Destructor Documentation
|
Constructs a new calendar view widget.
Definition at line 106 of file calendarview.cpp. References QBoxLayout::addWidget(), checkClipboard(), QApplication::clipboard(), configChanged(), KOViewManager::connectTodoView(), QDate::currentDate(), goNext(), goPrevious(), incidenceSelected(), isModified(), lookForIncomingMessages(), QWidget::QWidget(), QPtrList< CalendarViewExtension >::setAutoDelete(), QPtrList< CalFilter >::setAutoDelete(), QWidget::setFixedHeight(), setModified(), QSplitter::setResizeMode(), showDates(), and updateConfig(). |
Member Function Documentation
|
changes the view to be the currently selected view.
Implements KOrg::CalendarViewBase. Definition at line 1744 of file calendarview.cpp. References KOViewManager::showView(). |
|
Add calendar view extension widget. CalendarView takes ownership of the objects created by the factory. Definition at line 1749 of file calendarview.cpp. References QPtrList< CalendarViewExtension >::append(). Referenced by ActionManager::createCalendarResources(). |
|
currentSelection() returns a pointer to the incidence selected in the current view.
Implements KOrg::CalendarViewBase. Definition at line 1756 of file calendarview.cpp. References KOViewManager::currentSelection(). Referenced by action_mail(), selectedIncidence(), and takeOverEvent(). |
|
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 Definition at line 1804 of file calendarview.cpp. References currentSelection(), and KOTodoView::selectedIncidences(). Referenced by appointment_delete(), appointment_edit(), appointment_show(), edit_copy(), and edit_cut(). |
|
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.
Referenced by CalendarView(), and updateConfig(). |
|
emitted when the topwidget is closing down, so that any attached child windows can also close.
Referenced by closeCalendar(). |
|
emitted right before we die.
|
|
Emitted when state of modified flag changes.
Referenced by setModified(). |
|
Emitted when state of read-only flag changes.
Referenced by setReadOnly(). |
|
Emitted when the unit of navigation changes.
Referenced by adaptNavigationUnits(). |
|
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. Referenced by CalendarView(). |
|
Emitted, when a todoitem is selected or deselected.
|
|
Emitted, when clipboard content changes. Parameter indicates if paste is possible or not. Referenced by checkClipboard(). |
|
Emitted, when the number of incoming messages has changed.
|
|
Emitted, when the number of outgoing messages has changed.
|
|
Send status message, which can e.g. be displayed in the status bar. |
|
options dialog made a changed to the configuration. we catch this and notify all widgets which need to update their configuration. Definition at line 576 of file calendarview.cpp. References configChanged(), and KOViewManager::raiseCurrentView(). Referenced by CalendarView(). |
|
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. Definition at line 347 of file calendarview.cpp. References QFile::exists(), QString::isEmpty(), KOTodoView::setDocumentId(), KODialogManager::setDocumentId(), KOViewManager::setDocumentId(), and setModified(). Referenced by ActionManager::file_import(), and ActionManager::openURL(). |
|
Save calendar data to file. Return true if calendar could be successfully saved. Definition at line 387 of file calendarview.cpp. References KOViewManager::currentView(), and KOrg::BaseView::flushView(). Referenced by ActionManager::saveURL(). |
|
Close calendar. Clear calendar data and reset views to display an empty calendar. Definition at line 407 of file calendarview.cpp. References closingDown(), and setModified(). Referenced by ActionManager::file_close(). |
|
Archive old events of calendar.
Definition at line 419 of file calendarview.cpp. References KODialogManager::showArchiveDialog(). Referenced by ActionManager::file_archive(). |
|
create an editeventwin with supplied date/time, and if bool is true, make the event take all day.
Definition at line 887 of file calendarview.cpp. References KODialogManager::connectTypeAhead(), KODialogManager::getEventEditor(), and KOEventEditor::newEvent(). |
|
create new event without having a date hint. Takes current date as default hint. Definition at line 820 of file calendarview.cpp. References KOViewManager::agendaView(), QDateTime::isValid(), DateNavigator::selectedDates(), KOAgendaView::selectedIsAllDay(), KOAgendaView::selectionEnd(), and KOAgendaView::selectionStart(). |
|
Create new Event from given string.
Definition at line 856 of file calendarview.cpp. References KODialogManager::connectTypeAhead(), KODialogManager::getEventEditor(), and KOEventEditor::newEvent(). |
|
Create a read-only viewer dialog for the supplied incidence. It calls the correct showXXX method Definition at line 1830 of file calendarview.cpp. Referenced by appointment_show(). |
|
Create an editor for the supplied incidence. It calls the correct editXXX method Definition at line 1838 of file calendarview.cpp. Referenced by appointment_edit(). |
|
Delete the supplied incidence. It calls the correct deleteXXX method Definition at line 1846 of file calendarview.cpp. Referenced by appointment_delete(). |
|
Create an editor for the supplied event.
Definition at line 925 of file calendarview.cpp. References KOEventEditor::editEvent(), QMap< Incidence *, KOIncidenceEditor * >::end(), QWidget::event(), QMap< Incidence *, KOIncidenceEditor * >::find(), KODialogManager::getEventEditor(), QMap< Incidence *, KOIncidenceEditor * >::insert(), and showEvent(). |
|
Delete the supplied event.
Definition at line 1096 of file calendarview.cpp. References KOViewManager::currentSelectionDate(), QDate::isValid(), and QDate::toString(). Referenced by deleteEvent(), and ActionManager::deleteEvent(). |
|
Delete the event with the given unique ID. Returns false, if event wasn't found. Definition at line 1200 of file calendarview.cpp. References deleteEvent(). |
|
Create a read-only viewer dialog for the supplied event.
Definition at line 986 of file calendarview.cpp. References QWidget::event(). Referenced by editEvent(). |
|
Create an editor dialog for a todo.
Definition at line 956 of file calendarview.cpp. References KOTodoEditor::editTodo(), QMap< Incidence *, KOIncidenceEditor * >::end(), QMap< Incidence *, KOIncidenceEditor * >::find(), KODialogManager::getTodoEditor(), QMap< Incidence *, KOIncidenceEditor * >::insert(), and showTodo(). |
|
Create a read-only viewer dialog for the supplied todo.
Definition at line 993 of file calendarview.cpp. References QWidget::event(). Referenced by editTodo(). |
|
create new todo.
Definition at line 895 of file calendarview.cpp. References QDateTime::currentDateTime(), KODialogManager::getTodoEditor(), and KOTodoEditor::newTodo(). |
|
create new todo with a parent todo.
Definition at line 902 of file calendarview.cpp. |
|
create new todo with a parent todo.
Definition at line 908 of file calendarview.cpp. References QDateTime::currentDateTime(), KODialogManager::getTodoEditor(), and KOTodoEditor::newTodo(). |
|
Delete todo.
Definition at line 1054 of file calendarview.cpp. |
|
This todo has been modified.
Definition at line 1000 of file calendarview.cpp. References QMap< Incidence *, KOIncidenceEditor * >::end(), QWidget::event(), QMap< Incidence *, KOIncidenceEditor * >::find(), KOTodoEditor::modified(), and KOViewManager::updateView(). |
|
Check if clipboard contains vCalendar event. The signal pasteEnabled() is emitted as result. Definition at line 1632 of file calendarview.cpp. References QApplication::clipboard(), and pasteEnabled(). Referenced by CalendarView(). |
|
Using the KConfig associated with the kapp variable, read in the settings from the config file. You have to call setCalendar before calling readSettings. Definition at line 425 of file calendarview.cpp. References QValueList::count(), readFilterSettings(), KOViewManager::readSettings(), KOTodoView::restoreLayout(), DateNavigator::selectDates(), DateNavigator::selectWeek(), DateNavigator::selectWorkWeek(), and QSplitter::setSizes(). Referenced by ActionManager::createCalendarLocal(), ActionManager::createCalendarResources(), and ActionManager::readSettings(). |
|
write current state to config file.
Definition at line 463 of file calendarview.cpp. References KOTodoView::saveLayout(), DateNavigator::selectedDates(), QSplitter::sizes(), writeFilterSettings(), and KOViewManager::writeSettings(). Referenced by ActionManager::writeSettings(). |
|
read settings for calendar filters.
Definition at line 492 of file calendarview.cpp. References QPtrList< CalFilter >::append(), QPtrList< CalFilter >::clear(), and QPtrList< CalFilter >::count(). Referenced by readSettings(). |
|
write settings for calendar filters.
Definition at line 531 of file calendarview.cpp. References QPtrList< CalFilter >::first(), and QPtrList< CalFilter >::next(). Referenced by writeSettings(). |
|
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 661 of file calendarview.cpp. References KOrg::BaseView::changeEventDisplay(), KOViewManager::currentView(), KODialogManager::updateSearchDialog(), KOrg::BaseView::updateView(), and KOTodoView::updateView(). |
|
Full update of visible todo views.
Definition at line 681 of file calendarview.cpp. References KOViewManager::currentView(), KOrg::BaseView::updateView(), and KOTodoView::updateView(). |
|
cut the current appointment to the clipboard.
Definition at line 718 of file calendarview.cpp. References selectedIncidence(). |
|
copy the current appointment(s) to the clipboard.
Definition at line 741 of file calendarview.cpp. References selectedIncidence(). |
|
paste the current vobject(s) in the clipboard buffer into calendar.
Definition at line 761 of file calendarview.cpp. References KOViewManager::agendaView(), QDateTime::date(), QTime::isValid(), QDateTime::isValid(), DateNavigator::selectedDates(), KOAgendaView::selectedIsAllDay(), KOAgendaView::selectedIsSingleCell(), KOAgendaView::selectionEnd(), KOAgendaView::selectionStart(), and QDateTime::time(). |
|
edit viewing and configuration options.
Definition at line 814 of file calendarview.cpp. References KODialogManager::showOptionsDialog(). |
|
Functions for printing, previewing a print, and setting up printing parameters.
Definition at line 1482 of file calendarview.cpp. References KOViewManager::currentView(), CalPrinter::print(), KOrg::BaseView::printType(), and DateNavigator::selectedDates(). |
|
Export as iCalendar file.
Definition at line 1512 of file calendarview.cpp. References QString::right(). |
|
Export as vCalendar file.
Definition at line 1523 of file calendarview.cpp. References QString::right(). |
|
pop up a dialog to show an existing appointment.
Definition at line 1012 of file calendarview.cpp. References selectedIncidence(), and showIncidence(). |
|
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 1021 of file calendarview.cpp. References editIncidence(), and selectedIncidence(). |
|
pop up dialog confirming deletion of currently selected event in the View.
Definition at line 1030 of file calendarview.cpp. References deleteIncidence(), and selectedIncidence(). |
|
mails the currently selected event to a particular user as a vCalendar attachment.
Definition at line 1213 of file calendarview.cpp. References currentSelection(), KOViewManager::currentView(), QWidget::event(), KOrg::BaseView::isEventView(), and KOrg::BaseView::selectedIncidences(). |
|
Take ownership of selected event.
Definition at line 1693 of file calendarview.cpp. References currentSelection(). |
|
Take ownership of all events in calendar.
Definition at line 1706 of file calendarview.cpp. |
|
query whether or not the calendar is "dirty".
Definition at line 1468 of file calendarview.cpp. Referenced by CalendarView(), ActionManager::file_open(), ActionManager::saveCalendar(), ActionManager::saveModifiedURL(), and KOrganizer::setTitle(). |
|
set the state of calendar. Modified means "dirty", i.e. needing a save. Definition at line 1447 of file calendarview.cpp. References modifiedChanged(). Referenced by CalendarView(), closeCalendar(), openCalendar(), and ActionManager::saveURL(). |
|
query if the calendar is read-only.
Definition at line 1455 of file calendarview.cpp. Referenced by KOrganizer::setTitle(). |
|
set state of calendar to read-only.
Definition at line 1460 of file calendarview.cpp. References readOnlyChanged(). |
|
Move the current view date to today.
Definition at line 555 of file calendarview.cpp. References DateNavigator::selectToday(). |
|
Move to the next date(s) in the current view.
Definition at line 560 of file calendarview.cpp. References KOViewManager::currentView(), DateNavigator::selectNext(), and DateNavigator::selectNextWeek(). Referenced by CalendarView(). |
|
Move to the previous date(s) in the current view.
Definition at line 568 of file calendarview.cpp. References KOViewManager::currentView(), DateNavigator::selectPrevious(), and DateNavigator::selectPreviousWeek(). Referenced by CalendarView(). |
|
Look for new messages in the inbox.
Definition at line 1861 of file calendarview.cpp. References KODialogManager::incomingDialog(). Referenced by CalendarView(). |
|
Look for new messages in the outbox.
Definition at line 1855 of file calendarview.cpp. References KODialogManager::outgoingDialog(). |
|
Select a view or adapt the current view to display the specified dates.
Referenced by CalendarView(). |
|
Adapt navigation units correpsonding to step size of navigation of the current view.
Definition at line 1550 of file calendarview.cpp. References changeNavStringPrev(), KOrg::BaseView::currentDateCount(), KOViewManager::currentView(), and KOrg::BaseView::isEventView(). Referenced by KOViewManager::showView(). |
The documentation for this class was generated from the following files: