mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-29 01:05:50 +01:00
5ca0430cb2
The old tooltip description box used GraphicsWidget to provide shared code to the Graphics config panes for adding descriptions to their settings. The description box has been replaced by BalloonTips and serves no further purpose, so remove it and have the Graphics panes derive from QWidget instead.
55 lines
1.2 KiB
C++
55 lines
1.2 KiB
C++
// Copyright 2017 Dolphin Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <array>
|
|
|
|
#include <QWidget>
|
|
|
|
class ConfigBool;
|
|
class ConfigChoice;
|
|
class ConfigRadioInt;
|
|
class GraphicsWindow;
|
|
class QCheckBox;
|
|
class QComboBox;
|
|
class QRadioButton;
|
|
class QGridLayout;
|
|
class ToolTipComboBox;
|
|
|
|
class GeneralWidget final : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit GeneralWidget(GraphicsWindow* parent);
|
|
signals:
|
|
void BackendChanged(const QString& backend);
|
|
|
|
private:
|
|
void LoadSettings();
|
|
void SaveSettings();
|
|
|
|
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<ConfigRadioInt*, 4> m_shader_compilation_mode{};
|
|
ConfigBool* m_wait_for_shaders;
|
|
};
|