2020-09-13 08:39:58 +00:00
|
|
|
#pragma once
|
|
|
|
#include "frontend-common/postprocessing_shader.h"
|
|
|
|
#include <QtWidgets/QDialog>
|
2020-09-13 12:24:20 +00:00
|
|
|
#include <QtWidgets/QWidget>
|
2020-09-13 08:39:58 +00:00
|
|
|
|
2020-09-13 12:24:20 +00:00
|
|
|
class QGridLayout;
|
|
|
|
|
|
|
|
class PostProcessingShaderConfigWidget : public QWidget
|
2020-09-13 08:39:58 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
PostProcessingShaderConfigWidget(QWidget* parent, FrontendCommon::PostProcessingShader* shader);
|
|
|
|
~PostProcessingShaderConfigWidget();
|
|
|
|
|
2020-09-13 12:24:20 +00:00
|
|
|
QGridLayout* getLayout() { return m_layout; }
|
|
|
|
|
2020-09-13 08:39:58 +00:00
|
|
|
Q_SIGNALS:
|
|
|
|
void configChanged();
|
|
|
|
void resettingtoDefaults();
|
|
|
|
|
|
|
|
private Q_SLOTS:
|
|
|
|
void onResetToDefaultsClicked();
|
|
|
|
|
2020-09-13 12:24:20 +00:00
|
|
|
protected:
|
2020-09-13 08:39:58 +00:00
|
|
|
void createUi();
|
|
|
|
|
|
|
|
FrontendCommon::PostProcessingShader* m_shader;
|
2020-09-13 12:24:20 +00:00
|
|
|
QGridLayout* m_layout;
|
|
|
|
};
|
|
|
|
|
|
|
|
class PostProcessingShaderConfigDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
PostProcessingShaderConfigDialog(QWidget* parent, FrontendCommon::PostProcessingShader* shader);
|
|
|
|
~PostProcessingShaderConfigDialog();
|
|
|
|
|
|
|
|
Q_SIGNALS:
|
|
|
|
void configChanged();
|
|
|
|
|
|
|
|
private Q_SLOTS:
|
|
|
|
void onConfigChanged();
|
|
|
|
void onCloseClicked();
|
|
|
|
|
|
|
|
private:
|
|
|
|
PostProcessingShaderConfigWidget* m_widget;
|
2020-09-13 08:39:58 +00:00
|
|
|
};
|
|
|
|
|