![]() |
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>#include <openswmm/engine/openswmm_callbacks.h>Go to the source code of this file.
Classes | |
| struct | InitialQualityEditRef |
Functions | |
| QString | initialQualitySummaryFor (SWMM_Engine engine, int isLink, const QString &elementName) |
| void | registerInitialQualityEditRefConverter () |
Initial-quality UI round — compound-attribute cell value for the per-element "Initial Quality" row in the Property Browser. Mirrors UserFlagsEditRef: carries what the cell button needs to (a) display a short summary of how many [INITIAL_QUALITY] overrides the element holds and (b) open InitialQualityDialog scoped to that element.
Registered as a Qt metatype with a QString converter so the read-only DisplayRole path renders summary.
| QString initialQualitySummaryFor | ( | SWMM_Engine | engine, |
| int | isLink, | ||
| const QString & | elementName | ||
| ) |
Compute the cell summary for one element: "(none)" or "n set". Null engine / unknown element reads as no overrides.
| void registerInitialQualityEditRefConverter | ( | ) |
Install the InitialQualityEditRef → QString metatype converter so the read-only DisplayRole path renders summary. Idempotent.