#include <kptcommand.h>
Inherits KPlato::NamedCommand.
Inheritance diagram for KPlato::ProjectModifyConstraintCmd:
Public Member Functions | |
ProjectModifyConstraintCmd (Part *part, Project &node, Node::ConstraintType c, QString name=0) | |
void | execute () |
void | unexecute () |
Private Attributes | |
Project & | m_node |
Node::ConstraintType | newConstraint |
Node::ConstraintType | oldConstraint |
Definition at line 917 of file kptcommand.h.
KPlato::ProjectModifyConstraintCmd::ProjectModifyConstraintCmd | ( | Part * | part, | |
Project & | node, | |||
Node::ConstraintType | c, | |||
QString | name = 0 | |||
) |
Definition at line 1885 of file kptcommand.cc.
References KPlato::NamedCommand::addSchScheduled(), and KPlato::Node::schedules().
void KPlato::ProjectModifyConstraintCmd::execute | ( | ) |
Definition at line 1896 of file kptcommand.cc.
References m_node, newConstraint, KPlato::NamedCommand::setCommandType(), KPlato::Node::setConstraint(), and KPlato::NamedCommand::setSchScheduled().
void KPlato::ProjectModifyConstraintCmd::unexecute | ( | ) |
Definition at line 1902 of file kptcommand.cc.
References m_node, oldConstraint, KPlato::NamedCommand::setCommandType(), KPlato::Node::setConstraint(), and KPlato::NamedCommand::setSchScheduled().