47 if (
myAdditional->getNet()->getViewNet()->getViewParent()->getGNEAppWindows()->isUndoRedoAllowed()) {
83 myAdditional->getNet()->getSavingStatus()->requireSaveAdditionals();
109 myAdditional->getNet()->getSavingStatus()->requireSaveAdditionals();
Supermode
@brie enum for supermodes
@ NETWORK
Network mode (Edges, junctions, etc..).
std::string redoName() const
get Redo name
GNEAdditional * myAdditional
full information regarding the additional element that is to be created/deleted
GNEChange_Additional(GNEAdditional *additional, bool forward)
Constructor for creating/deleting an additional element.
~GNEChange_Additional()
Destructor.
std::string undoName() const
return undoName
the function-object for an editing operation (abstract base)
bool myForward
we group antagonistic commands (create junction/delete junction) and keep them apart by this flag
const bool mySelectedElement
flag for check if element is selected
GNEChange(Supermode supermode, bool forward, const bool selectedElement)
Constructor.
void addElementInParentsAndChildren(T *element)
add given element in parents and children
void removeElementFromParentsAndChildren(T *element)
remove given element from parents and children