#include <kptcommand.h>
Inherits KPlato::NamedCommand.
Inheritance diagram for KPlato::ModifyRelationLagCmd:
Public Member Functions | |
| ModifyRelationLagCmd (Part *part, Relation *rel, Duration lag, QString name=0) | |
| void | execute () |
| void | unexecute () |
Private Attributes | |
| Relation * | m_rel |
| Duration | m_newlag |
| Duration | m_oldlag |
Definition at line 441 of file kptcommand.h.
| 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().
| 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().
Relation* KPlato::ModifyRelationLagCmd::m_rel [private] |
1.5.1-p1