| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
#pragma once |
| 5 |
|
| 6 |
#include <QWidget> |
| 7 |
|
| 8 |
class ConfigBool; |
| 9 |
class ConfigChoice; |
| 10 |
class ConfigComplexChoice; |
| 11 |
class ConfigStringChoice; |
| 12 |
class ConfigFloatSlider; |
| 13 |
class GraphicsPane; |
| 14 |
class QPushButton; |
| 15 |
class QLabel; |
| 16 |
class ToolTipPushButton; |
| 17 |
|
| 18 |
namespace Config |
| 19 |
{ |
| 20 |
template <typename T> |
| 21 |
class Info; |
| 22 |
class Layer; |
| 23 |
} |
| 24 |
|
| 25 |
class EnhancementsWidget final : public QWidget |
| 26 |
{ |
| 27 |
Q_OBJECT |
| 28 |
public: |
| 29 |
explicit EnhancementsWidget(GraphicsPane* gfx_pane); |
| 30 |
|
| 31 |
private: |
| 32 |
void CreateWidgets(); |
| 33 |
void ConnectWidgets(); |
| 34 |
void AddDescriptions(); |
| 35 |
|
| 36 |
void OnBackendChanged(); |
| 37 |
void UpdateAntialiasingOptions(); |
| 38 |
void LoadPostProcessingShaders(); |
| 39 |
void ShaderChanged(); |
| 40 |
|
| 41 |
void ConfigureColorCorrection(); |
| 42 |
void ConfigurePostProcessingShader(); |
| 43 |
|
| 44 |
|
| 45 |
ConfigChoice* m_ir_combo; |
| 46 |
ConfigComplexChoice* m_antialiasing_combo; |
| 47 |
ConfigComplexChoice* m_texture_filtering_combo; |
| 48 |
ConfigChoice* m_output_resampling_combo; |
| 49 |
ConfigStringChoice* m_post_processing_effect; |
| 50 |
ToolTipPushButton* m_configure_color_correction; |
| 51 |
QPushButton* m_configure_post_processing_effect; |
| 52 |
ConfigBool* m_scaled_efb_copy; |
| 53 |
ConfigBool* m_per_pixel_lighting; |
| 54 |
ConfigBool* m_widescreen_hack; |
| 55 |
ConfigBool* m_disable_fog; |
| 56 |
ConfigBool* m_force_24bit_color; |
| 57 |
ConfigBool* m_disable_copy_filter; |
| 58 |
ConfigBool* m_arbitrary_mipmap_detection; |
| 59 |
ConfigBool* m_hdr; |
| 60 |
|
| 61 |
|
| 62 |
ConfigChoice* m_3d_mode; |
| 63 |
ConfigFloatSlider* m_3d_depth; |
| 64 |
QLabel* m_3d_depth_value; |
| 65 |
ConfigFloatSlider* m_3d_convergence; |
| 66 |
QLabel* m_3d_convergence_value; |
| 67 |
ConfigBool* m_3d_swap_eyes; |
| 68 |
ConfigBool* m_3d_per_eye_resolution; |
| 69 |
|
| 70 |
Config::Layer* m_game_layer = nullptr; |
| 71 |
}; |