KPlato::NodeModifyNameCmd Class Reference

#include <kptcommand.h>

Inherits KPlato::NamedCommand.

Inheritance diagram for KPlato::NodeModifyNameCmd:

[legend]
List of all members.

Public Member Functions

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

Private Attributes

Nodem_node
QString newName
QString oldName

Detailed Description

Definition at line 231 of file kptcommand.h.


Constructor & Destructor Documentation

KPlato::NodeModifyNameCmd::NodeModifyNameCmd ( Part part,
Node node,
QString  nodename,
QString  name = 0 
)

Definition at line 513 of file kptcommand.cc.


Member Function Documentation

void KPlato::NodeModifyNameCmd::execute (  ) 

Definition at line 520 of file kptcommand.cc.

References m_node, newName, KPlato::NamedCommand::setCommandType(), and KPlato::Node::setName().

void KPlato::NodeModifyNameCmd::unexecute (  ) 

Definition at line 526 of file kptcommand.cc.

References m_node, oldName, KPlato::NamedCommand::setCommandType(), and KPlato::Node::setName().


Member Data Documentation

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

Definition at line 239 of file kptcommand.h.

Referenced by execute(), and unexecute().

QString KPlato::NodeModifyNameCmd::newName [private]

Definition at line 240 of file kptcommand.h.

Referenced by execute().

QString KPlato::NodeModifyNameCmd::oldName [private]

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