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::SimOptionsPage Class Referenceabstract

#include <simoptionspage.h>

Inheritance diagram for openswmmvis::ui::SimOptionsPage:
Collaboration diagram for openswmmvis::ui::SimOptionsPage:

Signals

void gateInputsChanged ()
 Emit from any control that feeds a PageGate.
 

Public Member Functions

 SimOptionsPage (SimOptionsContext &ctx, QWidget *parent=nullptr)
 
virtual QString title () const =0
 Sidebar row text, already tr()'d.
 
virtual void read ()=0
 engine → widgets. Block signals while setting.
 
virtual int write ()=0
 widgets → engine via ctx_.writeIfChanged; returns the sum.
 
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.
 

Static Protected Member Functions

static void tagOption (QWidget *w, const char *key)
 Tag an option widget for the reachability test.
 

Protected Attributes

SimOptionsContextctx_
 

Constructor & Destructor Documentation

◆ SimOptionsPage()

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

Member Function Documentation

◆ applyCapabilities()

virtual void openswmmvis::ui::SimOptionsPage::applyCapabilities ( )
inlinevirtual

One-shot per-widget disable/tooltip from ctx_.caps().

Reimplemented in openswmmvis::ui::FilesPage, openswmmvis::ui::HydraulicsPage, and openswmmvis::ui::QualityPage.

◆ gateInputsChanged

void openswmmvis::ui::SimOptionsPage::gateInputsChanged ( )
signal

Emit from any control that feeds a PageGate.

Here is the caller graph for this function:

◆ read()

◆ refreshGates()

virtual void openswmmvis::ui::SimOptionsPage::refreshGates ( )
inlinevirtual

Intra-page widget gates (PLAN §4.3 "widget" rows).

Reimplemented in openswmmvis::ui::HydraulicsPage, and openswmmvis::ui::QualityPage.

◆ tagOption()

void openswmmvis::ui::SimOptionsPage::tagOption ( QWidget *  w,
const char *  key 
)
staticprotected

Tag an option widget for the reachability test.

Call for EVERY widget that reads or writes an option key: tagOption(m_minSlopeSpin, "MIN_SLOPE"). Widgets that edit a non-[OPTIONS] thing are tagged with the section name instead: tagOption(w, "[EVENTS]").

Null-tolerant, and repeated tags accumulate into a comma-separated list so one editor can own two keys (a QDateTimeEdit writes DATE and TIME).

◆ title()

◆ validate()

virtual bool openswmmvis::ui::SimOptionsPage::validate ( QString *  warn)
inlinevirtual

Validation run before Apply/OK; false pops warn and stops.

Reimplemented in openswmmvis::ui::DatesPage, and openswmmvis::ui::FilesPage.

◆ write()

Member Data Documentation

◆ ctx_

SimOptionsContext& openswmmvis::ui::SimOptionsPage::ctx_
protected

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