![]() |
SUMO - Simulation of Urban MObility
|
the function-object for an editing operation (abstract base) More...
#include <GNEChange.h>
Public Member Functions | |
GNEChange (GNENet *net, bool forward) | |
Constructor. More... | |
virtual void | redo () |
redo action/operation More... | |
virtual FXString | redoName () const |
return rendoName More... | |
virtual FXuint | size () const |
return actual size More... | |
virtual void | undo () |
undo action/operation More... | |
virtual FXString | undoName () const |
return undoName More... | |
~GNEChange () | |
Destructor. More... | |
Protected Attributes | |
bool | myForward |
we group antagonistic commands (create junction/delete junction) and keep them apart by this flag More... | |
GNENet * | myNet |
the net to which operations shall be applied or which shall be informed about gui updates (we are not responsible for the pointer) More... | |
the function-object for an editing operation (abstract base)
Definition at line 48 of file GNEChange.h.
GNEChange::GNEChange | ( | GNENet * | net, |
bool | forward | ||
) |
Constructor.
[in] | net | GNENet net on which to apply changes |
[in] | forward | The direction of this change |
Definition at line 43 of file GNEChange.cpp.
GNEChange::~GNEChange | ( | ) |
Destructor.
Definition at line 48 of file GNEChange.cpp.
|
virtual |
redo action/operation
Reimplemented in GNENet::GNEChange_ReplaceEdgeInTLS, GNEChange_RerouterItem, GNEChange_CalibratorItem, GNEChange_Crossing, GNEChange_Attribute, GNEChange_Edge, GNEChange_Additional, GNEChange_Connection, GNEChange_Lane, GNEChange_TLS, GNEChange_VariableSpeedSignItem, GNEChange_Selection, GNEChange_Junction, and GNEChange_Shape.
Definition at line 74 of file GNEChange.cpp.
|
virtual |
return rendoName
Reimplemented in GNENet::GNEChange_ReplaceEdgeInTLS, GNEChange_RerouterItem, GNEChange_CalibratorItem, GNEChange_Crossing, GNEChange_Attribute, GNEChange_Edge, GNEChange_Additional, GNEChange_Connection, GNEChange_Lane, GNEChange_TLS, GNEChange_VariableSpeedSignItem, GNEChange_Selection, GNEChange_Junction, and GNEChange_Shape.
Definition at line 64 of file GNEChange.cpp.
|
virtual |
return actual size
Definition at line 52 of file GNEChange.cpp.
|
virtual |
undo action/operation
Reimplemented in GNENet::GNEChange_ReplaceEdgeInTLS, GNEChange_RerouterItem, GNEChange_CalibratorItem, GNEChange_Crossing, GNEChange_Attribute, GNEChange_Edge, GNEChange_Additional, GNEChange_Connection, GNEChange_Lane, GNEChange_TLS, GNEChange_VariableSpeedSignItem, GNEChange_Selection, GNEChange_Junction, and GNEChange_Shape.
Definition at line 70 of file GNEChange.cpp.
|
virtual |
return undoName
Reimplemented in GNENet::GNEChange_ReplaceEdgeInTLS, GNEChange_RerouterItem, GNEChange_CalibratorItem, GNEChange_Crossing, GNEChange_Attribute, GNEChange_Edge, GNEChange_Additional, GNEChange_Connection, GNEChange_Lane, GNEChange_TLS, GNEChange_VariableSpeedSignItem, GNEChange_Selection, GNEChange_Junction, and GNEChange_Shape.
Definition at line 58 of file GNEChange.cpp.
|
protected |
we group antagonistic commands (create junction/delete junction) and keep them apart by this flag
Definition at line 86 of file GNEChange.h.
Referenced by GNEChange_Junction::redo(), GNEChange_Shape::redo(), GNEChange_Selection::redo(), GNEChange_TLS::redo(), GNEChange_VariableSpeedSignItem::redo(), GNEChange_Additional::redo(), GNEChange_Connection::redo(), GNEChange_Lane::redo(), GNEChange_Edge::redo(), GNEChange_Crossing::redo(), GNEChange_CalibratorItem::redo(), GNEChange_RerouterItem::redo(), GNEChange_Shape::redoName(), GNEChange_Junction::redoName(), GNEChange_Selection::redoName(), GNEChange_TLS::redoName(), GNEChange_Additional::redoName(), GNEChange_Connection::redoName(), GNEChange_Lane::redoName(), GNEChange_Edge::redoName(), GNEChange_Crossing::redoName(), GNEChange_Shape::undo(), GNEChange_Junction::undo(), GNEChange_Selection::undo(), GNEChange_TLS::undo(), GNEChange_VariableSpeedSignItem::undo(), GNEChange_Connection::undo(), GNEChange_Lane::undo(), GNEChange_Additional::undo(), GNEChange_Edge::undo(), GNEChange_Crossing::undo(), GNEChange_CalibratorItem::undo(), GNEChange_RerouterItem::undo(), GNEChange_Shape::undoName(), GNEChange_Junction::undoName(), GNEChange_Selection::undoName(), GNEChange_TLS::undoName(), GNEChange_Lane::undoName(), GNEChange_Additional::undoName(), GNEChange_Connection::undoName(), GNEChange_Edge::undoName(), and GNEChange_Crossing::undoName().
|
protected |
the net to which operations shall be applied or which shall be informed about gui updates (we are not responsible for the pointer)
Definition at line 81 of file GNEChange.h.
Referenced by GNEChange_Junction::redo(), GNEChange_Shape::redo(), GNEChange_Selection::redo(), GNEChange_VariableSpeedSignItem::redo(), GNEChange_Additional::redo(), GNEChange_Lane::redo(), GNEChange_Edge::redo(), GNEChange_Crossing::redo(), GNEChange_CalibratorItem::redo(), GNEChange_RerouterItem::redo(), GNEChange_Shape::undo(), GNEChange_Junction::undo(), GNEChange_Selection::undo(), GNEChange_VariableSpeedSignItem::undo(), GNEChange_Additional::undo(), GNEChange_Lane::undo(), GNEChange_Edge::undo(), GNEChange_Crossing::undo(), GNEChange_CalibratorItem::undo(), GNEChange_RerouterItem::undo(), GNEChange_Additional::~GNEChange_Additional(), GNEChange_CalibratorItem::~GNEChange_CalibratorItem(), GNEChange_Crossing::~GNEChange_Crossing(), and GNEChange_Shape::~GNEChange_Shape().