KPlato::SubtaskAddCmd Class Reference

#include <kptcommand.h>

Inherits KPlato::NamedCommand.

Inheritance diagram for KPlato::SubtaskAddCmd:

[legend]
List of all members.

Public Member Functions

 SubtaskAddCmd (Part *part, Project *project, Node *node, Node *parent, QString name=0)
 ~SubtaskAddCmd ()
void execute ()
void unexecute ()

Private Attributes

Projectm_project
Nodem_node
Nodem_parent
bool m_added

Detailed Description

Definition at line 215 of file kptcommand.h.


Constructor & Destructor Documentation

KPlato::SubtaskAddCmd::SubtaskAddCmd ( Part part,
Project project,
Node node,
Node parent,
QString  name = 0 
)

Definition at line 477 of file kptcommand.cc.

References KPlato::Node::duration(), KPlato::Node::endTime(), KPlato::Node::setEarliestStart(), KPlato::Node::setEndTime(), KPlato::Node::setLatestFinish(), KPlato::Node::setStartTime(), KPlato::Node::setWorkEndTime(), KPlato::Node::setWorkStartTime(), and KPlato::Node::startTime().

KPlato::SubtaskAddCmd::~SubtaskAddCmd (  ) 

Definition at line 493 of file kptcommand.cc.

References m_added, and m_node.


Member Function Documentation

void KPlato::SubtaskAddCmd::execute (  ) 

Definition at line 498 of file kptcommand.cc.

References KPlato::Project::addSubTask(), m_added, m_node, m_parent, m_project, and KPlato::NamedCommand::setCommandType().

void KPlato::SubtaskAddCmd::unexecute (  ) 

Definition at line 505 of file kptcommand.cc.

References KPlato::Project::delTask(), m_added, m_node, m_project, and KPlato::NamedCommand::setCommandType().


Member Data Documentation

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

Definition at line 224 of file kptcommand.h.

Referenced by execute(), and unexecute().

Node* KPlato::SubtaskAddCmd::m_node [private]

Definition at line 225 of file kptcommand.h.

Referenced by execute(), unexecute(), and ~SubtaskAddCmd().

Node* KPlato::SubtaskAddCmd::m_parent [private]

Definition at line 226 of file kptcommand.h.

Referenced by execute().

bool KPlato::SubtaskAddCmd::m_added [private]

Definition at line 227 of file kptcommand.h.

Referenced by execute(), unexecute(), and ~SubtaskAddCmd().


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