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

Editor for the reaction system (.rxn / [REACTION_*]) — GUI plan §3.2, rounds G-B2/G-C1. More...

#include <openswmm/engine/openswmm_engine.h>
#include <QDialog>
Include dependency graph for reactionsystemeditordialog.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  OpenSWMMVis::ReactionSystemEditorDialog
 Non-modal editor for the model's reaction system. More...
 

Namespaces

namespace  OpenSWMMVis
 

Detailed Description

Editor for the reaction system (.rxn / [REACTION_*]) — GUI plan §3.2, rounds G-B2/G-C1.

Tabs: Options / Species / Coefficients / Terms / Expressions / Initial Quality / File (raw text) / Sources (disabled — the engine rejects [REACTION_SOURCES] until phase R-sources).

The engine handle IS the model (GUI plan §2): structured tabs apply as-you-go through the swmm_reaction_* CRUD (each mutation eagerly validated engine-side and rolled back on failure, so the model can never go uncompilable), and the File tab serializes from / applies to the same state — which is the whole sync mechanism between the views (CLAUDE.md §5.1). FILE persistence happens only on Save (swmm_reactions_save) to the bound [PROCESS_COMPONENTS] config, with a one-step "create component + config file" flow when none is bound (G-D1).

Dependency-light on purpose — Qt Widgets + the engine ABI — so tests construct and drive it (the WaterAgeSourcesDialog contract).

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
License\n Apache-2.0