45 lines
1001 B
C++
45 lines
1001 B
C++
// 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);
|
|
|
|
private slots:
|
|
void ComputeChecksum();
|
|
void ChangeLanguage();
|
|
void SaveBanner();
|
|
|
|
private:
|
|
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;
|
|
};
|