kdgantt

KDGanttViewSummaryItem Class Reference

#include <KDGanttViewSummaryItem.h>

Inheritance diagram for KDGanttViewSummaryItem:
KDGanttViewItem

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)
 
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

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
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 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
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 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
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 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
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 110 of file KDGanttViewSummaryItem.cpp.

◆ ~KDGanttViewSummaryItem()

KDGanttViewSummaryItem::~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
endthe actual end time
See also
actualEndTime() startTime()

Definition at line 224 of file KDGanttViewSummaryItem.cpp.

◆ setEndTime()

void KDGanttViewSummaryItem::setEndTime ( const TQDateTime &  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
endthe 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
dateTimethe middle time
See also
middleTime()

Definition at line 138 of file KDGanttViewSummaryItem.cpp.

◆ setStartTime()

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

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