korganizer Library API Documentation

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:

KOEventView KOrg::BaseView QWidget List of all members.

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

int KOAgendaView::maxDatesHint   [virtual]
 

Returns maximum number of days supported by the koagendaview.

Implements KOEventView.

Definition at line 615 of file koagendaview.cpp.

int KOAgendaView::currentDateCount   [virtual]
 

Returns number of currently shown dates.

Implements KOrg::BaseView.

Definition at line 621 of file koagendaview.cpp.

Incidence::List KOAgendaView::selectedIncidences   [virtual]
 

returns the currently selected events.

Implements KOrg::BaseView.

Definition at line 626 of file koagendaview.cpp.

DateList KOAgendaView::selectedDates   [virtual]
 

returns the currently selected events.

Implements KOrg::BaseView.

Definition at line 640 of file koagendaview.cpp.

References QDate::isValid().

void KOAgendaView::clearView  
 

Remove all events from view.

Definition at line 1026 of file koagendaview.cpp.

void KOAgendaView::printPreview CalPrinter   calPrinter,
const QDate   fd,
const QDate   td
[virtual]
 

Generate a print preview of this event view.

Parameters:
calPrinter  Calendar printer object used for printing
fd  from date
td  to date

Reimplemented from KOrg::BaseView.

Definition at line 1033 of file koagendaview.cpp.

References CalPrinter::preview().

QDateTime KOAgendaView::selectionStart   [inline]
 

start-datetime of selection.

Definition at line 162 of file koagendaview.h.

Referenced by CalendarView::edit_paste(), CalendarView::newEvent(), and selectedIsSingleCell().

QDateTime KOAgendaView::selectionEnd   [inline]
 

end-datetime of selection.

Definition at line 164 of file koagendaview.h.

Referenced by CalendarView::edit_paste(), CalendarView::newEvent(), and selectedIsSingleCell().

bool KOAgendaView::selectedIsAllDay   [inline]
 

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().

void KOAgendaView::deleteSelectedDateTime  
 

make selected start/end invalid.

Definition at line 1257 of file koagendaview.cpp.

References QDateTime::setDate().

Referenced by fillAgenda(), and KOViewManager::showView().

bool KOAgendaView::selectedIsSingleCell  
 

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().

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 670 of file koagendaview.cpp.

References fillAgenda().

Referenced by changeEventDisplay(), and updateConfig().

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 681 of file koagendaview.cpp.

References createDayLabels(), QWidget::setFixedWidth(), setHolidayMasks(), and updateView().

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 787 of file koagendaview.cpp.

References QDate::addDays(), and fillAgenda().

void KOAgendaView::showEvents const Event::List &    [virtual, slot]
 

Show given events.

Depending on the actual view it might not be possible to show all given events.

Parameters:
eventList  a list of events to show.

Implements KOrg::BaseView.

Definition at line 804 of file koagendaview.cpp.

void KOAgendaView::changeEventDisplay Event *    event,
int    mode
[virtual, slot]
 

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().

void KOAgendaView::clearSelection   [virtual, slot]
 

Clear selection.

The incidenceSelected signal is not emitted.

Reimplemented from KOrg::BaseView.

Definition at line 1226 of file koagendaview.cpp.

void KOAgendaView::slotTodoDropped Todo *   ,
int   ,
int   ,
bool   
[slot]
 

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().

void KOAgendaView::fillAgenda const QDate   startDate [protected]
 

Fill agenda beginning with date startDate.

Definition at line 926 of file koagendaview.cpp.

References fillAgenda().

void KOAgendaView::fillAgenda   [protected]
 

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().

void KOAgendaView::createDayLabels   [protected]
 

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().

void KOAgendaView::setHolidayMasks   [protected]
 

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().

void KOAgendaView::updateEventDates KOAgendaItem *    item [protected, slot]
 

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().

void KOAgendaView::newTimeSpanSelected int    gxStart,
int    gyStart,
int    gxEnd,
int    gyEnd
[protected, slot]
 

Updates data for selected timespan.

Definition at line 1239 of file koagendaview.cpp.

Referenced by newTimeSpanSelectedAllDay().

void KOAgendaView::newTimeSpanSelectedAllDay int    gxStart,
int    gyStart,
int    gxEnd,
int    gyEnd
[protected, slot]
 

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:
KDE Logo
This file is part of the documentation for korganizer Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat May 1 11:38:32 2004 by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2003