KOAgendaView Class Reference
KOAgendaView is the agenda-like view used to display events in an one or multi-day view. More...
#include <koagendaview.h>
Inheritance diagram for KOAgendaView:

Public Slots | |
virtual void | updateView () |
virtual void | updateConfig () |
virtual void | showDates (const QDate &start, const QDate &end) |
virtual void | showEvents (const Event::List &) |
virtual void | showNewEventPopup () |
void | insertEvent (Event *event, QDate curDate, int curCol=-1) |
void | changeEventDisplayAdded (Event *event) |
void | changeEventDisplay (Event *event, int mode) |
void | clearSelection () |
void | newEvent (int gx, int gy) |
void | newEvent (int gxStart, int gyStart, int gxEnd, int gyEnd) |
void | newEventAllDay (int gx, int gy) |
void | startDrag (Incidence *) |
void | readSettings () |
void | readSettings (KConfig *) |
void | writeSettings (KConfig *) |
void | setContentsPos (int y) |
void | setExpandedButton (bool expanded) |
void | finishTypeAhead () |
void | slotTodoDropped (Todo *, int, int, bool) |
Signals | |
void | toggleExpand () |
void | incidenceChanged (Incidence *, Incidence *) |
void | todoChanged (Todo *, Todo *) |
void | todoDropped (Todo *) |
Public Methods | |
KOAgendaView (Calendar *cal, QWidget *parent=0, const char *name=0) | |
virtual | ~KOAgendaView () |
virtual int | maxDatesHint () |
virtual int | currentDateCount () |
virtual Incidence::List | selectedIncidences () |
virtual DateList | selectedDates () |
void | clearView () |
virtual void | printPreview (CalPrinter *calPrinter, const QDate &, const QDate &) |
CalPrinter::PrintType | printType () |
QDateTime | selectionStart () |
QDateTime | selectionEnd () |
bool | selectedIsAllDay () |
void | deleteSelectedDateTime () |
bool | selectedIsSingleCell () |
void | setTypeAheadReceiver (QObject *) |
Protected Slots | |
void | updateEventDates (KOAgendaItem *item) |
void | updateEventIndicatorTop (int newY) |
void | updateEventIndicatorBottom (int newY) |
void | newTimeSpanSelected (int gxStart, int gyStart, int gxEnd, int gyEnd) |
void | newTimeSpanSelectedAllDay (int gxStart, int gyStart, int gxEnd, int gyEnd) |
Protected Methods | |
void | fillAgenda (const QDate &startDate) |
void | fillAgenda () |
void | createDayLabels () |
void | setHolidayMasks () |
Detailed Description
KOAgendaView is the agenda-like view used to display events in an one or multi-day view.
Definition at line 134 of file koagendaview.h.
Member Function Documentation
|
Returns maximum number of days supported by the koagendaview.
Implements KOEventView. Definition at line 615 of file koagendaview.cpp. |
|
Returns number of currently shown dates.
Implements KOrg::BaseView. Definition at line 621 of file koagendaview.cpp. |
|
returns the currently selected events.
Implements KOrg::BaseView. Definition at line 626 of file koagendaview.cpp. |
|
returns the currently selected events.
Implements KOrg::BaseView. Definition at line 640 of file koagendaview.cpp. References QDate::isValid(). |
|
Remove all events from view.
Definition at line 1026 of file koagendaview.cpp. |
|
Generate a print preview of this event view.
Reimplemented from KOrg::BaseView. Definition at line 1033 of file koagendaview.cpp. References CalPrinter::preview(). |
|
start-datetime of selection.
Definition at line 162 of file koagendaview.h. Referenced by CalendarView::edit_paste(), CalendarView::newEvent(), and selectedIsSingleCell(). |
|
end-datetime of selection.
Definition at line 164 of file koagendaview.h. Referenced by CalendarView::edit_paste(), CalendarView::newEvent(), and selectedIsSingleCell(). |
|
returns true if selection is for whole day.
Definition at line 166 of file koagendaview.h. Referenced by CalendarView::edit_paste(), CalendarView::newEvent(), and selectedIsSingleCell(). |
|
make selected start/end invalid.
Definition at line 1257 of file koagendaview.cpp. References QDateTime::setDate(). Referenced by fillAgenda(), and KOViewManager::showView(). |
|
returns if only a single cell is selected, or a range of cells.
Definition at line 655 of file koagendaview.cpp. References QDateTime::daysTo(), QDateTime::isValid(), QDateTime::secsTo(), selectedIsAllDay(), selectionEnd(), and selectionStart(). Referenced by CalendarView::edit_paste(). |
|
Updates the current display to reflect changes that may have happened in the calendar since the last display refresh.
Implements KOrg::BaseView. Definition at line 670 of file koagendaview.cpp. References fillAgenda(). Referenced by changeEventDisplay(), and updateConfig(). |
|
Re-reads the KOrganizer configuration and picks up relevant changes which are applicable to the view.
Reimplemented from KOrg::BaseView. Definition at line 681 of file koagendaview.cpp. References createDayLabels(), QWidget::setFixedWidth(), setHolidayMasks(), and updateView(). |
|
Show incidences for the given date range. The date range actually shown may be different from the requested range, depending on the particular requirements of the view.
Implements KOrg::BaseView. Definition at line 787 of file koagendaview.cpp. References QDate::addDays(), and fillAgenda(). |
|
Show given events. Depending on the actual view it might not be possible to show all given events.
Implements KOrg::BaseView. Definition at line 804 of file koagendaview.cpp. |
|
Updates the current display to reflect the changes to one particular event.
Implements KOrg::BaseView. Definition at line 885 of file koagendaview.cpp. References QWidget::event(), fillAgenda(), and updateView(). |
|
Clear selection. The incidenceSelected signal is not emitted. Reimplemented from KOrg::BaseView. Definition at line 1226 of file koagendaview.cpp. |
|
reschedule the todo to the given x- and y- coordinates. Fourth parameter determines all-day (no time specified Definition at line 1109 of file koagendaview.cpp. References KOrg::BaseView::calendar(). |
|
Fill agenda beginning with date startDate.
Definition at line 926 of file koagendaview.cpp. References fillAgenda(). |
|
Fill agenda using the current set value for the start date.
Definition at line 931 of file koagendaview.cpp. References KOrg::BaseView::calendar(), createDayLabels(), QDate::currentDate(), deleteSelectedDateTime(), QWidget::event(), QMemArray< int >::resize(), and setHolidayMasks(). Referenced by changeEventDisplay(), fillAgenda(), showDates(), and updateView(). |
|
Create labels for the selected dates.
Definition at line 547 of file koagendaview.cpp. References QBoxLayout::addSpacing(), QBoxLayout::addWidget(), QDate::currentDate(), QWidget::font(), QString::isEmpty(), QString::number(), QLabel::setAlignment(), QFont::setBold(), QLabel::setFont(), QBoxLayout::setStretchFactor(), and QScrollView::verticalScrollBar(). Referenced by fillAgenda(), and updateConfig(). |
|
Set the masks on the agenda widgets indicating, which days are holidays.
Definition at line 1185 of file koagendaview.cpp. References QDate::dayOfWeek(), and QMemArray< bool >::resize(). Referenced by fillAgenda(), and updateConfig(). |
|
Update event belonging to agenda item.
Definition at line 711 of file koagendaview.cpp. References KOIncidenceToolTip::add(), QDate::addDays(), QDateTime::date(), QToolTip::remove(), QDateTime::setDate(), and QDateTime::setTime(). |
|
Updates data for selected timespan.
Definition at line 1239 of file koagendaview.cpp. Referenced by newTimeSpanSelectedAllDay(). |
|
Updates data for selected timespan for all day event.
Definition at line 1232 of file koagendaview.cpp. References newTimeSpanSelected(). |
The documentation for this class was generated from the following files: