mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-12 09:09:12 +01:00
b59ca9682e
m_xrr_config was used by the GeneralWidget::GetAvailableResolutions function to get the list of supported fullscreen resolutions when HAVE_XRANDR was set. aa4088a removed the ability to set that resolution in the UI, leaving the GetAvailableResolutions function unused. m_xrr_config is initialized in MainWindow which still uses it to toggle fullscreen, but the references in GeneralWidget and GraphicsWidget (which just ferried m_xrr_config from MainWindow to GeneralWidget) are now unnecessary and removed in this commit.
54 lines
1.2 KiB
C++
54 lines
1.2 KiB
C++
// Copyright 2017 Dolphin Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <array>
|
|
#include "DolphinQt/Config/Graphics/GraphicsWidget.h"
|
|
|
|
class ConfigBool;
|
|
class ConfigChoice;
|
|
class GraphicsRadioInt;
|
|
class GraphicsWindow;
|
|
class QCheckBox;
|
|
class QComboBox;
|
|
class QRadioButton;
|
|
class QGridLayout;
|
|
class ToolTipComboBox;
|
|
|
|
class GeneralWidget final : public GraphicsWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit GeneralWidget(GraphicsWindow* parent);
|
|
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;
|
|
ToolTipComboBox* m_backend_combo;
|
|
ToolTipComboBox* m_adapter_combo;
|
|
ConfigChoice* m_aspect_combo;
|
|
ConfigBool* m_enable_vsync;
|
|
ConfigBool* m_enable_fullscreen;
|
|
|
|
// Options
|
|
ConfigBool* m_show_ping;
|
|
ConfigBool* m_autoadjust_window_size;
|
|
ConfigBool* m_show_messages;
|
|
ConfigBool* m_render_main_window;
|
|
std::array<GraphicsRadioInt*, 4> m_shader_compilation_mode{};
|
|
ConfigBool* m_wait_for_shaders;
|
|
};
|