KPlato::GanttView Class Reference

#include <kptganttview.h>

Inherits KPlato::ViewBase.

Inheritance diagram for KPlato::GanttView:

[legend]
List of all members.

Public Slots

void popupMenuRequested (KDGanttViewItem *item, const QPoint &pos, int)
void setShowExpected (bool on)
void setShowOptimistic (bool on)
void setShowPessimistic (bool on)
void setShowResources (bool on)
void setShowTaskName (bool on)
void setShowTaskLinks (bool on)
void setShowProgress (bool on)
void setShowPositiveFloat (bool on)
void setShowCriticalTasks (bool on)
void setShowCriticalPath (bool on)
void setShowNoInformation (bool on)
void setShowAppointments (bool on)

Signals

void enableActions (bool)
void modifyRelation (Relation *rel)
void addRelation (Node *par, Node *child)
void modifyRelation (Relation *rel, int linkType)
void addRelation (Node *par, Node *child, int linkType)
void itemDoubleClicked ()
void itemRenamed (Node *, const QString &)
void requestPopupMenu (const QString &menuname, const QPoint &pos)

Public Member Functions

 GanttView (QWidget *parent, bool readWrite=true, const char *name=0)
virtual void setZoom (double zoom)
void show ()
virtual void draw (Project &project)
virtual void drawChanges ()
virtual void drawChanges (Project &project)
void drawOnPainter (QPainter *painter, const QRect rect)
NodecurrentNode () const
void clear ()
void print (KPrinter &prts)
void addTaskLink (KDGanttViewTaskLink *link)
bool exportGantt (QIODevice *device)
virtual bool setContext (Context::Ganttview &context, Project &project)
virtual void getContext (Context::Ganttview &context) const
void setReadWriteMode (bool on)
bool isReadWriteMode () const
KDGanttViewItem * currentItem () const
bool showNoInformation () const

Protected Member Functions

int linkTypeToRelation (KDGanttViewItem::Connector fc, KDGanttViewItem::Connector tc)
void setRenameEnabled (Q3ListViewItem *item, bool on)

Private Slots

void currentItemChanged (KDGanttViewItem *)
void slotItemDoubleClicked (KDGanttViewItem *)
void slotItemRenamed (KDGanttViewItem *, int, const QString &)
void slotCreateTaskLink (KDGanttViewItem *from, KDGanttViewItem::Connector fc, KDGanttViewItem *to, KDGanttViewItem::Connector tc)
void slotGvItemClicked (KDGanttViewItem *)
void slotModifyLink (KDGanttViewTaskLink *link)

Private Member Functions

KDGanttViewItem * findItem (Node *node)
KDGanttViewItem * findItem (Node *node, KDGanttViewItem *item)
NodegetNode (KDGanttViewItem *item) const
bool isDrawn (KDGanttViewItem *item)
void setDrawn (KDGanttViewItem *item, bool state)
void resetDrawn (KDGanttViewItem *_item)
void removeNotDrawn (KDGanttViewItem *_item)
void deleteItem (KDGanttViewItem *item)
KDGanttViewItem * correctType (KDGanttViewItem *item, Node *node)
void correctPosition (KDGanttViewItem *item, Node *node)
KDGanttViewItem * correctParent (KDGanttViewItem *item, Node *node)
void updateChildren (Node *node)
void updateNode (Node *node)
void modifyChildren (Node *node)
void modifyNode (Node *node)
void modifyProject (KDGanttViewItem *item, Node *node)
void modifySummaryTask (KDGanttViewItem *item, Task *task)
void modifyTask (KDGanttViewItem *item, Task *task)
void modifyMilestone (KDGanttViewItem *item, Task *task)
KDGanttViewItem * addNode (KDGanttViewItem *parentItem, Node *node, KDGanttViewItem *after=0)
KDGanttViewItem * addProject (KDGanttViewItem *parentItem, Node *node, KDGanttViewItem *after=0)
KDGanttViewItem * addSubProject (KDGanttViewItem *parentItem, Node *node, KDGanttViewItem *after=0)
KDGanttViewItem * addSummaryTask (KDGanttViewItem *parentItem, Task *task, KDGanttViewItem *after=0)
KDGanttViewItem * addTask (KDGanttViewItem *parentItem, Task *task, KDGanttViewItem *after=0)
KDGanttViewItem * addMilestone (KDGanttViewItem *parentItem, Task *task, KDGanttViewItem *after=0)
void drawChildren (KDGanttViewItem *item, Node &node)
void drawProject (KDGanttViewItem *parentItem, Node *node)
void drawSubProject (KDGanttViewItem *parentItem, Node *node)
void drawSummaryTask (KDGanttViewItem *parentItem, Task *task)
void drawTask (KDGanttViewItem *parentItem, Task *task)
void drawMilestone (KDGanttViewItem *parentItem, Task *task)
void drawRelations ()
void drawRelations (KDGanttViewItem *item)
void drawChildRelations (KDGanttViewItem *item)
void getContextClosedNodes (Context::Ganttview &context, KDGanttViewItem *item) const

