20#ifndef OPENSWMMVIS_INLET_INLETUNDOCOMMANDS_H
21#define OPENSWMMVIS_INLET_INLETUNDOCOMMANDS_H
27#include <QUndoCommand>
41 QUndoCommand *
parent =
nullptr);
46 QPointer<InletProvider> m_provider;
60 QUndoCommand *
parent =
nullptr);
65 QPointer<InletProvider> m_provider;
76 QUndoCommand *
parent =
nullptr);
81 QPointer<InletProvider> m_provider;
82 QString m_oldComments;
83 QString m_newComments;
95 QUndoCommand *
parent =
nullptr);
100 QPointer<InletRegistry> m_registry;
101 QPointer<InletProvider> m_provider;
112 QUndoCommand *
parent =
nullptr);
113 void undo()
override;
114 void redo()
override;
121 QPointer<InletRegistry> m_registry;
131 QUndoCommand *
parent =
nullptr);
132 void undo()
override;
133 void redo()
override;
136 QPointer<InletRegistry> m_registry;
Create a new design with default parameters.
Definition inletundocommands.h:108
void undo() override
Definition inletundocommands.cpp:132
InletProvider * provider() const
The provider created by the most recent redo (null before the first redo, or after an undo).
Definition inletundocommands.cpp:122
void redo() override
Definition inletundocommands.cpp:127
Delete a design. Undo recreates it from the stored snapshot.
Definition inletundocommands.h:127
void redo() override
Definition inletundocommands.cpp:152
void undo() override
Definition inletundocommands.cpp:158
Definition inletprovider.h:95
Definition inletregistry.h:29
Rename via the registry (uniqueness enforced by the registry).
Definition inletundocommands.h:90
void undo() override
Definition inletundocommands.cpp:105
void redo() override
Definition inletundocommands.cpp:100
Whole-design snapshot write. The dialog captures the design before the property bag pushes its edit a...
Definition inletundocommands.h:55
void redo() override
Definition inletundocommands.cpp:52
void undo() override
Definition inletundocommands.cpp:57
Switch the inlet type (which groups of parameters apply).
Definition inletundocommands.h:37
void undo() override
Definition inletundocommands.cpp:33
void redo() override
Definition inletundocommands.cpp:28
MVC model for a single SWMM inlet design ([INLETS]).
Definition inletprovider.h:27
InletType
Inlet design type. Values match SWMM_InletType.
Definition inletprovider.h:30
QVector< int > parent
union-find
Definition pslgminsize.cpp:176
QString name
Definition sectionmodelbuilders.cpp:474
Every parameter of one inlet design, mirroring SWMM_InletDesign. Snapshot type for the undo commands ...
Definition inletprovider.h:70