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

Go to the source code of this file.

Classes

struct  CulvertCodeRef
 

Functions

void registerCulvertCodeRefConverter ()
 

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

Phase 0 of docs/ATTRIBUTE_EDITOR_WIRING_PLAN_2026-06-04.md — value type for the conduit "Culvert Code" Property Browser row. Replaces the former LinkCompoundEditRef::CulvertCode compound cell (which opened LinkCompoundEditDialog): the culvert code is a single enum value, so the cell now edits inline via CulvertCodeComboBox.

Same registration dance as LinkCompoundEditRef: declared as a Qt metatype so QPropertyModel stores it in a QVariant, a QString converter renders the descriptive label when the row isn't in edit mode, and a custom editor creator (registered in propertiespanel.cpp) hands out the combobox in edit mode.

Function Documentation

◆ registerCulvertCodeRefConverter()

void registerCulvertCodeRefConverter ( )

Install the CulvertCodeRef → QString converter (renders culvertCodeLabel(code)). Idempotent.

Here is the call graph for this function: