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
swmmelementsymboladapter.h File Reference

QObject wrapper exposing SWMMElementSymbol fields as Q_PROPERTYs. More...

#include "layers/swmmmodellayer.h"
#include <QColor>
#include <QFont>
#include <QObject>
#include <functional>
Include dependency graph for swmmelementsymboladapter.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  SwmmElementSymbolAdapter
 

Detailed Description

QObject wrapper exposing SWMMElementSymbol fields as Q_PROPERTYs.

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 U-4. SWMMElementSymbol is a plain struct so it can't drive
    the QPropertyModel-backed editor directly. This adapter holds a
    live copy of the struct + a callback that writes the updated
    copy back to the parent SWMMModelLayer (via setJunctionSymbol,
    setConduitSymbol, …). Every Q_PROPERTY setter fires the writeback
    immediately so edits propagate live.

    The adapter is owned by the parent SWMMModelLayer (QObject
    parent-child) so its lifetime tracks the layer.