KPlato::NodeModifyConstraintCmd Class Reference

#include <kptcommand.h>

Inherits KPlato::NamedCommand.

Inheritance diagram for KPlato::NodeModifyConstraintCmd:

[legend]
List of all members.

Public Member Functions

 NodeModifyConstraintCmd (Part *part, Node &node, Node::ConstraintType c, QString name=0)
void execute ()
void unexecute ()

Private Attributes

Nodem_node
Node::ConstraintType newConstraint
Node::ConstraintType oldConstraint

Detailed Description

Definition at line 270 of file kptcommand.h.


Constructor & Destructor Documentation

KPlato::NodeModifyConstraintCmd::NodeModifyConstraintCmd ( Part part,
Node node,
Node::ConstraintType  c,
QString  name = 0 
)

Definition at line 573 of file kptcommand.cc.

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


Member Function Documentation

void KPlato::NodeModifyConstraintCmd::execute (  ) 

Definition at line 584 of file kptcommand.cc.

References m_node, newConstraint, KPlato::NamedCommand::setCommandType(), KPlato::Node::setConstraint(), and KPlato::NamedCommand::setSchScheduled().

void KPlato::NodeModifyConstraintCmd::unexecute (  ) 

Definition at line 590 of file kptcommand.cc.

References m_node, oldConstraint, KPlato::NamedCommand::setCommandType(), KPlato::Node::setConstraint(), and KPlato::NamedCommand::setSchScheduled().


Member Data Documentation

Node& KPlato::NodeModifyConstraintCmd::m_node [private]

Definition at line 278 of file kptcommand.h.

Referenced by execute(), and unexecute().

Node::ConstraintType KPlato::NodeModifyConstraintCmd::newConstraint [private]

Definition at line 279 of file kptcommand.h.

Referenced by execute().

Node::ConstraintType KPlato::NodeModifyConstraintCmd::oldConstraint [private]

Definition at line 280 of file kptcommand.h.

Referenced by unexecute().


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