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
openswmmvis::ui::TreatmentExpressionEdit Class Reference

#include <treatmentexpressionedit.h>

Inheritance diagram for openswmmvis::ui::TreatmentExpressionEdit:
Collaboration diagram for openswmmvis::ui::TreatmentExpressionEdit:

Signals

void validationChanged (bool ok, const QString &msg, int col)
 
void editingFinished ()
 Enter/Return pressed (single-line commit)
 

Public Member Functions

 TreatmentExpressionEdit (void *engineHandle, QWidget *parent=nullptr)
 
QString expression () const
 
void setExpression (const QString &text)
 
void validateNow ()
 

Protected Member Functions

void keyPressEvent (QKeyEvent *e) override
 
void focusInEvent (QFocusEvent *e) override
 

Detailed Description

Single-line expression editor: highlighter + Ctrl+Space / 2-char-prefix completion + debounced engine validation (via swmm_treatment_validate_expression on the injected engine handle).

Constructor & Destructor Documentation

◆ TreatmentExpressionEdit()

openswmmvis::ui::TreatmentExpressionEdit::TreatmentExpressionEdit ( void *  engineHandle,
QWidget *  parent = nullptr 
)
explicit
Here is the call graph for this function:

Member Function Documentation

◆ editingFinished

void openswmmvis::ui::TreatmentExpressionEdit::editingFinished ( )
signal

Enter/Return pressed (single-line commit)

Here is the caller graph for this function:

◆ expression()

QString openswmmvis::ui::TreatmentExpressionEdit::expression ( ) const
inline

◆ focusInEvent()

void openswmmvis::ui::TreatmentExpressionEdit::focusInEvent ( QFocusEvent *  e)
overrideprotected

◆ keyPressEvent()

void openswmmvis::ui::TreatmentExpressionEdit::keyPressEvent ( QKeyEvent *  e)
overrideprotected
Here is the call graph for this function:

◆ setExpression()

void openswmmvis::ui::TreatmentExpressionEdit::setExpression ( const QString &  text)
Here is the call graph for this function:

◆ validateNow()

void openswmmvis::ui::TreatmentExpressionEdit::validateNow ( )

Run validation immediately (also runs debounced on every edit).

Here is the call graph for this function:
Here is the caller graph for this function:

◆ validationChanged

void openswmmvis::ui::TreatmentExpressionEdit::validationChanged ( bool  ok,
const QString &  msg,
int  col 
)
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 a cell removes the expression).

Here is the caller graph for this function:

The documentation for this class was generated from the following files: