69 void p_begin(
const std::string& description);
The main window of the Netedit.
FXString undoName() const
get undo Name
const std::string myDescription
description of command
void p_begin(const std::string &description)
Begin undo command sub-group. This begins a new group of commands that are treated as a single comman...
void redo()
redo the last command group
void undo()
undo the last command group
void p_clear()
clears the undo list (implies abort)
void p_add(GNEChange_Attribute *cmd)
special method, avoid empty changes, always execute
the function-object for an editing operation (abstract base)
GNEUndoList(GNEApplicationWindow *parent)
FOX declaration.
void p_end()
End undo command sub-group. If the sub-group is still empty, it will be deleted; otherwise, the sub-group will be added as a new command into parent group. A matching begin() must have been called previously.
std::stack< CommandGroup * > myCommandGroups
GNEApplicationWindow *const myParent
void p_abort()
reverts and discards ALL active command groups
long p_onUpdRedo(FXObject *, FXSelector, void *)
event after Redo
bool hasCommandGroup() const
Check if undoList has command group.
CommandGroup(std::string description)
Constructor.
FXString redoName() const
get redo name
const std::string & getDescription()
get description
long p_onUpdUndo(FXObject *, FXSelector, void *)