453 lines
11 KiB
XML
453 lines
11 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>SerialPortDebuggingWindow</class>
|
|
<widget class="QMainWindow" name="SerialPortDebuggingWindow">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>1021</width>
|
|
<height>691</height>
|
|
</rect>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>MainWindow</string>
|
|
</property>
|
|
<widget class="QWidget" name="centralwidget">
|
|
<widget class="QGroupBox" name="groupBox">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>20</x>
|
|
<y>10</y>
|
|
<width>151</width>
|
|
<height>591</height>
|
|
</rect>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">font: 10pt "黑体";</string>
|
|
</property>
|
|
<property name="title">
|
|
<string>串口设置</string>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="verticalLayout">
|
|
<item>
|
|
<widget class="QLabel" name="label">
|
|
<property name="text">
|
|
<string>串口</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QComboBox" name="port_select_combo_box"/>
|
|
</item>
|
|
<item>
|
|
<widget class="QLabel" name="label_2">
|
|
<property name="text">
|
|
<string>波特率</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QComboBox" name="rates_check_box"/>
|
|
</item>
|
|
<item>
|
|
<widget class="QLabel" name="label_3">
|
|
<property name="text">
|
|
<string>数据位</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QComboBox" name="comboBox_3">
|
|
<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>
|
|
<widget class="QLabel" name="label_4">
|
|
<property name="text">
|
|
<string>校验位</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QComboBox" name="comboBox_4">
|
|
<item>
|
|
<property name="text">
|
|
<string>无</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>奇</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>偶</string>
|
|
</property>
|
|
</item>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QLabel" name="label_5">
|
|
<property name="text">
|
|
<string>停止位</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QComboBox" name="comboBox_5">
|
|
<item>
|
|
<property name="text">
|
|
<string>1</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>1.5</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>2</string>
|
|
</property>
|
|
</item>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="pushButton">
|
|
<property name="text">
|
|
<string>检测串口</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QCheckBox" name="checkBox">
|
|
<property name="text">
|
|
<string>连续发送</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QLabel" name="label_6">
|
|
<property name="text">
|
|
<string>间隔(毫秒)</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QSpinBox" name="spinBox"/>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<widget class="QGroupBox" name="groupBox_2">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>200</x>
|
|
<y>10</y>
|
|
<width>791</width>
|
|
<height>71</height>
|
|
</rect>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">font: 10pt "黑体";</string>
|
|
</property>
|
|
<property name="title">
|
|
<string>接收数据</string>
|
|
</property>
|
|
<widget class="QWidget" name="widget" native="true">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>20</x>
|
|
<y>20</y>
|
|
<width>391</width>
|
|
<height>41</height>
|
|
</rect>
|
|
</property>
|
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
|
<item>
|
|
<widget class="QRadioButton" name="radioButton">
|
|
<property name="text">
|
|
<string>字符-字符</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QRadioButton" name="radioButton_2">
|
|
<property name="text">
|
|
<string>字符-HEX</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QRadioButton" name="radioButton_3">
|
|
<property name="text">
|
|
<string>DEC字符</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<widget class="QLCDNumber" name="lcdNumber">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>460</x>
|
|
<y>20</y>
|
|
<width>141</width>
|
|
<height>41</height>
|
|
</rect>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">background-color: rgb(0, 255, 0);
|
|
color: rgb(0, 85, 255);</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QPushButton" name="pushButton_2">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>620</x>
|
|
<y>20</y>
|
|
<width>151</width>
|
|
<height>41</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>清空显示</string>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset resource="res.qrc">
|
|
<normaloff>:/edit-clear</normaloff>:/edit-clear</iconset>
|
|
</property>
|
|
</widget>
|
|
</widget>
|
|
<widget class="QTextEdit" name="textEdit">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>200</x>
|
|
<y>90</y>
|
|
<width>791</width>
|
|
<height>431</height>
|
|
</rect>
|
|
</property>
|
|
</widget>
|
|
<widget class="QGroupBox" name="groupBox_3">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>200</x>
|
|
<y>530</y>
|
|
<width>791</width>
|
|
<height>71</height>
|
|
</rect>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">font: 10pt "黑体";</string>
|
|
</property>
|
|
<property name="title">
|
|
<string>发送数据</string>
|
|
</property>
|
|
<widget class="QLCDNumber" name="lcdNumber_2">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>20</x>
|
|
<y>20</y>
|
|
<width>111</width>
|
|
<height>41</height>
|
|
</rect>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">background-color: rgb(0, 255, 0);
|
|
color: rgb(0, 85, 255);</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QLineEdit" name="lineEdit">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>150</x>
|
|
<y>20</y>
|
|
<width>491</width>
|
|
<height>41</height>
|
|
</rect>
|
|
</property>
|
|
</widget>
|
|
<widget class="QPushButton" name="pushButton_3">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>660</x>
|
|
<y>20</y>
|
|
<width>111</width>
|
|
<height>41</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>发送</string>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset resource="res.qrc">
|
|
<normaloff>:/send</normaloff>:/send</iconset>
|
|
</property>
|
|
</widget>
|
|
</widget>
|
|
</widget>
|
|
<widget class="QMenuBar" name="menubar">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>1021</width>
|
|
<height>26</height>
|
|
</rect>
|
|
</property>
|
|
<widget class="QMenu" name="menu_operational">
|
|
<property name="title">
|
|
<string>操作 (C)</string>
|
|
</property>
|
|
<addaction name="actionaddPort"/>
|
|
<addaction name="separator"/>
|
|
<addaction name="actionopenPort"/>
|
|
<addaction name="actionclosePort"/>
|
|
<addaction name="separator"/>
|
|
<addaction name="actionsaveData"/>
|
|
<addaction name="actionreadData"/>
|
|
<addaction name="actionwriteData"/>
|
|
<addaction name="separator"/>
|
|
<addaction name="actionreadDelay"/>
|
|
<addaction name="separator"/>
|
|
<addaction name="actionresetCount"/>
|
|
<addaction name="actionclearPort"/>
|
|
<addaction name="separator"/>
|
|
<addaction name="actionexitAction"/>
|
|
</widget>
|
|
<widget class="QMenu" name="menu_about">
|
|
<property name="title">
|
|
<string>关于 (A)</string>
|
|
</property>
|
|
<addaction name="actionabout"/>
|
|
</widget>
|
|
<addaction name="menu_operational"/>
|
|
<addaction name="menu_about"/>
|
|
</widget>
|
|
<action name="actionabout">
|
|
<property name="icon">
|
|
<iconset resource="res.qrc">
|
|
<normaloff>:/msg</normaloff>:/msg</iconset>
|
|
</property>
|
|
<property name="text">
|
|
<string>关于不知名系统</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionaddPort">
|
|
<property name="icon">
|
|
<iconset resource="res.qrc">
|
|
<normaloff>:/add</normaloff>:/add</iconset>
|
|
</property>
|
|
<property name="text">
|
|
<string>添加串口</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionopenPort">
|
|
<property name="icon">
|
|
<iconset resource="res.qrc">
|
|
<normaloff>:/open</normaloff>:/open</iconset>
|
|
</property>
|
|
<property name="text">
|
|
<string>打开串口</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionclosePort">
|
|
<property name="icon">
|
|
<iconset resource="res.qrc">
|
|
<normaloff>:/stop</normaloff>:/stop</iconset>
|
|
</property>
|
|
<property name="text">
|
|
<string>关闭串口</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionsaveData">
|
|
<property name="icon">
|
|
<iconset resource="res.qrc">
|
|
<normaloff>:/save</normaloff>:/save</iconset>
|
|
</property>
|
|
<property name="text">
|
|
<string>保存数据</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionreadData">
|
|
<property name="icon">
|
|
<iconset resource="res.qrc">
|
|
<normaloff>:/loadfile</normaloff>:/loadfile</iconset>
|
|
</property>
|
|
<property name="text">
|
|
<string>读取文件</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionwriteData">
|
|
<property name="icon">
|
|
<iconset resource="res.qrc">
|
|
<normaloff>:/write2file</normaloff>:/write2file</iconset>
|
|
</property>
|
|
<property name="text">
|
|
<string>写入文件</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionreadDelay">
|
|
<property name="icon">
|
|
<iconset resource="res.qrc">
|
|
<normaloff>:/time</normaloff>:/time</iconset>
|
|
</property>
|
|
<property name="text">
|
|
<string>读取间隔</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionresetCount">
|
|
<property name="icon">
|
|
<iconset resource="res.qrc">
|
|
<normaloff>:/clearbytes</normaloff>:/clearbytes</iconset>
|
|
</property>
|
|
<property name="text">
|
|
<string>计数清零</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionclearPort">
|
|
<property name="icon">
|
|
<iconset resource="res.qrc">
|
|
<normaloff>:/cleanport</normaloff>:/cleanport</iconset>
|
|
</property>
|
|
<property name="text">
|
|
<string>清空串口</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionexitAction">
|
|
<property name="icon">
|
|
<iconset resource="res.qrc">
|
|
<normaloff>:/exit</normaloff>:/exit</iconset>
|
|
</property>
|
|
<property name="text">
|
|
<string>退出程序</string>
|
|
</property>
|
|
</action>
|
|
</widget>
|
|
<resources>
|
|
<include location="res.qrc"/>
|
|
</resources>
|
|
<connections/>
|
|
</ui>
|