-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCustomSchemeWindow.h
106 lines (82 loc) · 2.27 KB
/
CustomSchemeWindow.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
#ifndef CUSTOMSCHEMEWINDOW_H
#define CUSTOMSCHEMEWINDOW_H
#include <memory>
#include <QMainWindow>
#include <QAction>
#include <QActionGroup>
#include <QLineEdit>
#include <QLabel>
#include <QGroupBox>
#include <QRadioButton>
#include <QPushButton>
#include <QFileDialog>
#include <QMessageBox>
#include <QVBoxLayout>
#include <QDoubleValidator>
#include "CustomSchemeHandler.h"
#include "SubdivisionController.h"
#include "CustomScheme.h"
class QAction;
class QActionGroup;
class CustomSchemeWindow : public QDialog
{
Q_OBJECT
public:
explicit CustomSchemeWindow(QWidget *parent = 0);
~CustomSchemeWindow();
private slots:
void onTriggered_Approx();
void onTriggered_Interp();
void onTriggered_Tri();
void onTriggered_Quad();
void onTriggered_FirstNeighbours();
void onTriggered_SecondNeighbours();
void onTriggered_okButton();
void onTriggered_cancelButton();
void onTextChange(const QString &text);
private:
void createActions();
void updateWeightsLayout();
void updateLineEditsDisableSetting();
void setWeightGroupBoxes();
void updatePng(QLabel* label, const QString png);
QLabel* labelOddPng;
QLabel* labelEvenPng;
QActionGroup* schemeTypesGroup;
QAction* approxAction;
QAction* interpolAction;
QActionGroup* shapeGroup;
QAction* triAction;
QAction* quadAction;
QActionGroup* neighbourGroup;
QAction* firstNeighbourAction;
QAction* secondNeighbourAction;
QVBoxLayout* sidebarVBox;
QGroupBox* groupBoxTypes;
QGroupBox* groupBoxShapes;
QGroupBox* groupBoxNeighbours;
QRadioButton* approxRB;
QRadioButton* interpolRB;
QRadioButton* triRB;
QRadioButton* quadRB;
QRadioButton* firstnRB;
QRadioButton* secondnRB;
QVBoxLayout* vBoxWeights;
QWidget* container;
QLabel* labelWeightsTitle;
QLineEdit* leSchemeName;
QGroupBox* groupBoxFaceWeights;
QGroupBox* groupBoxOddWeights;
QGroupBox* groupBoxEvenWeights;
std::map<QLineEdit*,bool> mapLineEditsDisabled;
QLineEdit* leFace0;
QLineEdit* leFace1;
QLineEdit* leOdd0;
QLineEdit* leOdd1;
QLineEdit* leEven0;
QLineEdit* leEven1;
QPushButton* okButton;
QPushButton* cancelButton;
CustomScheme custom_scheme;
};
#endif // CUSTOMSCHEMEWINDOW_H