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 ()
void updateConfig ()
void changeEventDisplay (Event *, int)
void showDates (const QDate &start, const QDate &end)
void showEvents (const Event::List &)

Signals

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

Public Methods

 KOProjectView (Calendar *, QWidget *parent=0, const char *name=0)
 ~KOProjectView ()
Incidence::List selectedIncidences ()
DateList selectedDates ()
int currentDateCount ()
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

Incidence::List 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 256 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 268 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 142 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 251 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 274 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 279 of file koprojectview.cpp.

References updateView().

void KOProjectView::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 284 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 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