#include <commandsProc.hxx>
Public Member Functions | |
CommandReparentNode (std::string position, std::string newParent) | |
Public Member Functions inherited from YACS::HMI::Command | |
Command () | |
virtual bool | execute () |
the command is executed a first time after its registration for undo redo, then on redo More... | |
virtual bool | reverse (bool isNormal=true) |
Reverse action: undo. More... | |
virtual bool | executeSubOnly () |
execute only sub commands in a reverse action More... | |
std::string | recursiveDump (int level=0) |
void | addSubCommand (Command *command) |
bool | isNormalReverse () |
Protected Member Functions | |
virtual bool | localExecute () |
virtual bool | localReverse () |
virtual std::string | dump () |
Protected Attributes | |
std::string | _position |
std::string | _newParent |
std::string | _oldParent |
std::string | _newpos |
Protected Attributes inherited from YACS::HMI::Command | |
std::vector< Command * > | _subCommands |
bool | _normalReverse |
Definition at line 136 of file commandsProc.hxx.
CommandReparentNode::CommandReparentNode | ( | std::string | position, |
std::string | newParent | ||
) |
Definition at line 364 of file commandsProc.cxx.
References _newParent, _oldParent, _position, and DEBTRACE.
|
protectedvirtual |
Reimplemented from YACS::HMI::Command.
Definition at line 372 of file commandsProc.cxx.
References _newParent, _position, and PMMLBasicsTestLauncher::ret.
|
protectedvirtual |
Implements YACS::HMI::Command.
Definition at line 378 of file commandsProc.cxx.
References YACS::HMI::GuiContext::_lastErrorMessage, YACS::HMI::GuiContext::_mapOfSubjectNode, _newParent, _newpos, _oldParent, YACS::HMI::Subject::_parent, _position, YACS::HMI::CUT, DEBTRACE, YACS::ENGINE::ComposedNode::edAddChild(), YACS::ENGINE::ComposedNode::edRemoveChild(), YACS::ENGINE::ComposedNode::getChildByName(), YACS::ENGINE::ComposedNode::getChildName(), YACS::HMI::GuiContext::getCurrent(), YACS::ENGINE::Node::getFather(), YACS::ENGINE::ComposedNode::getName(), YACS::ENGINE::Node::getName(), YACS::HMI::GuiContext::getProc(), YACS::HMI::ProcInvoc::getTypeOfNode(), YACS::HMI::SubjectComposedNode::houseKeepingAfterCutPaste(), YACS::HMI::PASTE, YACS::HMI::SubjectNode::recursiveUpdate(), YACS::HMI::SubjectNode::removeExternalControlLinks(), YACS::HMI::SubjectNode::removeExternalLinks(), YACS::HMI::RENAME, YACS::HMI::SubjectNode::restoreLinks(), YACS::HMI::SubjectNode::saveLinks(), setErrorMsg(), YACS::HMI::SubjectNode::update(), and YACS::Exception::what().
|
protectedvirtual |
Implements YACS::HMI::Command.
Definition at line 456 of file commandsProc.cxx.
References YACS::HMI::GuiContext::_lastErrorMessage, YACS::HMI::GuiContext::_mapOfSubjectNode, _newpos, _oldParent, YACS::HMI::Subject::_parent, YACS::HMI::CUT, DEBTRACE, YACS::ENGINE::ComposedNode::edAddChild(), YACS::ENGINE::ComposedNode::edRemoveChild(), YACS::ENGINE::ComposedNode::getChildByName(), YACS::HMI::GuiContext::getCurrent(), YACS::ENGINE::Node::getFather(), YACS::ENGINE::ComposedNode::getName(), YACS::HMI::GuiContext::getProc(), YACS::HMI::ProcInvoc::getTypeOfNode(), YACS::HMI::SubjectComposedNode::houseKeepingAfterCutPaste(), YACS::HMI::PASTE, YACS::HMI::SubjectNode::recursiveUpdate(), YACS::HMI::SubjectNode::removeExternalControlLinks(), YACS::HMI::SubjectNode::removeExternalLinks(), YACS::HMI::RENAME, YACS::HMI::SubjectNode::restoreLinks(), YACS::HMI::SubjectNode::saveLinks(), setErrorMsg(), YACS::HMI::SubjectNode::update(), and YACS::Exception::what().
|
protected |
Definition at line 146 of file commandsProc.hxx.
Referenced by CommandReparentNode(), dump(), and localExecute().
|
protected |
Definition at line 148 of file commandsProc.hxx.
Referenced by localExecute(), and localReverse().
|
protected |
Definition at line 147 of file commandsProc.hxx.
Referenced by CommandReparentNode(), localExecute(), and localReverse().
|
protected |
Definition at line 145 of file commandsProc.hxx.
Referenced by CommandReparentNode(), dump(), and localExecute().