#include <KDGanttViewSummaryItem.h>
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) |
Public Member Functions inherited from KDGanttViewItem | |
virtual | ~KDGanttViewItem () |
Type | type () const |
void | setEnabled (bool on) |
bool | enabled () const |
virtual void | setOpen (bool o) |
void | setItemVisible (bool on) |
bool | itemVisible () const |
void | setEditable (bool editable) |
bool | editable () const |
void | setShowNoInformation (bool show) |
bool | showNoInformation () |
void | setDisplaySubitemsAsGroup (bool show) |
bool | displaySubitemsAsGroup () const |
void | setPriority (int prio) |
int | priority () |
TQDateTime | startTime () const |
TQDateTime | endTime () const |
void | setText (const TQString &text) |
TQString | text () const |
void | setListViewText (const TQString &text, int column=0) |
void | setListViewText (int column, const TQString &text) |
TQString | listViewText (int column=0) const |
void | setFont (const TQFont &font) |
TQFont | font () const |
void | setTooltipText (const TQString &text) |
TQString | tooltipText () const |
void | setWhatsThisText (const TQString &text) |
TQString | whatsThisText () const |
void | setPixmap (int column, const TQPixmap &pixmap) |
void | setPixmap (const TQPixmap &pixmap) |
const TQPixmap * | pixmap (int column=0) const |
void | setHighlight (bool) |
bool | highlight () const |
bool | subitemIsCalendar () const |
void | setShapes (Shape start, Shape middle, Shape end) |
void | shapes (Shape &start, Shape &middle, Shape &end) const |
void | setDefaultColor (const TQColor &) |
TQColor | defaultColor () const |
void | setColors (const TQColor &start, const TQColor &middle, const TQColor &end) |
void | colors (TQColor &start, TQColor &middle, TQColor &end) const |
void | setDefaultHighlightColor (const TQColor &) |
TQColor | defaultHighlightColor () const |
void | setHighlightColors (const TQColor &start, const TQColor &middle, const TQColor &end) |
void | highlightColors (TQColor &start, TQColor &middle, TQColor &end) const |
void | setTextColor (const TQColor &color) |
TQColor | textColor () const |
void | setProgress (int percent) |
void | setFloatStartTime (const TQDateTime &start) |
void | setFloatEndTime (const TQDateTime &end) |
KDGanttViewItem * | firstChild () const |
KDGanttViewItem * | nextSibling () const |
KDGanttViewItem * | parent () const |
KDGanttViewItem * | itemAbove () |
KDGanttViewItem * | itemBelow (bool includeDisabled=true) |
KDGanttViewItem * | getChildByName (const TQString &name) |
TQString | name () const |
void | createNode (TQDomDocument &doc, TQDomElement &parentElement) |
void | setMoveable (bool m) |
bool | isMoveable () const |
void | setResizeable (bool r) |
bool | isResizeable () const |
Additional Inherited Members | |
Public Types inherited from KDGanttViewItem | |
enum | Type { Event , Task , Summary } |
enum | Shape { TriangleDown , TriangleUp , Diamond , Square , Circle } |
Static Public Member Functions inherited from KDGanttViewItem | |
static KDGanttViewItem * | find (const TQString &name) |
static KDGanttViewItem * | createFromDomElement (KDGanttView *view, TQDomElement &element) |
static KDGanttViewItem * | createFromDomElement (KDGanttView *view, KDGanttViewItem *previous, TQDomElement &element) |
static KDGanttViewItem * | createFromDomElement (KDGanttViewItem *parent, TQDomElement &element) |
static KDGanttViewItem * | createFromDomElement (KDGanttViewItem *parent, KDGanttViewItem *previous, TQDomElement &element) |
Protected Member Functions inherited from KDGanttViewItem | |
KDGanttViewItem (Type type, KDGanttView *view, const TQString &lvtext=TQString(), const TQString &name=TQString()) | |
KDGanttViewItem (Type type, KDGanttViewItem *parent, const TQString &lvtext=TQString(), const TQString &name=TQString()) | |
KDGanttViewItem (Type type, KDGanttView *view, KDGanttViewItem *after, const TQString &lvtext=TQString(), const TQString &name=TQString()) | |
KDGanttViewItem (Type type, KDGanttViewItem *parent, KDGanttViewItem *after, const TQString &lvtext=TQString(), const TQString &name=TQString()) | |
void | updateCanvasItems () |
int | getCoordY () |
TQDateTime | myChildStartTime () |
TQDateTime | myChildEndTime () |
void | generateAndInsertName (const TQString &name) |
void | moveTextCanvas (int x, int y) |
Protected Attributes inherited from KDGanttViewItem | |
bool | isVisibleInGanttView |
KDCanvasLine * | startLine |
KDCanvasLine * | endLine |
KDCanvasLine * | startLineBack |
KDCanvasLine * | endLineBack |
KDCanvasLine * | actualEnd |
KDCanvasPolygonItem * | startShape |
KDCanvasPolygonItem * | midShape |
KDCanvasPolygonItem * | endShape |
KDCanvasPolygonItem * | progressShape |
KDCanvasPolygonItem * | startShapeBack |
KDCanvasPolygonItem * | midShapeBack |
KDCanvasPolygonItem * | endShapeBack |
KDCanvasPolygonItem * | floatStartShape |
KDCanvasPolygonItem * | floatEndShape |
KDGanttView * | myGanttView |
KDCanvasText * | textCanvas |
TQString | textCanvasText |
TQDateTime | myStartTime |
TQDateTime | myEndTime |
bool | isHighlighted |
bool | isEditable |
int | myItemSize |
bool | blockUpdating |
int | myProgress |
TQDateTime | myFloatStartTime |
TQDateTime | myFloatEndTime |
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() [1/4]
KDGanttViewSummaryItem::KDGanttViewSummaryItem | ( | KDGanttView * | view, |
const TQString & | lvtext = TQString() , |
||
const TQString & | name = TQString() |
||
) |
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() [2/4]
KDGanttViewSummaryItem::KDGanttViewSummaryItem | ( | KDGanttViewItem * | parent, |
const TQString & | lvtext = TQString() , |
||
const TQString & | name = TQString() |
||
) |
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() [3/4]
KDGanttViewSummaryItem::KDGanttViewSummaryItem | ( | KDGanttView * | view, |
KDGanttViewItem * | after, | ||
const TQString & | lvtext = TQString() , |
||
const TQString & | name = TQString() |
||
) |
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() [4/4]
KDGanttViewSummaryItem::KDGanttViewSummaryItem | ( | KDGanttViewItem * | parent, |
KDGanttViewItem * | after, | ||
const TQString & | lvtext = TQString() , |
||
const TQString & | name = TQString() |
||
) |
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()
|
virtual |
The destructor. Does nothing for the moment.
Definition at line 125 of file KDGanttViewSummaryItem.cpp.
Member Function Documentation
◆ actualEndTime()
TQDateTime 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.
◆ middleTime()
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.
◆ setActualEndTime()
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
-
end the actual end time
- See also
- actualEndTime() startTime()
Definition at line 224 of file KDGanttViewSummaryItem.cpp.
◆ setEndTime()
|
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.
◆ setMiddleTime()
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
-
dateTime the middle time
- See also
- middleTime()
Definition at line 138 of file KDGanttViewSummaryItem.cpp.
◆ setStartTime()
|
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.
The documentation for this class was generated from the following files: