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::PerformancePage Class Reference

#include <performancepage.h>

Inheritance diagram for openswmmvis::ui::PerformancePage:
Collaboration diagram for openswmmvis::ui::PerformancePage:

Public Member Functions

 PerformancePage (SimOptionsContext &ctx, QWidget *parent=nullptr)
 
QString title () const override
 Sidebar row text, already tr()'d.
 
void read () override
 engine → widgets. Block signals while setting.
 
int write () override
 widgets → engine via ctx_.writeIfChanged; returns the sum.
 
void setMinimumStepSetter (std::function< void(double)> setter)
 Where the fast preset sends its MINIMUM_STEP value.
 
- Public Member Functions inherited from openswmmvis::ui::SimOptionsPage
 SimOptionsPage (SimOptionsContext &ctx, QWidget *parent=nullptr)
 
virtual void refreshGates ()
 Intra-page widget gates (PLAN §4.3 "widget" rows).
 
virtual void applyCapabilities ()
 One-shot per-widget disable/tooltip from ctx_.caps().
 
virtual bool validate (QString *warn)
 Validation run before Apply/OK; false pops warn and stops.
 

Additional Inherited Members

- Signals inherited from openswmmvis::ui::SimOptionsPage
void gateInputsChanged ()
 Emit from any control that feeds a PageGate.
 
- Static Protected Member Functions inherited from openswmmvis::ui::SimOptionsPage
static void tagOption (QWidget *w, const char *key)
 Tag an option widget for the reachability test.
 
- Protected Attributes inherited from openswmmvis::ui::SimOptionsPage
SimOptionsContextctx_
 

Constructor & Destructor Documentation

◆ PerformancePage()

openswmmvis::ui::PerformancePage::PerformancePage ( SimOptionsContext ctx,
QWidget *  parent = nullptr 
)
explicit

Member Function Documentation

◆ read()

void openswmmvis::ui::PerformancePage::read ( )
overridevirtual

engine → widgets. Block signals while setting.

Implements openswmmvis::ui::SimOptionsPage.

Here is the call graph for this function:

◆ setMinimumStepSetter()

void openswmmvis::ui::PerformancePage::setMinimumStepSetter ( std::function< void(double)>  setter)

Where the fast preset sends its MINIMUM_STEP value.

Wired by the dialog: to the inline hydraulics spin while that page is still part of the monolith, and to HydraulicsPage::setMinimumStep once T4 has extracted it. A default-constructed setter is a no-op, so the preset degrades to threads-only rather than crashing.

◆ title()

QString openswmmvis::ui::PerformancePage::title ( ) const
overridevirtual

Sidebar row text, already tr()'d.

Implements openswmmvis::ui::SimOptionsPage.

◆ write()

int openswmmvis::ui::PerformancePage::write ( )
overridevirtual

widgets → engine via ctx_.writeIfChanged; returns the sum.

Implements openswmmvis::ui::SimOptionsPage.

Here is the call graph for this function:

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