configure_system.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. // Copyright 2016 Citra Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. #include <memory>
  6. #include <QWidget>
  7. namespace Core {
  8. class System;
  9. }
  10. namespace ConfigurationShared {
  11. enum class CheckState;
  12. }
  13. namespace Ui {
  14. class ConfigureSystem;
  15. }
  16. class ConfigureSystem : public QWidget {
  17. Q_OBJECT
  18. public:
  19. explicit ConfigureSystem(Core::System& system_, QWidget* parent = nullptr);
  20. ~ConfigureSystem() override;
  21. void ApplyConfiguration();
  22. void SetConfiguration();
  23. private:
  24. void changeEvent(QEvent* event) override;
  25. void RetranslateUI();
  26. void ReadSystemSettings();
  27. void RefreshConsoleID();
  28. void SetupPerGameUI();
  29. std::unique_ptr<Ui::ConfigureSystem> ui;
  30. bool enabled = false;
  31. int language_index = 0;
  32. int region_index = 0;
  33. int time_zone_index = 0;
  34. int sound_index = 0;
  35. ConfigurationShared::CheckState use_rng_seed;
  36. ConfigurationShared::CheckState use_custom_rtc;
  37. Core::System& system;
  38. };