#include <kptcommand.h>
Inherits KPlato::NamedCommand.
Inheritance diagram for KPlato::AddRelationCmd:
Public Member Functions | |
AddRelationCmd (Part *part, Relation *rel, QString name=0) | |
~AddRelationCmd () | |
void | execute () |
void | unexecute () |
Private Attributes | |
Relation * | m_rel |
bool | m_taken |
Definition at line 399 of file kptcommand.h.
Definition at line 811 of file kptcommand.cc.
References KPlato::NamedCommand::addSchScheduled(), m_taken, KPlato::Relation::parent(), KPlato::Node::projectNode(), and KPlato::Node::schedules().
KPlato::AddRelationCmd::~AddRelationCmd | ( | ) |
void KPlato::AddRelationCmd::execute | ( | ) |
Definition at line 829 of file kptcommand.cc.
References KPlato::Node::addDependChildNode(), KPlato::Node::addDependParentNode(), KPlato::Relation::child(), m_rel, m_taken, KPlato::Relation::parent(), KPlato::NamedCommand::setCommandType(), and KPlato::NamedCommand::setSchScheduled().
void KPlato::AddRelationCmd::unexecute | ( | ) |
Definition at line 838 of file kptcommand.cc.
References KPlato::Relation::child(), m_rel, m_taken, KPlato::Relation::parent(), KPlato::NamedCommand::setCommandType(), KPlato::NamedCommand::setSchScheduled(), KPlato::Node::takeDependChildNode(), and KPlato::Node::takeDependParentNode().
Relation* KPlato::AddRelationCmd::m_rel [private] |
Definition at line 408 of file kptcommand.h.
Referenced by execute(), unexecute(), and ~AddRelationCmd().
bool KPlato::AddRelationCmd::m_taken [private] |
Definition at line 409 of file kptcommand.h.
Referenced by AddRelationCmd(), execute(), unexecute(), and ~AddRelationCmd().