Staged editor for user-flag definitions.
More...
#include <userflagsdialog.h>
Staged editor for user-flag definitions.
Constructed over the project's shared UserFlagsModel (SWMMModelLayer::ensureUserFlagsModel()); taking the model rather than the layer keeps the dialog independently testable against a bare engine handle.
◆ UserFlagsDialog()
◆ addRow()
Append a staged row. Exposed for the Add button and tests.
◆ applyChanges()
| bool UserFlagsDialog::applyChanges |
( |
QString * |
outError = nullptr | ) |
|
Commit the staged table to the engine. Returns false (with *outError set) on validation failure — empty or duplicate names. Public so tests can drive the commit without the button box.
◆ setConfirmationsEnabled()
| void UserFlagsDialog::setConfirmationsEnabled |
( |
bool |
enabled | ) |
|
|
inline |
Test hook — when false, destructive confirmations (removing a defined flag, changing the type of a flag that may carry values) are skipped instead of showing a QMessageBox. Defaults to true.
◆ table()
| QTableWidget * UserFlagsDialog::table |
( |
| ) |
const |
|
inlinenoexcept |
The staged definitions table (rows may not be applied yet).
◆ wroteAnyChanges()
| bool UserFlagsDialog::wroteAnyChanges |
( |
| ) |
const |
|
inlinenoexcept |
True once any Apply/OK round actually changed the engine.
The documentation for this class was generated from the following files: