MqttMonitor/MqttConnectionProfilesDialog.ui

changeset 28
0f02baed8308
parent 26
ad232a5129cc
child 31
40582e448c4b
equal deleted inserted replaced
27:aeb276d76ec7 28:0f02baed8308
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="copyButton">
57 <property name="toolTip">
58 <string>Press to copy the selected profile</string>
59 </property>
60 </widget>
61 </item>
62 <item>
63 <widget class="QToolButton" name="minusButton">
64 <property name="toolTip">
65 <string>Press to delete the selected profile</string>
66 </property>
67 </widget>
68 </item>
69 <item>
70 <spacer name="horizontalSpacer">
71 <property name="orientation">
72 <enum>Qt::Horizontal</enum>
73 </property>
74 <property name="sizeHint" stdset="0">
75 <size>
76 <width>40</width>
77 <height>20</height>
78 </size>
79 </property>
80 </spacer>
81 </item>
82 </layout>
83 </item>
84 </layout>
85 </widget>
86 <widget class="QFrame" name="profileFrame">
87 <property name="frameShape">
88 <enum>QFrame::StyledPanel</enum>
89 </property>
90 <property name="frameShadow">
91 <enum>QFrame::Raised</enum>
92 </property>
93 <layout class="QVBoxLayout" name="verticalLayout_3">
94 <item>
95 <layout class="QGridLayout" name="gridLayout">
96 <item row="0" column="0">
97 <widget class="QLabel" name="label">
98 <property name="text">
99 <string>Profile Name:</string>
100 </property>
101 </widget>
102 </item>
103 <item row="0" column="1">
104 <widget class="QLineEdit" name="profileEdit">
105 <property name="readOnly">
106 <bool>true</bool>
107 </property>
108 </widget>
109 </item>
110 <item row="1" column="0" colspan="2">
111 <widget class="Line" name="line">
112 <property name="orientation">
113 <enum>Qt::Horizontal</enum>
114 </property>
115 </widget>
116 </item>
117 <item row="2" column="0">
118 <widget class="QLabel" name="label_2">
119 <property name="text">
120 <string>Broker Address:</string>
121 </property>
122 </widget>
123 </item>
124 <item row="2" column="1">
125 <widget class="E5ClearableLineEdit" name="brokerAddressEdit">
126 <property name="toolTip">
127 <string>Enter the broker server address</string>
128 </property>
129 </widget>
130 </item>
131 <item row="3" column="0">
132 <widget class="QLabel" name="label_3">
133 <property name="text">
134 <string>Broker Port:</string>
135 </property>
136 </widget>
137 </item>
138 <item row="3" column="1">
139 <layout class="QHBoxLayout" name="horizontalLayout_2">
140 <item>
141 <widget class="QSpinBox" name="brokerPortSpinBox">
142 <property name="toolTip">
143 <string>Enter the broker port number (default 1883)</string>
144 </property>
145 <property name="alignment">
146 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
147 </property>
148 <property name="maximum">
149 <number>65535</number>
150 </property>
151 <property name="value">
152 <number>1883</number>
153 </property>
154 </widget>
155 </item>
156 <item>
157 <spacer name="horizontalSpacer_2">
158 <property name="orientation">
159 <enum>Qt::Horizontal</enum>
160 </property>
161 <property name="sizeHint" stdset="0">
162 <size>
163 <width>318</width>
164 <height>20</height>
165 </size>
166 </property>
167 </spacer>
168 </item>
169 </layout>
170 </item>
171 <item row="4" column="0">
172 <widget class="QLabel" name="label_4">
173 <property name="text">
174 <string>Client ID:</string>
175 </property>
176 </widget>
177 </item>
178 <item row="4" column="1">
179 <layout class="QHBoxLayout" name="horizontalLayout_3">
180 <item>
181 <widget class="E5ClearableLineEdit" name="clientIdEdit">
182 <property name="toolTip">
183 <string>Enter the ID string for this client</string>
184 </property>
185 </widget>
186 </item>
187 <item>
188 <widget class="QPushButton" name="generateIdButton">
189 <property name="toolTip">
190 <string>Press to generate a client ID</string>
191 </property>
192 <property name="text">
193 <string>Generate</string>
194 </property>
195 </widget>
196 </item>
197 </layout>
198 </item>
199 <item row="5" column="0" colspan="2">
200 <widget class="Line" name="line_2">
201 <property name="orientation">
202 <enum>Qt::Horizontal</enum>
203 </property>
204 </widget>
205 </item>
206 </layout>
207 </item>
208 <item>
209 <widget class="QTabWidget" name="profileTabWidget">
210 <property name="currentIndex">
211 <number>0</number>
212 </property>
213 <widget class="QWidget" name="generalTab">
214 <attribute name="title">
215 <string>General</string>
216 </attribute>
217 <layout class="QGridLayout" name="gridLayout_2">
218 <item row="0" column="0">
219 <widget class="QLabel" name="label_5">
220 <property name="text">
221 <string>Keep Alive Interval:</string>
222 </property>
223 </widget>
224 </item>
225 <item row="0" column="1">
226 <layout class="QHBoxLayout" name="horizontalLayout_4">
227 <item>
228 <widget class="QSpinBox" name="keepaliveSpinBox">
229 <property name="toolTip">
230 <string>Enter the keep alive interval in seconds</string>
231 </property>
232 <property name="alignment">
233 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
234 </property>
235 <property name="suffix">
236 <string> s</string>
237 </property>
238 <property name="maximum">
239 <number>300</number>
240 </property>
241 <property name="singleStep">
242 <number>5</number>
243 </property>
244 <property name="value">
245 <number>60</number>
246 </property>
247 </widget>
248 </item>
249 <item>
250 <spacer name="horizontalSpacer_3">
251 <property name="orientation">
252 <enum>Qt::Horizontal</enum>
253 </property>
254 <property name="sizeHint" stdset="0">
255 <size>
256 <width>148</width>
257 <height>20</height>
258 </size>
259 </property>
260 </spacer>
261 </item>
262 </layout>
263 </item>
264 <item row="1" column="0" colspan="2">
265 <widget class="QCheckBox" name="cleanSessionCheckBox">
266 <property name="toolTip">
267 <string>Select to start with a clean session</string>
268 </property>
269 <property name="text">
270 <string>Clean Session</string>
271 </property>
272 </widget>
273 </item>
274 <item row="2" column="1">
275 <spacer name="verticalSpacer">
276 <property name="orientation">
277 <enum>Qt::Vertical</enum>
278 </property>
279 <property name="sizeHint" stdset="0">
280 <size>
281 <width>20</width>
282 <height>227</height>
283 </size>
284 </property>
285 </spacer>
286 </item>
287 </layout>
288 </widget>
289 <widget class="QWidget" name="credentialsTab">
290 <attribute name="title">
291 <string>User Credentials</string>
292 </attribute>
293 <layout class="QGridLayout" name="gridLayout_3">
294 <item row="0" column="0">
295 <widget class="QLabel" name="label_7">
296 <property name="text">
297 <string>User Name:</string>
298 </property>
299 </widget>
300 </item>
301 <item row="0" column="1">
302 <widget class="E5ClearableLineEdit" name="usernameEdit">
303 <property name="toolTip">
304 <string>Enter the user name</string>
305 </property>
306 </widget>
307 </item>
308 <item row="1" column="0">
309 <widget class="QLabel" name="label_6">
310 <property name="text">
311 <string>Password:</string>
312 </property>
313 </widget>
314 </item>
315 <item row="1" column="1">
316 <widget class="E5ClearableLineEdit" name="passwordEdit">
317 <property name="toolTip">
318 <string>Enter the password</string>
319 </property>
320 <property name="echoMode">
321 <enum>QLineEdit::Password</enum>
322 </property>
323 </widget>
324 </item>
325 <item row="2" column="0">
326 <spacer name="verticalSpacer_2">
327 <property name="orientation">
328 <enum>Qt::Vertical</enum>
329 </property>
330 <property name="sizeHint" stdset="0">
331 <size>
332 <width>20</width>
333 <height>228</height>
334 </size>
335 </property>
336 </spacer>
337 </item>
338 </layout>
339 </widget>
340 <widget class="QWidget" name="lastWillTab">
341 <attribute name="title">
342 <string>Last Will</string>
343 </attribute>
344 <layout class="QGridLayout" name="gridLayout_4">
345 <item row="0" column="0">
346 <widget class="E5ClearableLineEdit" name="willTopicEdit">
347 <property name="toolTip">
348 <string>Enter the topic of the last will</string>
349 </property>
350 </widget>
351 </item>
352 <item row="0" column="1">
353 <widget class="QSpinBox" name="willQosSpinBox">
354 <property name="toolTip">
355 <string>Enter the desired QoS value</string>
356 </property>
357 <property name="alignment">
358 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
359 </property>
360 <property name="maximum">
361 <number>2</number>
362 </property>
363 </widget>
364 </item>
365 <item row="0" column="2">
366 <widget class="QCheckBox" name="willRetainCheckBox">
367 <property name="toolTip">
368 <string>Select to retain the last will message</string>
369 </property>
370 <property name="text">
371 <string>Retain</string>
372 </property>
373 </widget>
374 </item>
375 <item row="1" column="0" colspan="3">
376 <widget class="QPlainTextEdit" name="willMessageEdit">
377 <property name="maximumSize">
378 <size>
379 <width>16777215</width>
380 <height>300</height>
381 </size>
382 </property>
383 <property name="toolTip">
384 <string>Enter the last will message to be sent</string>
385 </property>
386 </widget>
387 </item>
388 </layout>
389 </widget>
390 <widget class="QWidget" name="tlsTab">
391 <attribute name="title">
392 <string>SSL/TLS</string>
393 </attribute>
394 <layout class="QVBoxLayout" name="verticalLayout_5">
395 <item>
396 <widget class="QGroupBox" name="tlsGroupBox">
397 <property name="toolTip">
398 <string>Select to enable SSL/TLS connections</string>
399 </property>
400 <property name="title">
401 <string>SSL/TLS Enabled</string>
402 </property>
403 <property name="checkable">
404 <bool>true</bool>
405 </property>
406 <property name="checked">
407 <bool>false</bool>
408 </property>
409 <layout class="QVBoxLayout" name="verticalLayout_4">
410 <item>
411 <widget class="QRadioButton" name="tlsDefaultCertsButton">
412 <property name="toolTip">
413 <string>Select to use the default certificate file of the client</string>
414 </property>
415 <property name="text">
416 <string>CA signed server certificate</string>
417 </property>
418 <property name="checked">
419 <bool>true</bool>
420 </property>
421 </widget>
422 </item>
423 <item>
424 <widget class="QRadioButton" name="tlsCertsFileButton">
425 <property name="toolTip">
426 <string>Select to use a specific certificate file</string>
427 </property>
428 <property name="text">
429 <string>CA certificate file</string>
430 </property>
431 </widget>
432 </item>
433 <item>
434 <widget class="QWidget" name="tlsCertsFileWidget" native="true">
435 <property name="enabled">
436 <bool>false</bool>
437 </property>
438 <layout class="QHBoxLayout" name="horizontalLayout_6">
439 <property name="leftMargin">
440 <number>0</number>
441 </property>
442 <property name="topMargin">
443 <number>0</number>
444 </property>
445 <property name="rightMargin">
446 <number>0</number>
447 </property>
448 <property name="bottomMargin">
449 <number>0</number>
450 </property>
451 <item>
452 <spacer name="horizontalSpacer_4">
453 <property name="orientation">
454 <enum>Qt::Horizontal</enum>
455 </property>
456 <property name="sizeType">
457 <enum>QSizePolicy::Fixed</enum>
458 </property>
459 <property name="sizeHint" stdset="0">
460 <size>
461 <width>25</width>
462 <height>20</height>
463 </size>
464 </property>
465 </spacer>
466 </item>
467 <item>
468 <widget class="QLabel" name="label_8">
469 <property name="text">
470 <string>CA File:</string>
471 </property>
472 </widget>
473 </item>
474 <item>
475 <widget class="E5PathPicker" name="tlsCertsFilePicker" native="true">
476 <property name="sizePolicy">
477 <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
478 <horstretch>0</horstretch>
479 <verstretch>0</verstretch>
480 </sizepolicy>
481 </property>
482 <property name="focusPolicy">
483 <enum>Qt::StrongFocus</enum>
484 </property>
485 <property name="toolTip">
486 <string>Enter the full path to the CA certificate file</string>
487 </property>
488 </widget>
489 </item>
490 </layout>
491 </widget>
492 </item>
493 <item>
494 <widget class="QRadioButton" name="tlsSelfSignedCertsButton">
495 <property name="toolTip">
496 <string>Select to use a self signed client certificate</string>
497 </property>
498 <property name="text">
499 <string>Self signed certificates</string>
500 </property>
501 </widget>
502 </item>
503 <item>
504 <widget class="QWidget" name="tlsSelfSignedFilesWidget" native="true">
505 <property name="enabled">
506 <bool>false</bool>
507 </property>
508 <layout class="QGridLayout" name="gridLayout_5">
509 <property name="leftMargin">
510 <number>0</number>
511 </property>
512 <property name="topMargin">
513 <number>0</number>
514 </property>
515 <property name="rightMargin">
516 <number>0</number>
517 </property>
518 <property name="bottomMargin">
519 <number>0</number>
520 </property>
521 <item row="0" column="0">
522 <spacer name="horizontalSpacer_5">
523 <property name="orientation">
524 <enum>Qt::Horizontal</enum>
525 </property>
526 <property name="sizeType">
527 <enum>QSizePolicy::Fixed</enum>
528 </property>
529 <property name="sizeHint" stdset="0">
530 <size>
531 <width>25</width>
532 <height>20</height>
533 </size>
534 </property>
535 </spacer>
536 </item>
537 <item row="0" column="1">
538 <widget class="QLabel" name="label_9">
539 <property name="text">
540 <string>CA File:</string>
541 </property>
542 </widget>
543 </item>
544 <item row="0" column="2">
545 <widget class="E5PathPicker" name="tlsSelfSignedCertsFilePicker" native="true">
546 <property name="sizePolicy">
547 <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
548 <horstretch>0</horstretch>
549 <verstretch>0</verstretch>
550 </sizepolicy>
551 </property>
552 <property name="focusPolicy">
553 <enum>Qt::StrongFocus</enum>
554 </property>
555 <property name="toolTip">
556 <string>Enter the full path to the CA certificate file</string>
557 </property>
558 </widget>
559 </item>
560 <item row="1" column="1">
561 <widget class="QLabel" name="label_10">
562 <property name="text">
563 <string>Client Certificate File:</string>
564 </property>
565 </widget>
566 </item>
567 <item row="1" column="2">
568 <widget class="E5PathPicker" name="tlsSelfSignedClientCertFilePicker" native="true">
569 <property name="sizePolicy">
570 <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
571 <horstretch>0</horstretch>
572 <verstretch>0</verstretch>
573 </sizepolicy>
574 </property>
575 <property name="focusPolicy">
576 <enum>Qt::StrongFocus</enum>
577 </property>
578 <property name="toolTip">
579 <string>Enter the full path to the client certificate file</string>
580 </property>
581 </widget>
582 </item>
583 <item row="2" column="1">
584 <widget class="QLabel" name="label_11">
585 <property name="text">
586 <string>Client Key File:</string>
587 </property>
588 </widget>
589 </item>
590 <item row="2" column="2">
591 <widget class="E5PathPicker" name="tlsSelfSignedClientKeyFilePicker" native="true">
592 <property name="sizePolicy">
593 <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
594 <horstretch>0</horstretch>
595 <verstretch>0</verstretch>
596 </sizepolicy>
597 </property>
598 <property name="focusPolicy">
599 <enum>Qt::StrongFocus</enum>
600 </property>
601 <property name="toolTip">
602 <string>Enter the full path to the client key file</string>
603 </property>
604 </widget>
605 </item>
606 </layout>
607 </widget>
608 </item>
609 </layout>
610 </widget>
611 </item>
612 <item>
613 <spacer name="verticalSpacer_3">
614 <property name="orientation">
615 <enum>Qt::Vertical</enum>
616 </property>
617 <property name="sizeHint" stdset="0">
618 <size>
619 <width>20</width>
620 <height>128</height>
621 </size>
622 </property>
623 </spacer>
624 </item>
625 </layout>
626 </widget>
627 </widget>
628 </item>
629 <item>
630 <widget class="QDialogButtonBox" name="profileButtonBox">
631 <property name="standardButtons">
632 <set>QDialogButtonBox::Apply|QDialogButtonBox::Reset|QDialogButtonBox::RestoreDefaults</set>
633 </property>
634 </widget>
635 </item>
636 </layout>
637 </widget>
638 </widget>
639 </item>
640 <item>
641 <widget class="QDialogButtonBox" name="buttonBox">
642 <property name="orientation">
643 <enum>Qt::Horizontal</enum>
644 </property>
645 <property name="standardButtons">
646 <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
647 </property>
648 </widget>
649 </item>
650 </layout>
651 </widget>
652 <customwidgets>
653 <customwidget>
654 <class>E5ClearableLineEdit</class>
655 <extends>QLineEdit</extends>
656 <header>E5Gui/E5LineEdit.h</header>
657 </customwidget>
658 <customwidget>
659 <class>E5PathPicker</class>
660 <extends>QWidget</extends>
661 <header>E5Gui/E5PathPicker.h</header>
662 <container>1</container>
663 </customwidget>
664 </customwidgets>
665 <tabstops>
666 <tabstop>profilesList</tabstop>
667 <tabstop>plusButton</tabstop>
668 <tabstop>copyButton</tabstop>
669 <tabstop>minusButton</tabstop>
670 <tabstop>profileEdit</tabstop>
671 <tabstop>brokerAddressEdit</tabstop>
672 <tabstop>brokerPortSpinBox</tabstop>
673 <tabstop>clientIdEdit</tabstop>
674 <tabstop>generateIdButton</tabstop>
675 <tabstop>profileTabWidget</tabstop>
676 <tabstop>keepaliveSpinBox</tabstop>
677 <tabstop>cleanSessionCheckBox</tabstop>
678 <tabstop>usernameEdit</tabstop>
679 <tabstop>passwordEdit</tabstop>
680 <tabstop>willTopicEdit</tabstop>
681 <tabstop>willMessageEdit</tabstop>
682 <tabstop>willQosSpinBox</tabstop>
683 <tabstop>willRetainCheckBox</tabstop>
684 <tabstop>tlsGroupBox</tabstop>
685 <tabstop>tlsDefaultCertsButton</tabstop>
686 <tabstop>tlsCertsFileButton</tabstop>
687 <tabstop>tlsCertsFilePicker</tabstop>
688 <tabstop>tlsSelfSignedCertsButton</tabstop>
689 <tabstop>tlsSelfSignedCertsFilePicker</tabstop>
690 <tabstop>tlsSelfSignedClientCertFilePicker</tabstop>
691 <tabstop>tlsSelfSignedClientKeyFilePicker</tabstop>
692 </tabstops>
693 <resources/>
694 <connections>
695 <connection>
696 <sender>buttonBox</sender>
697 <signal>accepted()</signal>
698 <receiver>MqttConnectionProfilesDialog</receiver>
699 <slot>accept()</slot>
700 <hints>
701 <hint type="sourcelabel">
702 <x>227</x>
703 <y>579</y>
704 </hint>
705 <hint type="destinationlabel">
706 <x>157</x>
707 <y>274</y>
708 </hint>
709 </hints>
710 </connection>
711 <connection>
712 <sender>buttonBox</sender>
713 <signal>rejected()</signal>
714 <receiver>MqttConnectionProfilesDialog</receiver>
715 <slot>reject()</slot>
716 <hints>
717 <hint type="sourcelabel">
718 <x>295</x>
719 <y>585</y>
720 </hint>
721 <hint type="destinationlabel">
722 <x>286</x>
723 <y>274</y>
724 </hint>
725 </hints>
726 </connection>
727 <connection>
728 <sender>tlsCertsFileButton</sender>
729 <signal>toggled(bool)</signal>
730 <receiver>tlsCertsFileWidget</receiver>
731 <slot>setEnabled(bool)</slot>
732 <hints>
733 <hint type="sourcelabel">
734 <x>367</x>
735 <y>238</y>
736 </hint>
737 <hint type="destinationlabel">
738 <x>357</x>
739 <y>252</y>
740 </hint>
741 </hints>
742 </connection>
743 <connection>
744 <sender>tlsSelfSignedCertsButton</sender>
745 <signal>toggled(bool)</signal>
746 <receiver>tlsSelfSignedFilesWidget</receiver>
747 <slot>setEnabled(bool)</slot>
748 <hints>
749 <hint type="sourcelabel">
750 <x>387</x>
751 <y>287</y>
752 </hint>
753 <hint type="destinationlabel">
754 <x>466</x>
755 <y>305</y>
756 </hint>
757 </hints>
758 </connection>
759 </connections>
760 </ui>

eric ide

mercurial