15#ifndef USERFLAGSDIALOG_H
16#define USERFLAGSDIALOG_H
24class QDialogButtonBox;
41 QWidget *
parent =
nullptr);
57 [[nodiscard]] QTableWidget *
table() const noexcept {
return m_table; }
62 const QString &description);
66 void onRemoveClicked();
67 void onApplyClicked();
71 void reloadFromModel();
75 QTableWidget *m_table =
nullptr;
76 QPushButton *m_addButton =
nullptr;
77 QPushButton *m_removeButton =
nullptr;
78 QDialogButtonBox *m_buttonBox =
nullptr;
79 bool m_wroteAnyChanges =
false;
80 bool m_confirmationsEnabled =
true;
Staged editor for user-flag definitions.
Definition userflagsdialog.h:36
QTableWidget * table() const noexcept
Definition userflagsdialog.h:57
bool wroteAnyChanges() const noexcept
Definition userflagsdialog.h:44
void setConfirmationsEnabled(bool enabled)
Definition userflagsdialog.h:54
bool applyChanges(QString *outError=nullptr)
Definition userflagsdialog.cpp:162
void addRow(const QString &name, openswmmvis::ui::UserFlagsModel::FlagType type, const QString &description)
Definition userflagsdialog.cpp:113
Definition userflagsmodel.h:32
FlagType
Definition userflagsmodel.h:36
enum OpenSWMM::Render::@788::Value::Type type
QVector< int > parent
union-find
Definition pslgminsize.cpp:176
QString name
Definition sectionmodelbuilders.cpp:474
Engine-scoped store for user flags ([USER_FLAGS] / [USER_FLAG_VALUES]) — Phase 1 of docs/USER_FLAGS_U...