a26b466ac8
* Forward declare ui and use unique_ptr * ConfigureEnhancements: use unique_ptr for ui * Use make_unique instead of new where applicable * Move some of the ui includes that already used unique_ptr * main.cpp: also make use of make_unique on Config * Address review comments
35 lines
728 B
C++
35 lines
728 B
C++
// Copyright 2019 Citra Emulator Project
|
|
// Licensed under GPLv2 or any later version
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <memory>
|
|
#include <QWidget>
|
|
|
|
namespace Settings {
|
|
enum class StereoRenderOption;
|
|
}
|
|
|
|
namespace Ui {
|
|
class ConfigureEnhancements;
|
|
}
|
|
|
|
class ConfigureEnhancements : public QWidget {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ConfigureEnhancements(QWidget* parent = nullptr);
|
|
~ConfigureEnhancements();
|
|
|
|
void ApplyConfiguration();
|
|
void RetranslateUI();
|
|
void SetConfiguration();
|
|
|
|
private:
|
|
void updateShaders(Settings::StereoRenderOption stereo_option);
|
|
void updateTextureFilter(int index);
|
|
|
|
std::unique_ptr<Ui::ConfigureEnhancements> ui;
|
|
QColor bg_color;
|
|
};
|