#include <kptcommand.h>
Inherits KPlato::NamedCommand.
Inheritance diagram for KPlato::NodeUnindentCmd:
Public Member Functions | |
NodeUnindentCmd (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 360 of file kptcommand.h.
Definition at line 734 of file kptcommand.cc.
void KPlato::NodeUnindentCmd::execute | ( | ) |
Definition at line 740 of file kptcommand.cc.
References KPlato::Node::findChildNode(), KPlato::Node::getParent(), m_newindex, m_newparent, m_node, m_oldindex, m_oldparent, KPlato::Node::projectNode(), KPlato::NamedCommand::setCommandType(), and KPlato::Project::unindentTask().
void KPlato::NodeUnindentCmd::unexecute | ( | ) |
Definition at line 752 of file kptcommand.cc.
References KPlato::Project::indentTask(), m_newindex, m_node, m_oldindex, KPlato::Node::projectNode(), and KPlato::NamedCommand::setCommandType().
Node& KPlato::NodeUnindentCmd::m_node [private] |
Node* KPlato::NodeUnindentCmd::m_oldparent [private] |
Node * KPlato::NodeUnindentCmd::m_newparent [private] |
int KPlato::NodeUnindentCmd::m_oldindex [private] |
int KPlato::NodeUnindentCmd::m_newindex [private] |