2017-06-15 23:43:14 +00:00
|
|
|
// Copyright 2017 Dolphin Emulator Project
|
2021-07-05 01:22:19 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2017-06-15 23:43:14 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2018-03-16 13:10:22 +00:00
|
|
|
#include <array>
|
2018-07-06 22:40:15 +00:00
|
|
|
#include "DolphinQt/Config/Graphics/GraphicsWidget.h"
|
2017-06-15 23:43:14 +00:00
|
|
|
|
2023-04-21 21:02:53 +00:00
|
|
|
class ConfigBool;
|
2023-04-25 03:36:43 +00:00
|
|
|
class ConfigChoice;
|
2023-04-27 17:39:48 +00:00
|
|
|
class ConfigRadioInt;
|
2017-06-15 23:43:14 +00:00
|
|
|
class GraphicsWindow;
|
|
|
|
class QCheckBox;
|
|
|
|
class QComboBox;
|
2018-03-16 13:10:22 +00:00
|
|
|
class QRadioButton;
|
2017-06-15 23:43:14 +00:00
|
|
|
class QGridLayout;
|
2020-10-17 05:06:34 +00:00
|
|
|
class ToolTipComboBox;
|
2017-06-15 23:43:14 +00:00
|
|
|
|
|
|
|
class GeneralWidget final : public GraphicsWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2023-04-26 22:35:40 +00:00
|
|
|
explicit GeneralWidget(GraphicsWindow* parent);
|
2017-06-15 23:43:14 +00:00
|
|
|
signals:
|
|
|
|
void BackendChanged(const QString& backend);
|
|
|
|
|
|
|
|
private:
|
|
|
|
void LoadSettings() override;
|
|
|
|
void SaveSettings() override;
|
|
|
|
|
|
|
|
void CreateWidgets();
|
|
|
|
void ConnectWidgets();
|
|
|
|
void AddDescriptions();
|
|
|
|
|
|
|
|
void OnBackendChanged(const QString& backend_name);
|
|
|
|
void OnEmulationStateChanged(bool running);
|
|
|
|
|
|
|
|
// Video
|
|
|
|
QGridLayout* m_video_layout;
|
2020-10-17 05:06:34 +00:00
|
|
|
ToolTipComboBox* m_backend_combo;
|
|
|
|
ToolTipComboBox* m_adapter_combo;
|
2023-04-25 03:36:43 +00:00
|
|
|
ConfigChoice* m_aspect_combo;
|
2023-04-21 21:02:53 +00:00
|
|
|
ConfigBool* m_enable_vsync;
|
|
|
|
ConfigBool* m_enable_fullscreen;
|
2017-06-15 23:43:14 +00:00
|
|
|
|
|
|
|
// Options
|
2023-04-21 21:02:53 +00:00
|
|
|
ConfigBool* m_show_ping;
|
|
|
|
ConfigBool* m_autoadjust_window_size;
|
|
|
|
ConfigBool* m_show_messages;
|
|
|
|
ConfigBool* m_render_main_window;
|
2023-04-27 17:39:48 +00:00
|
|
|
std::array<ConfigRadioInt*, 4> m_shader_compilation_mode{};
|
2023-04-21 21:02:53 +00:00
|
|
|
ConfigBool* m_wait_for_shaders;
|
2017-06-15 23:43:14 +00:00
|
|
|
};
|