2020-09-13 12:24:20 +00:00
|
|
|
#pragma once
|
|
|
|
#include "postprocessingchainconfigwidget.h"
|
|
|
|
#include "postprocessingshaderconfigwidget.h"
|
|
|
|
#include "ui_postprocessingsettingswidget.h"
|
|
|
|
#include <QtWidgets/QWidget>
|
|
|
|
|
|
|
|
class SettingsDialog;
|
|
|
|
|
|
|
|
class PostProcessingSettingsWidget : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2022-07-11 13:03:29 +00:00
|
|
|
PostProcessingSettingsWidget(SettingsDialog* dialog, QWidget* parent);
|
2020-09-13 12:24:20 +00:00
|
|
|
~PostProcessingSettingsWidget();
|
|
|
|
|
|
|
|
private Q_SLOTS:
|
|
|
|
void onChainAboutToChange();
|
|
|
|
void onChainSelectedShaderChanged(qint32 index);
|
|
|
|
void onConfigChanged(const std::string& new_config);
|
|
|
|
void onReloadClicked();
|
|
|
|
|
|
|
|
private:
|
|
|
|
void connectUi();
|
|
|
|
void updateShaderConfigPanel(s32 index);
|
2022-07-11 13:03:29 +00:00
|
|
|
|
|
|
|
SettingsDialog* m_dialog;
|
2020-09-13 12:24:20 +00:00
|
|
|
|
|
|
|
Ui::PostProcessingSettingsWidget m_ui;
|
|
|
|
|
|
|
|
PostProcessingShaderConfigWidget* m_shader_config = nullptr;
|
|
|
|
};
|