![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
Treatment-expression editing stack (iteration 4): syntax highlighter, single-line completing editor, and the table-cell delegate that hosts it — the [TREATMENT] peer of the control rules editor's RuleSyntaxHighlighter / RuleCodeEditor. More...
#include <QPalette>#include <QStringList>#include <QStyledItemDelegate>#include <QSyntaxHighlighter>#include <QTextCharFormat>#include <QTextEdit>Go to the source code of this file.
Classes | |
| class | openswmmvis::ui::TreatmentSyntaxHighlighter |
| Palette-driven highlighter for one treatment expression line. More... | |
| class | openswmmvis::ui::TreatmentExpressionEdit |
| class | openswmmvis::ui::TreatmentExpressionDelegate |
Namespaces | |
| namespace | openswmmvis |
| namespace | openswmmvis::ui |
Treatment-expression editing stack (iteration 4): syntax highlighter, single-line completing editor, and the table-cell delegate that hosts it — the [TREATMENT] peer of the control rules editor's RuleSyntaxHighlighter / RuleCodeEditor.
VOCAB DRIFT GUARD: the variable/function lists mirror the engine treatment grammar (openswmm.engine src/engine/quality/Treatment.cpp var_map/func_map — variables C R DT HRT Q V D AREA, functions exp log ln sqrt min max abs sgn step). The authoritative accept/reject verdict comes from swmm_treatment_validate_expression, so highlighting can lag the grammar without ever mis-validating — but keep the lists in sync when the engine grows a variable.