2022-12-04 11:03:45 +00:00
|
|
|
// SPDX-FileCopyrightText: 2019-2022 Connor McLaughlin <stenzek@gmail.com>
|
|
|
|
// SPDX-License-Identifier: (GPL-3.0 OR CC-BY-NC-ND-4.0)
|
|
|
|
|
2022-07-11 13:03:29 +00:00
|
|
|
#pragma once
|
|
|
|
#include "common/types.h"
|
|
|
|
#include <QtWidgets/QWidget>
|
|
|
|
|
|
|
|
#include "ui_gamesummarywidget.h"
|
|
|
|
|
|
|
|
enum class DiscRegion : u8;
|
|
|
|
|
|
|
|
namespace GameDatabase {
|
|
|
|
struct Entry;
|
|
|
|
}
|
|
|
|
|
2023-11-06 13:01:38 +00:00
|
|
|
class SettingsWindow;
|
2022-07-11 13:03:29 +00:00
|
|
|
|
|
|
|
class GameSummaryWidget : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
GameSummaryWidget(const std::string& path, const std::string& serial, DiscRegion region,
|
2023-11-06 13:01:38 +00:00
|
|
|
const GameDatabase::Entry* entry, SettingsWindow* dialog, QWidget* parent);
|
2022-07-11 13:03:29 +00:00
|
|
|
~GameSummaryWidget();
|
|
|
|
|
|
|
|
private Q_SLOTS:
|
|
|
|
void onInputProfileChanged(int index);
|
|
|
|
void onComputeHashClicked();
|
|
|
|
|
|
|
|
private:
|
|
|
|
void populateUi(const std::string& path, const std::string& serial, DiscRegion region,
|
|
|
|
const GameDatabase::Entry* entry);
|
|
|
|
void populateTracksInfo();
|
|
|
|
|
|
|
|
Ui::GameSummaryWidget m_ui;
|
2023-11-06 13:01:38 +00:00
|
|
|
SettingsWindow* m_dialog;
|
2022-07-11 13:03:29 +00:00
|
|
|
|
|
|
|
std::string m_path;
|
|
|
|
std::string m_redump_search_keyword;
|
|
|
|
};
|