Private Attributes

bool m_readWrite
int m_defaultFontSize
KDGanttViewItem * m_currentItem
QSplitter * m_splitter
MyKDGanttViewm_gantt
TaskAppointmentsViewm_taskView
bool m_showExpected
bool m_showOptimistic
bool m_showPessimistic
bool m_showResources
bool m_showTaskName
bool m_showTaskLinks
bool m_showProgress
bool m_showPositiveFloat
bool m_showCriticalTasks
bool m_showCriticalPath
bool m_showNoInformation
bool m_showAppointments
bool m_firstTime
Q3PtrList< KDGanttViewTaskLink > m_taskLinks
Projectm_project

Detailed Description

Definition at line 58 of file kptganttview.h.


Constructor & Destructor Documentation

KPlato::GanttView::GanttView ( QWidget *  parent,
bool  readWrite = true,
const char *  name = 0 
)

Definition at line 83 of file kptganttview.cc.

References currentItemChanged(), m_gantt, m_showAppointments, m_showCriticalPath, m_showCriticalTasks, m_showExpected, m_showNoInformation, m_showOptimistic, m_showPessimistic, m_showPositiveFloat, m_showProgress, m_showResources, m_showTaskLinks, m_showTaskName, m_splitter, m_taskLinks, m_taskView, popupMenuRequested(), setReadWriteMode(), and slotItemDoubleClicked().


Member Function Documentation

void KPlato::GanttView::setZoom ( double  zoom  )  [virtual]

Reimplemented from KPlato::ViewBase.

Definition at line 148 of file kptganttview.cc.

References m_taskView, and KPlato::TaskAppointmentsView::setZoom().

Referenced by KPlato::View::setZoom().

void KPlato::GanttView::show (  ) 

Definition at line 155 of file kptganttview.cc.

References m_gantt.

void KPlato::GanttView::draw ( Project project  )  [virtual]

Reimplemented from KPlato::ViewBase.

Definition at line 172 of file kptganttview.cc.

References clear(), currentItemChanged(), drawChildren(), drawRelations(), KPlato::Schedule::Expected, KPlato::Node::findSchedule(), KPlato::Schedule::id(), m_currentItem, m_firstTime, m_gantt, m_project, m_showOptimistic, m_showPessimistic, KPlato::Schedule::Optimistic, KPlato::Schedule::Pessimistic, KPlato::Project::setCurrentSchedule(), and KPlato::Project::startTime().

Referenced by KPlato::Part::paintContent(), and KPlato::View::View().

void KPlato::GanttView::drawChanges (  )  [virtual]

Definition at line 207 of file kptganttview.cc.

References currentItemChanged(), drawRelations(), KPlato::Schedule::Expected, KPlato::Node::findSchedule(), KPlato::Schedule::id(), m_currentItem, m_gantt, m_project, m_showOptimistic, m_showPessimistic, m_taskLinks, KPlato::Schedule::Optimistic, KPlato::Schedule::Pessimistic, removeNotDrawn(), resetDrawn(), KPlato::Project::setCurrentSchedule(), and updateChildren().

Referenced by drawChanges(), and KPlato::View::updateView().

void KPlato::GanttView::drawChanges ( Project project  )  [virtual]

Reimplemented from KPlato::ViewBase.

Definition at line 201 of file kptganttview.cc.

References drawChanges(), and m_project.

void KPlato::GanttView::drawOnPainter ( QPainter *  painter,
const QRect  rect 
)

Call draw() or drawChanges() before calling this.

Definition at line 237 of file kptganttview.cc.

References m_gantt.

Referenced by KPlato::Part::paintContent().

Node * KPlato::GanttView::currentNode (  )  const

Definition at line 987 of file kptganttview.cc.

References getNode(), and m_currentItem.

Referenced by KPlato::View::currentTask(), getContext(), KPlato::View::setTaskActionsEnabled(), and KPlato::View::slotPrintSelectedDebug().

void KPlato::GanttView::clear (  ) 

Definition at line 160 of file kptganttview.cc.

