#include <kptcommand.h>
Inherits KPlato::NamedCommand.
Inheritance diagram for KPlato::NodeModifyStartupCostCmd:
Public Member Functions | |
NodeModifyStartupCostCmd (Part *part, Node &node, double value, QString name=0) | |
void | execute () |
void | unexecute () |
Private Attributes | |
Node & | m_node |
double | m_oldvalue |
double | m_newvalue |
Definition at line 839 of file kptcommand.h.
KPlato::NodeModifyStartupCostCmd::NodeModifyStartupCostCmd | ( | Part * | part, | |
Node & | node, | |||
double | value, | |||
QString | name = 0 | |||
) |
Definition at line 1730 of file kptcommand.cc.
References m_newvalue, m_oldvalue, and KPlato::Node::startupCost().
void KPlato::NodeModifyStartupCostCmd::execute | ( | ) |
Definition at line 1738 of file kptcommand.cc.
References m_newvalue, m_node, KPlato::NamedCommand::setCommandType(), and KPlato::Node::setStartupCost().
void KPlato::NodeModifyStartupCostCmd::unexecute | ( | ) |
Definition at line 1743 of file kptcommand.cc.
References m_node, m_oldvalue, KPlato::NamedCommand::setCommandType(), and KPlato::Node::setStartupCost().
Node& KPlato::NodeModifyStartupCostCmd::m_node [private] |
double KPlato::NodeModifyStartupCostCmd::m_oldvalue [private] |
Definition at line 848 of file kptcommand.h.
Referenced by NodeModifyStartupCostCmd(), and unexecute().
double KPlato::NodeModifyStartupCostCmd::m_newvalue [private] |
Definition at line 849 of file kptcommand.h.
Referenced by execute(), and NodeModifyStartupCostCmd().