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
linkcompoundeditref.h File Reference
#include <QMetaType>
#include <QString>
#include <openswmm/engine/openswmm_callbacks.h>
Include dependency graph for linkcompoundeditref.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  LinkCompoundEditRef
 

Functions

void registerLinkCompoundEditRefConverter ()
 

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

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>.

Function Documentation

◆ registerLinkCompoundEditRefConverter()

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.

Here is the caller graph for this function: