LibrePCB Developers Documentation
aboutdialog.h
Go to the documentation of this file.
1/*
2 * LibrePCB - Professional EDA for everyone!
3 * Copyright (C) 2018 LibrePCB Developers, see AUTHORS.md for contributors.
4 * https://librepcb.org/
5 *
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef LIBREPCB_EDITOR_ABOUTDIALOG_H
21#define LIBREPCB_EDITOR_ABOUTDIALOG_H
22
23/*******************************************************************************
24 * Includes
25 ******************************************************************************/
27
28#include <QAbstractButton>
29#include <QDialog>
30#include <QLabel>
31
32/*******************************************************************************
33 * Namespace / Forward Declarations
34 ******************************************************************************/
35namespace librepcb {
36
37class WorkspaceSettings;
38
39namespace editor {
40
41namespace Ui {
42class AboutDialog;
43}
44
45/*******************************************************************************
46 * Class AboutDialog
47 ******************************************************************************/
48
52class AboutDialog final : public QDialog {
53 Q_OBJECT
54
55public:
56 // Constructors / Destructor
57 AboutDialog() = delete;
58 AboutDialog(const AboutDialog& other) = delete;
59 explicit AboutDialog(const WorkspaceSettings& settings,
60 QWidget* parent = nullptr) noexcept;
61 ~AboutDialog() noexcept;
62
63 // Operator Overloadings
64 AboutDialog& operator=(const AboutDialog& rhs) = delete;
65
66private: // Methods
67 void openExternalLink(const QString& url) noexcept;
68
69private: // Data
71 QScopedPointer<Ui::AboutDialog> mUi;
72};
73
74/*******************************************************************************
75 * End of File
76 ******************************************************************************/
77
78} // namespace editor
79} // namespace librepcb
80
81#endif
Container for all workspace related settings.
Definition: workspacesettings.h:60
The AboutDialog class.
Definition: aboutdialog.h:52
AboutDialog(const AboutDialog &other)=delete
QScopedPointer< Ui::AboutDialog > mUi
Definition: aboutdialog.h:71
const WorkspaceSettings & mSettings
Definition: aboutdialog.h:70
void openExternalLink(const QString &url) noexcept
Definition: aboutdialog.cpp:204
Definition: occmodel.cpp:77