#include <kptcommand.h>
Inherits KPlato::NamedCommand.
Inheritance diagram for KPlato::NodeIndentCmd:
Public Member Functions | |
NodeIndentCmd (Part *part, Node &node, QString name=0) | |
void | execute () |
void | unexecute () |
Private Attributes | |
Node & | m_node |
Node * | m_oldparent |
Node * | m_newparent |
int | m_oldindex |
int | m_newindex |
Definition at line 347 of file kptcommand.h.
Definition at line 705 of file kptcommand.cc.
void KPlato::NodeIndentCmd::execute | ( | ) |
Definition at line 712 of file kptcommand.cc.
References KPlato::Node::findChildNode(), KPlato::Node::getParent(), KPlato::Project::indentTask(), m_newindex, m_newparent, m_node, m_oldindex, m_oldparent, KPlato::Node::projectNode(), and KPlato::NamedCommand::setCommandType().
void KPlato::NodeIndentCmd::unexecute | ( | ) |
Definition at line 724 of file kptcommand.cc.
References m_newindex, m_node, KPlato::Node::projectNode(), KPlato::NamedCommand::setCommandType(), and KPlato::Project::unindentTask().
Node& KPlato::NodeIndentCmd::m_node [private] |
Node* KPlato::NodeIndentCmd::m_oldparent [private] |
Node * KPlato::NodeIndentCmd::m_newparent [private] |
int KPlato::NodeIndentCmd::m_oldindex [private] |
int KPlato::NodeIndentCmd::m_newindex [private] |