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

Two-pane CRUD editor for SWMM pollutants ([POLLUTANTS]). More...

#include <QDialog>
#include <QPointer>
Include dependency graph for pollutanteditordialog.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  openswmmvis::ui::PollutantEditorDialog
 

Namespaces

namespace  openswmmvis
 
namespace  openswmmvis::pollutant
 
namespace  openswmmvis::ui
 

Detailed Description

Two-pane CRUD editor for SWMM pollutants ([POLLUTANTS]).

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

Mirrors StreetEditorDialog's role and entry points (createNew / pickPollutant). A pollutant is a flat set of scalar fields, so the layout is a list pane (left) + field form (right); there is no geometry preview.

┌──────────────┬────────────────────────────────────────┐ │ Pollutants │ Name │ │ list view │ Units (combo) / Rain / GW / I&I │ │ [+ New] │ Initial conc / Decay / Mol. weight │ │ [- Delete] │ Snow only / Co-pollutant / Co-fraction│ └──────────────┴────────────────────────────────────────┘

MVC contract — every mutation goes through PollutantProvider; subscribed registry signals keep the list and field form in lock-step. Units are write-once at engine creation (no swmm_pollutant_set_units), so the units combo only takes effect for not-yet-created pollutants.

NOTE (first cut): build-verify with the compiler in the loop. See docs/HANDOFF_compile_verify_agent.md.