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
UserFlagValuesDialog Class Reference

#include <userflagvaluesdialog.h>

Inheritance diagram for UserFlagValuesDialog:
Collaboration diagram for UserFlagValuesDialog:

Public Member Functions

 UserFlagValuesDialog (UserFlagsEditRef ref, QWidget *parent=nullptr)
 
bool wroteAnyChanges () const noexcept
 
QString updatedSummary () const
 
bool applyChanges (QString *outError=nullptr)
 
void setConfirmationsEnabled (bool enabled)
 
QTableWidget * table () const noexcept
 

Constructor & Destructor Documentation

◆ UserFlagValuesDialog()

UserFlagValuesDialog::UserFlagValuesDialog ( UserFlagsEditRef  ref,
QWidget *  parent = nullptr 
)
explicit

Member Function Documentation

◆ applyChanges()

bool UserFlagValuesDialog::applyChanges ( QString *  outError = nullptr)

Commit the staged table through UserFlagsModel. Returns false (with *outError set) when the engine rejects a value — e.g. a non-numeric string for an INTEGER flag. Public for tests.

Here is the call graph for this function:

◆ setConfirmationsEnabled()

void UserFlagValuesDialog::setConfirmationsEnabled ( bool  enabled)
inline

Test hook — when false, engine-rejection warnings are returned silently instead of raising a QMessageBox. Defaults to true.

◆ table()

QTableWidget * UserFlagValuesDialog::table ( ) const
inlinenoexcept

The staged values table. Column 2 holds the value editors.

◆ updatedSummary()

QString UserFlagValuesDialog::updatedSummary ( ) const

Recomputed cell summary for the button to pull back after exec().

Here is the call graph for this function:

◆ wroteAnyChanges()

bool UserFlagValuesDialog::wroteAnyChanges ( ) const
inlinenoexcept

True once OK committed at least one set/clear to the engine.


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