![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
#include <gwfexpressionedit.h>
Signals | |
| void | validationChanged (bool ok, const QString &msg, int col) |
| void | editingFinished () |
| Enter/Return pressed (single-line commit) | |
Public Member Functions | |
| GwfExpressionEdit (void *engineHandle, QWidget *parent=nullptr) | |
| QString | expression () const |
| void | setExpression (const QString &text) |
| void | validateNow () |
| bool | isValid () const |
| QStringList | variableNames () const |
| QStringList | variableDescriptions () const |
| QStringList | functionNames () const |
| void | insertAtCursor (const QString &text) |
Protected Member Functions | |
| void | keyPressEvent (QKeyEvent *e) override |
| void | focusInEvent (QFocusEvent *e) override |
Single-line [GWF] expression editor: highlighter + Ctrl+Space / 2-char-prefix completion (name — description) + debounced engine validation via swmm_gwf_validate_expression on the injected handle.
|
explicit |
|
signal |
Enter/Return pressed (single-line commit)
|
inline |
|
overrideprotected |
|
inline |
| void openswmmvis::ui::GwfExpressionEdit::insertAtCursor | ( | const QString & | text | ) |
Insert text at the cursor (Insert-variable menu).
|
inline |
Last verdict from validateNow() (true until the first run).
|
overrideprotected |
| void openswmmvis::ui::GwfExpressionEdit::setExpression | ( | const QString & | text | ) |
| void openswmmvis::ui::GwfExpressionEdit::validateNow | ( | ) |
Run validation immediately (also runs debounced on every edit).
|
signal |
ok=true → msg empty; otherwise the engine diagnostic + 0-based column (-1 when not attributable). Empty text reports ok with an empty message (clearing removes the expression).
|
inline |
|
inline |
Engine vocabulary as loaded at construction — variables in the engine's order, descriptions parallel to variableNames(). Used by the dialog's "Insert variable" menu.