KPlato::NodeModifyLeaderCmd Class Reference

#include <kptcommand.h>

Inherits KPlato::NamedCommand.

Inheritance diagram for KPlato::NodeModifyLeaderCmd:

[legend]
List of all members.

Public Member Functions

 NodeModifyLeaderCmd (Part *part, Node &node, QString leader, QString name=0)
void execute ()
void unexecute ()

Private Attributes

Nodem_node
QString newLeader
QString oldLeader

Detailed Description

Definition at line 244 of file kptcommand.h.


Constructor & Destructor Documentation

KPlato::NodeModifyLeaderCmd::NodeModifyLeaderCmd ( Part part,
Node node,
QString  leader,
QString  name = 0 
)

Definition at line 533 of file kptcommand.cc.


Member Function Documentation

void KPlato::NodeModifyLeaderCmd::execute (  ) 

Definition at line 540 of file kptcommand.cc.

References m_node, newLeader, KPlato::NamedCommand::setCommandType(), and KPlato::Node::setLeader().

void KPlato::NodeModifyLeaderCmd::unexecute (  ) 

Definition at line 546 of file kptcommand.cc.

References m_node, oldLeader, KPlato::NamedCommand::setCommandType(), and KPlato::Node::setLeader().


Member Data Documentation

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

Definition at line 252 of file kptcommand.h.

Referenced by execute(), and unexecute().

QString KPlato::NodeModifyLeaderCmd::newLeader [private]

Definition at line 253 of file kptcommand.h.

Referenced by execute().

QString KPlato::NodeModifyLeaderCmd::oldLeader [private]

Definition at line 254 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