#include <kptcommand.h>
Inherits KPlato::NamedCommand.
Inheritance diagram for KPlato::NodeModifyLeaderCmd:
Public Member Functions | |
| NodeModifyLeaderCmd (Part *part, Node &node, QString leader, QString name=0) | |
| void | execute () |
| void | unexecute () |
Private Attributes | |
| Node & | m_node |
| QString | newLeader |
| QString | oldLeader |
Definition at line 244 of file kptcommand.h.
| KPlato::NodeModifyLeaderCmd::NodeModifyLeaderCmd | ( | Part * | part, | |
| Node & | node, | |||
| QString | leader, | |||
| QString | name = 0 | |||
| ) |
Definition at line 533 of file kptcommand.cc.
| 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().
Node& KPlato::NodeModifyLeaderCmd::m_node [private] |
QString KPlato::NodeModifyLeaderCmd::newLeader [private] |
QString KPlato::NodeModifyLeaderCmd::oldLeader [private] |
1.5.1-p1