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 49 of file GNEChange.h.
GNEChange::GNEChange | ( | GNENet * | net, |
bool | forward | ||
) |
Constructor.
[in] | net | The net on which to apply changes |
[in] | forward | The direction of this change |
Definition at line 48 of file GNEChange.cpp.
GNEChange::~GNEChange | ( | ) |
Destructor.
Definition at line 53 of file GNEChange.cpp.
|
virtual |
redo action/operation
Reimplemented in GNEChange_Attribute, GNEChange_Edge, GNEChange_Lane, GNEChange_Connection, GNEChange_TLS, GNEChange_Additional, GNEChange_Junction, and GNEChange_Selection.
Definition at line 79 of file GNEChange.cpp.
|
virtual |
return rendoName
Reimplemented in GNEChange_Attribute, GNEChange_Edge, GNEChange_Lane, GNEChange_Connection, GNEChange_TLS, GNEChange_Additional, GNEChange_Junction, and GNEChange_Selection.
Definition at line 69 of file GNEChange.cpp.
|
virtual |
return actual size
Definition at line 57 of file GNEChange.cpp.
|
virtual |
undo action/operation
Reimplemented in GNEChange_Attribute, GNEChange_Edge, GNEChange_Lane, GNEChange_Connection, GNEChange_TLS, GNEChange_Additional, GNEChange_Junction, and GNEChange_Selection.
Definition at line 75 of file GNEChange.cpp.
|
virtual |
return undoName
Reimplemented in GNEChange_Attribute, GNEChange_Edge, GNEChange_Lane, GNEChange_Connection, GNEChange_TLS, GNEChange_Additional, GNEChange_Junction, and GNEChange_Selection.
Definition at line 63 of file GNEChange.cpp.
|
protected |
we group antagonistic commands (create junction/delete junction) and keep them apart by this flag
Definition at line 87 of file GNEChange.h.
Referenced by GNEChange_Selection::redo(), GNEChange_Additional::redo(), GNEChange_Junction::redo(), GNEChange_TLS::redo(), GNEChange_Connection::redo(), GNEChange_Lane::redo(), GNEChange_Edge::redo(), GNEChange_Selection::redoName(), GNEChange_Junction::redoName(), GNEChange_Additional::redoName(), GNEChange_TLS::redoName(), GNEChange_Connection::redoName(), GNEChange_Lane::redoName(), GNEChange_Edge::redoName(), GNEChange_Selection::undo(), GNEChange_Additional::undo(), GNEChange_Junction::undo(), GNEChange_TLS::undo(), GNEChange_Connection::undo(), GNEChange_Lane::undo(), GNEChange_Edge::undo(), GNEChange_Selection::undoName(), GNEChange_Additional::undoName(), GNEChange_Junction::undoName(), GNEChange_TLS::undoName(), GNEChange_Connection::undoName(), GNEChange_Lane::undoName(), and GNEChange_Edge::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 82 of file GNEChange.h.
Referenced by GNEChange_Selection::redo(), GNEChange_Additional::redo(), GNEChange_Junction::redo(), GNEChange_Lane::redo(), GNEChange_Edge::redo(), GNEChange_Selection::undo(), GNEChange_Junction::undo(), GNEChange_Additional::undo(), GNEChange_Lane::undo(), and GNEChange_Edge::undo().