#include <kptcommand.h>
Inherits KPlato::NamedCommand.
Inheritance diagram for KPlato::ModifyResourceAvailableFromCmd:
Public Member Functions | |
ModifyResourceAvailableFromCmd (Part *part, Resource *resource, DateTime value, QString name=0) | |
void | execute () |
void | unexecute () |
Private Attributes | |
Resource * | m_resource |
DateTime | m_newvalue |
DateTime | m_oldvalue |
Definition at line 668 of file kptcommand.h.
KPlato::ModifyResourceAvailableFromCmd::ModifyResourceAvailableFromCmd | ( | Part * | part, | |
Resource * | resource, | |||
DateTime | value, | |||
QString | name = 0 | |||
) |
Definition at line 1364 of file kptcommand.cc.
References KPlato::NamedCommand::addSchScheduled(), KPlato::Resource::availableFrom(), KPlato::Node::findSchedule(), KPlato::Schedule::id(), m_oldvalue, KPlato::Resource::project(), KPlato::Resource::schedules(), and KPlato::Schedule::start().
void KPlato::ModifyResourceAvailableFromCmd::execute | ( | ) |
Definition at line 1387 of file kptcommand.cc.
References m_newvalue, m_resource, KPlato::Resource::setAvailableFrom(), KPlato::NamedCommand::setCommandType(), and KPlato::NamedCommand::setSchScheduled().
void KPlato::ModifyResourceAvailableFromCmd::unexecute | ( | ) |
Definition at line 1393 of file kptcommand.cc.
References m_oldvalue, m_resource, KPlato::Resource::setAvailableFrom(), KPlato::NamedCommand::setCommandType(), and KPlato::NamedCommand::setSchScheduled().
Definition at line 678 of file kptcommand.h.
Referenced by ModifyResourceAvailableFromCmd(), and unexecute().