2026-02-06 14:05:44 +01:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
2025-09-15 17:21:18 +02:00
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
|
2022-05-15 02:06:02 +02:00
|
|
|
// SPDX-FileCopyrightText: 2016 Citra Emulator Project
|
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2016-01-24 18:34:05 +01:00
|
|
|
|
2016-01-24 21:54:04 +01:00
|
|
|
#pragma once
|
2016-01-24 18:34:05 +01:00
|
|
|
|
2016-09-18 09:38:01 +09:00
|
|
|
#include <memory>
|
2023-05-28 21:46:02 +00:00
|
|
|
#include <vector>
|
2016-09-21 00:21:23 +09:00
|
|
|
#include <QDialog>
|
2023-06-21 01:42:42 -04:00
|
|
|
#include "configuration/shared_widget.h"
|
2023-05-18 23:05:21 -04:00
|
|
|
#include "yuzu/configuration/configuration_shared.h"
|
2025-10-15 05:05:03 +02:00
|
|
|
#include "qt_common/config/shared_translation.h"
|
2023-05-28 21:46:02 +00:00
|
|
|
#include "yuzu/vk_device_info.h"
|
2016-01-24 18:34:05 +01:00
|
|
|
|
2021-09-02 21:40:55 -04:00
|
|
|
namespace Core {
|
|
|
|
|
class System;
|
|
|
|
|
}
|
|
|
|
|
|
2024-01-26 23:28:24 -05:00
|
|
|
class ConfigureApplets;
|
2021-09-02 21:40:55 -04:00
|
|
|
class ConfigureAudio;
|
|
|
|
|
class ConfigureCpu;
|
|
|
|
|
class ConfigureDebugTab;
|
|
|
|
|
class ConfigureFilesystem;
|
|
|
|
|
class ConfigureGeneral;
|
|
|
|
|
class ConfigureGraphics;
|
|
|
|
|
class ConfigureGraphicsAdvanced;
|
2025-04-23 20:57:53 -04:00
|
|
|
class ConfigureGraphicsExtensions;
|
2021-09-02 21:40:55 -04:00
|
|
|
class ConfigureHotkeys;
|
|
|
|
|
class ConfigureInput;
|
|
|
|
|
class ConfigureProfileManager;
|
|
|
|
|
class ConfigureSystem;
|
|
|
|
|
class ConfigureNetwork;
|
|
|
|
|
class ConfigureUi;
|
|
|
|
|
class ConfigureWeb;
|
|
|
|
|
|
2018-08-07 00:43:07 -04:00
|
|
|
class HotkeyRegistry;
|
|
|
|
|
|
2020-08-27 15:16:47 -04:00
|
|
|
namespace InputCommon {
|
|
|
|
|
class InputSubsystem;
|
|
|
|
|
}
|
|
|
|
|
|
2016-01-24 18:34:05 +01:00
|
|
|
namespace Ui {
|
|
|
|
|
class ConfigureDialog;
|
|
|
|
|
}
|
|
|
|
|
|
2016-09-18 09:38:01 +09:00
|
|
|
class ConfigureDialog : public QDialog {
|
2016-01-24 18:34:05 +01:00
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
2022-06-13 18:19:04 -04:00
|
|
|
explicit ConfigureDialog(QWidget* parent, HotkeyRegistry& registry_,
|
2023-05-28 21:46:02 +00:00
|
|
|
InputCommon::InputSubsystem* input_subsystem,
|
|
|
|
|
std::vector<VkDeviceInfo::Record>& vk_device_records,
|
|
|
|
|
Core::System& system_, bool enable_web_config = true);
|
2018-12-02 14:10:28 -05:00
|
|
|
~ConfigureDialog() override;
|
2016-01-24 18:34:05 +01:00
|
|
|
|
2019-05-26 00:39:23 -04:00
|
|
|
void ApplyConfiguration();
|
2016-01-24 18:34:05 +01:00
|
|
|
|
2020-01-26 00:26:07 +01:00
|
|
|
private slots:
|
|
|
|
|
void OnLanguageChanged(const QString& locale);
|
|
|
|
|
|
|
|
|
|
signals:
|
|
|
|
|
void LanguageChanged(const QString& locale);
|
2026-02-06 14:05:44 +01:00
|
|
|
void ExternalContentDirsChanged();
|
2020-01-26 00:26:07 +01:00
|
|
|
|
2016-01-24 18:34:05 +01:00
|
|
|
private:
|
2019-06-05 18:39:46 -04:00
|
|
|
void changeEvent(QEvent* event) override;
|
|
|
|
|
void RetranslateUI();
|
|
|
|
|
|
2021-05-17 16:13:39 -04:00
|
|
|
void HandleApplyButtonClicked();
|
|
|
|
|
|
2019-05-26 00:39:23 -04:00
|
|
|
void SetConfiguration();
|
2018-09-06 19:59:25 +02:00
|
|
|
void UpdateVisibleTabs();
|
|
|
|
|
void PopulateSelectionList();
|
2016-01-24 18:34:05 +01:00
|
|
|
|
2016-01-24 21:54:04 +01:00
|
|
|
std::unique_ptr<Ui::ConfigureDialog> ui;
|
2019-02-16 16:19:29 +01:00
|
|
|
HotkeyRegistry& registry;
|
2021-09-02 21:40:55 -04:00
|
|
|
|
|
|
|
|
Core::System& system;
|
2023-06-21 01:42:42 -04:00
|
|
|
std::unique_ptr<ConfigurationShared::Builder> builder;
|
2023-07-21 23:09:09 -04:00
|
|
|
std::vector<ConfigurationShared::Tab*> tab_group;
|
2021-09-02 21:40:55 -04:00
|
|
|
|
2024-01-26 23:28:24 -05:00
|
|
|
std::unique_ptr<ConfigureApplets> applets_tab;
|
2021-09-02 21:40:55 -04:00
|
|
|
std::unique_ptr<ConfigureAudio> audio_tab;
|
|
|
|
|
std::unique_ptr<ConfigureCpu> cpu_tab;
|
|
|
|
|
std::unique_ptr<ConfigureDebugTab> debug_tab_tab;
|
|
|
|
|
std::unique_ptr<ConfigureFilesystem> filesystem_tab;
|
|
|
|
|
std::unique_ptr<ConfigureGeneral> general_tab;
|
|
|
|
|
std::unique_ptr<ConfigureGraphicsAdvanced> graphics_advanced_tab;
|
2025-04-23 20:57:53 -04:00
|
|
|
std::unique_ptr<ConfigureGraphicsExtensions> graphics_extensions_tab;
|
2023-08-16 16:12:42 -04:00
|
|
|
std::unique_ptr<ConfigureUi> ui_tab;
|
2023-05-02 16:48:45 -07:00
|
|
|
std::unique_ptr<ConfigureGraphics> graphics_tab;
|
2021-09-02 21:40:55 -04:00
|
|
|
std::unique_ptr<ConfigureHotkeys> hotkeys_tab;
|
|
|
|
|
std::unique_ptr<ConfigureInput> input_tab;
|
|
|
|
|
std::unique_ptr<ConfigureNetwork> network_tab;
|
|
|
|
|
std::unique_ptr<ConfigureProfileManager> profile_tab;
|
|
|
|
|
std::unique_ptr<ConfigureSystem> system_tab;
|
|
|
|
|
std::unique_ptr<ConfigureWeb> web_tab;
|
2016-01-24 18:34:05 +01:00
|
|
|
};
|