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
licenseagreementdialog.h
Go to the documentation of this file.
1
11#ifndef LICENSEAGREEMENTDIALOG_H
12#define LICENSEAGREEMENTDIALOG_H
13
14#include <QDialog>
15
16class QCheckBox;
17class QDialogButtonBox;
18class QPlainTextEdit;
19
28class LicenseAgreementDialog : public QDialog
29{
30 Q_OBJECT
31
32public:
33 explicit LicenseAgreementDialog(QWidget *parent = nullptr);
35
41 [[nodiscard]] static bool shouldShowOnStartup();
42
47 static void setShowOnStartup(bool show);
48
49private slots:
50 void onAccepted();
51 void onRejected();
52
53private:
54 void buildUi();
55 void savePreference(bool show);
56
57 QPlainTextEdit *m_licenseText = nullptr;
58 QCheckBox *m_showCheckBox = nullptr;
59 QDialogButtonBox *m_buttons = nullptr;
60};
61
62#endif // LICENSEAGREEMENTDIALOG_H
Modal dialog presenting the GPLv3 license agreement on first launch.
Definition licenseagreementdialog.h:29
static void setShowOnStartup(bool show)
Persists the "show on startup" preference.
Definition licenseagreementdialog.cpp:55
static bool shouldShowOnStartup()
Returns true if the dialog should be shown at startup.
Definition licenseagreementdialog.cpp:49
~LicenseAgreementDialog() override
QVector< int > parent
union-find
Definition pslgminsize.cpp:176