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

[GWF] custom groundwater-flow expression editing stack: syntax highlighter + single-line completing editor with debounced engine validation — the groundwater peer of TreatmentExpressionEdit / TreatmentSyntaxHighlighter. More...

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

Go to the source code of this file.

Classes

class  openswmmvis::ui::GwfSyntaxHighlighter
 Palette-driven highlighter for one [GWF] expression line. More...
 
class  openswmmvis::ui::GwfExpressionEdit
 

Namespaces

namespace  openswmmvis
 
namespace  openswmmvis::ui
 

Detailed Description

[GWF] custom groundwater-flow expression editing stack: syntax highlighter + single-line completing editor with debounced engine validation — the groundwater peer of TreatmentExpressionEdit / TreatmentSyntaxHighlighter.

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, the vocabulary is NOT hard-coded: both the highlighter and the completer read the variable / function lists from the engine (swmm_gwf_variable_* / swmm_gwf_function_*) at construction, so the GUI cannot drift from the grammar. A static fallback list is used only when no engine handle is available (headless previews).