#include <kptcommand.h>
Inherits KPlato::NamedCommand.
Inheritance diagram for KPlato::NodeModifyConstraintCmd:
Public Member Functions | |
NodeModifyConstraintCmd (Part *part, Node &node, Node::ConstraintType c, QString name=0) | |
void | execute () |
void | unexecute () |
Private Attributes | |
Node & | m_node |
Node::ConstraintType | newConstraint |
Node::ConstraintType | oldConstraint |
Definition at line 270 of file kptcommand.h.
KPlato::NodeModifyConstraintCmd::NodeModifyConstraintCmd | ( | Part * | part, | |
Node & | node, | |||
Node::ConstraintType | c, | |||
QString | name = 0 | |||
) |
Definition at line 573 of file kptcommand.cc.
References KPlato::NamedCommand::addSchScheduled(), and KPlato::Node::schedules().
void KPlato::NodeModifyConstraintCmd::execute | ( | ) |
Definition at line 584 of file kptcommand.cc.
References m_node, newConstraint, KPlato::NamedCommand::setCommandType(), KPlato::Node::setConstraint(), and KPlato::NamedCommand::setSchScheduled().
void KPlato::NodeModifyConstraintCmd::unexecute | ( | ) |
Definition at line 590 of file kptcommand.cc.
References m_node, oldConstraint, KPlato::NamedCommand::setCommandType(), KPlato::Node::setConstraint(), and KPlato::NamedCommand::setSchScheduled().
Node& KPlato::NodeModifyConstraintCmd::m_node [private] |