Files
BeiDou/mainwindow.ui
2026-04-23 11:45:32 +08:00

340 lines
9.7 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>859</width>
<height>984</height>
</rect>
</property>
<property name="windowTitle">
<string>MainWindow</string>
</property>
<widget class="QWidget" name="centralwidget">
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLabel" name="portLabel">
<property name="font">
<font>
<family>Times New Roman</family>
<pointsize>12</pointsize>
<weight>50</weight>
<italic>false</italic>
<bold>false</bold>
<underline>false</underline>
</font>
</property>
<property name="styleSheet">
<string notr="true">font: 12pt &quot;Times New Roman&quot;;</string>
</property>
<property name="text">
<string>端口</string>
</property>
</widget>
</item>
<item>
<widget class="ClickableComboBox" name="portComboBox" native="true">
<property name="styleSheet">
<string notr="true">font: 12pt &quot;Times New Roman&quot;;</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="baudRateLabel">
<property name="styleSheet">
<string notr="true">font: 12pt &quot;Times New Roman&quot;;</string>
</property>
<property name="text">
<string>波特率</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="baudRateComboBox">
<property name="styleSheet">
<string notr="true">font: 12pt &quot;Times New Roman&quot;;</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="openButton">
<property name="font">
<font>
<family>Times New Roman</family>
<pointsize>12</pointsize>
<weight>50</weight>
<italic>false</italic>
<bold>false</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">font: 12pt &quot;Times New Roman&quot;;</string>
</property>
<property name="text">
<string>打开</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="closeButton">
<property name="enabled">
<bool>false</bool>
</property>
<property name="styleSheet">
<string notr="true">font: 12pt &quot;Times New Roman&quot;;</string>
</property>
<property name="text">
<string>关闭</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QLabel" name="statusLabel">
<property name="styleSheet">
<string notr="true">font: 12pt &quot;Times New Roman&quot;;</string>
</property>
<property name="text">
<string>串口状态:</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="sendDataLabel">
<property name="enabled">
<bool>true</bool>
</property>
<property name="font">
<font>
<family>Times New Roman</family>
<pointsize>12</pointsize>
<weight>50</weight>
<italic>false</italic>
<bold>false</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">font: 12pt &quot;Times New Roman&quot;;</string>
</property>
<property name="text">
<string>发送区</string>
</property>
</widget>
</item>
<item>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="1">
<widget class="QPushButton" name="sendButton">
<property name="styleSheet">
<string notr="true">font: 12pt &quot;Times New Roman&quot;;</string>
</property>
<property name="text">
<string>发送</string>
</property>
<property name="iconSize">
<size>
<width>24</width>
<height>24</height>
</size>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QPushButton" name="clearSendButton">
<property name="styleSheet">
<string notr="true">font: 12pt &quot;Times New Roman&quot;;</string>
</property>
<property name="text">
<string>清除</string>
</property>
</widget>
</item>
<item row="0" column="0" rowspan="2">
<widget class="QPlainTextEdit" name="sendTextEdit"/>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QCheckBox" name="hexSendCheckBox">
<property name="styleSheet">
<string notr="true">font: 12pt &quot;Times New Roman&quot;;</string>
</property>
<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>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="timerButton">
<property name="maximumSize">
<size>
<width>999</width>
<height>32</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">font: 12pt &quot;Times New Roman&quot;;</string>
</property>
<property name="text">
<string>周期发送</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="timerIntervalLineEdit">
<property name="maximumSize">
<size>
<width>80</width>
<height>23</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">font: 12pt &quot;Times New Roman&quot;;</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label">
<property name="styleSheet">
<string notr="true">font: 12pt &quot;Times New Roman&quot;;</string>
</property>
<property name="text">
<string>ms</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QLabel" name="receiveDataLabel">
<property name="styleSheet">
<string notr="true">font: 12pt &quot;Times New Roman&quot;;</string>
</property>
<property name="text">
<string>接收区</string>
</property>
</widget>
</item>
<item>
<widget class="QPlainTextEdit" name="receiveTextEdit"/>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<widget class="QCheckBox" name="hexDisplayCheckBox">
<property name="styleSheet">
<string notr="true">font: 12pt &quot;Times New Roman&quot;;</string>
</property>
<property name="text">
<string>十六进制</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="clearReceiveButton">
<property name="styleSheet">
<string notr="true">font: 12pt &quot;Times New Roman&quot;;</string>
</property>
<property name="text">
<string>清除</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QLabel" name="convertedDataLabel">
<property name="styleSheet">
<string notr="true">font: 12pt &quot;Times New Roman&quot;;</string>
</property>
<property name="text">
<string>解析区</string>
</property>
</widget>
</item>
<item>
<widget class="QPlainTextEdit" name="decimalTextEdit"/>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
<widget class="QPushButton" name="clearDecimalButton">
<property name="styleSheet">
<string notr="true">font: 12pt &quot;Times New Roman&quot;;</string>
</property>
<property name="text">
<string>清除</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="saveButton">
<property name="styleSheet">
<string notr="true">font: 12pt &quot;Times New Roman&quot;;</string>
</property>
<property name="text">
<string>保存文件</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="realTimeSaveCheckBox">
<property name="font">
<font>
<family>Times New Roman</family>
<pointsize>12</pointsize>
</font>
</property>
<property name="text">
<string>实时保存</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<widget class="QMenuBar" name="menubar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>859</width>
<height>21</height>
</rect>
</property>
</widget>
<widget class="QStatusBar" name="statusBar"/>
</widget>
<customwidgets>
<customwidget>
<class>ClickableComboBox</class>
<extends>QWidget</extends>
<header>clickablecombobox.h</header>
</customwidget>
</customwidgets>
<resources/>
<connections/>
</ui>