#include <commandsProc.hxx>
Public Member Functions | |
CommandPutInComposedNode (std::string position, std::string newParent, std::string type, bool toSaveRestoreLinks=true) | |
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 | _type |
std::string | _newpos |
bool | _toSaveRestoreLinks |
Protected Attributes inherited from YACS::HMI::Command | |
std::vector< Command * > | _subCommands |
bool | _normalReverse |
Definition at line 151 of file commandsProc.hxx.
CommandPutInComposedNode::CommandPutInComposedNode | ( | std::string | position, |
std::string | newParent, | ||
std::string | type, | ||
bool | toSaveRestoreLinks = true |
||
) |
Definition at line 507 of file commandsProc.cxx.
References _newParent, _newpos, _position, and DEBTRACE.
|
protectedvirtual |
Reimplemented from YACS::HMI::Command.
Definition at line 517 of file commandsProc.cxx.
References _newParent, _position, _toSaveRestoreLinks, _type, and PMMLBasicsTestLauncher::ret.
|
protectedvirtual |
Implements YACS::HMI::Command.
Definition at line 525 of file commandsProc.cxx.
References YACS::ENGINE::Catalog::_composednodeMap, YACS::HMI::GuiContext::_lastErrorMessage, YACS::HMI::GuiContext::_mapOfSubjectNode, _newParent, _newpos, _position, _toSaveRestoreLinks, _type, YACS::HMI::SubjectComposedNode::addSubjectNode(), YACS::ENGINE::Node::cloneWithoutCompAndContDeepCpy(), YACS::HMI::CUT, DEBTRACE, YACS::ENGINE::ComposedNode::edAddChild(), YACS::ENGINE::ComposedNode::edRemoveChild(), YACS::ENGINE::Runtime::getBuiltinCatalog(), YACS::ENGINE::ComposedNode::getChildByName(), YACS::ENGINE::ComposedNode::getChildName(), YACS::ENGINE::Bloc::getChildren(), YACS::HMI::GuiContext::getCurrent(), YACS::ENGINE::Node::getFather(), YACS::ENGINE::ComposedNode::getName(), YACS::HMI::GuiContext::getProc(), YACS::ENGINE::getSALOMERuntime(), 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(), YACS::HMI::Subject::select(), setErrorMsg(), YACS::ENGINE::Node::setName(), YACS::HMI::Subject::setParent(), YACS::HMI::SubjectNode::update(), and YACS::Exception::what().
|
protectedvirtual |
Implements YACS::HMI::Command.
Definition at line 612 of file commandsProc.cxx.
References YACS::HMI::GuiContext::_mapOfSubjectNode, _newpos, YACS::HMI::CUT, DEBTRACE, YACS::ENGINE::ComposedNode::edAddChild(), YACS::ENGINE::ComposedNode::edRemoveChild(), YACS::HMI::Subject::erase(), YACS::ENGINE::ComposedNode::getChildByName(), YACS::ENGINE::ComposedNode::getChildName(), YACS::HMI::GuiContext::getCurrent(), YACS::ENGINE::Node::getFather(), YACS::ENGINE::ComposedNode::getName(), YACS::HMI::GuiContext::getProc(), YACS::HMI::GuiContext::getSubjectProc(), 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(), YACS::HMI::Subject::select(), setErrorMsg(), YACS::HMI::Subject::setParent(), YACS::HMI::SubjectNode::update(), YACS::Exception::what(), and YASSERT.
|
protected |
Definition at line 163 of file commandsProc.hxx.
Referenced by CommandPutInComposedNode(), dump(), and localExecute().
|
protected |
Definition at line 165 of file commandsProc.hxx.
Referenced by CommandPutInComposedNode(), localExecute(), and localReverse().
|
protected |
Definition at line 162 of file commandsProc.hxx.
Referenced by CommandPutInComposedNode(), dump(), and localExecute().
|
protected |
Definition at line 166 of file commandsProc.hxx.
Referenced by dump(), and localExecute().
|
protected |
Definition at line 164 of file commandsProc.hxx.
Referenced by dump(), and localExecute().