ORE Studio 0.0.4
Loading...
Searching...
No Matches
AboutDialog.hpp
1/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2 *
3 * Copyright (C) 2024-2025 Marco Craveiro <marco.craveiro@gmail.com>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
18 * MA 02110-1301, USA.
19 *
20 */
21#ifndef ORES_QT_ABOUT_DIALOG_HPP
22#define ORES_QT_ABOUT_DIALOG_HPP
23
24#include <QDialog>
25#include "ui_AboutDialog.h"
26#include "ores.qt/LogoLabel.hpp"
27#include "ores.utility/log/make_logger.hpp"
28
29namespace Ui {
30
31class AboutDialog;
32
33}
34
35namespace ores::qt {
36
47class AboutDialog final : public QDialog {
48 Q_OBJECT
49
50private:
51 inline static std::string_view logger_name = "ores.qt.about_dialog";
52
53 [[nodiscard]] static auto& lg() {
54 using namespace ores::utility::log;
55 static auto instance = make_logger(logger_name);
56 return instance;
57 }
58
59public:
60 explicit AboutDialog(QWidget* parent = nullptr);
61 ~AboutDialog() override;
62
63private:
64 void showEvent(QShowEvent* e) override;
65
76 void updateVersionLabels();
77
78private:
79 Ui::AboutDialog ui_;
80 LogoLabel* logoLabel_;
81};
82
83}
84
85#endif
Qt-based graphical user interface for ORE Studio.
Definition AboutDialog.hpp:35
Implements logging for ORE Studio.
Definition lifecycle_manager.hpp:30
Modal dialog displaying application version and build metadata.
Definition AboutDialog.hpp:47