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-2026 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 <QWidget>
25#include "ui_AboutDialog.h"
26#include "ores.qt/LogoLabel.hpp"
27#include "ores.logging/make_logger.hpp"
28
29namespace ores::qt {
30
31class ClientManager;
32
42class AboutDialog final : public QWidget {
43 Q_OBJECT
44
45private:
46 inline static std::string_view logger_name = "ores.qt.about_dialog";
47
48 [[nodiscard]] static auto& lg() {
49 using namespace ores::logging;
50 static auto instance = make_logger(logger_name);
51 return instance;
52 }
53
54public:
55 explicit AboutDialog(ClientManager* clientManager = nullptr,
56 QWidget* parent = nullptr);
57 ~AboutDialog() override;
58
59protected:
60 void showEvent(QShowEvent* e) override;
61
62private:
70 void populateSystemInfo();
71 Ui::AboutDialog ui_;
72 LogoLabel* logoLabel_;
73 ClientManager* clientManager_;
74};
75
76}
77
78#endif
Implements logging infrastructure for ORE Studio.
Definition boost_severity.hpp:28
Qt-based graphical user interface for ORE Studio.
Definition AboutDialog.hpp:29
Widget displaying application version, build metadata, and runtime system information,...
Definition AboutDialog.hpp:42
Manages the lifecycle of the NATS client and login state.
Definition ClientManager.hpp:109