References KPlato::TaskAppointmentsView::clear(), m_gantt, and m_taskView.

Referenced by draw(), and KPlato::Part::paintContent().

void KPlato::GanttView::print ( KPrinter &  prts  ) 

Definition at line 1036 of file kptganttview.cc.

References m_gantt, m_project, and KPlato::Node::name().

Referenced by KPlato::View::print().

void KPlato::GanttView::addTaskLink ( KDGanttViewTaskLink *  link  ) 

Definition at line 908 of file kptganttview.cc.

References m_taskLinks.

Referenced by KPlato::GanttViewEventItem::insertRelations(), KPlato::GanttViewTaskItem::insertRelations(), and KPlato::GanttViewSummaryItem::insertRelations().

bool KPlato::GanttView::exportGantt ( QIODevice *  device  ) 

Definition at line 1120 of file kptganttview.cc.

References m_gantt.

Referenced by KPlato::View::slotExportGantt().

bool KPlato::GanttView::setContext ( Context::Ganttview context,
Project project 
) [virtual]

Definition at line 1182 of file kptganttview.cc.

References KPlato::Context::Ganttview::ganttviewsize, m_showCriticalPath, m_showCriticalTasks, m_showNoInformation, m_showPositiveFloat, m_showProgress, m_showResources, m_showTaskLinks, m_showTaskName, m_splitter, KPlato::Context::Ganttview::showCriticalPath, KPlato::Context::Ganttview::showCriticalTasks, KPlato::Context::Ganttview::showNoInformation, KPlato::Context::Ganttview::showPositiveFloat, KPlato::Context::Ganttview::showProgress, KPlato::Context::Ganttview::showResources, KPlato::Context::Ganttview::showTaskLinks, KPlato::Context::Ganttview::showTaskName, and KPlato::Context::Ganttview::taskviewsize.

Referenced by KPlato::Part::paintContent(), and KPlato::View::setContext().

void KPlato::GanttView::getContext ( Context::Ganttview context  )  const [virtual]

Definition at line 1214 of file kptganttview.cc.

References KPlato::Context::Ganttview::currentNode, currentNode(), KPlato::Context::Ganttview::ganttviewsize, getContextClosedNodes(), KPlato::Node::id(), m_gantt, m_showCriticalPath, m_showCriticalTasks, m_showNoInformation, m_showPositiveFloat, m_showProgress, m_showResources, m_showTaskLinks, m_showTaskName, m_splitter, KPlato::Context::Ganttview::showCriticalPath, KPlato::Context::Ganttview::showCriticalTasks, KPlato::Context::Ganttview::showNoInformation, KPlato::Context::Ganttview::showPositiveFloat, KPlato::Context::Ganttview::showProgress, KPlato::Context::Ganttview::showResources, KPlato::Context::Ganttview::showTaskLinks, KPlato::Context::Ganttview::showTaskName, and KPlato::Context::Ganttview::taskviewsize.

Referenced by KPlato::View::getContext().

void KPlato::GanttView::setReadWriteMode ( bool  on  ) 

Definition at line 1247 of file kptganttview.cc.

References m_gantt, m_readWrite, setRenameEnabled(), slotCreateTaskLink(), and slotModifyLink().

Referenced by GanttView().

bool KPlato::GanttView::isReadWriteMode (  )  const [inline]

Definition at line 92 of file kptganttview.h.

References m_readWrite.

KDGanttViewItem* KPlato::GanttView::currentItem (  )  const [inline]

Definition at line 93 of file kptganttview.h.

References m_currentItem.

bool KPlato::GanttView::showNoInformation (  )  const [inline]

Definition at line 95 of file kptganttview.h.

References m_showNoInformation.

Referenced by KPlato::View::slotViewGanttNoInformation().

void KPlato::GanttView::enableActions ( bool   )  [signal]

Referenced by currentItemChanged().

void KPlato::GanttView::modifyRelation ( Relation rel  )  [signal]

Referenced by slotCreateTaskLink(), and slotModifyLink().

void KPlato::GanttView::addRelation ( Node par,
Node child 
) [signal]

Referenced by slotCreateTaskLink().

void KPlato::GanttView::modifyRelation ( Relation rel,
int  linkType 
) [signal]

void KPlato::GanttView::addRelation ( Node par,
Node child,
int  linkType 
) [signal]

void KPlato::GanttView::itemDoubleClicked (  )  [signal]

Referenced by slotItemDoubleClicked().

void KPlato::GanttView::itemRenamed ( Node ,
const QString &   
) [signal]

Referenced by slotItemRenamed().

void KPlato::GanttView::requestPopupMenu ( const QString &  menuname,
const QPoint &  pos 
) [signal]

Requests a specific type of popup menu. Usually a KPlato::View object is connected to this signal.

Referenced by popupMenuRequested().

void KPlato::GanttView::popupMenuRequested ( KDGanttViewItem *  item,
const QPoint &  pos,
int   
) [slot]

Determines the correct type of popup menu and emits requestPopupMenu()

Definition at line 992 of file kptganttview.cc.

References getNode(), requestPopupMenu(), KPlato::Task::type(), KPlato::Node::Type_Milestone, KPlato::Node::Type_Summarytask, and KPlato::Node::Type_Task.

Referenced by GanttView().

void KPlato::GanttView::setShowExpected ( bool  on  )  [inline, slot]

Definition at line 119 of file kptganttview.h.

References m_showExpected.

Referenced by KPlato::View::setContext(), and KPlato::View::updateView().

void KPlato::GanttView::setShowOptimistic ( bool  on  )  [inline, slot]

Definition at line 120 of file kptganttview.h.

References m_showOptimistic.

Referenced by KPlato::View::setContext(), and KPlato::View::updateView().

void KPlato::GanttView::setShowPessimistic ( bool  on  )  [inline, slot]

Definition at line 121 of file kptganttview.h.

References m_showPessimistic.

Referenced by KPlato::View::setContext(), and KPlato::View::updateView().

void KPlato::GanttView::setShowResources ( bool  on  )  [inline, slot]

Definition at line 122 of file kptganttview.h.

References m_showResources.

Referenced by KPlato::View::slotViewGanttResources().

void KPlato::GanttView::setShowTaskName ( bool  on  )  [inline, slot]

Definition at line 123 of file kptganttview.h.

References m_showTaskName.

Referenced by KPlato::View::slotViewGanttTaskName().

void KPlato::GanttView::setShowTaskLinks ( bool  on  )  [slot]

Definition at line 166 of file kptganttview.cc.

References m_gantt, and m_showTaskLinks.

Referenced by KPlato::View::slotViewGanttTaskLinks().

void KPlato::GanttView::setShowProgress ( bool  on  )  [inline, slot]

Definition at line 125 of file kptganttview.h.

References m_showProgress.

Referenced by KPlato::View::slotViewGanttProgress().

void KPlato::GanttView::setShowPositiveFloat ( bool  on  )  [inline, slot]

Definition at line 126 of file kptganttview.h.

References m_showPositiveFloat.

Referenced by KPlato::View::slotViewGanttFloat().

void KPlato::GanttView::setShowCriticalTasks ( bool  on  )  [inline, slot]

Definition at line 127 of file kptganttview.h.

References m_showCriticalTasks.

Referenced by KPlato::View::slotViewGanttCriticalTasks().

void KPlato::GanttView::setShowCriticalPath ( bool  on  )  [inline, slot]

Definition at line 128 of file kptganttview.h.

References m_showCriticalPath.

Referenced by KPlato::View::slotViewGanttCriticalPath().

void KPlato::GanttView::setShowNoInformation ( bool  on  )  [inline, slot]

Definition at line 129 of file kptganttview.h.

References m_showNoInformation.

Referenced by KPlato::View::slotViewGanttNoInformation().

void KPlato::GanttView::setShowAppointments ( bool  on  )  [inline, slot]

Definition at line 130 of file kptganttview.h.

References m_showAppointments.

Referenced by KPlato::View::slotViewTaskAppointments().

void KPlato::GanttView::currentItemChanged ( KDGanttViewItem *   )  [private, slot]

Definition at line 962 of file kptganttview.cc.

References KPlato::TaskAppointmentsView::clear(), KPlato::TaskAppointmentsView::draw(), enableActions(), KPlato::GanttViewEventItem::getTask(), KPlato::GanttViewTaskItem::getTask(), m_currentItem, m_gantt, m_showAppointments, and m_taskView.

Referenced by draw(), drawChanges(), and GanttView().

void KPlato::GanttView::slotItemDoubleClicked ( KDGanttViewItem *   )  [private, slot]

Definition at line 1028 of file kptganttview.cc.

References itemDoubleClicked().

Referenced by GanttView().

void KPlato::GanttView::slotItemRenamed ( KDGanttViewItem *  ,
int  ,
const QString &   
) [private, slot]

Definition at line 1108 of file kptganttview.cc.

References getNode(), and itemRenamed().

void KPlato::GanttView::slotCreateTaskLink ( KDGanttViewItem *  from,
KDGanttViewItem::Connector  fc,
KDGanttViewItem *  to,
KDGanttViewItem::Connector  tc 
) [private, slot]

Definition at line 1126 of file kptganttview.cc.

References addRelation(), KPlato::Node::findRelation(), getNode(), linkTypeToRelation(), modifyRelation(), and KPlato::Relation::None.

Referenced by setReadWriteMode().

void KPlato::GanttView::slotGvItemClicked ( KDGanttViewItem *   )  [private, slot]

Definition at line 1116 of file kptganttview.cc.

void KPlato::GanttView::slotModifyLink ( KDGanttViewTaskLink *  link  )  [private, slot]

Definition at line 1172 of file kptganttview.cc.

References KPlato::Node::findRelation(), getNode(), and modifyRelation().

Referenced by setReadWriteMode().

int KPlato::GanttView::linkTypeToRelation ( KDGanttViewItem::Connector  fc,
KDGanttViewItem::Connector  tc 
) [protected]

Definition at line 1149 of file kptganttview.cc.

References KPlato::Relation::FinishFinish, KPlato::Relation::FinishStart, KPlato::Relation::None, and KPlato::Relation::StartStart.

Referenced by slotCreateTaskLink().

void KPlato::GanttView::setRenameEnabled ( Q3ListViewItem *  item,
bool  on 
) [protected]

Definition at line 1261 of file kptganttview.cc.

Referenced by setReadWriteMode().

KDGanttViewItem * KPlato::GanttView::findItem ( Node node  )  [private]

Definition at line 279 of file kptganttview.cc.

References m_gantt.

Referenced by correctParent(), correctPosition(), findItem(), modifyNode(), and updateNode().

KDGanttViewItem * KPlato::GanttView::findItem ( Node node,
KDGanttViewItem *  item 
) [private]

Definition at line 284 of file kptganttview.cc.

References findItem(), and getNode().

Node * KPlato::GanttView::getNode ( KDGanttViewItem *  item  )  const [private]

Definition at line 297 of file kptganttview.cc.

Referenced by currentNode(), findItem(), getContextClosedNodes(), popupMenuRequested(), slotCreateTaskLink(), slotItemRenamed(), and slotModifyLink().

bool KPlato::GanttView::isDrawn ( KDGanttViewItem *  item  )  [private]

Definition at line 311 of file kptganttview.cc.

Referenced by removeNotDrawn().

void KPlato::GanttView::setDrawn ( KDGanttViewItem *  item,
bool  state 
) [private]

Definition at line 327 of file kptganttview.cc.

Referenced by modifyMilestone(), modifyProject(), modifySummaryTask(), modifyTask(), and resetDrawn().

void KPlato::GanttView::resetDrawn ( KDGanttViewItem *  _item  )  [private]

Definition at line 343 of file kptganttview.cc.

References setDrawn().

Referenced by drawChanges().

void KPlato::GanttView::removeNotDrawn ( KDGanttViewItem *  _item  )  [private]

Definition at line 353 of file kptganttview.cc.

References deleteItem(), isDrawn(), and m_currentItem.

Referenced by drawChanges().

void KPlato::GanttView::deleteItem ( KDGanttViewItem *  item  )  [private]

Definition at line 368 of file kptganttview.cc.

Referenced by correctParent(), correctType(), and removeNotDrawn().

KDGanttViewItem * KPlato::GanttView::correctType ( KDGanttViewItem *  item,
Node node 
) [private]

Definition at line 378 of file kptganttview.cc.

References addNode(), deleteItem(), KPlato::Node::type(), KPlato::Node::Type_Milestone, KPlato::Node::Type_Project, KPlato::Node::Type_Subproject, KPlato::Node::Type_Summarytask, and KPlato::Node::Type_Task.

Referenced by updateNode().

void KPlato::GanttView::correctPosition ( KDGanttViewItem *  item,
Node node 
) [private]

Definition at line 408 of file kptganttview.cc.

References findItem(), and KPlato::Node::siblingBefore().

Referenced by updateNode().

KDGanttViewItem * KPlato::GanttView::correctParent ( KDGanttViewItem *  item,
Node node 
) [private]

Definition at line 416 of file kptganttview.cc.

References addNode(), deleteItem(), findItem(), and KPlato::Node::getParent().

Referenced by updateNode().

void KPlato::GanttView::updateChildren ( Node node  )  [private]

Definition at line 428 of file kptganttview.cc.

References KPlato::Node::childNodeIterator(), and updateNode().

Referenced by drawChanges(), and updateNode().

void KPlato::GanttView::updateNode ( Node node  )  [private]

Definition at line 436 of file kptganttview.cc.

References addNode(), correctParent(), correctPosition(), correctType(), findItem(), KPlato::Node::getParent(), modifyNode(), KPlato::Node::siblingBefore(), KPlato::Node::type(), KPlato::Node::Type_Summarytask, and updateChildren().

Referenced by updateChildren().

void KPlato::GanttView::modifyChildren ( Node node  )  [private]

Definition at line 456 of file kptganttview.cc.

References KPlato::Node::childNodeIterator(), and modifyNode().

void KPlato::GanttView::modifyNode ( Node node  )  [private]

Definition at line 465 of file kptganttview.cc.

References findItem(), modifyMilestone(), modifyProject(), modifySummaryTask(), modifyTask(), KPlato::Node::type(), KPlato::Node::Type_Milestone, KPlato::Node::Type_Project, KPlato::Node::Type_Subproject, KPlato::Node::Type_Summarytask, and KPlato::Node::Type_Task.

Referenced by modifyChildren(), and updateNode().

void KPlato::GanttView::modifyProject ( KDGanttViewItem *  item,
Node node 
) [private]

Definition at line 491 of file kptganttview.cc.

References KPlato::Node::endTime(), KPlato::Node::name(), setDrawn(), KPlato::Node::startTime(), and KPlato::Node::wbs().

Referenced by addProject(), and modifyNode().

void KPlato::GanttView::modifySummaryTask ( KDGanttViewItem *  item,
Task task 
) [private]

Definition at line 503 of file kptganttview.cc.

References KPlato::Node::currentSchedule(), KPlato::Node::endTime(), m_project, m_showNoInformation, m_showTaskName, KPlato::Node::name(), KPlato::Node::notScheduled(), KPlato::Node::projectNode(), setDrawn(), KPlato::Node::startTime(), and KPlato::Node::wbs().

Referenced by addSummaryTask(), and modifyNode().

void KPlato::GanttView::modifyTask ( KDGanttViewItem *  item,
Task task 
) [private]

Definition at line 551 of file kptganttview.cc.

References KPlato::Node::appointments(), KPlato::Node::currentSchedule(), KPlato::Task::effortMetError(), KPlato::Node::endTime(), KPlato::Duration::Format_i18nDayTime, KPlato::Node::inCriticalPath(), KPlato::Task::isCritical(), m_project, m_showCriticalPath, m_showCriticalTasks, m_showNoInformation, m_showPositiveFloat, m_showProgress, m_showResources, m_showTaskName, KPlato::Resource::name(), KPlato::Node::name(), KPlato::Node::notScheduled(), KPlato::Node::overbookedResources(), KPlato::Task::positiveFloat(), KPlato::Task::progress(), KPlato::Node::projectNode(), KPlato::Schedule::resource(), KPlato::Appointment::resource(), KPlato::Node::resourceError(), KPlato::Node::resourceNotAvailable(), KPlato::Node::resourceOverbooked(), KPlato::Node::schedulingError(), setDrawn(), KPlato::Node::startTime(), KPlato::Duration::toString(), KPlato::Node::wbs(), and KPlato::Duration::zeroDuration.

Referenced by addTask(), and modifyNode().

void KPlato::GanttView::modifyMilestone ( KDGanttViewItem *  item,
Task task 
) [private]

Definition at line 676 of file kptganttview.cc.

References KPlato::Node::currentSchedule(), KPlato::Duration::Format_i18nDayTime, KPlato::Node::inCriticalPath(), KPlato::Task::isCritical(), m_project, m_showCriticalPath, m_showCriticalTasks, m_showNoInformation, m_showPositiveFloat, m_showTaskName, KPlato::Node::name(), KPlato::Node::notScheduled(), KPlato::Task::positiveFloat(), KPlato::Node::projectNode(), KPlato::Node::schedulingError(), setDrawn(), KPlato::Node::startTime(), KPlato::Duration::toString(), KPlato::Node::wbs(), and KPlato::Duration::zeroDuration.

Referenced by addMilestone(), and modifyNode().

KDGanttViewItem * KPlato::GanttView::addNode ( KDGanttViewItem *  parentItem,
Node node,
KDGanttViewItem *  after = 0 
) [private]

Definition at line 755 of file kptganttview.cc.

