PyQt/QSerialPort/Data/UiSerialPort.ui
2018-12-28 23:09:46 +08:00

305 lines
7.7 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>FormSerialPort</class>
<widget class="QWidget" name="FormSerialPort">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>721</width>
<height>597</height>
</rect>
</property>
<property name="windowTitle">
<string>串口调试小助手</string>
</property>
<property name="styleSheet">
<string notr="true">#labelStatus {
border-radius: 13px;
background-color: gray;
}
#labelStatus[isOn=&quot;true&quot;] {
background-color: green;
}</string>
</property>
<layout class="QGridLayout" name="gridLayout" rowstretch="3,0,0" columnstretch="0,2">
<item row="0" column="0">
<widget class="QGroupBox" name="groupBox">
<property name="title">
<string/>
</property>
<layout class="QFormLayout" name="formLayout">
<property name="labelAlignment">
<set>Qt::AlignCenter</set>
</property>
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>端 口</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QComboBox" name="comboBoxPort"/>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_2">
<property name="text">
<string>波特率</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QComboBox" name="comboBoxBaud">
<property name="currentIndex">
<number>3</number>
</property>
<item>
<property name="text">
<string>1200</string>
</property>
</item>
<item>
<property name="text">
<string>2400</string>
</property>
</item>
<item>
<property name="text">
<string>4800</string>
</property>
</item>
<item>
<property name="text">
<string>9600</string>
</property>
</item>
<item>
<property name="text">
<string>19200</string>
</property>
</item>
<item>
<property name="text">
<string>38400</string>
</property>
</item>
<item>
<property name="text">
<string>57600</string>
</property>
</item>
<item>
<property name="text">
<string>115200</string>
</property>
</item>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_3">
<property name="text">
<string>校验位</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QComboBox" name="comboBoxParity">
<item>
<property name="text">
<string>No</string>
</property>
</item>
<item>
<property name="text">
<string>Even</string>
</property>
</item>
<item>
<property name="text">
<string>Odd</string>
</property>
</item>
<item>
<property name="text">
<string>Space</string>
</property>
</item>
<item>
<property name="text">
<string>Mark</string>
</property>
</item>
<item>
<property name="text">
<string>Unknown</string>
</property>
</item>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="label_4">
<property name="text">
<string>数据位</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QComboBox" name="comboBoxData">
<property name="currentIndex">
<number>3</number>
</property>
<item>
<property name="text">
<string>5</string>
</property>
</item>
<item>
<property name="text">
<string>6</string>
</property>
</item>
<item>
<property name="text">
<string>7</string>
</property>
</item>
<item>
<property name="text">
<string>8</string>
</property>
</item>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="label_5">
<property name="text">
<string>停止位</string>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QComboBox" name="comboBoxStop">
<item>
<property name="text">
<string>OneStop</string>
</property>
</item>
<item>
<property name="text">
<string>OneAndHalfStop</string>
</property>
</item>
<item>
<property name="text">
<string>TwoStop</string>
</property>
</item>
<item>
<property name="text">
<string>UnknownStopBits</string>
</property>
</item>
</widget>
</item>
<item row="5" column="1">
<widget class="QPushButton" name="buttonConnect">
<property name="text">
<string>打开串口</string>
</property>
</widget>
</item>
<item row="5" column="0">
<widget class="QLabel" name="labelStatus">
<property name="text">
<string> </string>
</property>
<property name="isOn" stdset="0">
<bool>false</bool>
</property>
</widget>
</item>
<item row="6" column="1">
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
<item row="0" column="1" rowspan="2">
<widget class="QTextBrowser" name="textBrowser"/>
</item>
<item row="1" column="0">
<widget class="QWidget" name="widget" native="true">
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QPushButton" name="pushButton_2">
<property name="text">
<string>清空接收区</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBoxHexView">
<property name="text">
<string>十六进制显示</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="2" column="0">
<widget class="QWidget" name="widget_2" native="true">
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QPushButton" name="buttonSend">
<property name="text">
<string>手动发送</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBoxHexSend">
<property name="text">
<string>十六进制发送</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="2" column="1">
<widget class="QPlainTextEdit" name="plainTextEdit"/>
</item>
</layout>
</widget>
<resources/>
<connections>
<connection>
<sender>pushButton_2</sender>
<signal>clicked()</signal>
<receiver>textBrowser</receiver>
<slot>clear()</slot>
<hints>
<hint type="sourcelabel">
<x>136</x>
<y>328</y>
</hint>
<hint type="destinationlabel">
<x>477</x>
<y>236</y>
</hint>
</hints>
</connection>
</connections>
</ui>