#include <kptcommand.h>
Inherits KPlato::NamedCommand.
Inheritance diagram for KPlato::ModifyResourceUnitsCmd:
Public Member Functions | |
ModifyResourceUnitsCmd (Part *part, Resource *resource, int value, QString name=0) | |
void | execute () |
void | unexecute () |
Private Attributes | |
Resource * | m_resource |
int | m_newvalue |
int | m_oldvalue |
Definition at line 655 of file kptcommand.h.
KPlato::ModifyResourceUnitsCmd::ModifyResourceUnitsCmd | ( | Part * | part, | |
Resource * | resource, | |||
int | value, | |||
QString | name = 0 | |||
) |
Definition at line 1340 of file kptcommand.cc.
References KPlato::NamedCommand::addSchScheduled(), m_oldvalue, KPlato::Resource::schedules(), and KPlato::Resource::units().
void KPlato::ModifyResourceUnitsCmd::execute | ( | ) |
Definition at line 1351 of file kptcommand.cc.
References m_newvalue, m_resource, KPlato::NamedCommand::setCommandType(), KPlato::NamedCommand::setSchScheduled(), and KPlato::Resource::setUnits().
void KPlato::ModifyResourceUnitsCmd::unexecute | ( | ) |
Definition at line 1357 of file kptcommand.cc.
References m_oldvalue, m_resource, KPlato::NamedCommand::setCommandType(), KPlato::NamedCommand::setSchScheduled(), and KPlato::Resource::setUnits().
int KPlato::ModifyResourceUnitsCmd::m_newvalue [private] |
int KPlato::ModifyResourceUnitsCmd::m_oldvalue [private] |
Definition at line 665 of file kptcommand.h.
Referenced by ModifyResourceUnitsCmd(), and unexecute().