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

Reaction-expression editing stack (G-B1): syntax highlighter, single-line completing editor, and the table-cell delegate — the [REACTION_*] peer of TreatmentExpressionEdit, cloned from it. More...

#include <QPalette>
#include <QSet>
#include <QStringList>
#include <QStyledItemDelegate>
#include <QSyntaxHighlighter>
#include <QTextCharFormat>
#include <QTextEdit>
Include dependency graph for reactionexpressionedit.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  openswmmvis::ui::ReactionSyntaxHighlighter
 
class  openswmmvis::ui::ReactionExpressionEdit
 
class  openswmmvis::ui::ReactionExpressionDelegate
 

Namespaces

namespace  openswmmvis
 
namespace  openswmmvis::ui
 

Detailed Description

Reaction-expression editing stack (G-B1): syntax highlighter, single-line completing editor, and the table-cell delegate — the [REACTION_*] peer of TreatmentExpressionEdit, cloned from it.

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

Unlike the treatment stack's hard-coded lists, the vocabulary here is LIVE: species/coefficients/terms come from the engine's discovery getters (swmm_reaction_species_get and friends) and the hydraulic variables / functions from the engine-less static getters (swmm_reaction_hydvar_get / swmm_reaction_function_get) — the compiler's own tables, so highlighting and completion cannot drift from what actually compiles. The authoritative verdict stays with swmm_reaction_validate_expression.