MqttMonitor/MqttConnectionProfilesDialog.ui

branch
eric7
changeset 103
5fe4f179975f
parent 97
21f9c010dc42
child 104
9a4c9b7f078c
--- a/MqttMonitor/MqttConnectionProfilesDialog.ui	Wed Jul 21 20:10:36 2021 +0200
+++ b/MqttMonitor/MqttConnectionProfilesDialog.ui	Thu Jul 22 19:02:32 2021 +0200
@@ -740,6 +740,63 @@
            </item>
           </layout>
          </widget>
+         <widget class="QWidget" name="propertiesTab">
+          <attribute name="title">
+           <string>User Properties</string>
+          </attribute>
+          <layout class="QVBoxLayout" name="verticalLayout_6">
+           <item>
+            <layout class="QHBoxLayout" name="horizontalLayout_8">
+             <item>
+              <widget class="QRadioButton" name="connectPropertiesButton">
+               <property name="toolTip">
+                <string>Select to edit the CONNECT user properties</string>
+               </property>
+               <property name="text">
+                <string>CONNECT</string>
+               </property>
+               <property name="checked">
+                <bool>true</bool>
+               </property>
+              </widget>
+             </item>
+             <item>
+              <widget class="QRadioButton" name="disconnectPropertiesButton">
+               <property name="toolTip">
+                <string>Select to edit the DISCONNECT user properties</string>
+               </property>
+               <property name="text">
+                <string>DISCONNECT</string>
+               </property>
+              </widget>
+             </item>
+            </layout>
+           </item>
+           <item>
+            <widget class="MqttUserPropertiesEditor" name="propertiesWidget" native="true">
+             <property name="sizePolicy">
+              <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
+               <horstretch>0</horstretch>
+               <verstretch>0</verstretch>
+              </sizepolicy>
+             </property>
+             <property name="focusPolicy">
+              <enum>Qt::StrongFocus</enum>
+             </property>
+            </widget>
+           </item>
+           <item>
+            <widget class="QCheckBox" name="samePropertiesCheckBox">
+             <property name="toolTip">
+              <string>Select to use the CONNECT user properties when disconnecting</string>
+             </property>
+             <property name="text">
+              <string>Use CONNECT properties for DISCONNECT</string>
+             </property>
+            </widget>
+           </item>
+          </layout>
+         </widget>
         </widget>
        </item>
        <item>
@@ -772,6 +829,12 @@
    <header>EricWidgets/EricPathPicker.h</header>
    <container>1</container>
   </customwidget>
+  <customwidget>
+   <class>MqttUserPropertiesEditor</class>
+   <extends>QWidget</extends>
+   <header>MqttMonitor/MqttUserPropertiesEditor.h</header>
+   <container>1</container>
+  </customwidget>
  </customwidgets>
  <tabstops>
   <tabstop>profilesList</tabstop>
@@ -794,9 +857,9 @@
   <tabstop>passwordEdit</tabstop>
   <tabstop>showPasswordButton</tabstop>
   <tabstop>willTopicEdit</tabstop>
+  <tabstop>willMessageEdit</tabstop>
   <tabstop>willQosSpinBox</tabstop>
   <tabstop>willRetainCheckBox</tabstop>
-  <tabstop>willMessageEdit</tabstop>
   <tabstop>tlsGroupBox</tabstop>
   <tabstop>tlsDefaultCertsButton</tabstop>
   <tabstop>tlsCertsFileButton</tabstop>
@@ -805,6 +868,10 @@
   <tabstop>tlsSelfSignedCertsFilePicker</tabstop>
   <tabstop>tlsSelfSignedClientCertFilePicker</tabstop>
   <tabstop>tlsSelfSignedClientKeyFilePicker</tabstop>
+  <tabstop>connectPropertiesButton</tabstop>
+  <tabstop>disconnectPropertiesButton</tabstop>
+  <tabstop>propertiesWidget</tabstop>
+  <tabstop>samePropertiesCheckBox</tabstop>
  </tabstops>
  <resources/>
  <connections>

eric ide

mercurial