RetroArch
shaderparamsdialog.h
Go to the documentation of this file.
1 #ifndef SHADERPARAMSDIALOG_H
2 #define SHADERPARAMSDIALOG_H
3 
4 #include <QDialog>
5 #include <QPointer>
6 
7 extern "C" {
8 #include "../.././gfx/video_shader_parse.h"
9 }
10 
11 class QCloseEvent;
12 class QResizeEvent;
13 class QVBoxLayout;
14 class QFormLayout;
15 class QLayout;
16 class QScrollArea;
17 
19 {
20 public:
21  ShaderPass(struct video_shader_pass *passToCopy = NULL);
22  ~ShaderPass();
23  ShaderPass& operator=(const ShaderPass &other);
25 };
26 
27 class ShaderParamsDialog : public QDialog
28 {
29  Q_OBJECT
30 public:
31  ShaderParamsDialog(QWidget *parent = 0);
33 signals:
34  void closed();
35  void resized(QSize size);
36 public slots:
37  void reload();
38 private slots:
44  void onGroupBoxContextMenuRequested(const QPoint &pos);
45  void onParameterLabelContextMenuRequested(const QPoint &pos);
49  void onShaderResetPass(int pass);
51  void onShaderResetParameter(QString parameter);
60  void onShaderApplyClicked();
61  void clearLayout();
62  void buildLayout();
63 private:
64  QString getFilterLabel(unsigned filter);
65  void addShaderParam(struct video_shader_parameter *param, QFormLayout *form);
66  void getShaders(struct video_shader **menu_shader, struct video_shader **video_shader);
67  void saveShaderPreset(const char *path, unsigned action_type);
68 
69  QPointer<QVBoxLayout> m_layout;
70  QPointer<QScrollArea> m_scrollArea;
71 protected:
72  void closeEvent(QCloseEvent *event);
73  void resizeEvent(QResizeEvent *event);
74  void paintEvent(QPaintEvent *event);
75 };
76 
77 #endif
void addShaderParam(struct video_shader_parameter *param, QFormLayout *form)
Definition: shaderparamsdialog.cpp:1209
void onShaderRemovePassClicked()
Definition: shaderparamsdialog.cpp:816
void paintEvent(QPaintEvent *event)
Definition: shaderparamsdialog.cpp:107
void closeEvent(QCloseEvent *event)
Definition: shaderparamsdialog.cpp:100
ShaderPass & operator=(const ShaderPass &other)
Definition: shaderparamsdialog.cpp:60
~ShaderParamsDialog()
Definition: shaderparamsdialog.cpp:84
QPointer< QVBoxLayout > m_layout
Definition: shaderparamsdialog.h:69
GLsizei const GLchar ** path
Definition: glext.h:7901
void clearLayout()
Definition: shaderparamsdialog.cpp:142
GLsizeiptr size
Definition: glext.h:6559
void onShaderAddPassClicked()
Definition: shaderparamsdialog.cpp:635
QString getFilterLabel(unsigned filter)
Definition: shaderparamsdialog.cpp:120
Definition: video_shader_parse.h:99
void saveShaderPreset(const char *path, unsigned action_type)
Definition: shaderparamsdialog.cpp:722
void onParameterLabelContextMenuRequested(const QPoint &pos)
Definition: shaderparamsdialog.cpp:1126
void onShaderParamCheckBoxClicked()
Definition: shaderparamsdialog.cpp:1288
~ShaderPass()
Definition: shaderparamsdialog.cpp:54
void buildLayout()
Definition: shaderparamsdialog.cpp:867
Definition: video_shader_parse.h:143
void onShaderSaveCorePresetClicked()
Definition: shaderparamsdialog.cpp:783
void onShaderSavePresetAsClicked()
Definition: shaderparamsdialog.cpp:702
void onShaderPassMoveUpClicked()
Definition: shaderparamsdialog.cpp:408
void onShaderResetParameter(QString parameter)
Definition: shaderparamsdialog.cpp:586
GLfloat param
Definition: glext.h:6480
#define NULL
Pointer to 0.
Definition: gctypes.h:65
void onFilterComboBoxIndexChanged(int index)
Definition: shaderparamsdialog.cpp:225
void resizeEvent(QResizeEvent *event)
Definition: shaderparamsdialog.cpp:88
QPointer< QScrollArea > m_scrollArea
Definition: shaderparamsdialog.h:70
joypad_connection_t * slots
Definition: btstack_hid.c:629
void onGroupBoxContextMenuRequested(const QPoint &pos)
Definition: shaderparamsdialog.cpp:1162
void onShaderApplyClicked()
Definition: shaderparamsdialog.cpp:857
void onShaderLoadPresetClicked()
Definition: shaderparamsdialog.cpp:492
Definition: shaderparamsdialog.h:27
void onShaderParamSliderValueChanged(int value)
Definition: shaderparamsdialog.cpp:1345
void onShaderSaveGamePresetClicked()
Definition: shaderparamsdialog.cpp:793
Definition: shaderparamsdialog.h:18
Definition: video_shader_parse.h:111
GLuint index
Definition: glext.h:6671
void getShaders(struct video_shader **menu_shader, struct video_shader **video_shader)
Definition: shaderparamsdialog.cpp:169
void onShaderParamDoubleSpinBoxValueChanged(double value)
Definition: shaderparamsdialog.cpp:1512
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter
Definition: glext.h:7672
void onShaderSaveParentPresetClicked()
Definition: shaderparamsdialog.cpp:788
void onShaderPassMoveDownClicked()
Definition: shaderparamsdialog.cpp:324
struct _cl_event * event
Definition: glext.h:8406
void onShaderParamSpinBoxValueChanged(int value)
Definition: shaderparamsdialog.cpp:1432
GLsizei const GLfloat * value
Definition: glext.h:6709
struct video_shader_pass * pass
Definition: shaderparamsdialog.h:24
void reload()
Definition: shaderparamsdialog.cpp:862
void onScaleComboBoxIndexChanged(int index)
Definition: shaderparamsdialog.cpp:270
void resized(QSize size)
ShaderPass(struct video_shader_pass *passToCopy=NULL)
Definition: shaderparamsdialog.cpp:44
void onShaderResetAllPasses()
Definition: shaderparamsdialog.cpp:630
ShaderParamsDialog(QWidget *parent=0)
Definition: shaderparamsdialog.cpp:71
void onShaderClearAllPassesClicked()
Definition: shaderparamsdialog.cpp:798
void onShaderResetPass(int pass)
Definition: shaderparamsdialog.cpp:547