2016-02-29 01:52:15 -07:00
|
|
|
// Copyright 2016 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2+
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2017-12-31 12:33:36 -07:00
|
|
|
#include <string>
|
|
|
|
|
2016-02-29 01:52:15 -07:00
|
|
|
#include <QWidget>
|
|
|
|
|
2017-12-31 12:33:36 -07:00
|
|
|
#include "UICommon/GameFile.h"
|
2016-02-29 01:52:15 -07:00
|
|
|
|
|
|
|
class QComboBox;
|
|
|
|
class QGroupBox;
|
|
|
|
class QLineEdit;
|
2017-12-31 12:33:36 -07:00
|
|
|
class QPixmap;
|
|
|
|
class QTextEdit;
|
2016-02-29 01:52:15 -07:00
|
|
|
|
|
|
|
class InfoWidget final : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2017-12-31 12:33:36 -07:00
|
|
|
explicit InfoWidget(const UICommon::GameFile& game);
|
2016-02-29 01:52:15 -07:00
|
|
|
|
2017-06-30 03:24:26 -06:00
|
|
|
private:
|
2016-02-29 01:52:15 -07:00
|
|
|
void ComputeChecksum();
|
|
|
|
void ChangeLanguage();
|
|
|
|
void SaveBanner();
|
|
|
|
|
|
|
|
QGroupBox* CreateBannerDetails();
|
|
|
|
QGroupBox* CreateISODetails();
|
|
|
|
QLineEdit* CreateValueDisplay(const QString& value);
|
2017-12-31 12:33:36 -07:00
|
|
|
QLineEdit* CreateValueDisplay(const std::string& value = "");
|
2016-02-29 01:52:15 -07:00
|
|
|
QWidget* CreateChecksumComputer();
|
|
|
|
void CreateLanguageSelector();
|
2017-12-31 12:33:36 -07:00
|
|
|
QWidget* CreateBannerGraphic(const QPixmap& image);
|
2016-02-29 01:52:15 -07:00
|
|
|
|
2017-12-31 12:33:36 -07:00
|
|
|
UICommon::GameFile m_game;
|
2016-02-29 01:52:15 -07:00
|
|
|
QLineEdit* m_checksum_result;
|
|
|
|
QComboBox* m_language_selector;
|
2018-03-17 09:07:51 -06:00
|
|
|
QLineEdit* m_name;
|
|
|
|
QLineEdit* m_maker;
|
2016-02-29 01:52:15 -07:00
|
|
|
QTextEdit* m_description;
|
|
|
|
};
|