You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
duckstation/src/duckstation-qt/gamepatchsettingswidget.h

52 lines
1.1 KiB
C++

// SPDX-FileCopyrightText: 2019-2024 Connor McLaughlin <stenzek@gmail.com>
// SPDX-License-Identifier: CC-BY-NC-ND-4.0
#pragma once
#include "ui_gamepatchdetailswidget.h"
#include "ui_gamepatchsettingswidget.h"
#include <QtWidgets/QWidget>
namespace GameList {
struct Entry;
}
class SettingsWindow;
class GamePatchDetailsWidget : public QWidget
{
Q_OBJECT
public:
GamePatchDetailsWidget(std::string name, const std::string& author, const std::string& description,
bool disallowed_for_achievements, bool enabled, SettingsWindow* dialog, QWidget* parent);
~GamePatchDetailsWidget();
private:
void onEnabledStateChanged(Qt::CheckState state);
Ui::GamePatchDetailsWidget m_ui;
SettingsWindow* m_dialog;
std::string m_name;
};
class GamePatchSettingsWidget : public QWidget
{
Q_OBJECT
public:
GamePatchSettingsWidget(SettingsWindow* dialog, QWidget* parent);
~GamePatchSettingsWidget();
void disableAllPatches();
private:
void reloadList();
void onReloadClicked();
Ui::GamePatchSettingsWidget m_ui;
SettingsWindow* m_dialog;
};