2024-07-30 11:42:36 +00:00
|
|
|
// SPDX-FileCopyrightText: 2002-2024 PCSX2 Dev Team
|
|
|
|
// SPDX-License-Identifier: GPL-3.0+
|
2021-12-13 12:12:54 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QtWidgets/QWidget>
|
|
|
|
|
|
|
|
#include "ui_GraphicsSettingsWidget.h"
|
|
|
|
|
2023-12-22 11:57:49 +00:00
|
|
|
#include "common/Pcsx2Defs.h"
|
|
|
|
|
2022-02-15 14:29:18 +00:00
|
|
|
enum class GSRendererType : s8;
|
|
|
|
|
2023-10-14 08:45:09 +00:00
|
|
|
class SettingsWindow;
|
2021-12-13 12:12:54 +00:00
|
|
|
|
|
|
|
class GraphicsSettingsWidget : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2023-10-14 08:45:09 +00:00
|
|
|
GraphicsSettingsWidget(SettingsWindow* dialog, QWidget* parent);
|
2021-12-13 12:12:54 +00:00
|
|
|
~GraphicsSettingsWidget();
|
|
|
|
|
|
|
|
Q_SIGNALS:
|
|
|
|
void fullscreenModesChanged(const QStringList& modes);
|
|
|
|
|
|
|
|
private Q_SLOTS:
|
2022-08-01 23:58:29 +00:00
|
|
|
void onTextureFilteringChange();
|
|
|
|
void onSWTextureFilteringChange();
|
2021-12-13 12:12:54 +00:00
|
|
|
void onRendererChanged(int index);
|
|
|
|
void onAdapterChanged(int index);
|
2024-06-30 14:21:03 +00:00
|
|
|
void onUpscaleMultiplierChanged();
|
2022-03-26 04:06:40 +00:00
|
|
|
void onTrilinearFilteringChanged();
|
2022-03-24 00:58:29 +00:00
|
|
|
void onGpuPaletteConversionChanged(int state);
|
2023-03-19 12:24:29 +00:00
|
|
|
void onCPUSpriteRenderBWChanged();
|
2021-12-13 12:12:54 +00:00
|
|
|
void onFullscreenModeChanged(int index);
|
2024-05-17 10:19:53 +00:00
|
|
|
void onTextureDumpChanged();
|
|
|
|
void onTextureReplacementChanged();
|
2022-03-26 18:16:25 +00:00
|
|
|
void onShadeBoostChanged();
|
2024-07-29 05:43:28 +00:00
|
|
|
void onMessagesPosChanged();
|
|
|
|
void onPerformancePosChanged();
|
2023-01-19 14:01:54 +00:00
|
|
|
void onCaptureContainerChanged();
|
2024-07-20 12:14:28 +00:00
|
|
|
void onCaptureCodecChanged();
|
2023-01-19 14:01:54 +00:00
|
|
|
void onEnableVideoCaptureChanged();
|
2023-01-12 09:30:39 +00:00
|
|
|
void onEnableVideoCaptureArgumentsChanged();
|
2023-01-19 14:01:54 +00:00
|
|
|
void onVideoCaptureAutoResolutionChanged();
|
|
|
|
void onEnableAudioCaptureChanged();
|
|
|
|
void onEnableAudioCaptureArgumentsChanged();
|
2021-12-13 12:12:54 +00:00
|
|
|
|
|
|
|
private:
|
2022-02-15 14:29:18 +00:00
|
|
|
GSRendererType getEffectiveRenderer() const;
|
2022-06-18 10:48:03 +00:00
|
|
|
void updateRendererDependentOptions();
|
2024-06-30 14:21:03 +00:00
|
|
|
void populateUpscaleMultipliers(u32 max_upscale_multiplier);
|
2023-03-12 13:44:53 +00:00
|
|
|
void resetManualHardwareFixes();
|
2022-02-15 14:29:18 +00:00
|
|
|
|
2023-10-14 08:45:09 +00:00
|
|
|
SettingsWindow* m_dialog;
|
2022-02-15 14:29:18 +00:00
|
|
|
|
2021-12-13 12:12:54 +00:00
|
|
|
Ui::GraphicsSettingsWidget m_ui;
|
|
|
|
|
2022-06-18 10:48:03 +00:00
|
|
|
bool m_hardware_renderer_visible = false;
|
|
|
|
bool m_software_renderer_visible = false;
|
2021-12-13 12:12:54 +00:00
|
|
|
};
|