|
SILICON
|
#include <undoCommands.hpp>
Public Member Functions | |
| EditWireRouteCommand (GraphicalWireSegment *segment, std::vector< WireRouteChange > changes, WireDragKind kind, WireEndpointEdit endpointEdit={}, QUndoCommand *parent=nullptr) | |
| Captures an already applied wire gesture for undo and redo. | |
| void | undo () override |
| Restores the wire routes from before the gesture. | |
| void | redo () override |
| Restores the gesture's final routes, skipping the first invocation. | |
Private Attributes | |
| DiagramScene * | scene |
| std::string | documentPath |
| std::vector< WireRouteChange > | changes |
| WireEndpointEdit | endpointEdit |
| bool | skipInitialRedo = true |
Definition at line 143 of file undoCommands.hpp.
|
explicit |
Captures an already applied wire gesture for undo and redo.
| segment | Edited segment used to locate the scene and document. |
| changes | Before and after route snapshots for affected segments. |
| kind | Handle type used to label the command. |
| endpointEdit | Contact, topology, and net snapshots for the gesture. |
| parent | Optional parent undo command. |
Definition at line 204 of file undoCommands.cpp.
|
override |
Restores the gesture's final routes, skipping the first invocation.
Definition at line 231 of file undoCommands.cpp.
|
override |
Restores the wire routes from before the gesture.
Definition at line 222 of file undoCommands.cpp.
|
private |
Definition at line 167 of file undoCommands.hpp.
|
private |
Definition at line 166 of file undoCommands.hpp.
|
private |
Definition at line 168 of file undoCommands.hpp.
|
private |
Definition at line 165 of file undoCommands.hpp.
|
private |
Definition at line 169 of file undoCommands.hpp.