-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcontrols.hpp
More file actions
84 lines (71 loc) · 2.23 KB
/
controls.hpp
File metadata and controls
84 lines (71 loc) · 2.23 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
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
#ifndef PSTACK_GUI_CONTROLS_HPP
#define PSTACK_GUI_CONTROLS_HPP
#include <wx/button.h>
#include <wx/checkbox.h>
#include <wx/choice.h>
#include <wx/gauge.h>
#include <wx/notebook.h>
#include <wx/panel.h>
#include <wx/spinctrl.h>
#include <wx/stattext.h>
#include <vector>
namespace pstack::gui {
class main_window;
struct controls {
controls() = default;
controls(const controls&) = delete;
controls& operator=(const controls&) = delete;
void initialize(main_window* parent);
void reset_values();
wxButton* import_part_button;
wxButton* delete_part_button;
wxButton* reload_part_button;
wxButton* copy_part_button;
wxButton* mirror_part_button;
wxButton* export_result_button;
wxButton* delete_result_button;
wxButton* sinterbox_result_button;
wxStaticText* section_view_text;
wxCheckBox* section_view_checkbox;
wxButton* stack_button;
wxGauge* progress_bar;
wxNotebook* notebook;
std::vector<wxPanel*> notebook_panels;
// Part settings tab
wxStaticText* quantity_text;
wxStaticText* min_hole_text;
wxStaticText* minimize_text;
wxSpinCtrl* quantity_spinner;
wxSpinCtrl* min_hole_spinner;
wxCheckBox* minimize_checkbox;
wxStaticText* rotation_text;
wxChoice* rotation_dropdown;
wxButton* preview_voxelization_button;
wxButton* preview_bounding_box_button;
// Stack settings tab
wxStaticText* initial_x_text;
wxStaticText* initial_y_text;
wxStaticText* initial_z_text;
wxStaticText* maximum_x_text;
wxStaticText* maximum_y_text;
wxStaticText* maximum_z_text;
wxSpinCtrl* initial_x_spinner;
wxSpinCtrl* initial_y_spinner;
wxSpinCtrl* initial_z_spinner;
wxSpinCtrl* maximum_x_spinner;
wxSpinCtrl* maximum_y_spinner;
wxSpinCtrl* maximum_z_spinner;
wxStaticText* min_clearance_text;
wxSpinCtrlDouble* min_clearance_spinner;
// Sinterbox tab
wxStaticText* clearance_text;
wxStaticText* spacing_text;
wxStaticText* thickness_text;
wxStaticText* width_text;
wxSpinCtrlDouble* clearance_spinner;
wxSpinCtrlDouble* spacing_spinner;
wxSpinCtrlDouble* thickness_spinner;
wxSpinCtrlDouble* width_spinner;
};
} // namespace pstack::gui
#endif // PSTACK_GUI_CONTROLS_HPP