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

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>
Include dependency graph for treatmentexpressionedit.h:
This graph shows which files directly or indirectly include this file:

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
 

Detailed Description

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.

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

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.