kdgantt

KDGanttViewEventItem Class Reference

#include <KDGanttViewEventItem.h>

Inheritance diagram for KDGanttViewEventItem:

KDGanttViewItem

List of all members.


Public Member Functions

 KDGanttViewEventItem (KDGanttView *view, const TQString &lvtext=TQString::null, const TQString &name=TQString::null)
 KDGanttViewEventItem (KDGanttViewItem *parent, const TQString &lvtext=TQString::null, const TQString &name=TQString::null)
 KDGanttViewEventItem (KDGanttView *view, KDGanttViewItem *after, const TQString &lvtext=TQString::null, const TQString &name=TQString::null)
 KDGanttViewEventItem (KDGanttViewItem *parent, KDGanttViewItem *after, const TQString &lvtext=TQString::null, const TQString &name=TQString::null)
virtual ~KDGanttViewEventItem ()
void setLeadTime (const TQDateTime &leadTimeStart)
void setStartTime (const TQDateTime &start)
TQDateTime leadTime () const

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::KDGanttViewEventItem ( KDGanttView view,
const TQString &  lvtext = TQString::null,
const TQString &  name = TQString::null 
)

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::KDGanttViewEventItem ( KDGanttViewItem parent,
const TQString &  lvtext = TQString::null,
const TQString &  name = TQString::null 
)

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::KDGanttViewEventItem ( KDGanttView view,
KDGanttViewItem after,
const TQString &  lvtext = TQString::null,
const TQString &  name = TQString::null 
)

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::KDGanttViewEventItem ( KDGanttViewItem parent,
KDGanttViewItem after,
const TQString &  lvtext = TQString::null,
const TQString &  name = TQString::null 
)

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::~KDGanttViewEventItem (  )  [virtual]

The destructor. Nothing done here.

Definition at line 125 of file KDGanttViewEventItem.cpp.


Member Function Documentation

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.

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:
start the start time
See also:
startTime()

Reimplemented from KDGanttViewItem.

Definition at line 139 of file KDGanttViewEventItem.cpp.

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.


The documentation for this class was generated from the following files: