kplato

#include <kptproject.h>

Inheritance diagram for KPlato::Project:
KPlato::Node

Public Member Functions

 Project (Node *parent=0)
 
virtual int type () const
 
void calculate (Schedule *scedule)
 
void calculate (Effort::Use use)
 
void calculate ()
 
virtual bool calcCriticalPath (bool fromEnd)
 
virtual DateTime startTime () const
 
virtual DateTime endTime () const
 
Duration * getExpectedDuration ()
 
Duration * getRandomDuration ()
 
virtual bool load (TQDomElement &element)
 
virtual void save (TQDomElement &element) const
 
TQPtrList< ResourceGroup > & resourceGroups ()
 
virtual void addResourceGroup (ResourceGroup *resource)
 
virtual void insertResourceGroup (unsigned int index, ResourceGroup *resource)
 
void removeResourceGroup (ResourceGroup *resource)
 
void removeResourceGroup (int number)
 
ResourceGroup * takeResourceGroup (ResourceGroup *resource)
 
bool addTask (Node *task, Node *position)
 
bool addSubTask (Node *task, Node *position)
 
bool addSubTask (Node *task, int index, Node *parent)
 
void delTask (Node *node)
 
bool canIndentTask (Node *node)
 
bool indentTask (Node *node)
 
bool canUnindentTask (Node *node)
 
bool unindentTask (Node *node)
 
bool canMoveTaskUp (Node *node)
 
bool moveTaskUp (Node *node)
 
bool canMoveTaskDown (Node *node)
 
bool moveTaskDown (Node *node)
 
Task * createTask (Node *parent)
 
Task * createTask (Task &def, Node *parent)
 
ResourceGroup * group (TQString id)
 
Resource * resource (TQString id)
 
virtual EffortCostMap plannedEffortCostPrDay (const TQDate &start, const TQDate &end) const
 
virtual Duration plannedEffort ()
 
virtual Duration plannedEffort (const TQDate &date)
 
virtual Duration plannedEffortTo (const TQDate &date)
 
virtual Duration actualEffort ()
 
virtual Duration actualEffort (const TQDate &date)
 
virtual Duration actualEffortTo (const TQDate &date)
 
virtual double plannedCost ()
 
virtual double plannedCost (const TQDate &date)
 
virtual double plannedCostTo (const TQDate &date)
 
virtual double actualCost ()
 
virtual double actualCost (const TQDate &date)
 
virtual double actualCostTo (const TQDate &date)
 
Calendar * defaultCalendar ()
 
TQPtrList< Calendar > calendars ()
 
void addCalendar (Calendar *calendar)
 
Calendar * calendar (const TQString id) const
 
StandardWorktime * standardWorktime ()
 
void setStandardWorktime (StandardWorktime *worktime)
 
bool legalToLink (Node *par, Node *child)
 
virtual const TQDict< Node > & nodeDict ()
 
virtual Node * findNode (const TQString &id) const
 
virtual bool removeId (const TQString &id)
 
virtual void insertId (const TQString &id, const Node *node)
 
bool registerNodeId (Node *node)
 
TQString uniqueNodeId (int seed=1)
 
ResourceGroup * findResourceGroup (const TQString &id) const
 
bool removeResourceGroupId (const TQString &id)
 
void insertResourceGroupId (const TQString &id, const ResourceGroup *group)
 
Resource * findResource (const TQString &id) const
 
bool removeResourceId (const TQString &id)
 
void insertResourceId (const TQString &id, const Resource *resource)
 
virtual Calendar * findCalendar (const TQString &id) const
 
virtual bool removeCalendarId (const TQString &id)
 
virtual void insertCalendarId (const TQString &id, const Calendar *calendar)
 
void setBaselined (bool on)
 
bool isBaselined () const
 
void generateWBS (int count, WBSDefinition &def, TQString wbs=TQString())
 
Accounts & accounts ()
 
virtual void setCurrentSchedule (long id)
 
MainSchedule * createSchedule (TQString name, Schedule::Type type)
 
virtual void setParentSchedule (Schedule *sch)
 
void printDebug (bool children, TQCString indent)
 
void printCalendarDebug (TQCString indent="")
 
- Public Member Functions inherited from KPlato::Node
 Node (Node *parent=0)
 
 Node (Node &node, Node *parent=0)
 
bool setId (TQString id)
 
TQString id () const
 
virtual Node * projectNode ()
 
virtual bool load (TQDomElement &, Project &)
 
virtual void saveRelations (TQDomElement &element) const
 
Node * getParent () const
 
void setParent (Node *newParent)
 
const TQPtrList< Node > & childNodeIterator () const
 
int numChildren () const
 
virtual void addChildNode (Node *node, Node *after=0)
 
virtual void insertChildNode (unsigned int index, Node *node)
 
void delChildNode (Node *node, bool remove=true)
 
void delChildNode (int number, bool remove=true)
 
Node * getChildNode (int number)
 
const Node * getChildNode (int number) const
 
int findChildNode (Node *node)
 
int numDependChildNodes () const
 
virtual void addDependChildNode (Node *node, Relation::Type p=Relation::FinishStart)
 
virtual void addDependChildNode (Node *node, Relation::Type p, Duration lag)
 
virtual bool addDependChildNode (Relation *relation)
 
virtual void insertDependChildNode (unsigned int index, Node *node, Relation::Type p=Relation::FinishStart)
 
void delDependChildNode (Node *node, bool remove=false)
 
void delDependChildNode (Relation *rel, bool remove=false)
 
void delDependChildNode (int number, bool remove=false)
 
Relation * getDependChildNode (int number)
 
TQPtrList< Relation > & dependChildNodes ()
 
void takeDependChildNode (Relation *rel)
 
int numDependParentNodes () const
 
virtual void addDependParentNode (Node *node, Relation::Type p=Relation::FinishStart)
 
virtual void addDependParentNode (Node *node, Relation::Type p, Duration lag)
 
virtual bool addDependParentNode (Relation *relation)
 
virtual void insertDependParentNode (unsigned int index, Node *node, Relation::Type p=Relation::FinishStart)
 
void delDependParentNode (Node *node, bool remove=false)
 
void delDependParentNode (Relation *rel, bool remove=false)
 
void delDependParentNode (int number, bool remove=false)
 
Relation * getDependParentNode (int number)
 
TQPtrList< Relation > & dependParentNodes ()
 
void takeDependParentNode (Relation *rel)
 
bool isParentOf (Node *node)
 
bool isDependChildOf (Node *node)
 
Relation * findParentRelation (Node *node)
 
Relation * findChildRelation (Node *node)
 
Relation * findRelation (Node *node)
 
void setStartTime (DateTime startTime)
 
const TQDate & startDate () const
 
void setEndTime (DateTime endTime)
 
const TQDate & endDate () const
 
void setEffort (Effort *e)
 
Effort * effort () const
 
Duration * getDelay ()
 
DateTime getEarliestStart () const
 
void setEarliestStart (const DateTime &dt)
 
DateTime getLatestFinish () const
 
void setLatestFinish (const DateTime &dt)
 
TQString & name ()
 
TQString & leader ()
 
TQString & description ()
 
const TQString & name () const
 
const TQString & leader () const
 
const TQString & description () const
 
void setName (const TQString &n)
 
void setLeader (const TQString &l)
 
void setDescription (const TQString &d)
 
virtual void setConstraint (Node::ConstraintType type)
 
void setConstraint (TQString &type)
 
int constraint () const
 
TQString constraintToString () const
 
virtual void setConstraintStartTime (TQDateTime time)
 
virtual void setConstraintEndTime (TQDateTime time)
 
virtual DateTime constraintStartTime () const
 
virtual DateTime constraintEndTime () const
 
virtual DateTime startNotEarlier () const
 
virtual DateTime finishNotLater () const
 
virtual DateTime mustStartOn () const
 
virtual DateTime mustFinishOn () const
 
virtual ResourceGroupRequest * resourceRequest (ResourceGroup *) const
 
virtual void makeAppointments ()
 
bool resourceError () const
 
virtual bool resourceOverbooked () const
 
virtual TQStringList overbookedResources () const
 
virtual void calcResourceOverbooked ()
 
bool resourceNotAvailable () const
 
virtual bool schedulingError () const
 
bool notScheduled () const
 
double effortPerformanceIndex (const TQDate &, bool *)
 
double costPerformanceIndex (const TQDate &, bool *)
 
virtual void resetVisited ()
 
void propagateEarliestStart (DateTime &time)
 
void propagateLatestFinish (DateTime &time)
 
void moveEarliestStart (DateTime &time)
 
void moveLatestFinish (DateTime &time)
 
virtual Duration summarytaskDurationForward (const DateTime &)
 
virtual DateTime summarytaskEarliestStart ()
 
virtual Duration summarytaskDurationBackward (const DateTime &)
 
virtual DateTime summarytaskLatestFinish ()
 
const Duration & duration ()
 
Duration duration (const DateTime &time, int use, bool backward)
 
virtual Duration calcDuration (const DateTime &, const Duration &, bool)
 
Node * siblingBefore ()
 
Node * childBefore (Node *node)
 
Node * siblingAfter ()
 
Node * childAfter (Node *node)
 
bool moveChildUp (Node *node)
 
bool moveChildDown (Node *node)
 
bool legalToLink (Node *node)
 
virtual bool isEndNode () const
 
virtual bool isStartNode () const
 
virtual void clearProxyRelations ()
 
virtual void addParentProxyRelations (TQPtrList< Relation > &)
 
virtual void addChildProxyRelations (TQPtrList< Relation > &)
 
virtual void addParentProxyRelation (Node *, const Relation *)
 
virtual void addChildProxyRelation (Node *, const Relation *)
 
virtual void saveAppointments (TQDomElement &element, long id) const
 
TQPtrList< Appointment > appointments ()
 
virtual bool addAppointment (Appointment *appointment)
 
virtual bool addAppointment (Appointment *appointment, Schedule &main)
 
virtual void addAppointment (ResourceSchedule *resource, DateTime &start, DateTime &end, double load=100)
 
virtual Node * findNode () const
 
virtual bool removeId ()
 
virtual void insertId (const TQString &id)
 
virtual DateTime workStartTime () const
 
void setWorkStartTime (const DateTime &dt)
 
virtual DateTime workEndTime () const
 
void setWorkEndTime (const DateTime &dt)
 
virtual bool isCritical () const
 
virtual bool inCriticalPath () const
 
virtual int level ()
 
TQString wbs () const
 
double startupCost () const
 
void setStartupCost (double cost)
 
Account * startupAccount () const
 
void setStartupAccount (Account *acc)
 
double shutdownCost () const
 
void setShutdownCost (double cost)
 
Account * shutdownAccount () const
 
void setShutdownAccount (Account *acc)
 
Account * runningAccount () const
 
void setRunningAccount (Account *acc)
 
Schedule * currentSchedule () const
 
void setCurrentSchedulePtr (Schedule *schedule)
 
TQIntDict< Schedule > & schedules ()
 
Schedule * findSchedule (const TQString name, const Schedule::Type type) const
 
Schedule * findSchedule (const Schedule::Type type) const
 
Schedule * findSchedule (long id) const
 
void takeSchedule (const Schedule *schedule)
 
void addSchedule (Schedule *schedule)
 
Schedule * createSchedule (TQString name, Schedule::Type type, long id)
 
Schedule * createSchedule (Schedule *parent)
 
void setScheduleDeleted (long id, bool onoff)
 
DateTime startTime ()
 
DateTime endTime ()
 

Protected Member Functions

DateTime calculateForward (int use)
 
DateTime calculateBackward (int use)
 
DateTime scheduleForward (const DateTime &earliest, int use)
 
DateTime scheduleBackward (const DateTime &latest, int use)
 
void adjustSummarytask ()
 
void initiateCalculation (Schedule &sch)
 
void initiateCalculationLists (TQPtrList< Node > &startnodes, TQPtrList< Node > &endnodes, TQPtrList< Node > &summarytasks)
 
bool legalParents (Node *par, Node *child)
 
bool legalChildren (Node *par, Node *child)
 

Protected Attributes

Accounts m_accounts
 
TQPtrList< ResourceGroup > m_resourceGroups
 
TQPtrList< Calendar > m_calendars
 
StandardWorktime * m_standardWorktime
 
- Protected Attributes inherited from KPlato::Node
TQPtrList< Node > m_nodes
 
TQPtrList< Relation > m_dependChildNodes
 
TQPtrList< Relation > m_dependParentNodes
 
Node * m_parent
 
TQString m_id
 
TQString m_name
 
TQString m_leader
 
TQString m_description
 
Effort * m_effort
 
ConstraintType m_constraint
 
DateTime m_constraintStartTime
 
DateTime m_constraintEndTime
 
bool m_visitedForward
 
bool m_visitedBackward
 
Duration m_durationForward
 
Duration m_durationBackward
 
TQDate m_dateOnlyStartDate
 
TQDate m_dateOnlyEndDate
 
Duration m_dateOnlyDuration
 
TQIntDict< Schedule > m_schedules
 
Schedule * m_currentSchedule
 
TQString m_wbs
 
double m_startupCost
 
Account * m_startupAccount
 
double m_shutdownCost
 
Account * m_shutdownAccount
 
Account * m_runningAccount
 

Additional Inherited Members

- Public Types inherited from KPlato::Node
enum  ConstraintType {
  ASAP , ALAP , MustStartOn , MustFinishOn ,
  StartNotEarlier , FinishNotLater , FixedInterval
}
 
enum  NodeTypes {
  Type_Node = 0 , Type_Project = 1 , Type_Subproject = 2 , Type_Task = 3 ,
  Type_Milestone = 4 , Type_Periodic = 5 , Type_Summarytask = 6
}
 

Detailed Description

Project is the main node in a project, it contains child nodes and possibly sub-projects.

A sub-project is just another instantion of this node however.

Definition at line 52 of file kptproject.h.

Constructor & Destructor Documentation

◆ Project()

KPlato::Project::Project ( Node *  parent = 0)

Definition at line 45 of file kptproject.cpp.

◆ ~Project()

KPlato::Project::~Project ( )

Definition at line 66 of file kptproject.cpp.

Member Function Documentation

◆ accounts()

Accounts & KPlato::Project::accounts ( )
inline

Definition at line 224 of file kptproject.h.

◆ actualCost() [1/2]

double KPlato::Project::actualCost ( )
virtual

Returns the actually reported cost for this project.

Reimplemented from KPlato::Node.

Definition at line 930 of file kptproject.cpp.

◆ actualCost() [2/2]

double KPlato::Project::actualCost ( const TQDate &  date)
virtual

Actual cost on date.

Reimplemented from KPlato::Node.

Definition at line 941 of file kptproject.cpp.

◆ actualCostTo()

double KPlato::Project::actualCostTo ( const TQDate &  date)
virtual

Actual cost up to and including date.

Reimplemented from KPlato::Node.

Definition at line 952 of file kptproject.cpp.

◆ actualEffort() [1/2]

Duration KPlato::Project::actualEffort ( )
virtual

Returns the actual effort.

Reimplemented from KPlato::Node.

Definition at line 866 of file kptproject.cpp.

◆ actualEffort() [2/2]

Duration KPlato::Project::actualEffort ( const TQDate &  date)
virtual

Returns the actual effort on date.

Reimplemented from KPlato::Node.

Definition at line 877 of file kptproject.cpp.

◆ actualEffortTo()

Duration KPlato::Project::actualEffortTo ( const TQDate &  date)
virtual

Returns the actual effort up to and including date.

Reimplemented from KPlato::Node.

Definition at line 888 of file kptproject.cpp.

◆ addCalendar()

void KPlato::Project::addCalendar ( Calendar *  calendar)

Definition at line 962 of file kptproject.cpp.

◆ addResourceGroup()

void KPlato::Project::addResourceGroup ( ResourceGroup *  resource)
virtual

Definition at line 533 of file kptproject.cpp.

◆ addSubTask() [1/2]

bool KPlato::Project::addSubTask ( Node *  task,
int  index,
Node *  parent 
)

Definition at line 602 of file kptproject.cpp.

◆ addSubTask() [2/2]

bool KPlato::Project::addSubTask ( Node *  task,
Node *  position 
)

Definition at line 586 of file kptproject.cpp.

◆ addTask()

bool KPlato::Project::addTask ( Node *  task,
Node *  position 
)

Definition at line 556 of file kptproject.cpp.

◆ adjustSummarytask()

void KPlato::Project::adjustSummarytask ( )
protectedvirtual

Implements KPlato::Node.

Definition at line 245 of file kptproject.cpp.

◆ calcCriticalPath()

bool KPlato::Project::calcCriticalPath ( bool  fromEnd)
virtual

Reimplemented from KPlato::Node.

Definition at line 132 of file kptproject.cpp.

◆ calculate() [1/3]

void KPlato::Project::calculate ( )

Calculate current schedule.

Definition at line 91 of file kptproject.cpp.

◆ calculate() [2/3]

void KPlato::Project::calculate ( Effort::Use  use)

Calculate the whole project.

Parameters
useCalculate using expected-, optimistic- or pessimistic estimate.

Definition at line 83 of file kptproject.cpp.

◆ calculate() [3/3]

void KPlato::Project::calculate ( Schedule *  scedule)

Calculate the whole project.

Parameters
scheduleSchedule to use

Definition at line 74 of file kptproject.cpp.

◆ calculateBackward()

DateTime KPlato::Project::calculateBackward ( int  use)
protectedvirtual

Implements KPlato::Node.

Definition at line 194 of file kptproject.cpp.

◆ calculateForward()

DateTime KPlato::Project::calculateForward ( int  use)
protectedvirtual

Implements KPlato::Node.

Definition at line 173 of file kptproject.cpp.

◆ calendar()

Calendar * KPlato::Project::calendar ( const TQString  id) const

Returns the calendar with identity id.

Definition at line 967 of file kptproject.cpp.

◆ calendars()

TQPtrList< Calendar > KPlato::Project::calendars ( )

Definition at line 971 of file kptproject.cpp.

◆ canIndentTask()

bool KPlato::Project::canIndentTask ( Node *  node)

Definition at line 628 of file kptproject.cpp.

◆ canMoveTaskDown()

bool KPlato::Project::canMoveTaskDown ( Node *  node)

Definition at line 741 of file kptproject.cpp.

◆ canMoveTaskUp()

bool KPlato::Project::canMoveTaskUp ( Node *  node)

Definition at line 713 of file kptproject.cpp.

◆ canUnindentTask()

bool KPlato::Project::canUnindentTask ( Node *  node)

Definition at line 671 of file kptproject.cpp.

◆ createSchedule()

MainSchedule * KPlato::Project::createSchedule ( TQString  name,
Schedule::Type  type 
)

Create new schedule with unique id.

Definition at line 1060 of file kptproject.cpp.

◆ createTask() [1/2]

Task * KPlato::Project::createTask ( Node *  parent)

Definition at line 768 of file kptproject.cpp.

◆ createTask() [2/2]

Task * KPlato::Project::createTask ( Task &  def,
Node *  parent 
)

Definition at line 774 of file kptproject.cpp.

◆ defaultCalendar()

Calendar * KPlato::Project::defaultCalendar ( )
inline

Definition at line 154 of file kptproject.h.

◆ delTask()

void KPlato::Project::delTask ( Node *  node)

Definition at line 617 of file kptproject.cpp.

◆ endTime()

DateTime KPlato::Project::endTime ( ) const
virtual

Return the scheduled end time.

Reimplemented from KPlato::Node.

Definition at line 156 of file kptproject.cpp.

◆ findCalendar()

virtual Calendar * KPlato::Project::findCalendar ( const TQString &  id) const
inlinevirtual

Find the calendar with identity id.

Definition at line 205 of file kptproject.h.

◆ findNode()

virtual Node * KPlato::Project::findNode ( const TQString &  id) const
inlinevirtual

Find the node with identity id.

Reimplemented from KPlato::Node.

Definition at line 175 of file kptproject.h.

◆ findResource()

Resource * KPlato::Project::findResource ( const TQString &  id) const
inline

Definition at line 195 of file kptproject.h.

◆ findResourceGroup()

ResourceGroup * KPlato::Project::findResourceGroup ( const TQString &  id) const
inline

Definition at line 186 of file kptproject.h.

◆ generateWBS()

void KPlato::Project::generateWBS ( int  count,
WBSDefinition &  def,
TQString  wbs = TQString() 
)
virtual

Generate WBS.

Reimplemented from KPlato::Node.

Definition at line 1040 of file kptproject.cpp.

◆ getExpectedDuration()

Duration * KPlato::Project::getExpectedDuration ( )
virtual

Returns the duration calculated as latestFinish - earliestStart.

Implements KPlato::Node.

Definition at line 164 of file kptproject.cpp.

◆ getRandomDuration()

Duration * KPlato::Project::getRandomDuration ( )
virtual

Instead of using the expected duration, generate a random value using the Distribution of each Task.

This can be used for Monte-Carlo estimation of Project duration.

Implements KPlato::Node.

Definition at line 169 of file kptproject.cpp.

◆ group()

ResourceGroup * KPlato::Project::group ( TQString  id)

Returns the resourcegroup with identity id.

Definition at line 816 of file kptproject.cpp.

◆ indentTask()

bool KPlato::Project::indentTask ( Node *  node)

Definition at line 660 of file kptproject.cpp.

◆ initiateCalculation()

void KPlato::Project::initiateCalculation ( Schedule &  sch)
protectedvirtual

Reimplemented from KPlato::Node.

Definition at line 252 of file kptproject.cpp.

◆ initiateCalculationLists()

void KPlato::Project::initiateCalculationLists ( TQPtrList< Node > &  startnodes,
TQPtrList< Node > &  endnodes,
TQPtrList< Node > &  summarytasks 
)
protectedvirtual

Implements KPlato::Node.

Definition at line 268 of file kptproject.cpp.

◆ insertCalendarId()

void KPlato::Project::insertCalendarId ( const TQString &  id,
const Calendar *  calendar 
)
virtual

Insert the calendar with identity id.

Definition at line 1076 of file kptproject.cpp.

◆ insertId()

void KPlato::Project::insertId ( const TQString &  id,
const Node *  node 
)
virtual

Insert the node with identity id.

Reimplemented from KPlato::Node.

Definition at line 793 of file kptproject.cpp.

◆ insertResourceGroup()

void KPlato::Project::insertResourceGroup ( unsigned int  index,
ResourceGroup *  resource 
)
virtual

Definition at line 548 of file kptproject.cpp.

◆ insertResourceGroupId()

void KPlato::Project::insertResourceGroupId ( const TQString &  id,
const ResourceGroup *  group 
)
inline

Insert the resourcegroup with identity id.

Definition at line 192 of file kptproject.h.

◆ insertResourceId()

void KPlato::Project::insertResourceId ( const TQString &  id,
const Resource *  resource 
)
inline

Insert the resource with identity id.

Definition at line 201 of file kptproject.h.

◆ isBaselined()

bool KPlato::Project::isBaselined ( ) const
inline
Returns
if the project is baselined; a baselined project becomes uneditable.

Definition at line 220 of file kptproject.h.

◆ legalChildren()

bool KPlato::Project::legalChildren ( Node *  par,
Node *  child 
)
protected

Definition at line 1025 of file kptproject.cpp.

◆ legalParents()

bool KPlato::Project::legalParents ( Node *  par,
Node *  child 
)
protected

Definition at line 1008 of file kptproject.cpp.

◆ legalToLink()

bool KPlato::Project::legalToLink ( Node *  par,
Node *  child 
)
virtual

Check if node par can be linked to node child.

Reimplemented from KPlato::Node.

Definition at line 989 of file kptproject.cpp.

◆ load()

bool KPlato::Project::load ( TQDomElement &  element)
virtual

Reimplemented from KPlato::Node.

Definition at line 280 of file kptproject.cpp.

◆ moveTaskDown()

bool KPlato::Project::moveTaskDown ( Node *  node)

Definition at line 760 of file kptproject.cpp.

◆ moveTaskUp()

bool KPlato::Project::moveTaskUp ( Node *  node)

Definition at line 733 of file kptproject.cpp.

◆ nodeDict()

virtual const TQDict< Node > & KPlato::Project::nodeDict ( )
inlinevirtual

Definition at line 172 of file kptproject.h.

◆ plannedCost() [1/2]

double KPlato::Project::plannedCost ( )
virtual

Returns the total planned cost for this project.

Reimplemented from KPlato::Node.

Definition at line 898 of file kptproject.cpp.

◆ plannedCost() [2/2]

double KPlato::Project::plannedCost ( const TQDate &  date)
virtual

Planned cost on date.

Reimplemented from KPlato::Node.

Definition at line 909 of file kptproject.cpp.

◆ plannedCostTo()

double KPlato::Project::plannedCostTo ( const TQDate &  date)
virtual

Planned cost up to and including date.

Reimplemented from KPlato::Node.

Definition at line 920 of file kptproject.cpp.

◆ plannedEffort() [1/2]

Duration KPlato::Project::plannedEffort ( )
virtual

Returns the total planned effort for this project (or subproject)

Reimplemented from KPlato::Node.

Definition at line 833 of file kptproject.cpp.

◆ plannedEffort() [2/2]

Duration KPlato::Project::plannedEffort ( const TQDate &  date)
virtual

Returns the total planned effort for this project (or subproject) on date.

Reimplemented from KPlato::Node.

Definition at line 844 of file kptproject.cpp.

◆ plannedEffortCostPrDay()

EffortCostMap KPlato::Project::plannedEffortCostPrDay ( const TQDate &  start,
const TQDate &  end 
) const
virtual

Implements KPlato::Node.

Definition at line 825 of file kptproject.cpp.

◆ plannedEffortTo()

Duration KPlato::Project::plannedEffortTo ( const TQDate &  date)
virtual

Returns the planned effort up to and including date.

Reimplemented from KPlato::Node.

Definition at line 855 of file kptproject.cpp.

◆ printCalendarDebug()

void KPlato::Project::printCalendarDebug ( TQCString  indent = "")

Definition at line 1092 of file kptproject.cpp.

◆ printDebug()

void KPlato::Project::printDebug ( bool  children,
TQCString  indent 
)
virtual

Reimplemented from KPlato::Node.

Definition at line 1082 of file kptproject.cpp.

◆ registerNodeId()

bool KPlato::Project::registerNodeId ( Node *  node)

Register node. The nodes id must be unique and non-empty.

Definition at line 798 of file kptproject.cpp.

◆ removeCalendarId()

bool KPlato::Project::removeCalendarId ( const TQString &  id)
virtual

Remove the calendar with identity id from the register.

Definition at line 1071 of file kptproject.cpp.

◆ removeId()

bool KPlato::Project::removeId ( const TQString &  id)
virtual

Remove the node with identity id from the register.

Reimplemented from KPlato::Node.

Definition at line 788 of file kptproject.cpp.

◆ removeResourceGroup() [1/2]

void KPlato::Project::removeResourceGroup ( int  number)

Definition at line 543 of file kptproject.cpp.

◆ removeResourceGroup() [2/2]

void KPlato::Project::removeResourceGroup ( ResourceGroup *  resource)

Definition at line 538 of file kptproject.cpp.

◆ removeResourceGroupId()

bool KPlato::Project::removeResourceGroupId ( const TQString &  id)
inline

Remove the resourcegroup with identity id from the register.

Definition at line 189 of file kptproject.h.

◆ removeResourceId()

bool KPlato::Project::removeResourceId ( const TQString &  id)
inline

Remove the resource with identity id from the register.

Definition at line 198 of file kptproject.h.

◆ resource()

Resource * KPlato::Project::resource ( TQString  id)

Returns the resource with identity id.

Definition at line 820 of file kptproject.cpp.

◆ resourceGroups()

TQPtrList< ResourceGroup > & KPlato::Project::resourceGroups ( )

Definition at line 552 of file kptproject.cpp.

◆ save()

void KPlato::Project::save ( TQDomElement &  element) const
virtual

Implements KPlato::Node.

Definition at line 462 of file kptproject.cpp.

◆ scheduleBackward()

DateTime KPlato::Project::scheduleBackward ( const DateTime &  latest,
int  use 
)
protectedvirtual

Implements KPlato::Node.

Definition at line 230 of file kptproject.cpp.

◆ scheduleForward()

DateTime KPlato::Project::scheduleForward ( const DateTime &  earliest,
int  use 
)
protectedvirtual

Implements KPlato::Node.

Definition at line 215 of file kptproject.cpp.

◆ setBaselined()

void KPlato::Project::setBaselined ( bool  on)
inline

Setting a project to be baselined means the project data can not be edited anymore.

Parameters
onthe new baseline value

Definition at line 216 of file kptproject.h.

◆ setCurrentSchedule()

void KPlato::Project::setCurrentSchedule ( long  id)
virtual

Set current schedule to schedule with identity id, for me and my children.

Reimplemented from KPlato::Node.

Definition at line 1051 of file kptproject.cpp.

◆ setParentSchedule()

void KPlato::Project::setParentSchedule ( Schedule *  sch)
virtual

Set parent schedule for my children.

Reimplemented from KPlato::Node.

Definition at line 526 of file kptproject.cpp.

◆ setStandardWorktime()

void KPlato::Project::setStandardWorktime ( StandardWorktime *  worktime)

Definition at line 982 of file kptproject.cpp.

◆ standardWorktime()

StandardWorktime * KPlato::Project::standardWorktime ( )
inline

Defines the length of days, weeks, months and years and the standard working week.

Used for estimation and calculation of effort, and presentation in gantt chart.

Definition at line 166 of file kptproject.h.

◆ startTime()

DateTime KPlato::Project::startTime ( ) const
virtual

Return the scheduled start time.

Reimplemented from KPlato::Node.

Definition at line 148 of file kptproject.cpp.

◆ takeResourceGroup()

ResourceGroup * KPlato::Project::takeResourceGroup ( ResourceGroup *  resource)
inline

Definition at line 98 of file kptproject.h.

◆ type()

int KPlato::Project::type ( ) const
virtual

Returns the node type. Can be Type_Project or Type_Subproject.

Implements KPlato::Node.

Definition at line 72 of file kptproject.cpp.

◆ unindentTask()

bool KPlato::Project::unindentTask ( Node *  node)

Definition at line 701 of file kptproject.cpp.

◆ uniqueNodeId()

TQString KPlato::Project::uniqueNodeId ( int  seed = 1)

Create a unique id.

Definition at line 780 of file kptproject.cpp.

Member Data Documentation

◆ m_accounts

Accounts KPlato::Project::m_accounts
protected

Definition at line 234 of file kptproject.h.

◆ m_calendars

TQPtrList<Calendar> KPlato::Project::m_calendars
protected

Definition at line 237 of file kptproject.h.

◆ m_resourceGroups

TQPtrList<ResourceGroup> KPlato::Project::m_resourceGroups
protected

Definition at line 235 of file kptproject.h.

◆ m_standardWorktime

StandardWorktime* KPlato::Project::m_standardWorktime
protected

Definition at line 239 of file kptproject.h.


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