| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
#pragma once |
| 5 |
|
| 6 |
#include <QWidget> |
| 7 |
|
| 8 |
class MainWindow; |
| 9 |
|
| 10 |
namespace Config |
| 11 |
{ |
| 12 |
class Layer; |
| 13 |
} |
| 14 |
|
| 15 |
class GraphicsPane final : public QWidget |
| 16 |
{ |
| 17 |
Q_OBJECT |
| 18 |
public: |
| 19 |
explicit GraphicsPane(MainWindow* main_window, Config::Layer* config_layer); |
| 20 |
|
| 21 |
Config::Layer* GetConfigLayer(); |
| 22 |
|
| 23 |
signals: |
| 24 |
void BackendChanged(const QString& backend); |
| 25 |
void UseFastTextureSamplingChanged(); |
| 26 |
void UpdateGPUTextureDecoding(); |
| 27 |
|
| 28 |
private: |
| 29 |
void CreateMainLayout(); |
| 30 |
void OnBackendChanged(const QString& backend); |
| 31 |
|
| 32 |
MainWindow* const m_main_window; |
| 33 |
Config::Layer* const m_config_layer; |
| 34 |
}; |