#include <kptcanvasitem.h>
Inherits KPlato::ItemBase.
Inheritance diagram for KPlato::GanttViewEventItem:
Public Member Functions | |
GanttViewEventItem (KDGanttView *parent, KPlato::Task *task) | |
GanttViewEventItem (KDGanttViewItem *parent, KPlato::Task *task) | |
KPlato::Task * | getTask () |
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::Task * | m_task |
KDGanttView * | m_view |
bool | m_drawn |
Definition at line 99 of file kptcanvasitem.h.
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.
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] |
bool KPlato::GanttViewEventItem::isDrawn | ( | ) | const [inline] |
void KPlato::GanttViewEventItem::setDrawn | ( | bool | drawn | ) | [inline] |
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().