MqttMonitor/MqttMonitorWidget.ui

changeset 28
0f02baed8308
parent 27
aeb276d76ec7
parent 19
889a7c3c0e63
child 31
40582e448c4b
--- a/MqttMonitor/MqttMonitorWidget.ui	Sat Sep 08 16:51:39 2018 +0200
+++ b/MqttMonitor/MqttMonitorWidget.ui	Sat Sep 08 16:55:42 2018 +0200
@@ -35,24 +35,89 @@
     </layout>
    </item>
    <item>
-    <widget class="QGroupBox" name="groupBox">
+    <widget class="QGroupBox" name="brokerGroupBox">
      <property name="title">
       <string>Broker</string>
      </property>
      <layout class="QGridLayout" name="gridLayout">
       <item row="0" column="0">
-       <widget class="E5ClearableComboBox" name="brokerComboBox">
-        <property name="sizePolicy">
-         <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
-          <horstretch>0</horstretch>
-          <verstretch>0</verstretch>
-         </sizepolicy>
+       <widget class="QToolButton" name="modeButton">
+        <property name="toolTip">
+         <string>Press to switch the mode between profiles and direct connection</string>
+        </property>
+       </widget>
+      </item>
+      <item row="0" column="1">
+       <layout class="QHBoxLayout" name="horizontalLayout_15">
+        <property name="spacing">
+         <number>0</number>
         </property>
+        <item>
+         <widget class="QComboBox" name="profileComboBox">
+          <property name="sizePolicy">
+           <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
+            <horstretch>0</horstretch>
+            <verstretch>0</verstretch>
+           </sizepolicy>
+          </property>
+          <property name="toolTip">
+           <string>Select the profile to be used to connect to the broker</string>
+          </property>
+         </widget>
+        </item>
+        <item>
+         <widget class="QWidget" name="brokerConnectionWidget" native="true">
+          <layout class="QHBoxLayout" name="horizontalLayout_14">
+           <property name="leftMargin">
+            <number>0</number>
+           </property>
+           <property name="topMargin">
+            <number>0</number>
+           </property>
+           <property name="rightMargin">
+            <number>0</number>
+           </property>
+           <property name="bottomMargin">
+            <number>0</number>
+           </property>
+           <item>
+            <widget class="E5ClearableComboBox" name="brokerComboBox">
+             <property name="sizePolicy">
+              <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
+               <horstretch>0</horstretch>
+               <verstretch>0</verstretch>
+              </sizepolicy>
+             </property>
+             <property name="toolTip">
+              <string>Enter the host name of the broker</string>
+             </property>
+             <property name="editable">
+              <bool>true</bool>
+             </property>
+            </widget>
+           </item>
+           <item>
+            <widget class="QComboBox" name="brokerPortComboBox">
+             <property name="toolTip">
+              <string>Enter the broker port to connect to</string>
+             </property>
+             <property name="editable">
+              <bool>true</bool>
+             </property>
+             <property name="sizeAdjustPolicy">
+              <enum>QComboBox::AdjustToContents</enum>
+             </property>
+            </widget>
+           </item>
+          </layout>
+         </widget>
+        </item>
+       </layout>
+      </item>
+      <item row="0" column="2">
+       <widget class="QToolButton" name="brokerConnectionOptionsButton">
         <property name="toolTip">
-         <string>Enter the host name of the broker</string>
-        </property>
-        <property name="editable">
-         <bool>true</bool>
+         <string>Press to open a dialog to enter connection options</string>
         </property>
        </widget>
       </item>
@@ -73,26 +138,6 @@
         </property>
        </widget>
       </item>
-      <item row="0" column="1">
-       <widget class="QComboBox" name="brokerPortComboBox">
-        <property name="toolTip">
-         <string>Enter the broker port to connect to</string>
-        </property>
-        <property name="editable">
-         <bool>true</bool>
-        </property>
-        <property name="sizeAdjustPolicy">
-         <enum>QComboBox::AdjustToContents</enum>
-        </property>
-       </widget>
-      </item>
-      <item row="0" column="2">
-       <widget class="QToolButton" name="brokerConnectionOptionsButton">
-        <property name="toolTip">
-         <string>Press to open a dialog to enter connection options</string>
-        </property>
-       </widget>
-      </item>
      </layout>
     </widget>
    </item>
@@ -434,8 +479,8 @@
            <rect>
             <x>0</x>
             <y>0</y>
-            <width>344</width>
-            <height>840</height>
+            <width>339</width>
+            <height>670</height>
            </rect>
           </property>
           <layout class="QFormLayout" name="formLayout">
@@ -1169,6 +1214,8 @@
   </customwidget>
  </customwidgets>
  <tabstops>
+  <tabstop>modeButton</tabstop>
+  <tabstop>profileComboBox</tabstop>
   <tabstop>brokerComboBox</tabstop>
   <tabstop>brokerPortComboBox</tabstop>
   <tabstop>brokerConnectionOptionsButton</tabstop>
@@ -1180,9 +1227,10 @@
   <tabstop>unsubscribeTopicComboBox</tabstop>
   <tabstop>unsubscribeButton</tabstop>
   <tabstop>publishTopicComboBox</tabstop>
+  <tabstop>publishPayloadEdit</tabstop>
   <tabstop>publishQosSpinBox</tabstop>
   <tabstop>publishRetainCheckBox</tabstop>
-  <tabstop>publishPayloadEdit</tabstop>
+  <tabstop>publishClearButton</tabstop>
   <tabstop>publishButton</tabstop>
   <tabstop>messagesEdit</tabstop>
   <tabstop>messagesClearButton</tabstop>

eric ide

mercurial