![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
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>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 |
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.
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.