#include <kptcommand.h>
Inherits KPlato::NamedCommand.
Inheritance diagram for KPlato::ModifyResourceOvertimeRateCmd:
Public Member Functions | |
ModifyResourceOvertimeRateCmd (Part *part, Resource *resource, double value, QString name=0) | |
void | execute () |
void | unexecute () |
Private Attributes | |
Resource * | m_resource |
double | m_newvalue |
double | m_oldvalue |
Definition at line 705 of file kptcommand.h.
KPlato::ModifyResourceOvertimeRateCmd::ModifyResourceOvertimeRateCmd | ( | Part * | part, | |
Resource * | resource, | |||
double | value, | |||
QString | name = 0 | |||
) |
Definition at line 1455 of file kptcommand.cc.
References m_oldvalue, and KPlato::Resource::overtimeRate().
void KPlato::ModifyResourceOvertimeRateCmd::execute | ( | ) |
Definition at line 1462 of file kptcommand.cc.
References m_newvalue, m_resource, KPlato::NamedCommand::setCommandType(), and KPlato::Resource::setOvertimeRate().
void KPlato::ModifyResourceOvertimeRateCmd::unexecute | ( | ) |
Definition at line 1468 of file kptcommand.cc.
References m_oldvalue, m_resource, KPlato::NamedCommand::setCommandType(), and KPlato::Resource::setOvertimeRate().
double KPlato::ModifyResourceOvertimeRateCmd::m_newvalue [private] |
double KPlato::ModifyResourceOvertimeRateCmd::m_oldvalue [private] |
Definition at line 715 of file kptcommand.h.
Referenced by ModifyResourceOvertimeRateCmd(), and unexecute().