korganizer Library API Documentation

KOWhatsNextView Class Reference

This class provides a view of the next events and todos. More...

#include <kowhatsnextview.h>

Inheritance diagram for KOWhatsNextView:

KOrg::BaseView QWidget List of all members.

Public Slots

virtual void updateView ()
 Updates the current display to reflect changes that may have happened in the calendar since the last display refresh.

virtual void showDates (const QDate &start, const QDate &end)
 Show incidences for the given date range.

virtual void showEvents (QPtrList< Event > eventList)
 Show given events.

void changeEventDisplay (Event *, int)
 Updates the current display to reflect the changes to one particular event.


Public Member Functions

 KOWhatsNextView (Calendar *calendar, QWidget *parent=0, const char *name=0)
virtual int maxDatesHint ()
virtual int currentDateCount ()
 Return number of currently shown dates.

virtual QPtrList< Incidence > selectedIncidences ()
DateList selectedDates ()
virtual void printPreview (CalPrinter *calPrinter, const QDate &, const QDate &)
 Generate a print preview of this event view.


Protected Member Functions

void appendEvent (Incidence *, bool reply=false)
void appendTodo (Incidence *)

Detailed Description

This class provides a view of the next events and todos.

Definition at line 45 of file kowhatsnextview.h.


Member Function Documentation

int KOWhatsNextView::currentDateCount  )  [virtual]
 

Return number of currently shown dates.

A return value of 0 means no idea.

Implements KOrg::BaseView.

Definition at line 88 of file kowhatsnextview.cpp.

QPtrList< Incidence > KOWhatsNextView::selectedIncidences  )  [virtual]
 

Returns:
a list of selected events. Most views can probably only select a single event at a time, but some may be able to select more than one.

Implements KOrg::BaseView.

Definition at line 93 of file kowhatsnextview.cpp.

DateList KOWhatsNextView::selectedDates  )  [inline, virtual]
 

Returns:
a list of the dates of selected events. Most views can probably only select a single event at a time, but some may be able to select more than one.

Implements KOrg::BaseView.

Definition at line 56 of file kowhatsnextview.h.

void KOWhatsNextView::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 101 of file kowhatsnextview.cpp.

References CalPrinter::preview().

void KOWhatsNextView::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 109 of file kowhatsnextview.cpp.

References KOrg::BaseView::calendar(), QValueList< Incidence * >::clear(), QPtrList::count(), QDate::currentDate(), QPtrList::first(), and QPtrList::next().

Referenced by showDates().

void KOWhatsNextView::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 231 of file kowhatsnextview.cpp.

References updateView().

void KOWhatsNextView::showEvents QPtrList< Event >  eventList  )  [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 236 of file kowhatsnextview.cpp.

void KOWhatsNextView::changeEventDisplay Event *  ,
int 
[virtual, slot]
 

Updates the current display to reflect the changes to one particular event.

Implements KOrg::BaseView.

Definition at line 240 of file kowhatsnextview.cpp.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sun Feb 15 11:41:11 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2001