forked from meerk40t/gui-files-meerk40t
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meerk40t-camera.wxg
178 lines (177 loc) · 8.59 KB
/
meerk40t-camera.wxg
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
<?xml version="1.0"?>
<!-- generated by wxGlade 0.9.6 on Wed Aug 12 12:46:09 2020 -->
<application class="MyApp" encoding="UTF-8" for_version="3.0" header_extension=".h" indent_amount="4" indent_symbol="space" is_template="0" language="python" mark_blocks="1" name="app" option="0" overwrite="1" path="./meerk40t-camera.py" source_extension=".cpp" top_window="CameraInterface" use_gettext="0" use_new_namespace="1">
<object class="CameraInterface" name="CameraInterface" base="EditFrame">
<size>600, 600</size>
<title>CameraInterface</title>
<style>wxDEFAULT_FRAME_STYLE|wxSTAY_ON_TOP|wxFRAME_TOOL_WINDOW</style>
<menubar>1</menubar>
<object class="wxMenuBar" name="CameraInterface_menubar" base="EditMenuBar">
<menus>
<menu label="Camera" name="">
<item>
<label>Reset Perspective</label>
<handler>menu_reset_perspective</handler>
</item>
<item>
<label>Reset Fisheye</label>
<handler>menu_reset_fisheye</handler>
</item>
<item>
<label>---</label>
<id>---</id>
<name>---</name>
</item>
<menu label="Camera URI" name="">
<item>
<label>uri0</label>
<radio>1</radio>
</item>
<item>
<label>New URI</label>
</item>
<item>
<label>Clear URIs</label>
</item>
</menu>
<item>
<label>Set IP Camera</label>
<radio>1</radio>
</item>
<item>
<label>Set Camera 0</label>
<radio>1</radio>
<handler>menu_camera</handler>
</item>
<item>
<label>Set Camera 1</label>
<radio>1</radio>
<handler>menu_camera</handler>
</item>
<item>
<label>Set Camera 2</label>
<radio>1</radio>
<handler>menu_camera</handler>
</item>
<item>
<label>Set Camera 3</label>
<radio>1</radio>
<handler>menu_camera</handler>
</item>
<item>
<label>Set Camera 4</label>
<radio>1</radio>
<handler>menu_camera</handler>
</item>
</menu>
</menus>
</object>
<object class="wxBoxSizer" name="sizer_1" base="EditBoxSizer">
<orient>wxVERTICAL</orient>
<object class="sizeritem">
<option>1</option>
<border>0</border>
<flag>wxEXPAND</flag>
<object class="wxBoxSizer" name="sizer_2" base="EditBoxSizer">
<orient>wxHORIZONTAL</orient>
<object class="sizeritem">
<option>0</option>
<border>0</border>
<object class="wxBitmapButton" name="button_update" base="EditBitmapButton">
<events>
<handler event="EVT_BUTTON">on_button_update</handler>
</events>
<tooltip>Update Image</tooltip>
<style>wxBU_AUTODRAW|wxBU_EXACTFIT|wxBU_NOTEXT</style>
<bitmap>.\icons\icons8-camera-50.png</bitmap>
</object>
</object>
<object class="sizeritem">
<option>0</option>
<border>0</border>
<object class="wxBitmapButton" name="button_export" base="EditBitmapButton">
<events>
<handler event="EVT_BUTTON">on_button_export</handler>
</events>
<tooltip>Export Snapsnot</tooltip>
<style>wxBU_AUTODRAW|wxBU_EXACTFIT|wxBU_NOTEXT</style>
<bitmap>.\icons\icons8-save-50.png</bitmap>
</object>
</object>
<object class="sizeritem">
<option>0</option>
<border>0</border>
<object class="wxBitmapButton" name="button_reconnect" base="EditBitmapButton">
<events>
<handler event="EVT_BUTTON">on_button_reconnect</handler>
</events>
<tooltip>Reconnect Camera</tooltip>
<style>wxBU_AUTODRAW|wxBU_EXACTFIT|wxBU_NOTEXT</style>
<bitmap>.\icons8-choose-font-50.png</bitmap>
</object>
</object>
<object class="sizeritem">
<option>1</option>
<border>0</border>
<flag>wxEXPAND</flag>
<object class="wxBoxSizer" name="sizer_3" base="EditBoxSizer">
<orient>wxVERTICAL</orient>
<object class="sizeritem">
<option>0</option>
<border>0</border>
<object class="wxCheckBox" name="check_fisheye" base="EditCheckBox">
<events>
<handler event="EVT_CHECKBOX">on_check_fisheye</handler>
</events>
<label>Correct Fisheye</label>
</object>
</object>
<object class="sizeritem">
<option>0</option>
<border>0</border>
<object class="wxCheckBox" name="check_perspective" base="EditCheckBox">
<events>
<handler event="EVT_CHECKBOX">on_check_perspective</handler>
</events>
<label>Correct Perspective</label>
</object>
</object>
</object>
</object>
<object class="sizeritem">
<option>1</option>
<border>0</border>
<flag>wxEXPAND</flag>
<object class="wxSlider" name="slider_fps" base="EditSlider">
<events>
<handler event="EVT_SLIDER">on_slider_fps</handler>
</events>
<style>wxSL_HORIZONTAL|wxSL_AUTOTICKS|wxSL_LABELS</style>
<range>0, 60</range>
<value>24</value>
</object>
</object>
<object class="sizeritem">
<option>0</option>
<border>0</border>
<object class="wxBitmapButton" name="button_detect" base="EditBitmapButton">
<events>
<handler event="EVT_BUTTON">on_button_detect</handler>
</events>
<tooltip>Detect Distortions/Calibration</tooltip>
<style>wxBU_AUTODRAW|wxBU_EXACTFIT|wxBU_NOTEXT</style>
<bitmap>.\icons\icons8-detective-50.png</bitmap>
</object>
</object>
</object>
</object>
<object class="sizeritem">
<option>10</option>
<border>0</border>
<flag>wxEXPAND</flag>
<object class="wxPanel" name="display_camera" base="EditPanel">
</object>
</object>
</object>
</object>
</application>