SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
initialqualityeditref.h File Reference
#include <QMetaType>
#include <QString>
#include <openswmm/engine/openswmm_callbacks.h>
Include dependency graph for initialqualityeditref.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  InitialQualityEditRef
 

Functions

QString initialQualitySummaryFor (SWMM_Engine engine, int isLink, const QString &elementName)
 
void registerInitialQualityEditRefConverter ()
 

Detailed Description

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
Date
2026
License\n GPL-3.0-or-later

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.

Function Documentation

◆ initialQualitySummaryFor()

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.

Here is the caller graph for this function:

◆ registerInitialQualityEditRefConverter()

void registerInitialQualityEditRefConverter ( )

Install the InitialQualityEditRef → QString metatype converter so the read-only DisplayRole path renders summary. Idempotent.