#include <kptcommand.h>
Inherits KPlato::NamedCommand.
Inheritance diagram for KPlato::DeleteRelationCmd:
Public Member Functions | |
DeleteRelationCmd (Part *part, Relation *rel, QString name=0) | |
~DeleteRelationCmd () | |
void | execute () |
void | unexecute () |
Private Attributes | |
Relation * | m_rel |
bool | m_taken |
Definition at line 413 of file kptcommand.h.
Definition at line 847 of file kptcommand.cc.
References KPlato::NamedCommand::addSchScheduled(), m_taken, KPlato::Relation::parent(), KPlato::Node::projectNode(), and KPlato::Node::schedules().
KPlato::DeleteRelationCmd::~DeleteRelationCmd | ( | ) |
void KPlato::DeleteRelationCmd::execute | ( | ) |
Definition at line 865 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().
void KPlato::DeleteRelationCmd::unexecute | ( | ) |
Definition at line 874 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().
Relation* KPlato::DeleteRelationCmd::m_rel [private] |
Definition at line 422 of file kptcommand.h.
Referenced by execute(), unexecute(), and ~DeleteRelationCmd().
bool KPlato::DeleteRelationCmd::m_taken [private] |
Definition at line 423 of file kptcommand.h.
Referenced by DeleteRelationCmd(), execute(), unexecute(), and ~DeleteRelationCmd().