MqttMonitor/MqttConnectionProfilesDialog.ui

branch
connection_profiles
changeset 17
ee738a0efe9c
child 19
889a7c3c0e63
equal deleted inserted replaced
16:308db08d66e2 17:ee738a0efe9c
1 <?xml version="1.0" encoding="UTF-8"?>
2 <ui version="4.0">
3 <class>MqttConnectionProfilesDialog</class>
4 <widget class="QDialog" name="MqttConnectionProfilesDialog">
5 <property name="geometry">
6 <rect>
7 <x>0</x>
8 <y>0</y>
9 <width>800</width>
10 <height>600</height>
11 </rect>
12 </property>
13 <property name="windowTitle">
14 <string>MQTT Connection Profiles</string>
15 </property>
16 <property name="sizeGripEnabled">
17 <bool>true</bool>
18 </property>
19 <layout class="QVBoxLayout" name="verticalLayout_2">
20 <item>
21 <widget class="QSplitter" name="splitter">
22 <property name="orientation">
23 <enum>Qt::Horizontal</enum>
24 </property>
25 <property name="childrenCollapsible">
26 <bool>false</bool>
27 </property>
28 <widget class="QFrame" name="profileListFrame">
29 <property name="frameShape">
30 <enum>QFrame::StyledPanel</enum>
31 </property>
32 <property name="frameShadow">
33 <enum>QFrame::Raised</enum>
34 </property>
35 <layout class="QVBoxLayout" name="verticalLayout">
36 <item>
37 <widget class="QListWidget" name="profilesList">
38 <property name="alternatingRowColors">
39 <bool>true</bool>
40 </property>
41 <property name="sortingEnabled">
42 <bool>true</bool>
43 </property>
44 </widget>
45 </item>
46 <item>
47 <layout class="QHBoxLayout" name="horizontalLayout">
48 <item>
49 <widget class="QToolButton" name="plusButton">
50 <property name="toolTip">
51 <string>Press to add a new profile</string>
52 </property>
53 </widget>
54 </item>
55 <item>
56 <widget class="QToolButton" name="minusButton">
57 <property name="toolTip">
58 <string>Press to delete the selected profile</string>
59 </property>
60 </widget>
61 </item>
62 <item>
63 <spacer name="horizontalSpacer">
64 <property name="orientation">
65 <enum>Qt::Horizontal</enum>
66 </property>
67 <property name="sizeHint" stdset="0">
68 <size>
69 <width>40</width>
70 <height>20</height>
71 </size>
72 </property>
73 </spacer>
74 </item>
75 </layout>
76 </item>
77 </layout>
78 </widget>
79 <widget class="QFrame" name="profileFrame">
80 <property name="frameShape">
81 <enum>QFrame::StyledPanel</enum>
82 </property>
83 <property name="frameShadow">
84 <enum>QFrame::Raised</enum>
85 </property>
86 <layout class="QVBoxLayout" name="verticalLayout_3">
87 <item>
88 <layout class="QGridLayout" name="gridLayout">
89 <item row="0" column="0">
90 <widget class="QLabel" name="label">
91 <property name="text">
92 <string>Profile Name:</string>
93 </property>
94 </widget>
95 </item>
96 <item row="0" column="1">
97 <widget class="E5ClearableLineEdit" name="profileEdit">
98 <property name="toolTip">
99 <string>Enter the name of the profile</string>
100 </property>
101 </widget>
102 </item>
103 <item row="1" column="0" colspan="2">
104 <widget class="Line" name="line">
105 <property name="orientation">
106 <enum>Qt::Horizontal</enum>
107 </property>
108 </widget>
109 </item>
110 <item row="2" column="0">
111 <widget class="QLabel" name="label_2">
112 <property name="text">
113 <string>Broker Address:</string>
114 </property>
115 </widget>
116 </item>
117 <item row="2" column="1">
118 <widget class="E5ClearableLineEdit" name="brokerAddressEdit">
119 <property name="toolTip">
120 <string>Enter the broker server address</string>
121 </property>
122 </widget>
123 </item>
124 <item row="3" column="0">
125 <widget class="QLabel" name="label_3">
126 <property name="text">
127 <string>Broker Port:</string>
128 </property>
129 </widget>
130 </item>
131 <item row="3" column="1">
132 <layout class="QHBoxLayout" name="horizontalLayout_2">
133 <item>
134 <widget class="QSpinBox" name="brokerPortSpinBox">
135 <property name="toolTip">
136 <string>Enter the broker port number (default 1883)</string>
137 </property>
138 <property name="alignment">
139 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
140 </property>
141 <property name="maximum">
142 <number>65535</number>
143 </property>
144 <property name="value">
145 <number>1883</number>
146 </property>
147 </widget>
148 </item>
149 <item>
150 <spacer name="horizontalSpacer_2">
151 <property name="orientation">
152 <enum>Qt::Horizontal</enum>
153 </property>
154 <property name="sizeHint" stdset="0">
155 <size>
156 <width>318</width>
157 <height>20</height>
158 </size>
159 </property>
160 </spacer>
161 </item>
162 </layout>
163 </item>
164 <item row="4" column="0">
165 <widget class="QLabel" name="label_4">
166 <property name="text">
167 <string>Client ID:</string>
168 </property>
169 </widget>
170 </item>
171 <item row="4" column="1">
172 <layout class="QHBoxLayout" name="horizontalLayout_3">
173 <item>
174 <widget class="E5ClearableLineEdit" name="clientIdEdit">
175 <property name="toolTip">
176 <string>Enter the ID string for this client</string>
177 </property>
178 </widget>
179 </item>
180 <item>
181 <widget class="QPushButton" name="generateIdButton">
182 <property name="toolTip">
183 <string>Press to generate a client ID</string>
184 </property>
185 <property name="text">
186 <string>Generate</string>
187 </property>
188 </widget>
189 </item>
190 </layout>
191 </item>
192 <item row="5" column="0" colspan="2">
193 <widget class="Line" name="line_2">
194 <property name="orientation">
195 <enum>Qt::Horizontal</enum>
196 </property>
197 </widget>
198 </item>
199 </layout>
200 </item>
201 <item>
202 <widget class="QTabWidget" name="tabWidget">
203 <property name="currentIndex">
204 <number>0</number>
205 </property>
206 <widget class="QWidget" name="generalTab">
207 <attribute name="title">
208 <string>General</string>
209 </attribute>
210 <layout class="QGridLayout" name="gridLayout_2">
211 <item row="0" column="0">
212 <widget class="QLabel" name="label_5">
213 <property name="text">
214 <string>Keep Alive Interval:</string>
215 </property>
216 </widget>
217 </item>
218 <item row="0" column="1">
219 <layout class="QHBoxLayout" name="horizontalLayout_4">
220 <item>
221 <widget class="QSpinBox" name="keepaliveSpinBox">
222 <property name="toolTip">
223 <string>Enter the keep alive interval in seconds</string>
224 </property>
225 <property name="alignment">
226 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
227 </property>
228 <property name="suffix">
229 <string> s</string>
230 </property>
231 <property name="maximum">
232 <number>300</number>
233 </property>
234 <property name="singleStep">
235 <number>5</number>
236 </property>
237 </widget>
238 </item>
239 <item>
240 <spacer name="horizontalSpacer_3">
241 <property name="orientation">
242 <enum>Qt::Horizontal</enum>
243 </property>
244 <property name="sizeHint" stdset="0">
245 <size>
246 <width>148</width>
247 <height>20</height>
248 </size>
249 </property>
250 </spacer>
251 </item>
252 </layout>
253 </item>
254 <item row="1" column="0" colspan="2">
255 <widget class="QCheckBox" name="cleanSessionCheckBox">
256 <property name="toolTip">
257 <string>Select to start with a clean session</string>
258 </property>
259 <property name="text">
260 <string>Clean Session</string>
261 </property>
262 </widget>
263 </item>
264 <item row="2" column="1">
265 <spacer name="verticalSpacer">
266 <property name="orientation">
267 <enum>Qt::Vertical</enum>
268 </property>
269 <property name="sizeHint" stdset="0">
270 <size>
271 <width>20</width>
272 <height>227</height>
273 </size>
274 </property>
275 </spacer>
276 </item>
277 </layout>
278 </widget>
279 <widget class="QWidget" name="credentialsTab">
280 <attribute name="title">
281 <string>User Credentials</string>
282 </attribute>
283 <layout class="QGridLayout" name="gridLayout_3">
284 <item row="0" column="0">
285 <widget class="QLabel" name="label_7">
286 <property name="text">
287 <string>User Name:</string>
288 </property>
289 </widget>
290 </item>
291 <item row="0" column="1">
292 <widget class="E5ClearableLineEdit" name="usernameEdit">
293 <property name="toolTip">
294 <string>Enter the user name</string>
295 </property>
296 </widget>
297 </item>
298 <item row="1" column="0">
299 <widget class="QLabel" name="label_6">
300 <property name="text">
301 <string>Password:</string>
302 </property>
303 </widget>
304 </item>
305 <item row="1" column="1">
306 <widget class="E5ClearableLineEdit" name="passwordEdit">
307 <property name="toolTip">
308 <string>Enter the password</string>
309 </property>
310 <property name="echoMode">
311 <enum>QLineEdit::Password</enum>
312 </property>
313 </widget>
314 </item>
315 <item row="2" column="0">
316 <spacer name="verticalSpacer_2">
317 <property name="orientation">
318 <enum>Qt::Vertical</enum>
319 </property>
320 <property name="sizeHint" stdset="0">
321 <size>
322 <width>20</width>
323 <height>228</height>
324 </size>
325 </property>
326 </spacer>
327 </item>
328 </layout>
329 </widget>
330 <widget class="QWidget" name="lastWillTab">
331 <attribute name="title">
332 <string>Last Will</string>
333 </attribute>
334 <layout class="QGridLayout" name="gridLayout_4">
335 <item row="0" column="0">
336 <widget class="E5ClearableLineEdit" name="willTopicEdit">
337 <property name="toolTip">
338 <string>Enter the topic of the last will</string>
339 </property>
340 </widget>
341 </item>
342 <item row="0" column="1">
343 <widget class="QSpinBox" name="willQosSpinBox">
344 <property name="toolTip">
345 <string>Enter the desired QoS value</string>
346 </property>
347 <property name="alignment">
348 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
349 </property>
350 <property name="maximum">
351 <number>2</number>
352 </property>
353 </widget>
354 </item>
355 <item row="0" column="2">
356 <widget class="QCheckBox" name="willRetainCheckBox">
357 <property name="toolTip">
358 <string>Select to retain the last will message</string>
359 </property>
360 <property name="text">
361 <string>Retain</string>
362 </property>
363 </widget>
364 </item>
365 <item row="1" column="0" colspan="3">
366 <widget class="QPlainTextEdit" name="willMessageEdit">
367 <property name="maximumSize">
368 <size>
369 <width>16777215</width>
370 <height>300</height>
371 </size>
372 </property>
373 <property name="toolTip">
374 <string>Enter the last will message to be sent</string>
375 </property>
376 </widget>
377 </item>
378 </layout>
379 </widget>
380 </widget>
381 </item>
382 <item>
383 <widget class="QDialogButtonBox" name="profileButtonBox">
384 <property name="standardButtons">
385 <set>QDialogButtonBox::Apply|QDialogButtonBox::Cancel|QDialogButtonBox::Reset</set>
386 </property>
387 </widget>
388 </item>
389 </layout>
390 </widget>
391 </widget>
392 </item>
393 <item>
394 <widget class="QDialogButtonBox" name="buttonBox">
395 <property name="orientation">
396 <enum>Qt::Horizontal</enum>
397 </property>
398 <property name="standardButtons">
399 <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
400 </property>
401 </widget>
402 </item>
403 </layout>
404 </widget>
405 <customwidgets>
406 <customwidget>
407 <class>E5ClearableLineEdit</class>
408 <extends>QLineEdit</extends>
409 <header>E5Gui/E5LineEdit.h</header>
410 </customwidget>
411 </customwidgets>
412 <tabstops>
413 <tabstop>profilesList</tabstop>
414 <tabstop>plusButton</tabstop>
415 <tabstop>minusButton</tabstop>
416 <tabstop>profileEdit</tabstop>
417 <tabstop>brokerAddressEdit</tabstop>
418 <tabstop>brokerPortSpinBox</tabstop>
419 <tabstop>clientIdEdit</tabstop>
420 <tabstop>generateIdButton</tabstop>
421 <tabstop>tabWidget</tabstop>
422 <tabstop>keepaliveSpinBox</tabstop>
423 <tabstop>cleanSessionCheckBox</tabstop>
424 <tabstop>usernameEdit</tabstop>
425 <tabstop>passwordEdit</tabstop>
426 <tabstop>willTopicEdit</tabstop>
427 <tabstop>willMessageEdit</tabstop>
428 <tabstop>willQosSpinBox</tabstop>
429 <tabstop>willRetainCheckBox</tabstop>
430 </tabstops>
431 <resources/>
432 <connections>
433 <connection>
434 <sender>buttonBox</sender>
435 <signal>accepted()</signal>
436 <receiver>MqttConnectionProfilesDialog</receiver>
437 <slot>accept()</slot>
438 <hints>
439 <hint type="sourcelabel">
440 <x>227</x>
441 <y>579</y>
442 </hint>
443 <hint type="destinationlabel">
444 <x>157</x>
445 <y>274</y>
446 </hint>
447 </hints>
448 </connection>
449 <connection>
450 <sender>buttonBox</sender>
451 <signal>rejected()</signal>
452 <receiver>MqttConnectionProfilesDialog</receiver>
453 <slot>reject()</slot>
454 <hints>
455 <hint type="sourcelabel">
456 <x>295</x>
457 <y>585</y>
458 </hint>
459 <hint type="destinationlabel">
460 <x>286</x>
461 <y>274</y>
462 </hint>
463 </hints>
464 </connection>
465 </connections>
466 </ui>

eric ide

mercurial