-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGenerationPanel.h
More file actions
55 lines (42 loc) · 1.28 KB
/
Copy pathGenerationPanel.h
File metadata and controls
55 lines (42 loc) · 1.28 KB
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
#ifndef GENERATIONPANEL_H
#define GENERATIONPANEL_H
#include <QWidget>
class QSpinBox;
class QDoubleSpinBox;
class QComboBox;
class QPushButton;
class DocumentController;
class GenerationPanel : public QWidget
{
Q_OBJECT
public:
explicit GenerationPanel(DocumentController *controller,
QWidget *parent = nullptr);
public slots:
void triggerGenerateStar();
void triggerGenerateArrow();
void triggerGenerateArray();
private slots:
void onGenerate();
private:
void buildUI();
DocumentController *m_controller = nullptr;
QSpinBox *m_starPoints = nullptr;
QDoubleSpinBox *m_starOuterR = nullptr;
QDoubleSpinBox *m_starInnerRatio = nullptr;
QSpinBox *m_starCx = nullptr;
QSpinBox *m_starCy = nullptr;
QSpinBox *m_arrowStartX = nullptr;
QSpinBox *m_arrowStartY = nullptr;
QSpinBox *m_arrowEndX = nullptr;
QSpinBox *m_arrowEndY = nullptr;
QSpinBox *m_arrayCols = nullptr;
QSpinBox *m_arrayRows = nullptr;
QDoubleSpinBox *m_arraySpacingX = nullptr;
QDoubleSpinBox *m_arraySpacingY = nullptr;
QComboBox *m_arrayShapeType = nullptr;
QPushButton *m_genStarBtn = nullptr;
QPushButton *m_genArrowBtn = nullptr;
QPushButton *m_genArrayBtn = nullptr;
};
#endif // GENERATIONPANEL_H