Duckstation/src/duckstation-qt/postprocessingsettingswidget.h

36 lines
911 B
C
Raw Normal View History

// SPDX-FileCopyrightText: 2019-2022 Connor McLaughlin <stenzek@gmail.com>
// SPDX-License-Identifier: (GPL-3.0 OR CC-BY-NC-ND-4.0)
#pragma once
#include "postprocessingchainconfigwidget.h"
#include "postprocessingshaderconfigwidget.h"
#include "ui_postprocessingsettingswidget.h"
#include <QtWidgets/QWidget>
class SettingsDialog;
class PostProcessingSettingsWidget : public QWidget
{
Q_OBJECT
public:
PostProcessingSettingsWidget(SettingsDialog* dialog, QWidget* parent);
~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);
SettingsDialog* m_dialog;
Ui::PostProcessingSettingsWidget m_ui;
PostProcessingShaderConfigWidget* m_shader_config = nullptr;
};