python/PyUartAssistant/PyUartUi.ui

1127 lines
40 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>
2025-01-25 11:13:39 +08:00
<width>999</width>
<height>694</height>
2024-07-03 12:01:11 +08:00
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>2</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="acceptDrops">
<bool>true</bool>
</property>
2024-07-03 12:01:11 +08:00
<property name="windowTitle">
<string>串口助手py版</string>
</property>
<property name="windowIcon">
<iconset>
<normaloff>favicon.ico</normaloff>favicon.ico</iconset>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_15">
<item>
<widget class="QWidget" name="widget_7" native="true">
<layout class="QHBoxLayout" name="horizontalLayout_14" stretch="0">
<item>
<widget class="QSplitter" name="splitter">
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
2024-07-03 12:01:11 +08:00
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
2024-07-03 12:01:11 +08:00
</property>
<property name="handleWidth">
<number>5</number>
2024-07-03 12:01:11 +08:00
</property>
<widget class="QWidget" name="widget_4" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>1</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
2024-07-03 12:01:11 +08:00
</property>
<layout class="QHBoxLayout" name="horizontalLayout">
<property name="spacing">
<number>0</number>
</property>
<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="QWidget" name="widget" native="true">
<layout class="QVBoxLayout" name="verticalLayout_5">
<item>
<widget class="QGroupBox" name="groupBox">
<property name="minimumSize">
<size>
<width>220</width>
<height>291</height>
</size>
</property>
<property name="baseSize">
<size>
<width>271</width>
<height>291</height>
</size>
</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_3">
<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_4">
<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>
</item>
<item>
<widget class="QGroupBox" name="groupBox_2">
<property name="minimumSize">
<size>
<width>220</width>
<height>165</height>
</size>
</property>
<property name="baseSize">
<size>
<width>271</width>
<height>165</height>
</size>
</property>
<property name="title">
<string>收发设置</string>
</property>
<widget class="QWidget" name="layoutWidget_5">
<property name="geometry">
<rect>
<x>10</x>
<y>20</y>
<width>197</width>
<height>79</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_6">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_10">
<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_11">
<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_12">
<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_6">
<property name="geometry">
<rect>
<x>10</x>
<y>130</y>
<width>195</width>
<height>30</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_13">
<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>
<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>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_3">
<property name="minimumSize">
<size>
<width>220</width>
<height>80</height>
</size>
</property>
<property name="baseSize">
<size>
<width>271</width>
<height>80</height>
</size>
</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>
</item>
<item>
<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>
<item>
<widget class="QGroupBox" name="groupBox_6">
<property name="minimumSize">
<size>
<width>220</width>
<height>80</height>
</size>
</property>
<property name="baseSize">
<size>
<width>281</width>
<height>80</height>
</size>
</property>
<property name="title">
<string/>
</property>
<widget class="QLabel" name="label_9">
<property name="geometry">
<rect>
<x>120</x>
<y>20</y>
<width>72</width>
<height>15</height>
</rect>
</property>
<property name="text">
<string>Rx</string>
</property>
</widget>
<widget class="QLineEdit" name="lineEditSendNum">
<property name="geometry">
<rect>
<x>40</x>
<y>20</y>
<width>61</width>
<height>21</height>
</rect>
</property>
</widget>
<widget class="QLineEdit" name="lineEditReceiveNum">
<property name="geometry">
<rect>
<x>140</x>
<y>20</y>
<width>61</width>
<height>21</height>
</rect>
</property>
</widget>
<widget class="QLabel" name="label_10">
<property name="geometry">
<rect>
<x>20</x>
<y>40</y>
<width>131</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>Powerd by Byan</string>
</property>
</widget>
<widget class="QLabel" name="label_SendNum">
<property name="geometry">
<rect>
<x>20</x>
<y>20</y>
<width>72</width>
<height>15</height>
</rect>
</property>
<property name="text">
<string>Tx</string>
</property>
</widget>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
2024-07-03 12:01:11 +08:00
</widget>
<widget class="QWidget" name="widget_5" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>1</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
2024-07-03 12:01:11 +08:00
</property>
<layout class="QHBoxLayout" name="horizontalLayout_9">
<property name="spacing">
<number>0</number>
</property>
<property name="leftMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QTabWidget" name="tabWidget">
<property name="mouseTracking">
<bool>false</bool>
</property>
<property name="currentIndex">
2025-01-25 11:13:39 +08:00
<number>0</number>
</property>
<widget class="QWidget" name="tab">
<attribute name="title">
<string>串口数据</string>
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_3" stretch="6,2">
<item>
<widget class="QGroupBox" name="groupBox_4">
<property name="title">
<string>数据接收区</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QTextEdit" name="textEditReceive">
<property name="sizeIncrement">
<size>
<width>1</width>
<height>1</height>
</size>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_5">
<property name="title">
<string>数据发送区</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="1" column="1">
<widget class="QPushButton" name="pushButtonClearReceive">
<property name="text">
<string>清除接收</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QPushButton" name="pushButtonSend">
<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>
</item>
<item row="2" column="1">
<widget class="QPushButton" name="pushButtonClearSend">
<property name="text">
<string>清除发送</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QPushButton" name="pushButton_expend">
<property name="text">
<string>快捷指令</string>
</property>
</widget>
</item>
<item row="0" column="0" rowspan="4">
<widget class="QTextEdit" name="textEditSend"/>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="tab_2">
<attribute name="title">
<string>曲线绘制</string>
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_7">
<item>
<layout class="QVBoxLayout" name="verticalLayout_4" stretch="2,17,1">
<item>
<widget class="QWidget" name="widget_2" native="true">
<widget class="QWidget" name="layoutWidget">
<property name="geometry">
<rect>
<x>9</x>
<y>9</y>
<width>429</width>
<height>25</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_6">
<item>
<widget class="QPushButton" name="pushButtonStartPlot">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>开始绘图</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QRadioButton" name="radioButtonCH4QX">
<property name="enabled">
<bool>true</bool>
</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>false</bool>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="radioButtonCH4TF">
<property name="text">
<string>CH4TF</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="radioButtonOtherData">
<property name="text">
<string>其他数据</string>
</property>
<property name="checked">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBoxAutoSaveCsv">
<property name="text">
<string>自动保存Csv</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="layoutWidget">
<property name="geometry">
<rect>
<x>9</x>
<y>40</y>
<width>261</width>
<height>25</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_8">
<item>
<widget class="QPushButton" name="pushButtonStopPlot">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>停止绘图</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QComboBox" name="comboBoxPlot">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>100</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
</item>
<item>
<widget class="QChartView" name="plot_view">
<property name="enabled">
<bool>true</bool>
</property>
<property name="acceptDrops">
<bool>false</bool>
</property>
<property name="toolTipDuration">
<number>-1</number>
</property>
</widget>
</item>
<item>
<widget class="QWidget" name="widget_3" native="true">
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
<widget class="QPushButton" name="pushButtonResetPlot">
<property name="text">
<string>重置图形</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>80</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<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_3">
<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>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</widget>
</item>
</layout>
2024-07-03 12:01:11 +08:00
</widget>
<widget class="QWidget" name="widget_6" native="true">
<property name="enabled">
<bool>true</bool>
2024-07-03 12:01:11 +08:00
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>2</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
2024-07-03 12:01:11 +08:00
</property>
<property name="minimumSize">
<size>
<width>260</width>
<height>0</height>
</size>
2024-07-03 12:01:11 +08:00
</property>
<layout class="QHBoxLayout" name="horizontalLayout_16" stretch="0">
<property name="spacing">
<number>0</number>
</property>
<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="QScrollArea" name="scrollArea">
<property name="verticalScrollBarPolicy">
<enum>Qt::ScrollBarAlwaysOn</enum>
</property>
<property name="widgetResizable">
<bool>false</bool>
</property>
<widget class="QWidget" name="scrollAreaWidgetContents">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>241</width>
2025-01-25 11:13:39 +08:00
<height>3000</height>
</rect>
</property>
<widget class="QWidget" name="widget_8" native="true">
<property name="geometry">
<rect>
<x>12</x>
<y>2</y>
<width>221</width>
<height>34</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_17">
<item>
<widget class="QLabel" name="label_8">
<property name="text">
<string>快捷指令</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBox_return">
<property name="text">
2025-01-25 11:13:39 +08:00
<string>添加&quot;\r\n&quot;</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="widget_9" native="true">
<property name="geometry">
<rect>
<x>12</x>
<y>42</y>
2025-01-25 11:13:39 +08:00
<width>231</width>
<height>3000</height>
</rect>
</property>
<widget class="QWidget" name="layoutWidget">
<property name="geometry">
<rect>
<x>12</x>
<y>12</y>
2025-01-25 11:13:39 +08:00
<width>201</width>
<height>2801</height>
</rect>
</property>
2025-01-25 11:13:39 +08:00
<layout class="QVBoxLayout" name="verticalLayout_8"/>
</widget>
</widget>
</widget>
</widget>
</item>
</layout>
</widget>
</widget>
</item>
</layout>
2024-07-03 16:31:41 +08:00
</widget>
</item>
</layout>
2024-07-03 12:01:11 +08:00
</widget>
<customwidgets>
<customwidget>
<class>QChartView</class>
<extends>QGraphicsView</extends>
<header>PyQt5.QtChart</header>
</customwidget>
</customwidgets>
<resources/>
<connections/>
</ui>