kdgantt
KDGanttViewSummaryItem Class Reference
#include <KDGanttViewSummaryItem.h>
Inheritance diagram for KDGanttViewSummaryItem:

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.
Public Member Functions | |
KDGanttViewSummaryItem (KDGanttView *view, const QString &lvtext=QString::null, const QString &name=QString::null) | |
KDGanttViewSummaryItem (KDGanttViewItem *parent, const QString &lvtext=QString::null, const QString &name=QString::null) | |
KDGanttViewSummaryItem (KDGanttView *view, KDGanttViewItem *after, const QString &lvtext=QString::null, const QString &name=QString::null) | |
KDGanttViewSummaryItem (KDGanttViewItem *parent, KDGanttViewItem *after, const QString &lvtext=QString::null, const QString &name=QString::null) | |
virtual | ~KDGanttViewSummaryItem () |
void | setMiddleTime (const QDateTime &) |
QDateTime | middleTime () const |
void | setActualEndTime (const QDateTime &end) |
QDateTime | actualEndTime () const |
void | setStartTime (const QDateTime &start) |
void | setEndTime (const QDateTime &end) |
Constructor & Destructor Documentation
KDGanttViewSummaryItem::KDGanttViewSummaryItem | ( | 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 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 56 of file KDGanttViewSummaryItem.cpp.
KDGanttViewSummaryItem::KDGanttViewSummaryItem | ( | 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 73 of file KDGanttViewSummaryItem.cpp.
KDGanttViewSummaryItem::KDGanttViewSummaryItem | ( | 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 91 of file KDGanttViewSummaryItem.cpp.
KDGanttViewSummaryItem::KDGanttViewSummaryItem | ( | 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 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 110 of file KDGanttViewSummaryItem.cpp.
KDGanttViewSummaryItem::~KDGanttViewSummaryItem | ( | ) | [virtual] |
The destructor. Does nothing for the moment.
Definition at line 125 of file KDGanttViewSummaryItem.cpp.
Member Function Documentation
void KDGanttViewSummaryItem::setMiddleTime | ( | const QDateTime & | 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:
-
dateTime the middle time
- See also:
- middleTime()
Definition at line 138 of file KDGanttViewSummaryItem.cpp.
QDateTime 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 QDateTime & | 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:
-
end the actual end time
- See also:
- actualEndTime() startTime()
Definition at line 224 of file KDGanttViewSummaryItem.cpp.
QDateTime KDGanttViewSummaryItem::actualEndTime | ( | ) | const |
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.
void KDGanttViewSummaryItem::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 less the mid time, the mid time is set to this start time automatically.
- Parameters:
-
start the start time
- See also:
- startTime(), setEndTime(), endTime()
Reimplemented from KDGanttViewItem.
Definition at line 200 of file KDGanttViewSummaryItem.cpp.
void KDGanttViewSummaryItem::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 mid time, the mid time is set to this end time automatically.
- Parameters:
-
end the end time
- See also:
- endTime(), setStartTime(), startTime()
Reimplemented from KDGanttViewItem.
Definition at line 177 of file KDGanttViewSummaryItem.cpp.
The documentation for this class was generated from the following files: