#include <kptcommand.h>
Inherits KPlato::NamedCommand.
Inheritance diagram for KPlato::SubtaskAddCmd:
Public Member Functions | |
SubtaskAddCmd (Part *part, Project *project, Node *node, Node *parent, QString name=0) | |
~SubtaskAddCmd () | |
void | execute () |
void | unexecute () |
Private Attributes | |
Project * | m_project |
Node * | m_node |
Node * | m_parent |
bool | m_added |
Definition at line 215 of file kptcommand.h.
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 | ( | ) |
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().
Project* KPlato::SubtaskAddCmd::m_project [private] |
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] |
bool KPlato::SubtaskAddCmd::m_added [private] |
Definition at line 227 of file kptcommand.h.
Referenced by execute(), unexecute(), and ~SubtaskAddCmd().