SedSat3 1.1.6
Sediment Source Apportionment Tool - Advanced statistical methods for environmental pollution research
Loading...
Searching...
No Matches
aboutdialog.h
Go to the documentation of this file.
1// SedSAT3 – Sediment Source Assessment Tool, version 3
2// U.S. Geological Survey. See LICENSE.md and DISCLAIMER.md in the repository root.
3
4#ifndef ABOUTDIALOG_H
5#define ABOUTDIALOG_H
6
7#include <QDialog>
8#include <QVBoxLayout>
9#include <QHBoxLayout>
10#include <QLabel>
11#include <QTextBrowser>
12#include <QPushButton>
13#include <QPixmap>
14
22class AboutDialog : public QDialog
23{
24 Q_OBJECT
25
26public:
31 explicit AboutDialog(QWidget* parent = nullptr);
32
36 ~AboutDialog() override = default;
37
42 void setVersion(const QString& version);
43
48 void setBuildDate(const QString& date);
49
54 void appendText(const QString& text);
55
59 void clearText();
60
61private:
65 void setupUI();
66
71 QWidget* createHeader();
72
77 QWidget* createInfoSection();
78
83 QTextBrowser* createDescriptionSection();
84
89 QWidget* createFooter();
90
91private:
92 QLabel* versionLabel;
94 QTextBrowser* descriptionBrowser;
95};
96
97#endif // ABOUTDIALOG_H
QWidget * createFooter()
Creates the footer with copyright and buttons.
void setVersion(const QString &version)
Sets the application version.
~AboutDialog() override=default
Destructor.
void setupUI()
Sets up the dialog UI.
AboutDialog(QWidget *parent=nullptr)
Constructs the about dialog.
QTextBrowser * descriptionBrowser
Definition aboutdialog.h:94
QWidget * createInfoSection()
Creates the information section with version and authors.
QLabel * buildDateLabel
Definition aboutdialog.h:93
QLabel * versionLabel
Definition aboutdialog.h:92
QTextBrowser * createDescriptionSection()
Creates the description text browser.
void appendText(const QString &text)
Appends additional text to the description area.
void clearText()
Clears all text from the description area.
QWidget * createHeader()
Creates the header section with logo and title.
void setBuildDate(const QString &date)
Sets the build date.
#define version