KPlato::GanttViewTaskItem Class Reference

#include <kptcanvasitem.h>

Inherits KPlato::ItemBase.

Inheritance diagram for KPlato::GanttViewTaskItem:

[legend]
List of all members.

Public Member Functions

 GanttViewTaskItem (KDGanttView *parent, KPlato::Task *task)
 GanttViewTaskItem (KDGanttViewItem *parent, KPlato::Task *task)
KPlato::TaskgetTask () const
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 77 of file kptcanvasitem.h.


Constructor & Destructor Documentation

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

Definition at line 142 of file kptcanvasitem.cc.

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

Definition at line 149 of file kptcanvasitem.cc.

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


Member Function Documentation

KPlato::Task* KPlato::GanttViewTaskItem::getTask (  )  const [inline]

Definition at line 83 of file kptcanvasitem.h.

References m_task.

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

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

Definition at line 160 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::GanttViewTaskItem::find ( Node node  ) 

Definition at line 181 of file kptcanvasitem.cc.

References m_task.

Referenced by insertRelations().

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

Definition at line 195 of file kptcanvasitem.cc.

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

Definition at line 87 of file kptcanvasitem.h.

References m_view.

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

Definition at line 88 of file kptcanvasitem.h.

References m_drawn.

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

Definition at line 89 of file kptcanvasitem.h.

References m_drawn.


Member Data Documentation

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

Definition at line 92 of file kptcanvasitem.h.

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

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

Definition at line 93 of file kptcanvasitem.h.

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

bool KPlato::GanttViewTaskItem::m_drawn [protected]

Definition at line 94 of file kptcanvasitem.h.

Referenced by GanttViewTaskItem(), 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