python/PyUartAssistant/PyUartUi.ui

859 lines
20 KiB
Plaintext
Raw Normal View History

2024-07-03 12:01:11 +08:00
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>UartAssistant</class>
<widget class="QWidget" name="UartAssistant">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1121</width>
<height>714</height>
</rect>
</property>
<property name="windowTitle">
<string>串口助手py版</string>
</property>
<widget class="QGroupBox" name="groupBox">
<property name="geometry">
<rect>
<x>30</x>
<y>20</y>
<width>241</width>
<height>281</height>
</rect>
</property>
<property name="title">
<string>串口设置</string>
</property>
<widget class="QPushButton" name="pushButtonTestSerial">
<property name="geometry">
<rect>
<x>10</x>
<y>210</y>
<width>93</width>
<height>28</height>
</rect>
</property>
<property name="text">
<string>检测串口</string>
</property>
</widget>
<widget class="QPushButton" name="pushButtonOpenSerial">
<property name="geometry">
<rect>
<x>120</x>
<y>210</y>
<width>93</width>
<height>28</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(0, 255, 0);</string>
</property>
<property name="text">
<string>打开串口</string>
</property>
</widget>
<widget class="QPushButton" name="pushButtonCloseSerial">
<property name="geometry">
<rect>
<x>10</x>
<y>240</y>
<width>201</width>
<height>28</height>
</rect>
</property>
<property name="text">
<string>关闭串口</string>
</property>
</widget>
<widget class="QWidget" name="layoutWidget">
<property name="geometry">
<rect>
<x>10</x>
<y>30</y>
<width>74</width>
<height>171</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>串口号</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_2">
<property name="text">
<string>波特率</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_3">
<property name="text">
<string>数据位</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_4">
<property name="text">
<string>校验位</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_5">
<property name="text">
<string>停止位</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_6">
<property name="text">
<string>流控方式</string>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="layoutWidget">
<property name="geometry">
<rect>
<x>80</x>
<y>30</y>
<width>128</width>
<height>171</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QComboBox" name="comboBoxSerial"/>
</item>
<item>
<widget class="QComboBox" name="comboBoxBaudrate">
<property name="toolTipDuration">
<number>0</number>
</property>
<property name="editable">
<bool>true</bool>
</property>
<property name="currentText">
<string>4800</string>
</property>
<property name="currentIndex">
<number>0</number>
</property>
<item>
<property name="text">
<string>4800</string>
</property>
</item>
<item>
<property name="text">
<string>9600</string>
</property>
</item>
<item>
<property name="text">
<string>14400</string>
</property>
</item>
<item>
<property name="text">
<string>19200</string>
</property>
</item>
<item>
<property name="text">
<string>115200</string>
</property>
</item>
<item>
<property name="text">
<string>921600</string>
</property>
</item>
<item>
<property name="text">
<string>1500000</string>
</property>
</item>
<item>
<property name="text">
<string>新建项目</string>
</property>
</item>
<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="QComboBox" name="comboBoxDataBits">
<property name="editable">
<bool>true</bool>
</property>
<property name="currentText">
<string>8</string>
</property>
<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>
<widget class="QComboBox" name="comboBoxCheckBit">
<property name="editable">
<bool>true</bool>
</property>
<property name="currentIndex">
<number>0</number>
</property>
<item>
<property name="text">
<string>None</string>
</property>
</item>
<item>
<property name="text">
<string>Odd</string>
</property>
</item>
<item>
<property name="text">
<string>Even</string>
</property>
</item>
</widget>
</item>
<item>
<widget class="QComboBox" name="comboBoxStopBit">
<property name="editable">
<bool>true</bool>
</property>
<item>
<property name="text">
<string>1</string>
</property>
</item>
<item>
<property name="text">
<string>2</string>
</property>
</item>
</widget>
</item>
<item>
<widget class="QComboBox" name="comboBoxFlow">
<property name="editable">
<bool>true</bool>
</property>
<item>
<property name="text">
<string>No Ctrl Flow</string>
</property>
</item>
<item>
<property name="text">
<string>SW Ctrl Flow</string>
</property>
</item>
</widget>
</item>
</layout>
</widget>
</widget>
<widget class="QGroupBox" name="groupBox_2">
<property name="geometry">
<rect>
<x>30</x>
<y>310</y>
<width>241</width>
<height>171</height>
</rect>
</property>
<property name="title">
<string>收发设置</string>
</property>
<widget class="QWidget" name="layoutWidget">
<property name="geometry">
<rect>
<x>10</x>
2024-07-03 16:31:41 +08:00
<y>20</y>
2024-07-03 12:01:11 +08:00
<width>197</width>
<height>79</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QCheckBox" name="checkBoxHexSend">
<property name="text">
<string>HEX发送</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBoxHexReceive">
<property name="text">
<string>HEX接收</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QCheckBox" name="checkBoxDTR">
<property name="text">
<string>DTR</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBoxRTS">
<property name="text">
<string>RTS</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<widget class="QCheckBox" name="checkBoxAddDate">
<property name="text">
<string>收/发时间</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBoxCRLF">
<property name="text">
<string>收发换行</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<widget class="QWidget" name="layoutWidget">
<property name="geometry">
<rect>
<x>10</x>
<y>130</y>
<width>195</width>
<height>30</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
<widget class="QPushButton" name="pushButtonLogSave">
<property name="text">
<string>保存日志</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButtonLogLoad">
<property name="text">
<string>加载日志</string>
</property>
</widget>
</item>
</layout>
</widget>
2024-07-03 16:31:41 +08:00
<widget class="QCheckBox" name="checkBoxAutoSaveLog">
<property name="geometry">
<rect>
<x>12</x>
<y>103</y>
<width>90</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>自动保存日志</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
2024-07-03 12:01:11 +08:00
</widget>
<widget class="QGroupBox" name="groupBox_3">
<property name="geometry">
<rect>
<x>30</x>
<y>480</y>
<width>241</width>
<height>71</height>
</rect>
</property>
<property name="title">
<string>定时发送</string>
</property>
<widget class="QCheckBox" name="checkBoxReapitSend">
<property name="geometry">
<rect>
<x>10</x>
<y>30</y>
<width>91</width>
<height>19</height>
</rect>
</property>
<property name="text">
<string>定时发送</string>
</property>
</widget>
<widget class="QLabel" name="label_7">
<property name="geometry">
<rect>
<x>170</x>
<y>30</y>
<width>51</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>ms/次</string>
</property>
</widget>
<widget class="QLineEdit" name="lineEditTime">
<property name="geometry">
<rect>
<x>110</x>
<y>30</y>
<width>51</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>1000</string>
</property>
</widget>
</widget>
<widget class="QLineEdit" name="lineEditSendNum">
<property name="geometry">
<rect>
<x>50</x>
<y>580</y>
<width>61</width>
<height>21</height>
</rect>
</property>
</widget>
<widget class="QLabel" name="label_SendNum">
<property name="geometry">
<rect>
<x>30</x>
<y>580</y>
<width>72</width>
<height>15</height>
</rect>
</property>
<property name="text">
<string>Tx</string>
</property>
</widget>
<widget class="QLabel" name="label_9">
<property name="geometry">
<rect>
<x>130</x>
<y>580</y>
<width>72</width>
<height>15</height>
</rect>
</property>
<property name="text">
<string>Rx</string>
</property>
</widget>
<widget class="QLineEdit" name="lineEditReceiveNum">
<property name="geometry">
<rect>
<x>150</x>
<y>580</y>
<width>61</width>
<height>21</height>
</rect>
</property>
</widget>
<widget class="QLabel" name="label_10">
<property name="geometry">
<rect>
<x>40</x>
<y>650</y>
<width>131</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>Powerd by Byan</string>
</property>
</widget>
<widget class="QTabWidget" name="tabWidget">
<property name="geometry">
<rect>
<x>270</x>
<y>10</y>
<width>841</width>
<height>701</height>
</rect>
</property>
<property name="mouseTracking">
<bool>false</bool>
</property>
<property name="currentIndex">
<number>0</number>
2024-07-03 12:01:11 +08:00
</property>
<widget class="QWidget" name="tab">
<attribute name="title">
<string>串口数据</string>
</attribute>
<widget class="QGroupBox" name="groupBox_4">
<property name="geometry">
<rect>
<x>10</x>
<y>0</y>
<width>811</width>
<height>681</height>
</rect>
</property>
<property name="title">
<string>数据接收区</string>
</property>
<widget class="QTextEdit" name="textEditReceive">
<property name="geometry">
<rect>
<x>40</x>
<y>30</y>
<width>741</width>
<height>471</height>
</rect>
</property>
</widget>
<widget class="QGroupBox" name="groupBox_5">
<property name="geometry">
<rect>
<x>20</x>
<y>510</y>
<width>771</width>
<height>151</height>
</rect>
</property>
<property name="title">
<string>数据发送区</string>
</property>
<widget class="QTextEdit" name="textEditSend">
<property name="geometry">
<rect>
<x>20</x>
<y>20</y>
<width>621</width>
<height>111</height>
</rect>
</property>
</widget>
<widget class="QPushButton" name="pushButtonSend">
<property name="geometry">
<rect>
<x>660</x>
<y>80</y>
<width>93</width>
<height>51</height>
</rect>
</property>
<property name="font">
<font>
<family>3ds</family>
<pointsize>12</pointsize>
</font>
</property>
<property name="autoFillBackground">
<bool>false</bool>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(0, 255, 0);</string>
</property>
<property name="text">
<string>发送</string>
</property>
<property name="checkable">
<bool>false</bool>
</property>
<property name="flat">
<bool>false</bool>
</property>
</widget>
<widget class="QPushButton" name="pushButtonClearReceive">
<property name="geometry">
<rect>
<x>660</x>
<y>20</y>
<width>91</width>
<height>23</height>
</rect>
</property>
<property name="text">
<string>清除接收</string>
</property>
</widget>
<widget class="QPushButton" name="pushButtonClearSend">
<property name="geometry">
<rect>
<x>660</x>
<y>50</y>
<width>91</width>
<height>23</height>
</rect>
</property>
<property name="text">
<string>清除发送</string>
</property>
</widget>
</widget>
</widget>
</widget>
<widget class="QWidget" name="tab_2">
<attribute name="title">
<string>曲线绘制</string>
</attribute>
<widget class="QChartView" name="plot_view">
<property name="enabled">
<bool>true</bool>
</property>
<property name="geometry">
<rect>
<x>60</x>
<y>90</y>
<width>741</width>
<height>521</height>
</rect>
</property>
<property name="acceptDrops">
<bool>false</bool>
</property>
<property name="toolTipDuration">
<number>-1</number>
</property>
</widget>
<widget class="QRadioButton" name="radioButtonCH4QX">
<property name="enabled">
<bool>true</bool>
</property>
<property name="geometry">
<rect>
<x>190</x>
<y>10</y>
<width>61</width>
<height>16</height>
</rect>
</property>
<property name="mouseTracking">
<bool>true</bool>
</property>
<property name="contextMenuPolicy">
<enum>Qt::ActionsContextMenu</enum>
</property>
<property name="acceptDrops">
<bool>true</bool>
</property>
<property name="toolTipDuration">
<number>1</number>
</property>
<property name="statusTip">
<string/>
</property>
<property name="autoFillBackground">
<bool>false</bool>
</property>
<property name="text">
<string>CH4QX</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
<widget class="QRadioButton" name="radioButtonCH4TF">
<property name="geometry">
<rect>
<x>250</x>
<y>10</y>
<width>51</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>CH4TF</string>
</property>
</widget>
<widget class="QPushButton" name="pushButtonStartPlot">
<property name="geometry">
<rect>
<x>60</x>
<y>10</y>
<width>75</width>
<height>23</height>
</rect>
</property>
<property name="text">
<string>开始绘图</string>
</property>
</widget>
<widget class="QPushButton" name="pushButtonStopPlot">
<property name="geometry">
<rect>
<x>60</x>
<y>40</y>
<width>75</width>
<height>23</height>
</rect>
</property>
<property name="text">
<string>停止绘图</string>
</property>
</widget>
<widget class="QComboBox" name="comboBoxPlot">
<property name="geometry">
<rect>
<x>180</x>
<y>40</y>
<width>191</width>
<height>22</height>
</rect>
</property>
</widget>
2024-07-03 16:31:41 +08:00
<widget class="QCheckBox" name="checkBoxAutoSaveCsv">
<property name="geometry">
<rect>
<x>400</x>
<y>10</y>
<width>121</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>自动保存Csv</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
<widget class="QWidget" name="">
<property name="geometry">
<rect>
<x>390</x>
<y>630</y>
<width>411</width>
<height>24</height>
</rect>
2024-07-03 16:31:41 +08:00
</property>
<layout class="QHBoxLayout" name="horizontalLayout_8">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_5">
<item>
<widget class="QLabel" name="label_SendNum_2">
<property name="text">
<string>当前数值</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineEditCurrentValue"/>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_6">
<item>
<widget class="QLabel" name="label_SendNum_3">
<property name="text">
<string>窗口均值</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineEditWindowMean"/>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_7">
<item>
<widget class="QLabel" name="label_SendNum_4">
<property name="text">
<string>窗口标准差</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineEditWindowMSE"/>
</item>
</layout>
</item>
</layout>
2024-07-03 16:31:41 +08:00
</widget>
2024-07-03 12:01:11 +08:00
</widget>
</widget>
<zorder>tabWidget</zorder>
<zorder>groupBox</zorder>
<zorder>groupBox_2</zorder>
<zorder>groupBox_3</zorder>
<zorder>lineEditSendNum</zorder>
<zorder>label_SendNum</zorder>
<zorder>label_9</zorder>
<zorder>lineEditReceiveNum</zorder>
<zorder>label_10</zorder>
</widget>
<customwidgets>
<customwidget>
<class>QChartView</class>
<extends>QGraphicsView</extends>
<header>PyQt5.QtChart</header>
</customwidget>
</customwidgets>
<resources/>
<connections/>
</ui>