kdgantt

KDGanttViewSummaryItem Class Reference

#include <KDGanttViewSummaryItem.h>

Inheritance diagram for KDGanttViewSummaryItem:
KDGanttViewItem

List of all members.

Public Member Functions

 KDGanttViewSummaryItem (KDGanttView *view, const TQString &lvtext=TQString(), const TQString &name=TQString())
 KDGanttViewSummaryItem (KDGanttViewItem *parent, const TQString &lvtext=TQString(), const TQString &name=TQString())
 KDGanttViewSummaryItem (KDGanttView *view, KDGanttViewItem *after, const TQString &lvtext=TQString(), const TQString &name=TQString())
 KDGanttViewSummaryItem (KDGanttViewItem *parent, KDGanttViewItem *after, const TQString &lvtext=TQString(), const TQString &name=TQString())
virtual ~KDGanttViewSummaryItem ()
void setMiddleTime (const TQDateTime &)
TQDateTime middleTime () const
void setActualEndTime (const TQDateTime &end)
TQDateTime actualEndTime () const
void setStartTime (const TQDateTime &start)
void setEndTime (const TQDateTime &end)

Detailed Description

A summary item in a Gantt chart.

This class represents summary items in Gantt charts.

Definition at line 40 of file KDGanttViewSummaryItem.h.


Constructor & Destructor Documentation

KDGanttViewSummaryItem::KDGanttViewSummaryItem ( KDGanttView view,
const TQString &  lvtext = TQString(),
const TQString &  name = TQString() 
)

Constructs an empty Gantt item of type event.

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

Definition at line 56 of file KDGanttViewSummaryItem.cpp.

KDGanttViewSummaryItem::KDGanttViewSummaryItem ( KDGanttViewItem parent,
const TQString &  lvtext = TQString(),
const TQString &  name = TQString() 
)

Constructs an empty Gantt item of type event.

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

Definition at line 73 of file KDGanttViewSummaryItem.cpp.

KDGanttViewSummaryItem::KDGanttViewSummaryItem ( KDGanttView view,
KDGanttViewItem after,
const TQString &  lvtext = TQString(),
const TQString &  name = TQString() 
)

Constructs an empty Gantt item of type event.

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

Definition at line 91 of file KDGanttViewSummaryItem.cpp.

KDGanttViewSummaryItem::KDGanttViewSummaryItem ( KDGanttViewItem parent,
KDGanttViewItem after,
const TQString &  lvtext = TQString(),
const TQString &  name = TQString() 
)

Constructs an empty Gantt item of type event.

Parameters:
parenta parent item under which this one goes
afteranother item at the same level behind which this one should go
lvtextthe text to show in the list view
namethe name by which the item can be identified. If no name is specified, a unique name will be generated

Definition at line 110 of file KDGanttViewSummaryItem.cpp.

The destructor. Does nothing for the moment.

Definition at line 125 of file KDGanttViewSummaryItem.cpp.


Member Function Documentation

Returns the actual end time of this item.

Returns:
the actual end time of this item
See also:
setActualEndTime()

Definition at line 241 of file KDGanttViewSummaryItem.cpp.

TQDateTime KDGanttViewSummaryItem::middleTime ( ) const

Returns the middle time of this summary item. If there is no middle time defined, the start time is returned.

Returns:
the middle time of this summary item. If there is no middle time defined, the start time is returned.

Definition at line 161 of file KDGanttViewSummaryItem.cpp.

void KDGanttViewSummaryItem::setActualEndTime ( const TQDateTime &  end)

Specifies the actual end time of this item. The parameter must be valid and non-null. Items with undefined start or end times lead to undefined visual results.

Parameters:
endthe actual end time
See also:
actualEndTime() startTime()

Definition at line 224 of file KDGanttViewSummaryItem.cpp.

void KDGanttViewSummaryItem::setEndTime ( const TQDateTime &  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 mid time, the mid time is set to this end time automatically.

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

Reimplemented from KDGanttViewItem.

Definition at line 177 of file KDGanttViewSummaryItem.cpp.

void KDGanttViewSummaryItem::setMiddleTime ( const TQDateTime &  dateTime)

Specifies the middle time of this summary item. The parameter must be valid and non-null. If the parameter is invalid or null, no value is set.

Parameters:
dateTimethe middle time
See also:
middleTime()

Definition at line 138 of file KDGanttViewSummaryItem.cpp.

void KDGanttViewSummaryItem::setStartTime ( const TQDateTime &  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 less the mid time, the mid time is set to this start time automatically.

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

Reimplemented from KDGanttViewItem.

Definition at line 200 of file KDGanttViewSummaryItem.cpp.


The documentation for this class was generated from the following files: