![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
Slice BQ Phase 6.7.4 — QUndoCommand subclasses for TransectProvider. More...
#include "transect/transectprovider.h"#include <QString>#include <QUndoCommand>#include <QVector>Go to the source code of this file.
Classes | |
| class | openswmmvis::transect::SetRoughnessCommand |
| Atomic Manning's-n triple write. More... | |
| class | openswmmvis::transect::SetBankStationsCommand |
| Bank stations (xLeft, xRight). More... | |
| class | openswmmvis::transect::SetEncroachmentStationsCommand |
| Encroachment stations (BQ-TR-02 Reading B). More... | |
| class | openswmmvis::transect::SetModifiersCommand |
| Modifier triple (xFactor, yFactor, lengthFactor). More... | |
| class | openswmmvis::transect::SetCommentsCommand |
| Free-form rich-text comments. More... | |
| class | openswmmvis::transect::MoveStationPointCommand |
| Single-point move (station + elevation). Used by chart drag-end. More... | |
| class | openswmmvis::transect::InsertStationCommand |
| Insert a single (station, elevation). Redo re-inserts; undo removes it. Stores the inserted index after the first redo. More... | |
| class | openswmmvis::transect::DeleteStationsCommand |
| Remove one or more rows by index. Stores the removed (station, elevation) pairs so undo can reinstate them. More... | |
| class | openswmmvis::transect::RenameTransectCommand |
| Rename via the registry (uniqueness enforced by the registry). More... | |
Namespaces | |
| namespace | openswmmvis |
| namespace | openswmmvis::transect |
Slice BQ Phase 6.7.4 — QUndoCommand subclasses for TransectProvider.
Each command operates on one non-owning TransectProvider*. Commands are pushed onto the dialog's QUndoStack so a single Cmd-Z unwinds across the list, the property tree, the station-elevation grid, and the chart in lock-step (every view subscribes to the provider's signals and re-renders on apply).
Chart-drag batching follows the timeseries Phase 6.7.3.5 pattern:
setPointLive (no undo push, no monotonicity break)MoveStationPointCommand whose redo() is a no-op (state already current) and whose undo() restores the original position.Each command emits no UI work directly — the provider's signals drive the redraw. That keeps the redo / undo paths perfectly symmetric and lets tests assert correctness without needing the dialog at all.