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.h
Go to the documentation of this file.
1
19#ifndef USERFLAGVALUESDIALOG_H
20#define USERFLAGVALUESDIALOG_H
21
22#include <QDialog>
23
25
26class QTableWidget;
27
28class UserFlagValuesDialog : public QDialog
29{
30 Q_OBJECT
31
32public:
34 QWidget *parent = nullptr);
35
37 [[nodiscard]] bool wroteAnyChanges() const noexcept { return m_wroteAnyChanges; }
38
40 [[nodiscard]] QString updatedSummary() const;
41
45 bool applyChanges(QString *outError = nullptr);
46
49 void setConfirmationsEnabled(bool enabled) { m_confirmationsEnabled = enabled; }
50
52 [[nodiscard]] QTableWidget *table() const noexcept { return m_table; }
53
54private slots:
55 void onAccepted();
56
57private:
58 void reloadFromModel();
59
60 UserFlagsEditRef m_ref;
61 QTableWidget *m_table = nullptr;
62 bool m_wroteAnyChanges = false;
63 bool m_confirmationsEnabled = true;
64};
65
66#endif // USERFLAGVALUESDIALOG_H
Definition userflagvaluesdialog.h:29
QString updatedSummary() const
Definition userflagvaluesdialog.cpp:168
bool applyChanges(QString *outError=nullptr)
Definition userflagvaluesdialog.cpp:114
void setConfirmationsEnabled(bool enabled)
Definition userflagvaluesdialog.h:49
QTableWidget * table() const noexcept
Definition userflagvaluesdialog.h:52
bool wroteAnyChanges() const noexcept
Definition userflagvaluesdialog.h:37
EdgeRef ref
Definition pslgminsize.cpp:377
QVector< int > parent
union-find
Definition pslgminsize.cpp:176
Definition userflagseditref.h:29