2016-02-29 08:52:15 +00:00
|
|
|
// Copyright 2016 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2+
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2021-02-14 14:33:25 +00:00
|
|
|
#include <memory>
|
2017-12-31 19:33:36 +00:00
|
|
|
#include <string>
|
|
|
|
|
2016-02-29 08:52:15 +00:00
|
|
|
#include <QWidget>
|
|
|
|
|
2017-12-31 19:33:36 +00:00
|
|
|
#include "UICommon/GameFile.h"
|
2016-02-29 08:52:15 +00:00
|
|
|
|
2021-02-14 14:33:25 +00:00
|
|
|
namespace DiscIO
|
|
|
|
{
|
|
|
|
class Volume;
|
|
|
|
}
|
|
|
|
|
2016-02-29 08:52:15 +00:00
|
|
|
class QComboBox;
|
|
|
|
class QGroupBox;
|
|
|
|
class QLineEdit;
|
2017-12-31 19:33:36 +00:00
|
|
|
class QPixmap;
|
|
|
|
class QTextEdit;
|
2016-02-29 08:52:15 +00:00
|
|
|
|
|
|
|
class InfoWidget final : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2017-12-31 19:33:36 +00:00
|
|
|
explicit InfoWidget(const UICommon::GameFile& game);
|
2021-02-14 14:33:25 +00:00
|
|
|
~InfoWidget() override;
|
2016-02-29 08:52:15 +00:00
|
|
|
|
2017-06-30 09:24:26 +00:00
|
|
|
private:
|
2016-02-29 08:52:15 +00:00
|
|
|
void ChangeLanguage();
|
|
|
|
void SaveBanner();
|
|
|
|
|
2020-06-21 18:41:50 +00:00
|
|
|
QGroupBox* CreateFileDetails();
|
|
|
|
QGroupBox* CreateGameDetails();
|
2016-02-29 08:52:15 +00:00
|
|
|
QGroupBox* CreateBannerDetails();
|
|
|
|
QLineEdit* CreateValueDisplay(const QString& value);
|
2017-12-31 19:33:36 +00:00
|
|
|
QLineEdit* CreateValueDisplay(const std::string& value = "");
|
2016-02-29 08:52:15 +00:00
|
|
|
void CreateLanguageSelector();
|
2017-12-31 19:33:36 +00:00
|
|
|
QWidget* CreateBannerGraphic(const QPixmap& image);
|
2016-02-29 08:52:15 +00:00
|
|
|
|
2021-02-14 14:33:25 +00:00
|
|
|
std::unique_ptr<DiscIO::Volume> m_volume;
|
2017-12-31 19:33:36 +00:00
|
|
|
UICommon::GameFile m_game;
|
2016-02-29 08:52:15 +00:00
|
|
|
QComboBox* m_language_selector;
|
2019-03-24 01:10:09 +00:00
|
|
|
QLineEdit* m_name = {};
|
|
|
|
QLineEdit* m_maker = {};
|
|
|
|
QTextEdit* m_description = {};
|
2016-02-29 08:52:15 +00:00
|
|
|
};
|