mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Qt: Implement graphics window and controls
This commit is contained in:
34
Source/Core/DolphinQt2/Config/Graphics/GraphicsWidget.h
Normal file
34
Source/Core/DolphinQt2/Config/Graphics/GraphicsWidget.h
Normal file
@ -0,0 +1,34 @@
|
||||
// Copyright 2017 Dolphin Emulator Project
|
||||
// Licensed under GPLv2+
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
class GraphicsWindow;
|
||||
class QFormLayout;
|
||||
class QGroupBox;
|
||||
class QLabel;
|
||||
|
||||
class GraphicsWidget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit GraphicsWidget(GraphicsWindow* parent);
|
||||
|
||||
signals:
|
||||
void DescriptionAdded(QWidget* widget, const char* description);
|
||||
|
||||
protected:
|
||||
void AddWidget(const QString& name, QWidget* widget);
|
||||
void AddWidget(QWidget* widget);
|
||||
|
||||
void AddDescription(QWidget* widget, const char* description);
|
||||
|
||||
virtual void LoadSettings() = 0;
|
||||
virtual void SaveSettings() = 0;
|
||||
|
||||
private:
|
||||
QFormLayout* m_main_layout;
|
||||
};
|
Reference in New Issue
Block a user