KPlato::GanttViewEventItem Class Reference

#include <kptcanvasitem.h>

Inherits KPlato::ItemBase.

Inheritance diagram for KPlato::GanttViewEventItem:

[legend]
List of all members.

Public Member Functions

 GanttViewEventItem (KDGanttView *parent, KPlato::Task *task)
 GanttViewEventItem (KDGanttViewItem *parent, KPlato::Task *task)
KPlato::TaskgetTask ()
void insertRelations (GanttView *view)
KDGanttViewItem * find (Node *node)
KDGanttViewItem * find (KDGanttViewItem *item, Node *node)
KDGanttView * ganttView () const
bool isDrawn () const
void setDrawn (bool drawn)

Protected Attributes

KPlato::Taskm_task
KDGanttView * m_view
bool m_drawn

Detailed Description

Definition at line 99 of file kptcanvasitem.h.


Constructor & Destructor Documentation

KPlato::GanttViewEventItem::GanttViewEventItem ( KDGanttView *  parent,
KPlato::Task task 
)

Definition at line 221 of file kptcanvasitem.cc.

KPlato::GanttViewEventItem::GanttViewEventItem ( KDGanttViewItem *  parent,
KPlato::Task task 
)

Definition at line 228 of file kptcanvasitem.cc.

References KPlato::GanttViewSummaryItem::ganttView(), m_drawn, and m_view.


Member Function Documentation

KPlato::Task* KPlato::GanttViewEventItem::getTask (  )  [inline]

Definition at line 105 of file kptcanvasitem.h.

References m_task.

Referenced by KPlato::GanttView::currentItemChanged().

void KPlato::GanttViewEventItem::insertRelations ( GanttView view  ) 

Definition at line 240 of file kptcanvasitem.cc.

References KPlato::GanttView::addTaskLink(), KPlato::Relation::child(), KPlato::Node::dependChildNodes(), find(), KPlato::Duration::Format_i18nDayTime, KPlato::ItemBase::kdLinkType(), KPlato::Relation::lag(), m_task, m_view, KPlato::Duration::toString(), KPlato::Relation::type(), and KPlato::Duration::zeroDuration.

Referenced by KPlato::GanttView::drawRelations().

KDGanttViewItem * KPlato::GanttViewEventItem::find ( Node node  ) 

Definition at line 262 of file kptcanvasitem.cc.

References m_task.

Referenced by insertRelations().

KDGanttViewItem * KPlato::GanttViewEventItem::find ( KDGanttViewItem *  item,
Node node 
)

Definition at line 276 of file kptcanvasitem.cc.

KDGanttView* KPlato::GanttViewEventItem::ganttView (  )  const [inline]

Definition at line 109 of file kptcanvasitem.h.

References m_view.

bool KPlato::GanttViewEventItem::isDrawn (  )  const [inline]

Definition at line 110 of file kptcanvasitem.h.

References m_drawn.

void KPlato::GanttViewEventItem::setDrawn ( bool  drawn  )  [inline]

Definition at line 111 of file kptcanvasitem.h.

References m_drawn.


Member Data Documentation

KPlato::Task* KPlato::GanttViewEventItem::m_task [protected]

Definition at line 114 of file kptcanvasitem.h.

Referenced by find(), getTask(), and insertRelations().

KDGanttView* KPlato::GanttViewEventItem::m_view [protected]

Definition at line 115 of file kptcanvasitem.h.

Referenced by ganttView(), GanttViewEventItem(), and insertRelations().

bool KPlato::GanttViewEventItem::m_drawn [protected]

Definition at line 116 of file kptcanvasitem.h.

Referenced by GanttViewEventItem(), isDrawn(), and setDrawn().


The documentation for this class was generated from the following files:
Generated on Wed Nov 22 23:21:44 2006 for KPlato by  doxygen 1.5.1-p1