![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
Records a per-category object order change for undo/redo. More...
#include <mapundostack.h>
Public Member Functions | |
| ReorderObjectsCommand (SWMMModelLayer *layer, SWMMModelLayer::Category cat, QVector< int > oldOrder, QVector< int > newOrder, QUndoCommand *parent=nullptr) | |
| void | undo () override |
| void | redo () override |
Records a per-category object order change for undo/redo.
Stores the old permutation (or empty = "was default") and the new one. undo() calls clearObjectOrder when the old permutation was the default identity, otherwise restores the old permutation.
| ReorderObjectsCommand::ReorderObjectsCommand | ( | SWMMModelLayer * | layer, |
| SWMMModelLayer::Category | cat, | ||
| QVector< int > | oldOrder, | ||
| QVector< int > | newOrder, | ||
| QUndoCommand * | parent = nullptr |
||
| ) |
|
override |
|
override |