korganizer Library API Documentation

KOProjectView Class Reference

This class provides a Gantt-like project view on todo items project view on todo items. More...

#include <koprojectview.h>

Inheritance diagram for KOProjectView:

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 updateConfig ()
 Re-reads the KOrganizer configuration and picks up relevant changes which are applicable to the view.

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

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

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


Signals

void newTodoSignal ()
void newSubTodoSignal (Todo *)
void showTodoSignal (Todo *)
void editTodoSignal (Todo *)
void deleteTodoSignal (Todo *)

Public Member Functions

 KOProjectView (Calendar *, QWidget *parent=0, const char *name=0)
QPtrList< Incidence > selectedIncidences ()
DateList selectedDates ()
int currentDateCount ()
 Return number of shown dates.

void readSettings ()
void writeSettings (KConfig *)

Protected Slots

void showModeMenu ()
void zoomIn ()
void zoomOut ()
void taskChanged (KGanttItem *task, KGanttItem::Change change)

Detailed Description

This class provides a Gantt-like project view on todo items project view on todo items.

Author:
Cornelius Schumacher <schumacher@kde.org>

Definition at line 66 of file koprojectview.h.


Member Function Documentation

QPtrList< Incidence > KOProjectView::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 257 of file koprojectview.cpp.

DateList KOProjectView::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 269 of file koprojectview.cpp.

int KOProjectView::currentDateCount  )  [inline, virtual]
 

Return number of shown dates.

Implements KOrg::BaseView.

Definition at line 77 of file koprojectview.h.

void KOProjectView::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 143 of file koprojectview.cpp.

References KOrg::BaseView::calendar(), QMap< Todo *, KGanttItem * >::clear(), QMap< Todo *, KGanttItem * >::contains(), QDateTime::currentDateTime(), QPtrList::first(), and QPtrList::next().

Referenced by changeEventDisplay(), and showDates().

void KOProjectView::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 252 of file koprojectview.cpp.

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

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

Implements KOrg::BaseView.

Definition at line 275 of file koprojectview.cpp.

References updateView().

void KOProjectView::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 280 of file koprojectview.cpp.

References updateView().

void KOProjectView::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 285 of file koprojectview.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.4.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sat Oct 18 02:47:32 2003 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001