korganizer Library API Documentation

KOListView Class Reference

This class provides a multi-column list view of events. multi-column list view of various events. More...

#include <kolistview.h>

Inheritance diagram for KOListView:

KOEventView 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 clearSelection ()
 Clear selection.

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

void defaultItemAction (QListViewItem *item)
void popupMenu (QListViewItem *item, const QPoint &, int)

Public Member Functions

 KOListView (Calendar *calendar, QWidget *parent=0, const char *name=0)
virtual int maxDatesHint ()
 provides a hint back to the caller on the maximum number of dates that the view supports.

virtual int currentDateCount ()
 Return number of currently shown dates.

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

void readSettings (KConfig *config)
void writeSettings (KConfig *config)
void clear ()

Protected Slots

void processSelectionChange ()

Protected Member Functions

void addEvents (QPtrList< Event > eventList)
void addTodos (QPtrList< Todo > eventList)
void addIncidence (Incidence *)
KOListViewItem * getItemForEvent (Event *event)

Detailed Description

This class provides a multi-column list view of events. multi-column list view of various events.

It can display events from one particular day or several days, it doesn't matter. To use a view that only handles one day at a time, use KODayListView.

Author:
Preston Brown <pbrown@kde.org>
See also:
KOBaseView, KODayListView

Definition at line 70 of file kolistview.h.


Member Function Documentation

int KOListView::maxDatesHint  )  [virtual]
 

provides a hint back to the caller on the maximum number of dates that the view supports.

A return value of 0 means no maximum.

Implements KOEventView.

Definition at line 173 of file kolistview.cpp.

int KOListView::currentDateCount  )  [virtual]
 

Return number of currently shown dates.

A return value of 0 means no idea.

Implements KOrg::BaseView.

Definition at line 178 of file kolistview.cpp.

QPtrList< Incidence > KOListView::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 183 of file kolistview.cpp.

References QPtrList::append().

DateList KOListView::selectedDates  )  [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 193 of file kolistview.cpp.

void KOListView::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 218 of file kolistview.cpp.

References CalPrinter::preview().

void KOListView::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 236 of file kolistview.cpp.

void KOListView::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 241 of file kolistview.cpp.

References QDate::addDays(), and KOrg::BaseView::calendar().

void KOListView::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 283 of file kolistview.cpp.

void KOListView::clearSelection  )  [virtual, slot]
 

Clear selection.

The incidenceSelected signal is not emitted.

Reimplemented from KOrg::BaseView.

Definition at line 372 of file kolistview.cpp.

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

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

Implements KOrg::BaseView.

Definition at line 293 of file kolistview.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