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

Go to the source code of this file.

Classes

struct  NodeCompoundEditRef
 

Functions

void registerNodeCompoundEditRefConverter ()
 

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 DB.2 — Compound-attribute cell value for the node Property Browser. Carries everything the per-cell button widget needs to (a) display a short summary and (b) open the right dialog for the underlying SWMM concept (Inflows / DWF / RDII / Treatment).

Registered as a Qt metatype so QPropertyModel can store it via QVariant::fromValue(...) and the matching custom editor creator (NodeCompoundEditButton) 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<NodeCompoundEditRef>.

Function Documentation

◆ registerNodeCompoundEditRefConverter()

void registerNodeCompoundEditRefConverter ( )

Install the NodeCompoundEditRef → 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: