KPlato::ModifyEffortCmd Class Reference

#include <kptcommand.h>

Inherits KPlato::NamedCommand.

Inheritance diagram for KPlato::ModifyEffortCmd:

[legend]
List of all members.

Public Member Functions

 ModifyEffortCmd (Part *part, Node &node, Duration oldvalue, Duration newvalue, QString name=0)
void execute ()
void unexecute ()

Private Attributes

Effortm_effort
Duration m_oldvalue
Duration m_newvalue

Detailed Description

Definition at line 485 of file kptcommand.h.


Constructor & Destructor Documentation

KPlato::ModifyEffortCmd::ModifyEffortCmd ( Part part,
Node node,
Duration  oldvalue,
Duration  newvalue,
QString  name = 0 
)

Definition at line 1002 of file kptcommand.cc.

References KPlato::NamedCommand::addSchScheduled(), and KPlato::Node::schedules().


Member Function Documentation

void KPlato::ModifyEffortCmd::execute (  ) 

Definition at line 1013 of file kptcommand.cc.

References m_effort, m_newvalue, KPlato::Effort::set(), KPlato::NamedCommand::setCommandType(), and KPlato::NamedCommand::setSchScheduled().

void KPlato::ModifyEffortCmd::unexecute (  ) 

Definition at line 1020 of file kptcommand.cc.

References m_effort, m_oldvalue, KPlato::Effort::set(), KPlato::NamedCommand::setCommandType(), and KPlato::NamedCommand::setSchScheduled().


Member Data Documentation

Effort* KPlato::ModifyEffortCmd::m_effort [private]

Definition at line 493 of file kptcommand.h.

Referenced by execute(), and unexecute().

Duration KPlato::ModifyEffortCmd::m_oldvalue [private]

Definition at line 494 of file kptcommand.h.

Referenced by unexecute().

Duration KPlato::ModifyEffortCmd::m_newvalue [private]

Definition at line 494 of file kptcommand.h.

Referenced by execute().


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