Files
eden/src/yuzu/configuration/configure_system.h
T

56 lines
1.3 KiB
C++
Raw Normal View History

2022-05-15 02:06:02 +02:00
// SPDX-FileCopyrightText: 2016 Citra Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
2016-06-01 10:43:33 +03:00
#pragma once
2023-05-10 17:57:25 -04:00
#include <forward_list>
#include <functional>
2016-09-18 09:38:01 +09:00
#include <memory>
2016-09-21 00:21:23 +09:00
#include <QWidget>
2023-05-05 23:30:59 -04:00
#include "yuzu/configuration/configuration_shared.h"
2023-05-18 23:05:21 -04:00
class QCheckBox;
class QLineEdit;
class QComboBox;
2023-05-10 17:57:25 -04:00
class QDateTimeEdit;
namespace Core {
class System;
}
2016-06-01 10:43:33 +03:00
namespace Ui {
class ConfigureSystem;
}
namespace ConfigurationShared {
class Builder;
}
2023-05-05 23:30:59 -04:00
class ConfigureSystem : public ConfigurationShared::Tab {
2016-06-01 10:43:33 +03:00
public:
explicit ConfigureSystem(Core::System& system_,
std::shared_ptr<std::forward_list<ConfigurationShared::Tab*>> group,
const ConfigurationShared::Builder& builder,
QWidget* parent = nullptr);
~ConfigureSystem() override;
2016-06-01 10:43:33 +03:00
2023-05-05 23:30:59 -04:00
void ApplyConfiguration() override;
void SetConfiguration() override;
2016-06-01 10:43:33 +03:00
2018-10-25 16:43:42 -04:00
private:
void changeEvent(QEvent* event) override;
void RetranslateUI();
void Setup(const ConfigurationShared::Builder& builder);
2023-05-10 17:57:25 -04:00
std::forward_list<std::function<void(bool)>> apply_funcs{};
2016-06-01 10:43:33 +03:00
std::unique_ptr<Ui::ConfigureSystem> ui;
bool enabled = false;
2016-06-01 10:43:33 +03:00
Core::System& system;
2023-05-10 17:57:25 -04:00
QComboBox* combo_region;
QComboBox* combo_language;
2016-06-01 10:43:33 +03:00
};