References addMilestone(), addProject(), addSubProject(), addSummaryTask(), addTask(), KPlato::Node::type(), KPlato::Node::Type_Milestone, KPlato::Node::Type_Project, KPlato::Node::Type_Subproject, KPlato::Node::Type_Summarytask, and KPlato::Node::Type_Task.

Referenced by correctParent(), correctType(), and updateNode().

KDGanttViewItem * KPlato::GanttView::addProject ( KDGanttViewItem *  parentItem,
Node node,
KDGanttViewItem *  after = 0 
) [private]

Definition at line 776 of file kptganttview.cc.

References m_gantt, and modifyProject().

Referenced by addNode(), addSubProject(), and drawProject().

KDGanttViewItem * KPlato::GanttView::addSubProject ( KDGanttViewItem *  parentItem,
Node node,
KDGanttViewItem *  after = 0 
) [private]

Definition at line 792 of file kptganttview.cc.

References addProject().

Referenced by addNode(), and drawSubProject().

KDGanttViewItem * KPlato::GanttView::addSummaryTask ( KDGanttViewItem *  parentItem,
Task task,
KDGanttViewItem *  after = 0 
) [private]

Definition at line 798 of file kptganttview.cc.

References m_gantt, and modifySummaryTask().

Referenced by addNode(), and drawSummaryTask().

KDGanttViewItem * KPlato::GanttView::addTask ( KDGanttViewItem *  parentItem,
Task task,
KDGanttViewItem *  after = 0 
) [private]

Definition at line 815 of file kptganttview.cc.

References m_gantt, and modifyTask().

Referenced by addNode(), and drawTask().

KDGanttViewItem * KPlato::GanttView::addMilestone ( KDGanttViewItem *  parentItem,
Task task,
KDGanttViewItem *  after = 0 
) [private]

Definition at line 832 of file kptganttview.cc.

References m_gantt, and modifyMilestone().

Referenced by addNode(), and drawMilestone().

void KPlato::GanttView::drawChildren ( KDGanttViewItem *  item,
Node node 
) [private]

Definition at line 848 of file kptganttview.cc.

References KPlato::Node::childNodeIterator(), drawMilestone(), drawProject(), drawSubProject(), drawSummaryTask(), drawTask(), KPlato::Node::type(), KPlato::Node::Type_Milestone, KPlato::Node::Type_Project, KPlato::Node::Type_Subproject, KPlato::Node::Type_Summarytask, and KPlato::Node::Type_Task.

Referenced by draw(), drawProject(), drawSubProject(), and drawSummaryTask().

void KPlato::GanttView::drawProject ( KDGanttViewItem *  parentItem,
Node node 
) [private]

Definition at line 875 of file kptganttview.cc.

References addProject(), and drawChildren().

Referenced by drawChildren().

void KPlato::GanttView::drawSubProject ( KDGanttViewItem *  parentItem,
Node node 
) [private]

Definition at line 882 of file kptganttview.cc.

References addSubProject(), and drawChildren().

Referenced by drawChildren().

void KPlato::GanttView::drawSummaryTask ( KDGanttViewItem *  parentItem,
Task task 
) [private]

Definition at line 889 of file kptganttview.cc.

References addSummaryTask(), and drawChildren().

Referenced by drawChildren().

void KPlato::GanttView::drawTask ( KDGanttViewItem *  parentItem,
Task task 
) [private]

Definition at line 896 of file kptganttview.cc.

References addTask().

Referenced by drawChildren().

void KPlato::GanttView::drawMilestone ( KDGanttViewItem *  parentItem,
Task task 
) [private]

Definition at line 902 of file kptganttview.cc.

References addMilestone().

Referenced by drawChildren().

void KPlato::GanttView::drawRelations (  )  [private]

Definition at line 914 of file kptganttview.cc.

References drawChildRelations(), m_gantt, and m_showTaskLinks.

Referenced by draw(), drawChanges(), and drawChildRelations().

void KPlato::GanttView::drawRelations ( KDGanttViewItem *  item  )  [private]

Definition at line 935 of file kptganttview.cc.

References KPlato::GanttViewEventItem::insertRelations(), KPlato::GanttViewTaskItem::insertRelations(), and KPlato::GanttViewSummaryItem::insertRelations().

void KPlato::GanttView::drawChildRelations ( KDGanttViewItem *  item  )  [private]

Definition at line 926 of file kptganttview.cc.

References drawRelations().

Referenced by drawRelations().

void KPlato::GanttView::getContextClosedNodes ( Context::Ganttview context,
KDGanttViewItem *  item 
) const [private]

Definition at line 1234 of file kptganttview.cc.

