35int Invocator::_ctr = 0;
57 if (commandInProgress)
70 if (commandInProgress)
121 return "=== generic command dump ===";
127 for (
int i=0;
i<level;
i++) prefix +=
" ";
128 string ret = prefix +
dump() +
"\n";
185 ret1 <<
"_commandsDone" << endl;
190 ret2 <<
"_commandsUndone" << endl;
213 ret1 <<
"_commandsDone" << endl;
218 ret2 <<
"_commandsUndone" << endl;
234 ret1 <<
"_commandsDone" << endl;
239 ret2 <<
"_commandsUndone" << endl;
256 ret1 <<
"_commandsDone" << endl;
261 ret2 <<
"_commandsUndone" << endl;
272 list<string> listDone;
281 list<string> listUndone;
virtual Proc * createProc(const std::string &name)
virtual bool reverse(bool isNormal=true)
Reverse action: undo.
virtual bool executeSubOnly()
execute only sub commands in a reverse action
virtual bool execute()
the command is executed a first time after its registration for undo redo, then on redo
virtual bool localExecute()=0
std::vector< Command * > _subCommands
std::string recursiveDump(int level=0)
virtual bool localReverse()=0
void addSubCommand(Command *command)
virtual std::string dump()
void setNotSaved(bool isNotSaved)
static GuiContext * getCurrent()
YACS::HMI::ProcInvoc * getInvoc()
void add(Command *command)
YACS::ENGINE::Proc * _undoProc
YACS::ENGINE::Catalog * _undoCata
std::vector< Command * > _commandsUndone
std::vector< Command * > _commandsDone
std::list< std::string > getUndone()
std::vector< Command * > _commandsInProgress
std::list< std::string > getDone()
YACSRUNTIMESALOME_EXPORT RuntimeSALOME * getSALOMERuntime()