kdgantt Library API Documentation

KDGanttViewTaskItem Class Reference

#include <KDGanttViewTaskItem.h>

Inheritance diagram for KDGanttViewTaskItem:

Inheritance graph
[legend]
Collaboration diagram for KDGanttViewTaskItem:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 KDGanttViewTaskItem (KDGanttView *view, const QString &lvtext=QString::null, const QString &name=QString::null)
 KDGanttViewTaskItem (KDGanttViewItem *parent, const QString &lvtext=QString::null, const QString &name=QString::null)
 KDGanttViewTaskItem (KDGanttView *view, KDGanttViewItem *after, const QString &lvtext=QString::null, const QString &name=QString::null)
 KDGanttViewTaskItem (KDGanttViewItem *parent, KDGanttViewItem *after, const QString &lvtext=QString::null, const QString &name=QString::null)
virtual ~KDGanttViewTaskItem ()
void setStartTime (const QDateTime &start)
void setEndTime (const QDateTime &end)

Detailed Description

This class represents calendar items in Gantt charts.

A calendar item in a Gantt chart has no start/end shape, it is displayed as a rectangle. You can set the colors as usual, where only the first argument of setColors( col, col, col ) is important. If the start time is equal to the end time, the item is displayed as ø, showing that there is no time interval set.

For a KDGanttViewTaskItem, the text, setted by setText(), is shown in the item itself and the text is truncated automatically to fit in the item. For all other item types, the text is shown right of the item.

Definition at line 43 of file KDGanttViewTaskItem.h.


Constructor & Destructor Documentation

KDGanttViewTaskItem::KDGanttViewTaskItem KDGanttView view,
const QString lvtext = QString::null,
const QString name = QString::null
 

Constructs an empty Gantt item of type event.

Parameters:
view the Gantt view to insert this item into
lvtext the text to show in the listview
name the name by which the item can be identified. If no name is specified, a unique name will be generated

Definition at line 69 of file KDGanttViewTaskItem.cpp.

KDGanttViewTaskItem::KDGanttViewTaskItem KDGanttViewItem parent,
const QString lvtext = QString::null,
const QString name = QString::null
 

Constructs an empty Gantt item of type event.

Parameters:
parent a parent item under which this one goes
lvtext the text to show in the list view
name the name by which the item can be identified. If no name is specified, a unique name will be generated

Definition at line 87 of file KDGanttViewTaskItem.cpp.

KDGanttViewTaskItem::KDGanttViewTaskItem KDGanttView view,
KDGanttViewItem after,
const QString lvtext = QString::null,
const QString name = QString::null
 

Constructs an empty Gantt item of type event.

Parameters:
view the Gantt view to insert this item into
after another item at the same level behind which this one should go
lvtext the text to show in the list view
name the name by which the item can be identified. If no name is specified, a unique name will be generated

Definition at line 105 of file KDGanttViewTaskItem.cpp.

KDGanttViewTaskItem::KDGanttViewTaskItem KDGanttViewItem parent,
KDGanttViewItem after,
const QString lvtext = QString::null,
const QString name = QString::null
 

Constructs an empty Gantt item of type event.

Parameters:
parent a parent item under which this one goes
after another item at the same level behind which this one should go
lvtext the text to show in the listview
name the name by which the item can be identified. If no name is specified, a unique name will be generated

Definition at line 124 of file KDGanttViewTaskItem.cpp.

KDGanttViewTaskItem::~KDGanttViewTaskItem  )  [virtual]
 

The destructor.

Definition at line 137 of file KDGanttViewTaskItem.cpp.


Member Function Documentation

void KDGanttViewTaskItem::setStartTime const QDateTime start  )  [virtual]
 

Specifies the start time of this item. The parameter must be valid and non-null. If the parameter is invalid or null, no value is set. If the start time is greater than the end time, the end time is set to this start time automatically.

Parameters:
start the start time
See also:
startTime(), setEndTime(), endTime()

Reimplemented from KDGanttViewItem.

Definition at line 171 of file KDGanttViewTaskItem.cpp.

References KDGanttViewItem::endTime(), KDGanttViewItem::myStartTime, setEndTime(), and KDGanttViewItem::updateCanvasItems().

Referenced by setEndTime().

void KDGanttViewTaskItem::setEndTime const QDateTime end  )  [virtual]
 

Specifies the end time of this item. The parameter must be valid and non-null. If the parameter is invalid or null, no value is set. If the end time is less the start time, the start time is set to this end time automatically.

Parameters:
end the end time
See also:
setStartTime(), startTime(), endTime()

Reimplemented from KDGanttViewItem.

Definition at line 152 of file KDGanttViewTaskItem.cpp.

References KDGanttViewItem::myEndTime, setStartTime(), KDGanttViewItem::startTime(), and KDGanttViewItem::updateCanvasItems().

Referenced by setStartTime().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kdgantt Library Version 1.4.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Mon Feb 13 09:42:35 2006 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003