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
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
#include "DolphinQt2/GameList/GameFile.h"
|
|
|
|
|
|
|
|
class QComboBox;
|
|
|
|
class QGroupBox;
|
|
|
|
class QTextEdit;
|
|
|
|
class QLineEdit;
|
|
|
|
|
|
|
|
class InfoWidget final : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit InfoWidget(const GameFile& game);
|
|
|
|
|
2017-06-30 09:24:26 +00:00
|
|
|
private:
|
2016-02-29 08:52:15 +00:00
|
|
|
void ComputeChecksum();
|
|
|
|
void ChangeLanguage();
|
|
|
|
void SaveBanner();
|
|
|
|
|
|
|
|
QGroupBox* CreateBannerDetails();
|
|
|
|
QGroupBox* CreateISODetails();
|
|
|
|
QLineEdit* CreateValueDisplay() { return CreateValueDisplay(QStringLiteral("")); };
|
|
|
|
QLineEdit* CreateValueDisplay(const QString& value);
|
|
|
|
QWidget* CreateChecksumComputer();
|
|
|
|
void CreateLanguageSelector();
|
|
|
|
QWidget* CreateBannerGraphic();
|
|
|
|
|
|
|
|
GameFile m_game;
|
|
|
|
QLineEdit* m_checksum_result;
|
|
|
|
QComboBox* m_language_selector;
|
|
|
|
QLineEdit* m_long_name;
|
|
|
|
QLineEdit* m_short_name;
|
|
|
|
QLineEdit* m_short_maker;
|
|
|
|
QLineEdit* m_long_maker;
|
|
|
|
QTextEdit* m_description;
|
|
|
|
};
|