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