#include <kptcommand.h>
Inherits KPlato::NamedCommand.
Inheritance diagram for KPlato::NodeModifyNameCmd:
Public Member Functions | |
NodeModifyNameCmd (Part *part, Node &node, QString nodename, QString name=0) | |
void | execute () |
void | unexecute () |
Private Attributes | |
Node & | m_node |
QString | newName |
QString | oldName |
Definition at line 231 of file kptcommand.h.
KPlato::NodeModifyNameCmd::NodeModifyNameCmd | ( | Part * | part, | |
Node & | node, | |||
QString | nodename, | |||
QString | name = 0 | |||
) |
Definition at line 513 of file kptcommand.cc.
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().
Node& KPlato::NodeModifyNameCmd::m_node [private] |
QString KPlato::NodeModifyNameCmd::newName [private] |
QString KPlato::NodeModifyNameCmd::oldName [private] |