2020-12-28 16:15:37 +01:00
|
|
|
// Copyright 2016 Citra Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
2021-10-09 02:29:53 +02:00
|
|
|
namespace Core {
|
|
|
|
class System;
|
|
|
|
}
|
|
|
|
|
2020-12-28 16:15:37 +01:00
|
|
|
namespace ConfigurationShared {
|
|
|
|
enum class CheckState;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class ConfigureSystem;
|
|
|
|
}
|
|
|
|
|
|
|
|
class ConfigureSystem : public QWidget {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2021-10-09 02:29:53 +02:00
|
|
|
explicit ConfigureSystem(Core::System& system_, QWidget* parent = nullptr);
|
2020-12-28 16:15:37 +01:00
|
|
|
~ConfigureSystem() override;
|
|
|
|
|
|
|
|
void ApplyConfiguration();
|
2021-10-09 02:29:53 +02:00
|
|
|
void SetConfiguration();
|
2020-12-28 16:15:37 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
void changeEvent(QEvent* event) override;
|
|
|
|
void RetranslateUI();
|
|
|
|
|
|
|
|
void ReadSystemSettings();
|
|
|
|
|
|
|
|
void RefreshConsoleID();
|
|
|
|
|
|
|
|
void SetupPerGameUI();
|
|
|
|
|
|
|
|
std::unique_ptr<Ui::ConfigureSystem> ui;
|
|
|
|
bool enabled = false;
|
|
|
|
|
|
|
|
int language_index = 0;
|
|
|
|
int region_index = 0;
|
|
|
|
int time_zone_index = 0;
|
|
|
|
int sound_index = 0;
|
|
|
|
|
|
|
|
ConfigurationShared::CheckState use_rng_seed;
|
|
|
|
ConfigurationShared::CheckState use_custom_rtc;
|
2021-10-09 02:29:53 +02:00
|
|
|
|
|
|
|
Core::System& system;
|
2020-12-28 16:15:37 +01:00
|
|
|
};
|