-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpostprocesseswindow.h
52 lines (40 loc) · 1.23 KB
/
postprocesseswindow.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#ifndef POSTPROCESSESWINDOW_H
#define POSTPROCESSESWINDOW_H
#include <QDialog>
#include <string>
#include <memory>
#include <map>
#include "postprocessor.h"
class Material;
namespace Ui {
class PostProcessesWindow;
}
/**
* @brief Hooks into the global post processing steps, enabling editing them at runtime.
*/
class PostProcessesWindow : public QDialog
{
Q_OBJECT
public:
explicit PostProcessesWindow(QWidget *parent = nullptr);
~PostProcessesWindow();
/**
* @brief Creates the window based on the given the post processor data.
*/
void addPostProcessors(const std::vector<std::pair<std::string, Postprocessor *>> &postprocessors);
signals:
/**
* @brief Called when the user presses the save button. Mainwindow is connected to this.
*/
void onSaveClicked(const std::map<Postprocessor*, std::vector<Postprocessor::Setting>>& steps);
private slots:
/**
* @brief Hides the window and emits the onSaveClicked signal.
*/
void on_button_Save_clicked();
private:
Ui::PostProcessesWindow *ui;
void addPostprocessor(std::pair<std::string, Postprocessor*> postprocess);
std::map<Postprocessor*, std::vector<Postprocessor::Setting>> cachedSteps;
};
#endif // POSTPROCESSESWINDOW_H