References KPlato::Context::Ganttview::closedNodes, and getNode().

Referenced by getContext().


Member Data Documentation

bool KPlato::GanttView::m_readWrite [private]

Definition at line 191 of file kptganttview.h.

Referenced by isReadWriteMode(), and setReadWriteMode().

int KPlato::GanttView::m_defaultFontSize [private]

Definition at line 192 of file kptganttview.h.

KDGanttViewItem* KPlato::GanttView::m_currentItem [private]

Definition at line 193 of file kptganttview.h.

Referenced by currentItem(), currentItemChanged(), currentNode(), draw(), drawChanges(), and removeNotDrawn().

QSplitter* KPlato::GanttView::m_splitter [private]

Definition at line 194 of file kptganttview.h.

Referenced by GanttView(), getContext(), and setContext().

MyKDGanttView* KPlato::GanttView::m_gantt [private]

Definition at line 195 of file kptganttview.h.

Referenced by addMilestone(), addProject(), addSummaryTask(), addTask(), clear(), currentItemChanged(), draw(), drawChanges(), drawOnPainter(), drawRelations(), exportGantt(), findItem(), GanttView(), getContext(), print(), setReadWriteMode(), setShowTaskLinks(), and show().

TaskAppointmentsView* KPlato::GanttView::m_taskView [private]

Definition at line 196 of file kptganttview.h.

Referenced by clear(), currentItemChanged(), GanttView(), and setZoom().

bool KPlato::GanttView::m_showExpected [private]

Definition at line 197 of file kptganttview.h.

Referenced by GanttView(), and setShowExpected().

bool KPlato::GanttView::m_showOptimistic [private]

Definition at line 198 of file kptganttview.h.

Referenced by draw(), drawChanges(), GanttView(), and setShowOptimistic().

bool KPlato::GanttView::m_showPessimistic [private]

Definition at line 199 of file kptganttview.h.

Referenced by draw(), drawChanges(), GanttView(), and setShowPessimistic().

bool KPlato::GanttView::m_showResources [private]

Definition at line 200 of file kptganttview.h.

Referenced by GanttView(), getContext(), modifyTask(), setContext(), and setShowResources().

bool KPlato::GanttView::m_showTaskName [private]

Definition at line 201 of file kptganttview.h.

Referenced by GanttView(), getContext(), modifyMilestone(), modifySummaryTask(), modifyTask(), setContext(), and setShowTaskName().

bool KPlato::GanttView::m_showTaskLinks [private]

Definition at line 202 of file kptganttview.h.

Referenced by drawRelations(), GanttView(), getContext(), setContext(), and setShowTaskLinks().

bool KPlato::GanttView::m_showProgress [private]

Definition at line 203 of file kptganttview.h.

Referenced by GanttView(), getContext(), modifyTask(), setContext(), and setShowProgress().

bool KPlato::GanttView::m_showPositiveFloat [private]

Definition at line 204 of file kptganttview.h.

Referenced by GanttView(), getContext(), modifyMilestone(), modifyTask(), setContext(), and setShowPositiveFloat().

bool KPlato::GanttView::m_showCriticalTasks [private]

Definition at line 205 of file kptganttview.h.

Referenced by GanttView(), getContext(), modifyMilestone(), modifyTask(), setContext(), and setShowCriticalTasks().

bool KPlato::GanttView::m_showCriticalPath [private]

Definition at line 206 of file kptganttview.h.

Referenced by GanttView(), getContext(), modifyMilestone(), modifyTask(), setContext(), and setShowCriticalPath().

bool KPlato::GanttView::m_showNoInformation [private]

Definition at line 207 of file kptganttview.h.

Referenced by GanttView(), getContext(), modifyMilestone(), modifySummaryTask(), modifyTask(), setContext(), setShowNoInformation(), and showNoInformation().

bool KPlato::GanttView::m_showAppointments [private]

Definition at line 208 of file kptganttview.h.

Referenced by currentItemChanged(), GanttView(), and setShowAppointments().

bool KPlato::GanttView::m_firstTime [private]

Definition at line 209 of file kptganttview.h.

Referenced by draw().

Q3PtrList<KDGanttViewTaskLink> KPlato::GanttView::m_taskLinks [private]

Definition at line 210 of file kptganttview.h.

Referenced by addTaskLink(), drawChanges(), and GanttView().

Project* KPlato::GanttView::m_project [private]

Definition at line 211 of file kptganttview.h.

Referenced by draw(), drawChanges(), modifyMilestone(), modifySummaryTask(), modifyTask(), and print().


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