25#ifndef OPENSWMM_UI_DIALOGS_INITIALQUALITYDIALOG_H
26#define OPENSWMM_UI_DIALOGS_INITIALQUALITYDIALOG_H
28#include <openswmm/engine/openswmm_engine.h>
49 QWidget *
parent =
nullptr);
76 void readFromEngine();
78 void populateElementCombo(
int row);
81 QTableWidget *m_table =
nullptr;
82 QLabel *m_hintLabel =
nullptr;
85 QLineEdit *m_fileEdit =
nullptr;
87 bool m_wroteAnyChanges =
false;
88 int m_lastWriteCount = 0;
89 int m_scopeIsLink = -1;
90 int m_scopeElemIdx = -1;
Non-modal editor for the per-element initial-quality table.
Definition initialqualitydialog.h:44
bool wroteAnyChanges() const
True once OK has written at least one change to the engine.
Definition initialqualitydialog.h:61
int lastWriteCount() const
Number of engine writes the last OK performed (0 when the dialog was accepted with no edits)....
Definition initialqualitydialog.h:65
~InitialQualityDialog() override=default
void setElementScope(int isLink, const QString &elementName)
Restrict the dialog to one node (isLink 0) or link (isLink 1). The Scope / Element columns collapse,...
Definition initialqualitydialog.cpp:158
Definition gwsourcesummary.h:21
void * SWMM_Engine
Definition objectdefaultsapplier.h:19
QVector< int > parent
union-find
Definition pslgminsize.cpp:176