![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEUndoList.h>
Data Structures | |
class | CommandGroup |
class CommandGroup More... | |
Public Member Functions | |
int | currentCommandGroupSize () const |
get size of current CommandGroup More... | |
GNEUndoList (GNEApplicationWindow *parent) | |
FOX declaration. More... | |
bool | hasCommandGroup () const |
Check if undoList has command group. More... | |
void | p_abort () |
reverts and discards ALL active command groups More... | |
void | p_abortLastCommandGroup () |
reverts last command group More... | |
void | p_add (GNEChange_Attribute *cmd) |
special method, avoid empty changes, always execute More... | |
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 command. Must eventually be followed by a matching end() after recording the sub-commands. The new sub-group will be appended to its parent group's undo list when end() is called. More... | |
void | p_clear () |
clears the undo list (implies abort) More... | |
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. More... | |
void | redo () |
redo the last command group More... | |
void | undo () |
undo the last command group More... | |
FOX-callbacks | |
event after Undo | |
long | p_onUpdUndo (FXObject *, FXSelector, void *) |
long | p_onUpdRedo (FXObject *, FXSelector, void *) |
event after Redo More... | |
Private Attributes | |
std::stack< CommandGroup * > | myCommandGroups |
GNEApplicationWindow *const | myGNEApplicationWindowParent |
Definition at line 46 of file GNEUndoList.h.
GNEUndoList::GNEUndoList | ( | GNEApplicationWindow * | parent | ) |
FOX declaration.
constructor
Definition at line 64 of file GNEUndoList.cpp.
int GNEUndoList::currentCommandGroupSize | ( | ) | const |
get size of current CommandGroup
Definition at line 152 of file GNEUndoList.cpp.
References myCommandGroups.
Referenced by GNERouteHandler::closeFlow(), GNERouteHandler::closeVehicle(), GNEAdditionalDialog::initChanges(), and GNEDemandElementDialog::initChanges().
bool GNEUndoList::hasCommandGroup | ( | ) | const |
Check if undoList has command group.
Definition at line 242 of file GNEUndoList.cpp.
References myCommandGroups.
Referenced by GNEJunction::invalidateTLS(), p_abort(), p_onUpdRedo(), p_onUpdUndo(), GNECreateEdgeFrame::processClick(), and GNEJunction::setLogicValid().
void GNEUndoList::p_abort | ( | ) |
reverts and discards ALL active command groups
Definition at line 104 of file GNEUndoList.cpp.
References hasCommandGroup(), and myCommandGroups.
Referenced by GNEViewNet::abortOperation(), GNEPolygonFrame::addPOI(), GNEPolygonFrame::addPOILane(), GNEPolygonFrame::addPolygon(), GNEPersonFrame::createPath(), GNETLSEditorFrame::onCmdCancel(), and p_clear().
void GNEUndoList::p_abortLastCommandGroup | ( | ) |
reverts last command group
Definition at line 114 of file GNEUndoList.cpp.
References myCommandGroups.
Referenced by GNEAdditionalDialog::acceptChanges(), GNEDemandElementDialog::acceptChanges(), GNEAdditionalDialog::cancelChanges(), GNEDemandElementDialog::cancelChanges(), GNEAdditionalDialog::resetChanges(), and GNEDemandElementDialog::resetChanges().
void GNEUndoList::p_add | ( | GNEChange_Attribute * | cmd | ) |
special method, avoid empty changes, always execute
Definition at line 142 of file GNEUndoList.cpp.
References GNEChange_Attribute::trueChange().
Referenced by GNEPersonStop::commitGeometryMoving(), GNEPersonTrip::commitGeometryMoving(), GNERide::commitGeometryMoving(), GNEStop::commitGeometryMoving(), GNEWalk::commitGeometryMoving(), GNEDetectorE3::commitMoveShape(), GNEParkingSpace::commitMoveShape(), GNEPOI::commitMoveShape(), GNEPoly::commitMoveShape(), GNERerouter::commitMoveShape(), GNEStoppingPlace::commitMoveShape(), GNETAZ::commitMoveShape(), GNEVariableSpeedSign::commitMoveShape(), GNEConnection::commitMoveShape(), GNECrossing::commitMoveShape(), GNEEdge::commitMoveShape(), GNEJunction::commitMoveShape(), GNEPersonStop::enableAttribute(), GNEStop::enableAttribute(), GNENet::joinSelectedJunctions(), GNENet::mergeJunctions(), GNERoute::GNERoutePopupMenu::onCmdApplyDistance(), GNEPoly::removeGeometryPoint(), GNETAZ::removeGeometryPoint(), GNEConnection::removeGeometryPoint(), GNECrossing::removeGeometryPoint(), GNEEdge::removeGeometryPoint(), GNEJunction::removeGeometryPoint(), GNENet::replaceIncomingEdge(), GNEAccess::setAttribute(), GNEBusStop::setAttribute(), GNECalibrator::setAttribute(), GNECalibratorFlow::setAttribute(), GNEChargingStation::setAttribute(), GNEClosingLaneReroute::setAttribute(), GNEClosingReroute::setAttribute(), GNEContainerStop::setAttribute(), GNEDestProbReroute::setAttribute(), GNEDetectorE1::setAttribute(), GNEDetectorE1Instant::setAttribute(), GNEDetectorE2::setAttribute(), GNEDetectorE3::setAttribute(), GNEDetectorEntryExit::setAttribute(), GNEParkingArea::setAttribute(), GNEParkingAreaReroute::setAttribute(), GNEParkingSpace::setAttribute(), GNEPOI::setAttribute(), GNEPoly::setAttribute(), GNERerouter::setAttribute(), GNERerouterInterval::setAttribute(), GNERouteProbe::setAttribute(), GNERouteProbReroute::setAttribute(), GNETAZ::setAttribute(), GNETAZSourceSink::setAttribute(), GNEVaporizer::setAttribute(), GNEVariableSpeedSign::setAttribute(), GNEVariableSpeedSignStep::setAttribute(), GNEDataInterval::setAttribute(), GNEDataSet::setAttribute(), GNEEdgeData::setAttribute(), GNEEdgeRelData::setAttribute(), GNETAZRelData::setAttribute(), GNEPerson::setAttribute(), GNEPersonStop::setAttribute(), GNEPersonTrip::setAttribute(), GNERide::setAttribute(), GNERoute::setAttribute(), GNEStop::setAttribute(), GNEVehicle::setAttribute(), GNEVehicleType::setAttribute(), GNEWalk::setAttribute(), GNEConnection::setAttribute(), GNEEdge::setAttribute(), GNEEdgeType::setAttribute(), GNELane::setAttribute(), GNELaneType::setAttribute(), GNENet::splitEdge(), and GNENet::splitJunction().
void GNEUndoList::p_begin | ( | const std::string & | description | ) |
Begin undo command sub-group. This begins a new group of commands that are treated as a single command. Must eventually be followed by a matching end() after recording the sub-commands. The new sub-group will be appended to its parent group's undo list when end() is called.
Definition at line 71 of file GNEUndoList.cpp.
References myCommandGroups.
Referenced by GNEEdgeType::addLaneType(), GNEPolygonFrame::addPOI(), GNEPolygonFrame::addPOILane(), GNEPolygonFrame::addPolygon(), GNEViewNet::addRestrictedLane(), GNENet::addReversedEdge(), GNEAdditionalHandler::buildAccess(), GNEAdditionalHandler::buildBusStop(), GNEAdditionalHandler::buildCalibrator(), GNEAdditionalHandler::buildCalibratorFlow(), GNEAdditionalHandler::buildChargingStation(), GNEAdditionalHandler::buildClosingLaneReroute(), GNEAdditionalHandler::buildClosingReroute(), GNEConnectorFrame::buildConnection(), GNEAdditionalHandler::buildContainerStop(), GNEDataHandler::buildDataInterval(), GNEDataHandler::buildDataSet(), GNEAdditionalHandler::buildDetectorE1(), GNEAdditionalHandler::buildDetectorE1Instant(), GNEAdditionalHandler::buildDetectorE3(), GNEAdditionalHandler::buildDetectorEntry(), GNEAdditionalHandler::buildDetectorExit(), GNEDataHandler::buildEdgeData(), GNEDataHandler::buildEdgeRelationData(), GNEAdditionalHandler::builDestProbReroute(), GNERouteHandler::buildFlow(), GNERouteHandler::buildFlowEmbeddedRoute(), GNERouteHandler::buildFlowOverRoute(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), GNEAdditionalHandler::buildParkingArea(), GNEAdditionalHandler::buildParkingSpace(), GNERouteHandler::buildPerson(), GNERouteHandler::buildPersonFlow(), GNERouteHandler::buildPersonStop(), GNERouteHandler::buildPersonTrip(), GNEAdditionalHandler::buildRerouter(), GNEAdditionalHandler::buildRerouterInterval(), GNERouteHandler::buildRide(), GNERouteHandler::buildRoute(), GNEAdditionalHandler::buildRouteProbe(), GNEAdditionalHandler::buildRouteProbReroute(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), GNERouteHandler::buildStop(), GNEAdditionalHandler::buildTAZ(), GNEDataHandler::buildTAZRelationData(), GNEAdditionalHandler::buildTAZSink(), GNEAdditionalHandler::buildTAZSource(), GNERouteHandler::buildTrip(), GNEAdditionalHandler::buildVaporizer(), GNEAdditionalHandler::buildVariableSpeedSign(), GNEAdditionalHandler::buildVariableSpeedSignStep(), GNERouteHandler::buildVehicleEmbeddedRoute(), GNERouteHandler::buildVehicleOverRoute(), GNERouteHandler::buildWalk(), GNEAdditionalHandler::builParkingAreaReroute(), GNEPoly::changeFirstGeometryPoint(), GNEConnection::changeTLIndex(), GNENet::cleanInvalidCrossings(), GNENet::cleanInvalidDemandElements(), GNENet::cleanUnusedRoutes(), GNESelectorFrame::clearCurrentSelection(), GNENet::clearJunctionConnections(), GNERouteHandler::closePerson(), GNEPoly::closePolygon(), GNERouteHandler::closeRoute(), GNERouteHandler::closeVType(), GNEPersonStop::commitGeometryMoving(), GNEPersonTrip::commitGeometryMoving(), GNERide::commitGeometryMoving(), GNEStop::commitGeometryMoving(), GNEWalk::commitGeometryMoving(), GNEAccess::commitMoveShape(), GNEDetector::commitMoveShape(), GNEDetectorE3::commitMoveShape(), GNEParkingSpace::commitMoveShape(), GNEPOI::commitMoveShape(), GNEPoly::commitMoveShape(), GNERerouter::commitMoveShape(), GNEStoppingPlace::commitMoveShape(), GNETAZ::commitMoveShape(), GNEVariableSpeedSign::commitMoveShape(), GNEConnection::commitMoveShape(), GNECrossing::commitMoveShape(), GNEEdge::commitMoveShape(), GNEJunction::commitMoveShape(), GNENet::createEdge(), GNEPersonFrame::createPath(), GNERouteFrame::createPath(), GNENet::createRoundabout(), GNENet::deleteAdditional(), GNENet::deleteConnection(), GNENet::deleteCrossing(), GNENet::deleteDataInterval(), GNENet::deleteDataSet(), GNENet::deleteDemandElement(), GNENet::deleteEdge(), GNENet::deleteGenericData(), GNEPoly::deleteGeometryPoint(), GNENet::deleteJunction(), GNENet::deleteLane(), GNEViewNet::deleteSelectedAdditionals(), GNEViewNet::deleteSelectedConnections(), GNEViewNet::deleteSelectedCrossings(), GNEViewNet::deleteSelectedDemandElements(), GNEViewNet::deleteSelectedEdges(), GNEViewNet::deleteSelectedGenericDatas(), GNEViewNet::deleteSelectedJunctions(), GNEViewNet::deleteSelectedLanes(), GNEViewNet::deleteSelectedShapes(), GNEViewNet::deleteSelectedTAZElements(), GNENet::deleteShape(), GNENet::deleteTAZElement(), GNENet::duplicateLane(), GNEEdge::editEndpoint(), GNETLSEditorFrame::editJunction(), GNEApplicationWindow::handleEvent_NetworkLoaded(), GNESelectorFrame::handleIDs(), GNEViewNet::hotkeyDel(), GNEAdditionalDialog::initChanges(), GNEDemandElementDialog::initChanges(), GNENet::joinRoutes(), GNENet::joinSelectedJunctions(), GNENet::mergeJunctions(), GNEFixAdditionalElements::onCmdAccept(), GNEFixDemandElements::onCmdAccept(), GNEMultipleParametersDialog::onCmdAccept(), GNESingleParametersDialog::onCmdAccept(), GNEViewNet::onCmdAddReversedEdge(), GNERoute::GNERoutePopupMenu::onCmdApplyDistance(), GNEViewNet::onCmdClearConnections(), GNEViewNet::onCmdDuplicateLane(), GNESelectorFrame::SelectionOperation::onCmdInvert(), GNEViewNet::onCmdLaneReachability(), GNEApplicationWindow::onCmdOpenAdditionals(), GNEApplicationWindow::onCmdOpenDataElements(), GNEApplicationWindow::onCmdOpenDemandElements(), GNEApplicationWindow::onCmdOpenEdgeTypes(), GNEApplicationWindow::onCmdOpenTLSPrograms(), GNEViewNet::onCmdResetConnections(), GNEViewNet::onCmdResetEdgeEndpoint(), GNECreateEdgeFrame::EdgeTypeSelector::onCmdResetEdgeType(), GNEViewNet::onCmdResetJunctionShape(), GNEViewNet::onCmdResetLaneCustomShape(), GNEViewNet::onCmdResetLength(), GNEViewNet::onCmdReverseEdge(), GNEFrameAttributesModuls::AttributesEditorRow::onCmdSelectCheckButton(), GNEFrameAttributesModuls::AttributesEditorFlow::onCmdSelectFlowRadioButton(), GNEFrameAttributesModuls::AttributesEditorFlow::onCmdSetFlowAttribute(), GNEViewNet::onCmdSmoothEdges(), GNEViewNet::onCmdSmoothEdgesElevation(), GNEViewNet::onCmdStraightenEdges(), GNEViewNet::onCmdStraightenEdgesElevation(), GNEViewNet::onCmdTransformPOI(), GNEPoly::openPolygon(), GNEVehicleType::overwriteVType(), GNECreateEdgeFrame::processClick(), GNERerouter::rebuildRerouterSymbols(), GNEVariableSpeedSign::rebuildVSSSymbols(), GNEPoly::removeGeometryPoint(), GNETAZ::removeGeometryPoint(), GNEConnection::removeGeometryPoint(), GNECrossing::removeGeometryPoint(), GNEEdge::removeGeometryPoint(), GNEJunction::removeGeometryPoint(), GNEEdgeType::removeLaneType(), GNEViewNet::removeRestrictedLane(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNENet::removeSolitaryJunctions(), GNENet::replaceIncomingEdge(), GNENet::replaceJunctionByGeometry(), GNEAdditionalDialog::resetChanges(), GNEDemandElementDialog::resetChanges(), GNENet::resetJunctionConnections(), GNEViewNet::restrictLane(), GNENet::reverseEdge(), GNENet::selectRoundabout(), GNEEdge::setAttribute(), GNEJunction::setAttribute(), GNEEdge::setNumLanes(), GNEPoly::simplifyShape(), GNENet::splitEdge(), GNENet::splitEdgesBidi(), GNENet::splitJunction(), GNERouteHandler::transformToFlow(), GNERouteHandler::transformToRouteFlow(), GNERouteHandler::transformToTrip(), and GNERouteHandler::transformToVehicle().
void GNEUndoList::p_clear | ( | ) |
clears the undo list (implies abort)
Definition at line 89 of file GNEUndoList.cpp.
References GNEViewNetHelper::IntervalBar::disableIntervalBarUpdate(), GNEViewNetHelper::IntervalBar::enableIntervalBarUpdate(), GNEViewNet::getIntervalBar(), GNEApplicationWindow::getViewNet(), myGNEApplicationWindowParent, and p_abort().
Referenced by GNENet::computeAndUpdate(), and GNEApplicationWindow::continueWithUnsavedChanges().
void GNEUndoList::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.
Definition at line 78 of file GNEUndoList.cpp.
References GNEApplicationWindow::getViewNet(), myCommandGroups, myGNEApplicationWindowParent, and GNEViewNet::updateViewNet().
Referenced by GNEAdditionalDialog::acceptChanges(), GNEDemandElementDialog::acceptChanges(), GNEEdgeType::addLaneType(), GNEPolygonFrame::addPOI(), GNEPolygonFrame::addPOILane(), GNEPolygonFrame::addPolygon(), GNEViewNet::addRestrictedLane(), GNENet::addReversedEdge(), GNEAdditionalHandler::buildAccess(), GNEAdditionalHandler::buildBusStop(), GNEAdditionalHandler::buildCalibrator(), GNEAdditionalHandler::buildCalibratorFlow(), GNEAdditionalHandler::buildChargingStation(), GNEAdditionalHandler::buildClosingLaneReroute(), GNEAdditionalHandler::buildClosingReroute(), GNEAdditionalHandler::buildContainerStop(), GNEDataHandler::buildDataInterval(), GNEDataHandler::buildDataSet(), GNEAdditionalHandler::buildDetectorE1(), GNEAdditionalHandler::buildDetectorE1Instant(), GNEAdditionalHandler::buildDetectorE3(), GNEAdditionalHandler::buildDetectorEntry(), GNEAdditionalHandler::buildDetectorExit(), GNEDataHandler::buildEdgeData(), GNEDataHandler::buildEdgeRelationData(), GNEAdditionalHandler::builDestProbReroute(), GNERouteHandler::buildFlow(), GNERouteHandler::buildFlowEmbeddedRoute(), GNERouteHandler::buildFlowOverRoute(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), GNEAdditionalHandler::buildParkingArea(), GNEAdditionalHandler::buildParkingSpace(), GNERouteHandler::buildPerson(), GNERouteHandler::buildPersonFlow(), GNERouteHandler::buildPersonStop(), GNERouteHandler::buildPersonTrip(), GNEAdditionalHandler::buildRerouter(), GNEAdditionalHandler::buildRerouterInterval(), GNERouteHandler::buildRide(), GNERouteHandler::buildRoute(), GNEAdditionalHandler::buildRouteProbe(), GNEAdditionalHandler::buildRouteProbReroute(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), GNERouteHandler::buildStop(), GNEAdditionalHandler::buildTAZ(), GNEDataHandler::buildTAZRelationData(), GNEAdditionalHandler::buildTAZSink(), GNEAdditionalHandler::buildTAZSource(), GNERouteHandler::buildTrip(), GNEAdditionalHandler::buildVaporizer(), GNEAdditionalHandler::buildVariableSpeedSign(), GNEAdditionalHandler::buildVariableSpeedSignStep(), GNERouteHandler::buildVehicleEmbeddedRoute(), GNERouteHandler::buildVehicleOverRoute(), GNERouteHandler::buildWalk(), GNEAdditionalHandler::builParkingAreaReroute(), GNEPoly::changeFirstGeometryPoint(), GNEConnection::changeTLIndex(), GNENet::cleanInvalidCrossings(), GNENet::cleanInvalidDemandElements(), GNENet::cleanUnusedRoutes(), GNESelectorFrame::clearCurrentSelection(), GNENet::clearJunctionConnections(), GNERouteHandler::closeFlow(), GNERouteHandler::closePerson(), GNEPoly::closePolygon(), GNERouteHandler::closeVehicle(), GNERouteHandler::closeVType(), GNEPersonStop::commitGeometryMoving(), GNEPersonTrip::commitGeometryMoving(), GNERide::commitGeometryMoving(), GNEStop::commitGeometryMoving(), GNEWalk::commitGeometryMoving(), GNEAccess::commitMoveShape(), GNEDetector::commitMoveShape(), GNEDetectorE3::commitMoveShape(), GNEParkingSpace::commitMoveShape(), GNEPOI::commitMoveShape(), GNEPoly::commitMoveShape(), GNERerouter::commitMoveShape(), GNEStoppingPlace::commitMoveShape(), GNETAZ::commitMoveShape(), GNEVariableSpeedSign::commitMoveShape(), GNEConnection::commitMoveShape(), GNECrossing::commitMoveShape(), GNEEdge::commitMoveShape(), GNEJunction::commitMoveShape(), GNENet::createEdge(), GNEPersonFrame::createPath(), GNERouteFrame::createPath(), GNENet::createRoundabout(), GNENet::deleteAdditional(), GNENet::deleteConnection(), GNENet::deleteCrossing(), GNENet::deleteDataInterval(), GNENet::deleteDataSet(), GNENet::deleteDemandElement(), GNENet::deleteEdge(), GNENet::deleteGenericData(), GNEPoly::deleteGeometryPoint(), GNENet::deleteJunction(), GNENet::deleteLane(), GNEViewNet::deleteSelectedAdditionals(), GNEViewNet::deleteSelectedConnections(), GNEViewNet::deleteSelectedCrossings(), GNEViewNet::deleteSelectedDemandElements(), GNEViewNet::deleteSelectedEdges(), GNEViewNet::deleteSelectedGenericDatas(), GNEViewNet::deleteSelectedJunctions(), GNEViewNet::deleteSelectedLanes(), GNEViewNet::deleteSelectedShapes(), GNEViewNet::deleteSelectedTAZElements(), GNENet::deleteShape(), GNENet::deleteTAZElement(), GNENet::duplicateLane(), GNEEdge::editEndpoint(), GNEApplicationWindow::handleEvent_NetworkLoaded(), GNESelectorFrame::handleIDs(), GNEViewNet::hotkeyDel(), GNENet::joinRoutes(), GNENet::joinSelectedJunctions(), GNENet::mergeJunctions(), GNEFixAdditionalElements::onCmdAccept(), GNEFixDemandElements::onCmdAccept(), GNEMultipleParametersDialog::onCmdAccept(), GNESingleParametersDialog::onCmdAccept(), GNEViewNet::onCmdAddReversedEdge(), GNERoute::GNERoutePopupMenu::onCmdApplyDistance(), GNEViewNet::onCmdClearConnections(), GNEViewNet::onCmdDuplicateLane(), GNESelectorFrame::SelectionOperation::onCmdInvert(), GNEViewNet::onCmdLaneReachability(), GNETLSEditorFrame::onCmdOK(), GNEApplicationWindow::onCmdOpenAdditionals(), GNEFrameAttributesModuls::AttributesEditorRow::onCmdOpenAttributeDialog(), GNEApplicationWindow::onCmdOpenDataElements(), GNEApplicationWindow::onCmdOpenDemandElements(), GNEApplicationWindow::onCmdOpenEdgeTypes(), GNEApplicationWindow::onCmdOpenTLSPrograms(), GNEViewNet::onCmdResetConnections(), GNEViewNet::onCmdResetEdgeEndpoint(), GNECreateEdgeFrame::EdgeTypeSelector::onCmdResetEdgeType(), GNEViewNet::onCmdResetJunctionShape(), GNEViewNet::onCmdResetLaneCustomShape(), GNEViewNet::onCmdResetLength(), GNEViewNet::onCmdReverseEdge(), GNEFrameAttributesModuls::AttributesEditorRow::onCmdSelectCheckButton(), GNEFrameAttributesModuls::AttributesEditorFlow::onCmdSelectFlowRadioButton(), GNEFrameAttributesModuls::AttributesEditorFlow::onCmdSetFlowAttribute(), GNEViewNet::onCmdSmoothEdges(), GNEViewNet::onCmdSmoothEdgesElevation(), GNEViewNet::onCmdStraightenEdges(), GNEViewNet::onCmdStraightenEdgesElevation(), GNEViewNet::onCmdTransformPOI(), GNEPoly::openPolygon(), GNEVehicleType::overwriteVType(), GNECreateEdgeFrame::processClick(), GNERerouter::rebuildRerouterSymbols(), GNEVariableSpeedSign::rebuildVSSSymbols(), GNEPoly::removeGeometryPoint(), GNETAZ::removeGeometryPoint(), GNEConnection::removeGeometryPoint(), GNECrossing::removeGeometryPoint(), GNEEdge::removeGeometryPoint(), GNEJunction::removeGeometryPoint(), GNEEdgeType::removeLaneType(), GNEViewNet::removeRestrictedLane(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNENet::removeSolitaryJunctions(), GNENet::replaceIncomingEdge(), GNENet::replaceJunctionByGeometry(), GNENet::resetJunctionConnections(), GNEViewNet::restrictLane(), GNENet::reverseEdge(), GNENet::selectRoundabout(), GNEEdge::setAttribute(), GNEJunction::setAttribute(), GNEEdge::setNumLanes(), GNEPoly::simplifyShape(), GNENet::splitEdge(), GNENet::splitEdgesBidi(), GNENet::splitJunction(), GNERouteHandler::transformToFlow(), GNERouteHandler::transformToRouteFlow(), GNERouteHandler::transformToTrip(), and GNERouteHandler::transformToVehicle().
long GNEUndoList::p_onUpdRedo | ( | FXObject * | sender, |
FXSelector | , | ||
void * | |||
) |
event after Redo
Definition at line 202 of file GNEUndoList.cpp.
References hasCommandGroup(), GNEApplicationWindow::isUndoRedoEnabled(), myCommandGroups, and myGNEApplicationWindowParent.
Referenced by FXDEFMAP(), GNEApplicationWindow::onUpdRedo(), and GNEViewParent::updateUndoRedoButtons().
long GNEUndoList::p_onUpdUndo | ( | FXObject * | sender, |
FXSelector | , | ||
void * | |||
) |
Definition at line 162 of file GNEUndoList.cpp.
References hasCommandGroup(), GNEApplicationWindow::isUndoRedoEnabled(), myCommandGroups, and myGNEApplicationWindowParent.
Referenced by FXDEFMAP(), GNEApplicationWindow::onUpdUndo(), and GNEViewParent::updateUndoRedoButtons().
void GNEUndoList::redo | ( | ) |
redo the last command group
Definition at line 133 of file GNEUndoList.cpp.
References myGNEApplicationWindowParent, GNEApplicationWindow::updateControls(), and WRITE_DEBUG.
Referenced by GNEApplicationWindow::onCmdRedo().
void GNEUndoList::undo | ( | ) |
undo the last command group
Definition at line 124 of file GNEUndoList.cpp.
References myGNEApplicationWindowParent, GNEApplicationWindow::updateControls(), and WRITE_DEBUG.
Referenced by GNEApplicationWindow::onCmdUndo().
|
private |
Definition at line 124 of file GNEUndoList.h.
Referenced by currentCommandGroupSize(), hasCommandGroup(), p_abort(), p_abortLastCommandGroup(), p_begin(), p_end(), p_onUpdRedo(), and p_onUpdUndo().
|
private |
Definition at line 127 of file GNEUndoList.h.
Referenced by p_clear(), p_end(), p_onUpdRedo(), p_onUpdUndo(), redo(), and undo().