KPlato::ModifyRelationLagCmd Class Reference

#include <kptcommand.h>

Inherits KPlato::NamedCommand.

Inheritance diagram for KPlato::ModifyRelationLagCmd:

[legend]
List of all members.

Public Member Functions

 ModifyRelationLagCmd (Part *part, Relation *rel, Duration lag, QString name=0)
void execute ()
void unexecute ()

Private Attributes

Relationm_rel
Duration m_newlag
Duration m_oldlag

Detailed Description

Definition at line 441 of file kptcommand.h.


Constructor & Destructor Documentation

KPlato::ModifyRelationLagCmd::ModifyRelationLagCmd ( Part part,
Relation rel,
Duration  lag,
QString  name = 0 
)

Definition at line 910 of file kptcommand.cc.

References KPlato::NamedCommand::addSchScheduled(), KPlato::Relation::lag(), m_oldlag, KPlato::Relation::parent(), KPlato::Node::projectNode(), and KPlato::Node::schedules().


Member Function Documentation

void KPlato::ModifyRelationLagCmd::execute (  ) 

Definition at line 924 of file kptcommand.cc.

References m_newlag, m_rel, KPlato::NamedCommand::setCommandType(), KPlato::Relation::setLag(), and KPlato::NamedCommand::setSchScheduled().

void KPlato::ModifyRelationLagCmd::unexecute (  ) 

Definition at line 930 of file kptcommand.cc.

References m_oldlag, m_rel, KPlato::NamedCommand::setCommandType(), KPlato::Relation::setLag(), and KPlato::NamedCommand::setSchScheduled().


Member Data Documentation

Relation* KPlato::ModifyRelationLagCmd::m_rel [private]

Definition at line 449 of file kptcommand.h.

Referenced by execute(), and unexecute().

Duration KPlato::ModifyRelationLagCmd::m_newlag [private]

Definition at line 450 of file kptcommand.h.

Referenced by execute().

Duration KPlato::ModifyRelationLagCmd::m_oldlag [private]

Definition at line 451 of file kptcommand.h.

Referenced by ModifyRelationLagCmd(), and unexecute().


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