kdgantt

KDGanttViewEventItem Class Reference

#include <KDGanttViewEventItem.h>

Inheritance diagram for KDGanttViewEventItem:
KDGanttViewItem

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)
 
KDGanttViewItemfirstChild () const
 
KDGanttViewItemnextSibling () const
 
KDGanttViewItemparent () const
 
KDGanttViewItemitemAbove ()
 
KDGanttViewItemitemBelow (bool includeDisabled=true)
 
KDGanttViewItemgetChildByName (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 KDGanttViewItemfind (const TQString &name)
 
static KDGanttViewItemcreateFromDomElement (KDGanttView *view, TQDomElement &element)
 
static KDGanttViewItemcreateFromDomElement (KDGanttView *view, KDGanttViewItem *previous, TQDomElement &element)
 
static KDGanttViewItemcreateFromDomElement (KDGanttViewItem *parent, TQDomElement &element)
 
static KDGanttViewItemcreateFromDomElement (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
 
KDGanttViewmyGanttView
 
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
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 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
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 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
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 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
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 111 of file KDGanttViewEventItem.cpp.

◆ ~KDGanttViewEventItem()

KDGanttViewEventItem::~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
leadTimeStartthe 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()

void KDGanttViewEventItem::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 than the lead time, the lead time is set to this start time automatically.

Parameters
startthe 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: