#include <kptcommand.h>
Inherits KPlato::NamedCommand.
Inheritance diagram for KPlato::EffortModifyRiskCmd:
Public Member Functions | |
EffortModifyRiskCmd (Part *part, Node &node, int oldvalue, int newvalue, QString name=0) | |
void | execute () |
void | unexecute () |
Private Attributes | |
Effort * | m_effort |
int | m_oldvalue |
int | m_newvalue |
Definition at line 537 of file kptcommand.h.
KPlato::EffortModifyRiskCmd::EffortModifyRiskCmd | ( | Part * | part, | |
Node & | node, | |||
int | oldvalue, | |||
int | newvalue, | |||
QString | name = 0 | |||
) |
Definition at line 1100 of file kptcommand.cc.
References KPlato::NamedCommand::addSchScheduled(), and KPlato::Node::schedules().
void KPlato::EffortModifyRiskCmd::execute | ( | ) |
Definition at line 1111 of file kptcommand.cc.
References m_effort, m_newvalue, KPlato::NamedCommand::setCommandType(), KPlato::Effort::setRisktype(), and KPlato::NamedCommand::setSchScheduled().
void KPlato::EffortModifyRiskCmd::unexecute | ( | ) |
Definition at line 1117 of file kptcommand.cc.
References m_effort, m_oldvalue, KPlato::NamedCommand::setCommandType(), KPlato::Effort::setRisktype(), and KPlato::NamedCommand::setSchScheduled().
Effort* KPlato::EffortModifyRiskCmd::m_effort [private] |
int KPlato::EffortModifyRiskCmd::m_oldvalue [private] |
int KPlato::EffortModifyRiskCmd::m_newvalue [private] |