2017-06-15 23:42:12 +00:00
|
|
|
// Copyright 2017 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2+
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
#include <QHash>
|
|
|
|
|
2017-06-15 23:43:14 +00:00
|
|
|
class AdvancedWidget;
|
|
|
|
class EnhancementsWidget;
|
|
|
|
class HacksWidget;
|
|
|
|
class GeneralWidget;
|
2017-06-15 23:42:12 +00:00
|
|
|
class MainWindow;
|
|
|
|
class QLabel;
|
|
|
|
class QTabWidget;
|
|
|
|
class QDialogButtonBox;
|
2017-06-15 23:43:14 +00:00
|
|
|
class SoftwareRendererWidget;
|
2017-06-15 23:42:12 +00:00
|
|
|
|
|
|
|
namespace X11Utils
|
|
|
|
{
|
|
|
|
class XRRConfiguration;
|
|
|
|
}
|
|
|
|
|
|
|
|
class GraphicsWindow final : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit GraphicsWindow(X11Utils::XRRConfiguration* xrr_config, MainWindow* parent);
|
|
|
|
|
|
|
|
signals:
|
|
|
|
void BackendChanged(const QString& backend);
|
|
|
|
|
|
|
|
private:
|
|
|
|
void CreateMainLayout();
|
|
|
|
void OnBackendChanged(const QString& backend);
|
|
|
|
|
|
|
|
QTabWidget* m_tab_widget;
|
|
|
|
QDialogButtonBox* m_button_box;
|
|
|
|
|
2017-06-15 23:43:14 +00:00
|
|
|
AdvancedWidget* m_advanced_widget;
|
|
|
|
EnhancementsWidget* m_enhancements_widget;
|
|
|
|
HacksWidget* m_hacks_widget;
|
|
|
|
GeneralWidget* m_general_widget;
|
|
|
|
SoftwareRendererWidget* m_software_renderer;
|
|
|
|
|
2018-05-08 15:39:03 +00:00
|
|
|
QWidget* m_wrapped_advanced;
|
|
|
|
QWidget* m_wrapped_enhancements;
|
|
|
|
QWidget* m_wrapped_hacks;
|
|
|
|
QWidget* m_wrapped_general;
|
|
|
|
QWidget* m_wrapped_software;
|
|
|
|
|
2017-06-15 23:42:12 +00:00
|
|
|
X11Utils::XRRConfiguration* m_xrr_config;
|
|
|
|
};
|