diff options
Diffstat (limited to 'src/yuzu/configuration/configure_system.h')
| -rw-r--r-- | src/yuzu/configuration/configure_system.h | 36 |
1 files changed, 22 insertions, 14 deletions
diff --git a/src/yuzu/configuration/configure_system.h b/src/yuzu/configuration/configure_system.h index ce1a91601..eab99a48a 100644 --- a/src/yuzu/configuration/configure_system.h +++ b/src/yuzu/configuration/configure_system.h | |||
| @@ -3,45 +3,53 @@ | |||
| 3 | 3 | ||
| 4 | #pragma once | 4 | #pragma once |
| 5 | 5 | ||
| 6 | #include <functional> | ||
| 6 | #include <memory> | 7 | #include <memory> |
| 8 | #include <vector> | ||
| 7 | 9 | ||
| 8 | #include <QWidget> | 10 | #include <QWidget> |
| 11 | #include "yuzu/configuration/configuration_shared.h" | ||
| 9 | 12 | ||
| 13 | class QCheckBox; | ||
| 14 | class QLineEdit; | ||
| 15 | class QComboBox; | ||
| 16 | class QDateTimeEdit; | ||
| 10 | namespace Core { | 17 | namespace Core { |
| 11 | class System; | 18 | class System; |
| 12 | } | 19 | } |
| 13 | 20 | ||
| 14 | namespace ConfigurationShared { | ||
| 15 | enum class CheckState; | ||
| 16 | } | ||
| 17 | |||
| 18 | namespace Ui { | 21 | namespace Ui { |
| 19 | class ConfigureSystem; | 22 | class ConfigureSystem; |
| 20 | } | 23 | } |
| 21 | 24 | ||
| 22 | class ConfigureSystem : public QWidget { | 25 | namespace ConfigurationShared { |
| 23 | Q_OBJECT | 26 | class Builder; |
| 27 | } | ||
| 24 | 28 | ||
| 29 | class ConfigureSystem : public ConfigurationShared::Tab { | ||
| 25 | public: | 30 | public: |
| 26 | explicit ConfigureSystem(Core::System& system_, QWidget* parent = nullptr); | 31 | explicit ConfigureSystem(Core::System& system_, |
| 32 | std::shared_ptr<std::vector<ConfigurationShared::Tab*>> group, | ||
| 33 | const ConfigurationShared::Builder& builder, | ||
| 34 | QWidget* parent = nullptr); | ||
| 27 | ~ConfigureSystem() override; | 35 | ~ConfigureSystem() override; |
| 28 | 36 | ||
| 29 | void ApplyConfiguration(); | 37 | void ApplyConfiguration() override; |
| 30 | void SetConfiguration(); | 38 | void SetConfiguration() override; |
| 31 | 39 | ||
| 32 | private: | 40 | private: |
| 33 | void changeEvent(QEvent* event) override; | 41 | void changeEvent(QEvent* event) override; |
| 34 | void RetranslateUI(); | 42 | void RetranslateUI(); |
| 35 | 43 | ||
| 36 | void ReadSystemSettings(); | 44 | void Setup(const ConfigurationShared::Builder& builder); |
| 37 | 45 | ||
| 38 | void SetupPerGameUI(); | 46 | std::vector<std::function<void(bool)>> apply_funcs{}; |
| 39 | 47 | ||
| 40 | std::unique_ptr<Ui::ConfigureSystem> ui; | 48 | std::unique_ptr<Ui::ConfigureSystem> ui; |
| 41 | bool enabled = false; | 49 | bool enabled = false; |
| 42 | 50 | ||
| 43 | ConfigurationShared::CheckState use_rng_seed; | ||
| 44 | ConfigurationShared::CheckState use_unsafe_extended_memory_layout; | ||
| 45 | |||
| 46 | Core::System& system; | 51 | Core::System& system; |
| 52 | |||
| 53 | QComboBox* combo_region; | ||
| 54 | QComboBox* combo_language; | ||
| 47 | }; | 55 | }; |