KPlato::ModifyResourceUnitsCmd Class Reference

#include <kptcommand.h>

Inherits KPlato::NamedCommand.

Inheritance diagram for KPlato::ModifyResourceUnitsCmd:

[legend]
List of all members.

Public Member Functions

 ModifyResourceUnitsCmd (Part *part, Resource *resource, int value, QString name=0)
void execute ()
void unexecute ()

Private Attributes

Resourcem_resource
int m_newvalue
int m_oldvalue

Detailed Description

Definition at line 655 of file kptcommand.h.


Constructor & Destructor Documentation

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().


Member Function Documentation

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().


Member Data Documentation

Resource* KPlato::ModifyResourceUnitsCmd::m_resource [private]

Definition at line 663 of file kptcommand.h.

Referenced by execute(), and unexecute().

int KPlato::ModifyResourceUnitsCmd::m_newvalue [private]

Definition at line 664 of file kptcommand.h.

Referenced by execute().

int KPlato::ModifyResourceUnitsCmd::m_oldvalue [private]

Definition at line 665 of file kptcommand.h.

Referenced by ModifyResourceUnitsCmd(), and unexecute().


The documentation for this class was generated from the following files:
Generated on Wed Nov 22 23:21:47 2006 for KPlato by  doxygen 1.5.1-p1