diff -r 82845c0fd550 -r 991db89bda9c MqttMonitor/MqttMonitorWidget.ui --- a/MqttMonitor/MqttMonitorWidget.ui Mon Aug 27 19:26:27 2018 +0200 +++ b/MqttMonitor/MqttMonitorWidget.ui Tue Aug 28 18:54:48 2018 +0200 @@ -7,7 +7,7 @@ <x>0</x> <y>0</y> <width>400</width> - <height>300</height> + <height>600</height> </rect> </property> <layout class="QVBoxLayout" name="verticalLayout"> @@ -77,20 +77,153 @@ </widget> </item> <item> - <spacer name="verticalSpacer"> - <property name="orientation"> - <enum>Qt::Vertical</enum> + <widget class="QTabWidget" name="brokerWidget"> + <property name="currentIndex"> + <number>0</number> </property> - <property name="sizeHint" stdset="0"> - <size> - <width>20</width> - <height>251</height> - </size> - </property> - </spacer> + <widget class="QWidget" name="pubSubTab"> + <attribute name="title"> + <string>Pub/Sub</string> + </attribute> + <layout class="QVBoxLayout" name="verticalLayout_2"> + <item> + <widget class="QGroupBox" name="subscribeGroup"> + <property name="enabled"> + <bool>false</bool> + </property> + <property name="title"> + <string>Subscribe</string> + </property> + <layout class="QHBoxLayout" name="horizontalLayout_2"> + <item> + <widget class="QLabel" name="label"> + <property name="text"> + <string>Topic:</string> + </property> + </widget> + </item> + <item> + <widget class="E5ClearableLineEdit" name="subscribeTopicEdit"> + <property name="toolTip"> + <string>Enter the topic</string> + </property> + </widget> + </item> + <item> + <widget class="QLabel" name="label_3"> + <property name="text"> + <string>QoS:</string> + </property> + </widget> + </item> + <item> + <widget class="QSpinBox" name="subscribeQosSpinBox"> + <property name="toolTip"> + <string>Enter the desired QoS value</string> + </property> + <property name="alignment"> + <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> + </property> + <property name="maximum"> + <number>2</number> + </property> + </widget> + </item> + <item> + <widget class="QToolButton" name="subscribeButton"> + <property name="toolTip"> + <string>Press to subscribe to the given topic</string> + </property> + </widget> + </item> + </layout> + </widget> + </item> + <item> + <widget class="QGroupBox" name="unsubscribeGroup"> + <property name="enabled"> + <bool>false</bool> + </property> + <property name="title"> + <string>Unsubscribe</string> + </property> + <layout class="QHBoxLayout" name="horizontalLayout_3"> + <item> + <widget class="QLabel" name="label_4"> + <property name="text"> + <string>Topic:</string> + </property> + </widget> + </item> + <item> + <widget class="QComboBox" name="unsubscribeTopicComboBox"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="toolTip"> + <string>Select the topic to unsubscribe</string> + </property> + </widget> + </item> + <item> + <widget class="QToolButton" name="unsubscribeButton"> + <property name="toolTip"> + <string>Press to unsubscribe the selected topic</string> + </property> + </widget> + </item> + </layout> + </widget> + </item> + <item> + <spacer name="verticalSpacer"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>312</height> + </size> + </property> + </spacer> + </item> + </layout> + </widget> + <widget class="QWidget" name="messagesTab"> + <attribute name="title"> + <string>Messages</string> + </attribute> + </widget> + <widget class="QWidget" name="statusTab"> + <attribute name="title"> + <string>Status</string> + </attribute> + </widget> + </widget> </item> </layout> </widget> + <customwidgets> + <customwidget> + <class>E5ClearableLineEdit</class> + <extends>QLineEdit</extends> + <header>E5Gui/E5LineEdit.h</header> + </customwidget> + </customwidgets> + <tabstops> + <tabstop>brokerComboBox</tabstop> + <tabstop>connectButton</tabstop> + <tabstop>brokerWidget</tabstop> + <tabstop>subscribeTopicEdit</tabstop> + <tabstop>subscribeQosSpinBox</tabstop> + <tabstop>subscribeButton</tabstop> + <tabstop>unsubscribeTopicComboBox</tabstop> + <tabstop>unsubscribeButton</tabstop> + </tabstops> <resources/> <connections/> </ui>