43 junction->incRef(
"GNEChange_Junction");
49 if (
myJunction->getNet()->getViewNet()->getViewParent()->getGNEAppWindows()->isUndoRedoAllowed()) {
80 myJunction->getNet()->getSavingStatus()->requireSaveNetwork();
108 myJunction->getNet()->getSavingStatus()->requireSaveNetwork();
115 return (
TL(
"Undo create junction '") +
myJunction->getID() +
"'");
117 return (
TL(
"Undo delete junction '") +
myJunction->getID() +
"'");
125 return (
TL(
"Redo create junction '") +
myJunction->getID() +
"'");
127 return (
TL(
"Redo delete junction '") +
myJunction->getID() +
"'");
Supermode
@brie enum for supermodes
@ NETWORK
Network mode (Edges, junctions, etc..).
std::string undoName() const
return undoName
GNEChange_Junction(GNEJunction *junction, bool forward)
Constructor for creating/deleting a junction.
~GNEChange_Junction()
Destructor.
GNEJunction * myJunction
full information regarding the junction that is to be created/deleted
std::string redoName() const
get Redo name
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