-
Notifications
You must be signed in to change notification settings - Fork 1
/
DigitalOscilloscope.ui
290 lines (290 loc) · 8.98 KB
/
DigitalOscilloscope.ui
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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>DigitalOscilloscope</class>
<widget class="QMainWindow" name="DigitalOscilloscope">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>860</width>
<height>450</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>860</width>
<height>450</height>
</size>
</property>
<property name="windowTitle">
<string>AnsleDigitalOscilloscope</string>
</property>
<property name="windowIcon">
<iconset resource="RC.qrc">
<normaloff>:/new/prefix1/RC/Stats2.ico</normaloff>:/new/prefix1/RC/Stats2.ico</iconset>
</property>
<widget class="QWidget" name="centralWidget">
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0">
<layout class="QVBoxLayout" name="verticalLayout_2" stretch="10,2">
<property name="spacing">
<number>4</number>
</property>
<item>
<layout class="QHBoxLayout" name="horizontalLayout" stretch="10,2">
<property name="spacing">
<number>6</number>
</property>
<item>
<widget class="Plot" name="QwtPlotFrame">
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
</widget>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout" stretch="0,0">
<property name="spacing">
<number>0</number>
</property>
<item>
<widget class="QGroupBox" name="groupBox">
<property name="maximumSize">
<size>
<width>144</width>
<height>16777215</height>
</size>
</property>
<property name="title">
<string>串口配置</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0" colspan="2">
<widget class="QLabel" name="SerialLabel">
<property name="text">
<string>串 口</string>
</property>
</widget>
</item>
<item row="0" column="2">
<widget class="QComboBox" name="COMComboBox">
<property name="editable">
<bool>true</bool>
</property>
</widget>
</item>
<item row="1" column="0" colspan="2">
<widget class="QLabel" name="BaudRateLabel">
<property name="text">
<string>波 特 率</string>
</property>
</widget>
</item>
<item row="1" column="2">
<widget class="QComboBox" name="BaudComboBox"/>
</item>
<item row="2" column="0" colspan="2">
<widget class="QLabel" name="DataBitLabel">
<property name="text">
<string>数 据 位</string>
</property>
</widget>
</item>
<item row="2" column="2">
<widget class="QComboBox" name="DataBitComboBox"/>
</item>
<item row="3" column="0" colspan="2">
<widget class="QLabel" name="ParityBitLabel">
<property name="text">
<string>校 验 位</string>
</property>
</widget>
</item>
<item row="3" column="2">
<widget class="QComboBox" name="ParityBitComboBox"/>
</item>
<item row="4" column="0" colspan="2">
<widget class="QLabel" name="StopBitLabel">
<property name="text">
<string>停 止 位</string>
</property>
</widget>
</item>
<item row="4" column="2">
<widget class="QComboBox" name="StopComboBox"/>
</item>
<item row="5" column="0" colspan="2">
<widget class="QLabel" name="QueryModelLabel">
<property name="text">
<string>查询模式</string>
</property>
</widget>
</item>
<item row="5" column="2">
<widget class="QComboBox" name="QueryModeComBox"/>
</item>
<item row="6" column="0" colspan="2">
<widget class="QLabel" name="TimeOutLabel">
<property name="text">
<string>超 时</string>
</property>
</widget>
</item>
<item row="6" column="2">
<widget class="QSpinBox" name="timeoutBox">
<property name="suffix">
<string> ms</string>
</property>
<property name="minimum">
<number>-1</number>
</property>
<property name="maximum">
<number>10000</number>
</property>
<property name="singleStep">
<number>10</number>
</property>
<property name="value">
<number>10</number>
</property>
</widget>
</item>
<item row="7" column="0">
<widget class="HLed" name="led" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>25</width>
<height>25</height>
</size>
</property>
</widget>
</item>
<item row="7" column="1" colspan="2">
<widget class="QPushButton" name="OpenCloseButton">
<property name="text">
<string>打开/关闭串口</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QWidget" name="d_timerWheel" native="true">
<property name="maximumSize">
<size>
<width>144</width>
<height>86</height>
</size>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
<item>
<widget class="QTextBrowser" name="RecvTextBrowser">
<property name="maximumSize">
<size>
<width>16777215</width>
<height>71</height>
</size>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<widget class="QMenuBar" name="menuBar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>860</width>
<height>23</height>
</rect>
</property>
<widget class="QMenu" name="menu">
<property name="title">
<string>开始</string>
</property>
<addaction name="action_Quit"/>
</widget>
<widget class="QMenu" name="menu_2">
<property name="title">
<string>关于</string>
</property>
<addaction name="action_Qt"/>
<addaction name="action_About"/>
</widget>
<addaction name="menu"/>
<addaction name="menu_2"/>
</widget>
<action name="action_Quit">
<property name="icon">
<iconset resource="RC.qrc">
<normaloff>:/new/prefix1/RC/Standby.ico</normaloff>:/new/prefix1/RC/Standby.ico</iconset>
</property>
<property name="text">
<string>退出</string>
</property>
</action>
<action name="action_Qt">
<property name="icon">
<iconset resource="RC.qrc">
<normaloff>:/new/prefix1/RC/qt-logo.png</normaloff>:/new/prefix1/RC/qt-logo.png</iconset>
</property>
<property name="text">
<string>关于Qt</string>
</property>
</action>
<action name="action_About">
<property name="icon">
<iconset resource="RC.qrc">
<normaloff>:/new/prefix1/RC/pic.png</normaloff>:/new/prefix1/RC/pic.png</iconset>
</property>
<property name="text">
<string>关于软件</string>
</property>
</action>
</widget>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>
<customwidget>
<class>Plot</class>
<extends>QFrame</extends>
<header>plot.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>HLed</class>
<extends>QWidget</extends>
<header>hled.h</header>
<container>1</container>
</customwidget>
</customwidgets>
<resources>
<include location="RC.qrc"/>
</resources>
<connections/>
</ui>