-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfilterlinear.h
More file actions
35 lines (27 loc) · 982 Bytes
/
filterlinear.h
File metadata and controls
35 lines (27 loc) · 982 Bytes
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
#ifndef FILTERLINEAR_H
#define FILTERLINEAR_H
#include "functionbox.h"
#include "controller.h"
#include <memory>
#include <QFormLayout>
#include <QComboBox>
#include <QTableWidget>
enum class EdgeAlgorithm : int;
class FilterLinear : public FunctionBox{
Q_OBJECT
public:
FilterLinear();
private:
std::unique_ptr<QFormLayout> layout{new QFormLayout(this)};
std::unique_ptr<QComboBox> sizeBox{new QComboBox()};
std::unique_ptr<QPushButton> sizeButton{new QPushButton(QString("Filtergroesse anpassen"))};
std::unique_ptr<QComboBox> cornerMethodField{new QComboBox()};
std::map<QString,EdgeAlgorithm> edgeFunctionMap{{QString("Zero Padding"),EdgeAlgorithm::ZEROPADDING}};
//2d array of fields
std::unique_ptr<QTableWidget> filtertable{new QTableWidget(3,3)};
std::unique_ptr<QPushButton> filterButton{new QPushButton(QString("Linear filtern"))};
private slots:
void filterLinearly();
void initTable();
};
#endif // FILTERLINEAR_H