![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
#include <QMetaType>#include <QString>Go to the source code of this file.
Classes | |
| struct | UserFlagsEditRef |
Namespaces | |
| namespace | openswmmvis |
| namespace | openswmmvis::ui |
Functions | |
| QString | userFlagsSummaryFor (openswmmvis::ui::UserFlagsModel *model, const QString &objectType, const QString &objectName) |
| void | registerUserFlagsEditRefConverter () |
Phase 4 of docs/USER_FLAGS_UI_PLAN_2026-06-03.md — compound-attribute cell value for the per-object "User Flags" row in the Property Browser. Mirrors NodeCompoundEditRef: carries what the cell button needs to (a) display a short summary of how many flags are set on the object and (b) open UserFlagValuesDialog to edit the assignments.
Registered as a Qt metatype with a QString converter so the read-only DisplayRole path renders summary.
| void registerUserFlagsEditRefConverter | ( | ) |
Install the UserFlagsEditRef → QString metatype converter so the read-only DisplayRole path renders summary. Idempotent.
| QString userFlagsSummaryFor | ( | openswmmvis::ui::UserFlagsModel * | model, |
| const QString & | objectType, | ||
| const QString & | objectName | ||
| ) |
Compute the cell summary for one object: "(no flags defined)", "(none set)", or "n of m set". Null model reads as no flags.