mirror of
https://github.com/PCSX2/pcsx2.git
synced 2025-12-16 04:08:48 +00:00
Some checks are pending
🐧 Linux Builds / AppImage (push) Waiting to run
🐧 Linux Builds / Flatpak (push) Waiting to run
🍎 MacOS Builds / Defaults (push) Waiting to run
🖥️ Windows Builds / Lint VS Project Files (push) Waiting to run
🖥️ Windows Builds / SSE4 (push) Blocked by required conditions
🖥️ Windows Builds / AVX2 (push) Blocked by required conditions
🖥️ Windows Builds / CMake (push) Waiting to run
56 lines
1.1 KiB
C++
56 lines
1.1 KiB
C++
// SPDX-FileCopyrightText: 2002-2025 PCSX2 Dev Team
|
|
// SPDX-License-Identifier: GPL-3.0+
|
|
|
|
#pragma once
|
|
|
|
#include "ui_GamePatchDetailsWidget.h"
|
|
#include "ui_GamePatchSettingsWidget.h"
|
|
|
|
#include "SettingsWidget.h"
|
|
|
|
#include "pcsx2/Patch.h"
|
|
|
|
namespace GameList
|
|
{
|
|
struct Entry;
|
|
}
|
|
|
|
class GamePatchDetailsWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
GamePatchDetailsWidget(const Patch::PatchInfo& info, bool tristate, Qt::CheckState checkState,
|
|
SettingsWindow* dialog, QWidget* parent);
|
|
~GamePatchDetailsWidget();
|
|
|
|
private Q_SLOTS:
|
|
void onEnabledStateChanged(int state);
|
|
|
|
private:
|
|
Ui::GamePatchDetailsWidget m_ui;
|
|
SettingsWindow* m_dialog;
|
|
std::string m_name;
|
|
};
|
|
|
|
class GamePatchSettingsWidget : public SettingsWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
GamePatchSettingsWidget(SettingsWindow* settings_dialog, QWidget* parent);
|
|
void disableAllPatches();
|
|
~GamePatchSettingsWidget();
|
|
|
|
private Q_SLOTS:
|
|
void onReloadClicked();
|
|
|
|
private:
|
|
void reloadList();
|
|
void setUnlabeledPatchesWarningVisibility(bool visible);
|
|
void setGlobalWsPatchNoteVisibility(bool visible);
|
|
void setGlobalNiPatchNoteVisibility(bool visible);
|
|
|
|
Ui::GamePatchSettingsWidget m_ui;
|
|
};
|