ACMX 2.139.0
Dual-Backend Real-Time GPU Video Synthesis
Loading...
Searching...
No Matches
shaderlibrary.hpp
Go to the documentation of this file.
1#ifndef __SHADER_LIB_H__Y
2#define __SHADER_LIB_H__Y
3
4/**
5 * @file shaderlibrary.hpp
6 * @brief Dialog for generating a shader index from a selected folder.
7 */
8
9#include "backend.hpp"
10#include <QCheckBox>
11#include <QDialog>
12#include <QDir>
13#include <QFile>
14#include <QFileDialog>
15#include <QLabel>
16#include <QLineEdit>
17#include <QMessageBox>
18#include <QPushButton>
19#include <QTextStream>
20#include <QVBoxLayout>
21
22/**
23 * @brief Shader-library utility dialog.
24 */
25class LibraryWindow : public QDialog {
26 Q_OBJECT
27
28 public:
29 explicit LibraryWindow(acmx2::Backend backend, QWidget *parent = nullptr);
30
31 private:
32 QLineEdit *folderPathEdit;
33 QPushButton *browseButton;
34 QPushButton *okButton;
35 QPushButton *cancelButton;
38 void init();
39 bool createShaderManifest(const QString &folderPath);
40
41 public:
42 /// @brief Return folder chosen for shader-library indexing.
43 QString getShaderPath();
44
45 private slots:
47 void onOkButtonClicked();
49
50 private:
51 QString path;
53};
54
55#endif
acmx2::Backend backend
void onBrowseButtonClicked()
void onOkButtonClicked()
QLineEdit * folderPathEdit
QCheckBox * createDefaultShaderCheckBox
void onCancelButtonClicked()
QCheckBox * createJsonManifestCheckBox
QPushButton * cancelButton
QString getShaderPath()
Return folder chosen for shader-library indexing.
bool createShaderManifest(const QString &folderPath)
QPushButton * okButton
LibraryWindow(acmx2::Backend backend, QWidget *parent=nullptr)
QPushButton * browseButton
Backend
Definition backend.hpp:8