mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-07 21:23:31 +01:00
84a937ae65
Creates a layer outside the game config layer system and passes it to the created gfx widows, so as to not interfere with the global config system. Supports multiple game properties being open at once. Supports editing while a game is playing, but the options only save and update the active game when the window is closed. Right-clicking will remove a property from the game ini.
74 lines
1.7 KiB
C++
74 lines
1.7 KiB
C++
// Copyright 2017 Dolphin Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <array>
|
|
|
|
#include <QWidget>
|
|
|
|
class ConfigBool;
|
|
class ConfigChoice;
|
|
class ConfigSlider;
|
|
class GameConfigWidget;
|
|
class GraphicsWindow;
|
|
class QCheckBox;
|
|
class QComboBox;
|
|
class QPushButton;
|
|
class QSlider;
|
|
class ToolTipComboBox;
|
|
class ToolTipPushButton;
|
|
enum class StereoMode : int;
|
|
|
|
namespace Config
|
|
{
|
|
class Layer;
|
|
} // namespace Config
|
|
|
|
class EnhancementsWidget final : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit EnhancementsWidget(GraphicsWindow* parent);
|
|
EnhancementsWidget(GameConfigWidget* parent, Config::Layer* layer);
|
|
|
|
private:
|
|
void LoadSettings();
|
|
void SaveSettings();
|
|
|
|
void CreateWidgets();
|
|
void ConnectWidgets();
|
|
void AddDescriptions();
|
|
void ConfigureColorCorrection();
|
|
void ConfigurePostProcessingShader();
|
|
void LoadPPShaders(StereoMode stereo_mode);
|
|
|
|
// Enhancements
|
|
ConfigChoice* m_ir_combo;
|
|
ToolTipComboBox* m_aa_combo;
|
|
ToolTipComboBox* m_texture_filtering_combo;
|
|
ToolTipComboBox* m_output_resampling_combo;
|
|
ToolTipComboBox* m_pp_effect;
|
|
ToolTipPushButton* m_configure_color_correction;
|
|
QPushButton* m_configure_pp_effect;
|
|
ConfigBool* m_scaled_efb_copy;
|
|
ConfigBool* m_per_pixel_lighting;
|
|
ConfigBool* m_widescreen_hack;
|
|
ConfigBool* m_disable_fog;
|
|
ConfigBool* m_force_24bit_color;
|
|
ConfigBool* m_disable_copy_filter;
|
|
ConfigBool* m_arbitrary_mipmap_detection;
|
|
ConfigBool* m_hdr;
|
|
|
|
// Stereoscopy
|
|
ConfigChoice* m_3d_mode;
|
|
ConfigSlider* m_3d_depth;
|
|
ConfigSlider* m_3d_convergence;
|
|
ConfigBool* m_3d_swap_eyes;
|
|
ConfigBool* m_3d_per_eye_resolution;
|
|
|
|
Config::Layer* m_game_layer = nullptr;
|
|
int m_msaa_modes;
|
|
bool m_block_save;
|
|
};
|