KPlato::AddRelationCmd Class Reference

#include <kptcommand.h>

Inherits KPlato::NamedCommand.

Inheritance diagram for KPlato::AddRelationCmd:

[legend]
List of all members.

Public Member Functions

 AddRelationCmd (Part *part, Relation *rel, QString name=0)
 ~AddRelationCmd ()
void execute ()
void unexecute ()

Private Attributes

Relationm_rel
bool m_taken

Detailed Description

Definition at line 399 of file kptcommand.h.


Constructor & Destructor Documentation

KPlato::AddRelationCmd::AddRelationCmd ( Part part,
Relation rel,
QString  name = 0 
)

Definition at line 811 of file kptcommand.cc.

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

KPlato::AddRelationCmd::~AddRelationCmd (  ) 

Definition at line 824 of file kptcommand.cc.

References m_rel, and m_taken.


Member Function Documentation

void KPlato::AddRelationCmd::execute (  ) 

Definition at line 829 of file kptcommand.cc.

References KPlato::Node::addDependChildNode(), KPlato::Node::addDependParentNode(), KPlato::Relation::child(), m_rel, m_taken, KPlato::Relation::parent(), KPlato::NamedCommand::setCommandType(), and KPlato::NamedCommand::setSchScheduled().

void KPlato::AddRelationCmd::unexecute (  ) 

Definition at line 838 of file kptcommand.cc.

References KPlato::Relation::child(), m_rel, m_taken, KPlato::Relation::parent(), KPlato::NamedCommand::setCommandType(), KPlato::NamedCommand::setSchScheduled(), KPlato::Node::takeDependChildNode(), and KPlato::Node::takeDependParentNode().


Member Data Documentation

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

Definition at line 408 of file kptcommand.h.

Referenced by execute(), unexecute(), and ~AddRelationCmd().

bool KPlato::AddRelationCmd::m_taken [private]

Definition at line 409 of file kptcommand.h.

Referenced by AddRelationCmd(), execute(), unexecute(), and ~AddRelationCmd().


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