![]() |
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 | LinkCompoundEditRef |
Functions | |
| void | registerLinkCompoundEditRefConverter () |
Slice SC.1 — Compound-attribute cell value for the link Property Browser. Mirror of NodeCompoundEditRef (Slice DB.2) for link-side compound concepts: cross section (shape + geoms + barrels) and inlet usage ([INLETS] per-conduit rows). Each of these legacy SWMM concepts has its own dedicated sub-dialog page hosted by LinkCompoundEditDialog. (Culvert code moved to an inline CulvertCodeComboBox — ATTRIBUTE_EDITOR_WIRING Phase 0.)
Registered as a Qt metatype so QPropertyModel can store it via QVariant::fromValue(...) and the matching custom editor creator (LinkCompoundEditButton) is instantiated by the delegate when the cell goes into edit mode. A QMetaType string converter is also installed so the read-only display state shows the summary string rather than QVariant<LinkCompoundEditRef>.
| void registerLinkCompoundEditRefConverter | ( | ) |
Install the LinkCompoundEditRef → QString metatype converter so the read-only DisplayRole path on QPropertyModel renders summary in the cell when the user isn't actively editing. Idempotent — safe to call multiple times from different initialisers.