#include <commandsProc.hxx>
Public Member Functions | |
CommandCopyNode (YACS::ENGINE::Proc *fromproc, std::string position, std::string newParent, int acase=0) | |
YACS::ENGINE::Node * | getNode () |
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 | _newName |
int | _case |
YACS::ENGINE::Node * | _clone |
YACS::ENGINE::Proc * | _fromproc |
Protected Attributes inherited from YACS::HMI::Command | |
std::vector< Command * > | _subCommands |
bool | _normalReverse |
Definition at line 169 of file commandsProc.hxx.
CommandCopyNode::CommandCopyNode | ( | YACS::ENGINE::Proc * | fromproc, |
std::string | position, | ||
std::string | newParent, | ||
int | acase = 0 |
||
) |
Definition at line 668 of file commandsProc.cxx.
References _newParent, _position, and DEBTRACE.
|
protectedvirtual |
Reimplemented from YACS::HMI::Command.
Definition at line 677 of file commandsProc.cxx.
References _newParent, _position, and PMMLBasicsTestLauncher::ret.
YACS::ENGINE::Node * CommandCopyNode::getNode | ( | ) |
|
protectedvirtual |
Implements YACS::HMI::Command.
Definition at line 688 of file commandsProc.cxx.
References _case, _clone, _fromproc, YACS::HMI::GuiContext::_mapOfSubjectNode, _newName, _newParent, _position, YACS::HMI::SubjectComposedNode::addSubjectNode(), YACS::ENGINE::Node::cloneWithoutCompAndContDeepCpy(), DEBTRACE, YACS::ENGINE::ComposedNode::edAddChild(), YACS::ENGINE::ComposedNode::getChildByName(), YACS::HMI::GuiContext::getCurrent(), YACS::ENGINE::Node::getFather(), YACS::ENGINE::ComposedNode::getName(), YACS::ENGINE::Node::getName(), YACS::HMI::GuiContext::getProc(), YACS::ENGINE::Node::getQualifiedName(), YACS::HMI::Subject::loadChildren(), YACS::HMI::Subject::loadLinks(), setErrorMsg(), YACS::ENGINE::Node::setName(), and YACS::Exception::what().
|
protectedvirtual |
Implements YACS::HMI::Command.
Definition at line 771 of file commandsProc.cxx.
References _clone, YACS::HMI::GuiContext::_mapOfSubjectNode, _newName, _newParent, _position, DEBTRACE, YACS::HMI::Subject::erase(), YACS::ENGINE::ComposedNode::getChildByName(), YACS::HMI::GuiContext::getCurrent(), YACS::ENGINE::ComposedNode::getName(), YACS::HMI::Subject::getParent(), YACS::HMI::GuiContext::getProc(), YACS::HMI::REMOVE, YACS::HMI::Subject::select(), setErrorMsg(), YACS::HMI::Subject::update(), YACS::Exception::what(), and YASSERT.
|
protected |
Definition at line 184 of file commandsProc.hxx.
Referenced by localExecute().
|
protected |
Definition at line 185 of file commandsProc.hxx.
Referenced by getNode(), localExecute(), and localReverse().
|
protected |
Definition at line 186 of file commandsProc.hxx.
Referenced by localExecute().
|
protected |
Definition at line 183 of file commandsProc.hxx.
Referenced by localExecute(), and localReverse().
|
protected |
Definition at line 182 of file commandsProc.hxx.
Referenced by CommandCopyNode(), dump(), localExecute(), and localReverse().
|
protected |
Definition at line 181 of file commandsProc.hxx.
Referenced by CommandCopyNode(), dump(), localExecute(), and localReverse().