kdgantt1
KDGanttViewSummaryItem Class Reference
#include <KDGanttViewSummaryItem.h>

Detailed Description
A summary item in a Gantt chart.This class represents summary items in Gantt charts.
Definition at line 38 of file KDGanttViewSummaryItem.h.
Public Member Functions | |
| QDateTime | actualEndTime () const |
| virtual Connector | getConnector (QPoint p) |
| KDGanttViewSummaryItem (KDGanttViewItem *parent, KDGanttViewItem *after, const QString &lvtext=QString(), const QString &name=QString()) | |
| KDGanttViewSummaryItem (KDGanttView *view, KDGanttViewItem *after, const QString &lvtext=QString(), const QString &name=QString()) | |
| KDGanttViewSummaryItem (KDGanttViewItem *parent, const QString &lvtext=QString(), const QString &name=QString()) | |
| KDGanttViewSummaryItem (KDGanttView *view, const QString &lvtext=QString(), const QString &name=QString()) | |
| QDateTime | middleTime () const |
| virtual bool | moveConnector (Connector, QPoint p) |
| void | setActualEndTime (const QDateTime &end) |
| void | setEndTime (const QDateTime &end) |
| void | setMiddleTime (const QDateTime &) |
| void | setStartTime (const QDateTime &start) |
| virtual | ~KDGanttViewSummaryItem () |
Constructor & Destructor Documentation
| KDGanttViewSummaryItem::KDGanttViewSummaryItem | ( | KDGanttView * | view, | |
| const QString & | lvtext = QString(), |
|||
| const QString & | name = QString() | |||
| ) |
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(), |
|||
| const QString & | name = QString() | |||
| ) |
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(), |
|||
| const QString & | name = QString() | |||
| ) |
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(), |
|||
| const QString & | name = QString() | |||
| ) |
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. Delete the datetimes, if created.
Definition at line 125 of file KDGanttViewSummaryItem.cpp.
Member Function Documentation
| 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 375 of file KDGanttViewSummaryItem.cpp.
| KDGanttViewItem::Connector KDGanttViewSummaryItem::getConnector | ( | QPoint | p | ) | [virtual] |
Returns the region of the item for the position p. A region is a connector and it is used for changing item in the gantt view.
- Parameters:
-
p point to check for a connector
- Returns:
- Returns the connector for the point p
Reimplemented from KDGanttViewItem.
Definition at line 197 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 295 of file KDGanttViewSummaryItem.cpp.
| bool KDGanttViewSummaryItem::moveConnector | ( | KDGanttViewItem::Connector | c, | |
| QPoint | p | |||
| ) | [virtual] |
Moves the connector c to point p.
- Parameters:
-
c the connector to move p point for connector where to move to
- Returns:
- true if some value of the item was changed
- See also:
- getConnector()
Reimplemented from KDGanttViewItem.
Definition at line 142 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 358 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 311 of file KDGanttViewSummaryItem.cpp.
| 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 272 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 334 of file KDGanttViewSummaryItem.cpp.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference