2016-01-24 17:34:05 +00:00
|
|
|
// Copyright 2016 Citra Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
2016-01-24 20:54:04 +00:00
|
|
|
#pragma once
|
2016-01-24 17:34:05 +00:00
|
|
|
|
2016-09-18 00:38:01 +00:00
|
|
|
#include <memory>
|
2023-09-12 22:28:50 +00:00
|
|
|
#include <span>
|
2016-09-20 15:21:23 +00:00
|
|
|
#include <QDialog>
|
2023-09-12 22:28:50 +00:00
|
|
|
#include <QString>
|
2016-01-24 17:34:05 +00:00
|
|
|
|
2018-08-07 04:43:07 +00:00
|
|
|
class HotkeyRegistry;
|
|
|
|
|
2016-01-24 17:34:05 +00:00
|
|
|
namespace Ui {
|
|
|
|
class ConfigureDialog;
|
|
|
|
}
|
|
|
|
|
2023-06-30 10:39:38 +00:00
|
|
|
namespace Core {
|
|
|
|
class System;
|
|
|
|
}
|
|
|
|
|
2023-08-01 22:40:39 +00:00
|
|
|
class ConfigureGeneral;
|
|
|
|
class ConfigureSystem;
|
|
|
|
class ConfigureInput;
|
|
|
|
class ConfigureHotkeys;
|
|
|
|
class ConfigureGraphics;
|
|
|
|
class ConfigureEnhancements;
|
|
|
|
class ConfigureAudio;
|
|
|
|
class ConfigureCamera;
|
|
|
|
class ConfigureDebug;
|
|
|
|
class ConfigureStorage;
|
|
|
|
class ConfigureWeb;
|
|
|
|
class ConfigureUi;
|
|
|
|
|
2016-09-18 00:38:01 +00:00
|
|
|
class ConfigureDialog : public QDialog {
|
2016-01-24 17:34:05 +00:00
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2023-06-30 10:39:38 +00:00
|
|
|
explicit ConfigureDialog(QWidget* parent, HotkeyRegistry& registry, Core::System& system,
|
2024-01-29 20:24:41 +00:00
|
|
|
QString gl_renderer, std::span<const QString> physical_devices,
|
2019-04-20 02:42:20 +00:00
|
|
|
bool enable_web_config = true);
|
2018-12-07 15:44:37 +00:00
|
|
|
~ConfigureDialog() override;
|
2016-01-24 17:34:05 +00:00
|
|
|
|
2019-05-26 04:39:23 +00:00
|
|
|
void ApplyConfiguration();
|
2016-01-24 17:34:05 +00:00
|
|
|
|
2017-09-23 13:13:59 +00:00
|
|
|
private slots:
|
2019-05-26 04:39:23 +00:00
|
|
|
void OnLanguageChanged(const QString& locale);
|
2017-09-23 13:13:59 +00:00
|
|
|
|
|
|
|
signals:
|
2019-05-26 04:39:23 +00:00
|
|
|
void LanguageChanged(const QString& locale);
|
2017-09-23 13:13:59 +00:00
|
|
|
|
2016-01-24 17:34:05 +00:00
|
|
|
private:
|
2019-05-26 04:39:23 +00:00
|
|
|
void SetConfiguration();
|
|
|
|
void RetranslateUI();
|
2019-02-05 21:07:03 +00:00
|
|
|
void UpdateVisibleTabs();
|
|
|
|
void PopulateSelectionList();
|
2016-01-24 17:34:05 +00:00
|
|
|
|
2016-01-24 20:54:04 +00:00
|
|
|
std::unique_ptr<Ui::ConfigureDialog> ui;
|
2018-11-17 11:25:05 +00:00
|
|
|
HotkeyRegistry& registry;
|
2023-06-30 10:39:38 +00:00
|
|
|
Core::System& system;
|
2023-08-01 22:40:39 +00:00
|
|
|
bool is_powered_on;
|
|
|
|
|
|
|
|
std::unique_ptr<ConfigureGeneral> general_tab;
|
|
|
|
std::unique_ptr<ConfigureSystem> system_tab;
|
|
|
|
std::unique_ptr<ConfigureInput> input_tab;
|
|
|
|
std::unique_ptr<ConfigureHotkeys> hotkeys_tab;
|
|
|
|
std::unique_ptr<ConfigureGraphics> graphics_tab;
|
|
|
|
std::unique_ptr<ConfigureEnhancements> enhancements_tab;
|
|
|
|
std::unique_ptr<ConfigureAudio> audio_tab;
|
|
|
|
std::unique_ptr<ConfigureCamera> camera_tab;
|
|
|
|
std::unique_ptr<ConfigureDebug> debug_tab;
|
|
|
|
std::unique_ptr<ConfigureStorage> storage_tab;
|
|
|
|
std::unique_ptr<ConfigureWeb> web_tab;
|
|
|
|
std::unique_ptr<ConfigureUi> ui_tab;
|
2016-01-24 17:34:05 +00:00
|
|
|
};
|