mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-11 08:39:13 +01:00
2237a4a7aa
GraphicsChoice is used by the panes in the Graphics config window to create combo boxes that change their associated config setting, and update their own state when something else changes the config setting. Despite its current name nothing about this class is particular to the Graphics window, so renaming it to ConfigChoice better reflects its purpose. This should also make it less confusing when ConfigChoices are eventually added to the other config windows.
59 lines
1.3 KiB
C++
59 lines
1.3 KiB
C++
// Copyright 2017 Dolphin Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <array>
|
|
|
|
#include "DolphinQt/Config/Graphics/GraphicsWidget.h"
|
|
|
|
class ConfigBool;
|
|
class ConfigChoice;
|
|
class GraphicsSlider;
|
|
class GraphicsWindow;
|
|
class QCheckBox;
|
|
class QComboBox;
|
|
class QPushButton;
|
|
class QSlider;
|
|
class ToolTipComboBox;
|
|
|
|
class EnhancementsWidget final : public GraphicsWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit EnhancementsWidget(GraphicsWindow* parent);
|
|
|
|
private:
|
|
void LoadSettings() override;
|
|
void SaveSettings() override;
|
|
|
|
void CreateWidgets();
|
|
void ConnectWidgets();
|
|
void AddDescriptions();
|
|
void ConfigurePostProcessingShader();
|
|
void LoadPPShaders();
|
|
|
|
// Enhancements
|
|
ConfigChoice* m_ir_combo;
|
|
ToolTipComboBox* m_aa_combo;
|
|
ToolTipComboBox* m_texture_filtering_combo;
|
|
ToolTipComboBox* m_pp_effect;
|
|
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;
|
|
|
|
// Stereoscopy
|
|
ConfigChoice* m_3d_mode;
|
|
GraphicsSlider* m_3d_depth;
|
|
GraphicsSlider* m_3d_convergence;
|
|
ConfigBool* m_3d_swap_eyes;
|
|
|
|
int m_msaa_modes;
|
|
bool m_block_save;
|
|
};
|