371 lines
8.4 KiB
Plaintext
Raw Permalink Normal View History

2025-03-14 16:15:51 +08:00
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>SerialSet</class>
<widget class="QDialog" name="SerialSet">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>264</width>
<height>332</height>
</rect>
</property>
<property name="windowTitle">
<string>Dialog</string>
</property>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="geometry">
<rect>
<x>60</x>
<y>300</y>
<width>156</width>
<height>23</height>
</rect>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
<property name="centerButtons">
<bool>true</bool>
</property>
</widget>
<widget class="QGroupBox" name="Serias">
<property name="geometry">
<rect>
<x>10</x>
<y>20</y>
<width>246</width>
<height>271</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>220</width>
<height>220</height>
</size>
</property>
<property name="baseSize">
<size>
<width>271</width>
<height>291</height>
</size>
</property>
<property name="title">
<string>串口设置</string>
</property>
<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>70</x>
<y>30</y>
<width>171</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 class="QPushButton" name="pushButtonTestSerial">
<property name="geometry">
<rect>
<x>30</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>130</x>
<y>210</y>
<width>100</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>30</x>
<y>240</y>
<width>201</width>
<height>28</height>
</rect>
</property>
<property name="text">
<string>关闭串口</string>
</property>
</widget>
</widget>
</widget>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>SerialSet</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>248</x>
<y>254</y>
</hint>
<hint type="destinationlabel">
<x>157</x>
<y>274</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
<receiver>SerialSet</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel">
<x>316</x>
<y>260</y>
</hint>
<hint type="destinationlabel">
<x>286</x>
<y>274</y>
</hint>
</hints>
</connection>
</connections>
</ui>