Records a change to one inlet-usage row (conduit host or inlet junction host — the same command serves both, per §2.4/§3.4 of workplans/INLET_EDITOR_AND_INLET_JUNCTION_GUI_PLAN_2026-09-05.md).
More...
#include <mapundostack.h>
Records a change to one inlet-usage row (conduit host or inlet junction host — the same command serves both, per §2.4/§3.4 of workplans/INLET_EDITOR_AND_INLET_JUNCTION_GUI_PLAN_2026-09-05.md).
The constructor snapshots the host's PRIOR row (or its absence), so undo restores the previous design / capture node / counts, or removes the row again when there was none. redo() applies the new row; passing an "absent" new state makes this a removal command.
◆ SetInletUsageCommand()
| SetInletUsageCommand::SetInletUsageCommand |
( |
SWMMModelLayer * |
layer, |
|
|
const SWMM_InletUsage & |
newUsage, |
|
|
bool |
removing, |
|
|
MapCanvas * |
canvas, |
|
|
QUndoCommand * |
parent = nullptr |
|
) |
| |
- Parameters
-
| newUsage | Row to install on redo. |
| removing | true to REMOVE the host's row instead of setting it (only newUsage.host_kind / host_idx are then read). |
◆ id()
| int SetInletUsageCommand::id |
( |
| ) |
const |
|
inlineoverride |
◆ redo()
| void SetInletUsageCommand::redo |
( |
| ) |
|
|
override |
◆ undo()
| void SetInletUsageCommand::undo |
( |
| ) |
|
|
override |
The documentation for this class was generated from the following files: