#include <KDGanttViewEventItem.h>
Public Member Functions | |
KDGanttViewEventItem (KDGanttView *view, const TQString &lvtext=TQString(), const TQString &name=TQString()) | |
KDGanttViewEventItem (KDGanttViewItem *parent, const TQString &lvtext=TQString(), const TQString &name=TQString()) | |
KDGanttViewEventItem (KDGanttView *view, KDGanttViewItem *after, const TQString &lvtext=TQString(), const TQString &name=TQString()) | |
KDGanttViewEventItem (KDGanttViewItem *parent, KDGanttViewItem *after, const TQString &lvtext=TQString(), const TQString &name=TQString()) | |
virtual | ~KDGanttViewEventItem () |
void | setLeadTime (const TQDateTime &leadTimeStart) |
void | setStartTime (const TQDateTime &start) |
TQDateTime | leadTime () const |
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 |
virtual void | setEndTime (const TQDateTime &end) |
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
An event item in a Gantt chart.
This class represents event items in Gantt charts.
Definition at line 40 of file KDGanttViewEventItem.h.
Constructor & Destructor Documentation
◆ KDGanttViewEventItem() [1/4]
KDGanttViewEventItem::KDGanttViewEventItem | ( | 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 55 of file KDGanttViewEventItem.cpp.
◆ KDGanttViewEventItem() [2/4]
KDGanttViewEventItem::KDGanttViewEventItem | ( | 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 72 of file KDGanttViewEventItem.cpp.
◆ KDGanttViewEventItem() [3/4]
KDGanttViewEventItem::KDGanttViewEventItem | ( | 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 KDGanttViewEventItem.cpp.
◆ KDGanttViewEventItem() [4/4]
KDGanttViewEventItem::KDGanttViewEventItem | ( | 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 111 of file KDGanttViewEventItem.cpp.
◆ ~KDGanttViewEventItem()
|
virtual |
The destructor. Nothing done here.
Definition at line 125 of file KDGanttViewEventItem.cpp.
Member Function Documentation
◆ leadTime()
TQDateTime KDGanttViewEventItem::leadTime | ( | ) | const |
Returns whether the event item is shown with a lead time line and if yes, when the lead time starts.
- Returns
- if the event item is shown with a lead time line, returns the TQDateTime object representing the start of the lead time, otherwise returns an invalid TQDateTime object
- See also
- setLeadTime()
Definition at line 189 of file KDGanttViewEventItem.cpp.
◆ setLeadTime()
void KDGanttViewEventItem::setLeadTime | ( | const TQDateTime & | leadTimeStart | ) |
Specifies whether the event item should be shown with a lead time line, and if yes, when the lead time starts. If the start time is less than the lead time, the start time is set to this lead time automatically.
- Parameters
-
leadTimeStart the start time of the lead time; pass an invalid TQDateTime object in order to turn the lead time off.
- See also
- leadTime()
Definition at line 167 of file KDGanttViewEventItem.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 than the lead time, the lead time is set to this start time automatically.
- Parameters
-
start the start time
- See also
- startTime()
Reimplemented from KDGanttViewItem.
Definition at line 139 of file KDGanttViewEventItem.cpp.
The documentation for this class was generated from the following files: