67 if (
myParentDemandElement->getNet()->getViewNet()->getViewParent()->getGNEAppWindows()->isUndoRedoAllowed()) {
139 return (
TL(
"Invalid operation"));
148 return (
TL(
"Invalid operation"));
163 return (
TL(
"Invalid operation"));
172 return (
TL(
"Invalid operation"));
Supermode
@brie enum for supermodes
@ DEMAND
Demand mode (Routes, Vehicles etc..).
std::string undoName() const
return undoName
const Operation myOperation
~GNEChange_Children()
Destructor.
std::string redoName() const
get Redo name
GNEChange_Children(GNEDemandElement *demandElementParent, GNEDemandElement *demandElementChild, const Operation operation)
Constructor for creating/deleting an additional element.
const GNEHierarchicalContainerChildren< GNEDemandElement * > myOriginalChildElements
copy of child demand elements before apply operation
GNEDemandElement * myParentDemandElement
full information regarding the parent demand element element that will be modified
GNEDemandElement * myChildDemandElement
demand element which position will be edited edited
GNEHierarchicalContainerChildren< GNEDemandElement * > myEditedChildElements
element children after apply operation
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
GNEChange(Supermode supermode, bool forward, const bool selectedElement)
Constructor.