korganizer Library API Documentation

KOJournalView Class Reference

This class provides a journal view. View for Journal components. More...

#include <kojournalview.h>

Inheritance diagram for KOJournalView:

KOrg::BaseView QWidget List of all members.

Public Slots

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

void flushView ()
 Write all unsaved data back to calendar store.

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

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

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

virtual QPtrList< Incidence > selectedIncidences ()
DateList selectedDates ()

Detailed Description

This class provides a journal view. View for Journal components.

Author:
Cornelius Schumacher <schumacher@kde.org>
See also:
KOBaseView

Definition at line 37 of file kojournalview.h.


Member Function Documentation

int KOJournalView::currentDateCount  )  [virtual]
 

Return number of currently shown dates.

A return value of 0 means no idea.

Implements KOrg::BaseView.

Definition at line 55 of file kojournalview.cpp.

QPtrList< Incidence > KOJournalView::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 60 of file kojournalview.cpp.

DateList KOJournalView::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 47 of file kojournalview.h.

void KOJournalView::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 67 of file kojournalview.cpp.

Referenced by changeEventDisplay().

void KOJournalView::flushView  )  [virtual, slot]
 

Write all unsaved data back to calendar store.

Reimplemented from KOrg::BaseView.

Definition at line 72 of file kojournalview.cpp.

void KOJournalView::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 77 of file kojournalview.cpp.

References KOrg::BaseView::calendar().

void KOJournalView::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 90 of file kojournalview.cpp.

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

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

Implements KOrg::BaseView.

Definition at line 96 of file kojournalview.cpp.

References updateView().


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