27#ifndef OPENSWMMVIS_UI_DIALOGS_POLLUTANTEDITORDIALOG_H
28#define OPENSWMMVIS_UI_DIALOGS_POLLUTANTEDITORDIALOG_H
44class PollutantProvider;
45class PollutantRegistry;
50class PollutantListModel;
61 QWidget *
parent =
nullptr);
67 QWidget *
parent =
nullptr);
75 const QString &initialName,
76 QWidget *
parent =
nullptr);
82 QListView *
listView() const noexcept {
return m_listView; }
84 QLineEdit *
nameEdit() const noexcept {
return m_nameEdit; }
89 void onListSelectionChanged_();
91 void onDeleteClicked_();
93 void onFieldEdited_();
95 const QString &prev,
const QString &now);
102 QString suggestUniqueName_()
const;
104 QPointer<openswmmvis::pollutant::PollutantRegistry> m_registry;
105 QPointer<SWMMModelLayer> m_layer;
106 QPointer<openswmmvis::pollutant::PollutantProvider> m_current;
109 QSplitter *m_splitter =
nullptr;
112 QListView *m_listView =
nullptr;
114 QPushButton *m_addBtn =
nullptr;
115 QPushButton *m_delBtn =
nullptr;
118 QLineEdit *m_nameEdit =
nullptr;
119 QComboBox *m_unitsCombo =
nullptr;
120 QDoubleSpinBox *m_rainSpin =
nullptr;
121 QDoubleSpinBox *m_gwSpin =
nullptr;
122 QDoubleSpinBox *m_rdiiSpin =
nullptr;
123 QDoubleSpinBox *m_initSpin =
nullptr;
124 QDoubleSpinBox *m_decaySpin =
nullptr;
125 QDoubleSpinBox *m_mwtSpin =
nullptr;
126 QCheckBox *m_snowOnlyCheck =
nullptr;
127 QComboBox *m_coPollCombo =
nullptr;
128 QDoubleSpinBox *m_coFracSpin =
nullptr;
130 bool m_suppressFieldSync =
false;
Renders the SWMM network elements (nodes, links, subcatchments, rain gages) for one OpenSWMMEngine mo...
Definition swmmmodellayer.h:133
Definition pollutantprovider.h:29
Definition pollutantregistry.h:24
Definition pollutanteditordialog.h:53
~PollutantEditorDialog() override
static PollutantEditorDialog * createNew(openswmmvis::pollutant::PollutantRegistry *registry, SWMMModelLayer *layer, QWidget *parent=nullptr)
Definition pollutanteditordialog.cpp:328
void invokeNew()
Definition pollutanteditordialog.cpp:319
QListView * listView() const noexcept
Definition pollutanteditordialog.h:82
QLineEdit * nameEdit() const noexcept
Definition pollutanteditordialog.h:84
static QString pickPollutant(openswmmvis::pollutant::PollutantRegistry *registry, SWMMModelLayer *layer, const QString &initialName, QWidget *parent=nullptr)
Definition pollutanteditordialog.cpp:339
openswmmvis::pollutant::PollutantProvider * currentProvider() const noexcept
Definition pollutanteditordialog.cpp:58
Mode
Definition pollutanteditordialog.h:56
Mode mode() const noexcept
Definition pollutanteditordialog.h:78
PollutantListModel * listModel() const noexcept
Definition pollutanteditordialog.h:83
Definition pollutantlistmodel.h:22
ArrowPlacement p
Definition linesymbollayer.cpp:27
Definition pollutantprovider.h:26
Definition openswmmvislayer.h:43
QVector< int > parent
union-find
Definition pslgminsize.cpp:176