Debian Codegraph @

Source/Core/DolphinQt/Config/InfoWidget.h

raw symbols SCIP
1 // Copyright 2016 Dolphin Emulator Project
2 // SPDX-License-Identifier: GPL-2.0-or-later
3
4 #pragma once
5
6 #include <memory>
7 #include <string>
8
9 #include <QWidget>
10
11 #include "UICommon/GameFile.h"
12
13 namespace DiscIO
14 {
15 class Volume;
16 }
17
18 class QComboBox;
19 class QGroupBox;
20 class QLineEdit;
21 class QPixmap;
22 class QTextEdit;
23
24 class InfoWidget final : public QWidget
25 {
26 Q_OBJECT
27 public:
28 explicit InfoWidget(const UICommon::GameFile& game);
29 ~InfoWidget() override;
30
31 private:
32 void ChangeLanguage();
33 void SaveBanner();
34
35 QGroupBox* CreateFileDetails();
36 QGroupBox* CreateGameDetails();
37 QGroupBox* CreateBannerDetails();
38 QLineEdit* CreateValueDisplay(const QString& value);
39 QLineEdit* CreateValueDisplay(const std::string& value = "");
40 void CreateLanguageSelector();
41 QWidget* CreateBannerGraphic(const QPixmap& image);
42
43 std::unique_ptr<DiscIO::Volume> m_volume;
44 UICommon::GameFile m_game;
45 QComboBox* m_language_selector;
46 QLineEdit* m_name = {};
47 QLineEdit* m_maker = {};
48 QTextEdit* m_description = {};
49 };