KPlato::DeleteRelationCmd Class Reference

#include <kptcommand.h>

Inherits KPlato::NamedCommand.

Inheritance diagram for KPlato::DeleteRelationCmd:

[legend]
List of all members.

Public Member Functions

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

Private Attributes

Relationm_rel
bool m_taken

Detailed Description

Definition at line 413 of file kptcommand.h.


Constructor & Destructor Documentation

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

Definition at line 847 of file kptcommand.cc.

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

KPlato::DeleteRelationCmd::~DeleteRelationCmd (  ) 

Definition at line 860 of file kptcommand.cc.

References m_rel, and m_taken.


Member Function Documentation

void KPlato::DeleteRelationCmd::execute (  ) 

Definition at line 865 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().

void KPlato::DeleteRelationCmd::unexecute (  ) 

Definition at line 874 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().


Member Data Documentation

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

Definition at line 422 of file kptcommand.h.

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

bool KPlato::DeleteRelationCmd::m_taken [private]

Definition at line 423 of file kptcommand.h.

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


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