korganizer
KOAgendaView Class Reference
#include <koagendaview.h>
Inheritance diagram for KOAgendaView:

Detailed Description
KOAgendaView is the agenda-like view used to display events in an one or multi-day view.
Definition at line 139 of file koagendaview.h.
Public Slots | |
virtual void | updateView () |
virtual void | updateConfig () |
virtual void | showDates (const QDate &start, const QDate &end) |
virtual void | showIncidences (const Incidence::List &incidenceList) |
void | insertIncidence (Incidence *incidence, const QDate &curDate, int curCol=-1) |
void | changeIncidenceDisplayAdded (Incidence *incidence) |
void | changeIncidenceDisplay (Incidence *incidence, int mode) |
void | clearSelection () |
void | startDrag (Incidence *) |
void | readSettings () |
void | readSettings (KConfig *) |
void | writeSettings (KConfig *) |
void | setContentsPos (int y) |
void | setExpandedButton (bool expanded) |
void | finishTypeAhead () |
void | slotTodoDropped (Todo *, const QPoint &, bool) |
void | enableAgendaUpdate (bool enable) |
void | setIncidenceChanger (IncidenceChangerBase *changer) |
void | zoomInHorizontally (const QDate &date=QDate()) |
void | zoomOutHorizontally (const QDate &date=QDate()) |
void | zoomInVertically () |
void | zoomOutVertically () |
void | zoomView (const int delta, const QPoint &pos, const Qt::Orientation orient=Qt::Horizontal) |
Signals | |
void | toggleExpand () |
void | zoomViewHorizontally (const QDate &, int count) |
Public Member Functions | |
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 () |
virtual bool | eventDurationHint (QDateTime &startDt, QDateTime &endDt, bool &allDay) |
void | clearView () |
CalPrinterBase::PrintType | printType () |
QDateTime | selectionStart () |
QDateTime | selectionEnd () |
bool | selectedIsAllDay () |
void | deleteSelectedDateTime () |
bool | selectedIsSingleCell () |
void | setTypeAheadReceiver (QObject *) |
Protected Slots | |
void | updateEventDates (KOAgendaItem *item) |
void | doUpdateItem () |
void | updateEventIndicatorTop (int newY) |
void | updateEventIndicatorBottom (int newY) |
void | newTimeSpanSelected (const QPoint &start, const QPoint &end) |
void | newTimeSpanSelectedAllDay (const QPoint &start, const QPoint &end) |
Protected Member Functions | |
void | fillAgenda (const QDate &startDate) |
void | fillAgenda () |
void | connectAgenda (KOAgenda *agenda, QPopupMenu *popup, KOAgenda *otherAgenda) |
void | createDayLabels () |
void | setHolidayMasks () |
void | removeIncidence (Incidence *) |
void | updateEventIndicators () |
void | updateTimeBarWidth () |
Member Function Documentation
int KOAgendaView::maxDatesHint | ( | ) | [virtual] |
Returns maximum number of days supported by the koagendaview.
Implements KOEventView.
Definition at line 821 of file koagendaview.cpp.
int KOAgendaView::currentDateCount | ( | ) | [virtual] |
Returns number of currently shown dates.
Implements KOrg::BaseView.
Definition at line 827 of file koagendaview.cpp.
Incidence::List KOAgendaView::selectedIncidences | ( | ) | [virtual] |
returns the currently selected events
Implements KOrg::BaseView.
Definition at line 832 of file koagendaview.cpp.
DateList KOAgendaView::selectedDates | ( | ) | [virtual] |
returns the currently selected events
Implements KOrg::BaseView.
Definition at line 846 of file koagendaview.cpp.
bool KOAgendaView::eventDurationHint | ( | QDateTime & | startDt, | |
QDateTime & | endDt, | |||
bool & | allDay | |||
) | [virtual] |
return the default start/end date/time for new events
Reimplemented from KOrg::BaseView.
Definition at line 860 of file koagendaview.cpp.
void KOAgendaView::clearView | ( | ) |
QDateTime KOAgendaView::selectionStart | ( | ) | [inline] |
QDateTime KOAgendaView::selectionEnd | ( | ) | [inline] |
bool KOAgendaView::selectedIsAllDay | ( | ) | [inline] |
void KOAgendaView::deleteSelectedDateTime | ( | ) |
bool KOAgendaView::selectedIsSingleCell | ( | ) |
returns if only a single cell is selected, or a range of cells
Definition at line 885 of file koagendaview.cpp.
void KOAgendaView::updateView | ( | ) | [virtual, slot] |
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 899 of file koagendaview.cpp.
void KOAgendaView::updateConfig | ( | ) | [virtual, slot] |
Re-reads the KOrganizer configuration and picks up relevant changes which are applicable to the view.
Reimplemented from KOrg::BaseView.
Definition at line 910 of file koagendaview.cpp.
void KOAgendaView::showDates | ( | const QDate & | start, | |
const QDate & | end | |||
) | [virtual, slot] |
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.
- Parameters:
-
start Start of date range. end End of date range.
Implements KOrg::BaseView.
Definition at line 1214 of file koagendaview.cpp.
void KOAgendaView::showIncidences | ( | const Incidence::List & | incidenceList | ) | [virtual, slot] |
Show given incidences.
Depending on the actual view it might not be possible to show all given events.
- Parameters:
-
incidenceList a list of incidences to show.
Implements KOrg::BaseView.
Definition at line 1231 of file koagendaview.cpp.
void KOAgendaView::changeIncidenceDisplay | ( | Incidence * | incidence, | |
int | mode | |||
) | [virtual, slot] |
Updates the current display to reflect the changes to one particular incidence.
Implements KOrg::BaseView.
Definition at line 1357 of file koagendaview.cpp.
void KOAgendaView::clearSelection | ( | ) | [virtual, slot] |
Clear selection.
The incidenceSelected signal is not emitted.
Reimplemented from KOrg::BaseView.
Definition at line 1657 of file koagendaview.cpp.
void KOAgendaView::slotTodoDropped | ( | Todo * | , | |
const QPoint & | , | |||
bool | ||||
) | [slot] |
reschedule the todo to the given x- and y- coordinates.
Third parameter determines all-day (no time specified)
Definition at line 1545 of file koagendaview.cpp.
void KOAgendaView::fillAgenda | ( | const QDate & | startDate | ) | [protected] |
void KOAgendaView::fillAgenda | ( | ) | [protected] |
Fill agenda using the current set value for the start date.
Definition at line 1395 of file koagendaview.cpp.
void KOAgendaView::createDayLabels | ( | ) | [protected] |
void KOAgendaView::setHolidayMasks | ( | ) | [protected] |
Set the masks on the agenda widgets indicating, which days are holidays.
Definition at line 1624 of file koagendaview.cpp.
void KOAgendaView::updateEventIndicators | ( | ) | [protected] |
Updates the event indicators after a certain incidence was modified or removed.
Definition at line 1713 of file koagendaview.cpp.
void KOAgendaView::updateEventDates | ( | KOAgendaItem * | item | ) | [protected, slot] |
void KOAgendaView::doUpdateItem | ( | ) | [protected, slot] |
update just the display of the given incidence, called by a single-shot timer
Definition at line 1204 of file koagendaview.cpp.
void KOAgendaView::newTimeSpanSelected | ( | const QPoint & | start, | |
const QPoint & | end | |||
) | [protected, slot] |
void KOAgendaView::newTimeSpanSelectedAllDay | ( | const QPoint & | start, | |
const QPoint & | end | |||
) | [protected, slot] |
Updates data for selected timespan for all day event.
Definition at line 1663 of file koagendaview.cpp.
The documentation for this class was generated from the following files: