#include <kptcommand.h>
Inherits KPlato::NamedCommand.
Inheritance diagram for KPlato::NodeModifyShutdownCostCmd:
Public Member Functions | |
NodeModifyShutdownCostCmd (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 852 of file kptcommand.h.
KPlato::NodeModifyShutdownCostCmd::NodeModifyShutdownCostCmd | ( | Part * | part, | |
Node & | node, | |||
double | value, | |||
QString | name = 0 | |||
) |
Definition at line 1749 of file kptcommand.cc.
References m_newvalue, m_oldvalue, and KPlato::Node::startupCost().
void KPlato::NodeModifyShutdownCostCmd::execute | ( | ) |
Definition at line 1757 of file kptcommand.cc.
References m_newvalue, m_node, KPlato::NamedCommand::setCommandType(), and KPlato::Node::setShutdownCost().
void KPlato::NodeModifyShutdownCostCmd::unexecute | ( | ) |
Definition at line 1762 of file kptcommand.cc.
References m_node, m_oldvalue, KPlato::NamedCommand::setCommandType(), and KPlato::Node::setShutdownCost().
Node& KPlato::NodeModifyShutdownCostCmd::m_node [private] |
double KPlato::NodeModifyShutdownCostCmd::m_oldvalue [private] |
Definition at line 861 of file kptcommand.h.
Referenced by NodeModifyShutdownCostCmd(), and unexecute().
double KPlato::NodeModifyShutdownCostCmd::m_newvalue [private] |
Definition at line 862 of file kptcommand.h.
Referenced by execute(), and NodeModifyShutdownCostCmd().