2 Star 1 Fork 0

STARRY/uart_pc_tool

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
main_windw.ui 23.11 KB
一键复制 编辑 原始数据 按行查看 历史
STARRY 提交于 2024-08-24 17:25 . 添加了表格的存取
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Main_windw</class>
<widget class="QMainWindow" name="Main_windw">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1468</width>
<height>1200</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>800</width>
<height>850</height>
</size>
</property>
<property name="windowTitle">
<string>远程串口通讯工具</string>
</property>
<property name="styleSheet">
<string notr="true">font: 75 10pt &quot;微软雅黑&quot;;</string>
</property>
<widget class="QWidget" name="centralwidget">
<layout class="QGridLayout" name="gridLayout_4">
<item row="0" column="1" rowspan="4">
<widget class="QGroupBox" name="groupBox">
<property name="styleSheet">
<string notr="true">font: 75 10pt &quot;微软雅黑&quot;;</string>
</property>
<property name="title">
<string/>
</property>
<layout class="QGridLayout" name="gridLayout_3">
<item row="2" column="0">
<widget class="QGroupBox" name="groupBox_7">
<property name="enabled">
<bool>true</bool>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title">
<string/>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QGroupBox" name="groupBox_server">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip">
<string/>
</property>
<property name="title">
<string>服务器</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_9">
<item>
<widget class="QLabel" name="label_4">
<property name="text">
<string>对方主机地址:</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineEdit_tcp_client_ip">
<property name="toolTip">
<string>输入对方主机的IPV4地址</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton_connect_server">
<property name="toolTip">
<string>点击连接服务器</string>
</property>
<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="QLabel" name="label_tcpstateshow">
<property name="text">
<string>未连接</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_ico">
<property name="text">
<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="QCheckBox" name="checkBox_hex_recv">
<property name="text">
<string>接收HEX</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBox_ascii_recv">
<property name="text">
<string>接收ASCII</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton">
<property name="toolTip">
<string>点击清空接收区</string>
</property>
<property name="text">
<string>清除接收</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="pushButton_2">
<property name="toolTip">
<string>点击清空发送区</string>
</property>
<property name="text">
<string>清除发送</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_4">
<property name="title">
<string>收到的数据</string>
</property>
<layout class="QGridLayout" name="gridLayout_5">
<item row="1" column="0">
<widget class="QTextBrowser" name="textBrowser_net_recv"/>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_6">
<property name="title">
<string>发出的数据</string>
</property>
<layout class="QGridLayout" name="gridLayout_7">
<item row="0" column="0">
<widget class="QTextBrowser" name="textBrowser_net_send"/>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
</item>
<item row="0" column="0" rowspan="2">
<widget class="QGroupBox" name="seriel_set_groupBox">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="title">
<string>设备串口设置</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="2" column="0">
<widget class="QLabel" name="stop_bit_label">
<property name="text">
<string>停止位</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="port_number_label">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>串口号</string>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QComboBox" name="parity_bit_Box">
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
<property name="font">
<font>
<family>微软雅黑</family>
<pointsize>10</pointsize>
<weight>9</weight>
<italic>false</italic>
<bold>false</bold>
</font>
</property>
<property name="toolTip">
<string>默认无</string>
</property>
</widget>
</item>
<item row="7" column="0">
<widget class="QCheckBox" name="checkBox_mode_client">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip">
<string>取消勾选即可断开连接</string>
</property>
<property name="text">
<string>客户端模式</string>
</property>
</widget>
</item>
<item row="6" column="0" colspan="2">
<widget class="QGroupBox" name="recv_set_groupBox">
<property name="enabled">
<bool>true</bool>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>100</height>
</size>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="title">
<string>接收设置</string>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="2" column="1">
<widget class="QCheckBox" name="checkBox_hex_mode">
<property name="text">
<string>发送HEX</string>
</property>
</widget>
</item>
<item row="2" column="2">
<widget class="QCheckBox" name="checkBox_ascii_mode">
<property name="text">
<string>发送ASCII</string>
</property>
</widget>
</item>
<item row="1" column="1" colspan="2">
<widget class="QPushButton" name="pushButton_3">
<property name="text">
<string>清除串口缓存</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QCheckBox" name="checkBox_save_uart_log">
<property name="text">
<string>保存串口接收日志</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="data_bit_label">
<property name="text">
<string>数据位</string>
</property>
</widget>
</item>
<item row="7" column="1">
<widget class="QCheckBox" name="checkBox_mode_server">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>服务器模式</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="bundrate_label">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
<property name="text">
<string>波特率</string>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="parity_bit_label">
<property name="text">
<string>奇偶校验位</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QComboBox" name="port_number_Box">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
<property name="font">
<font>
<family>微软雅黑</family>
<pointsize>10</pointsize>
<weight>9</weight>
<italic>false</italic>
<bold>false</bold>
</font>
</property>
<property name="toolTip">
<string>选择一个串口号</string>
</property>
</widget>
</item>
<item row="5" column="0" colspan="2">
<widget class="QPushButton" name="open_serial_pushButton">
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
<property name="font">
<font>
<family>微软雅黑</family>
<pointsize>10</pointsize>
<weight>9</weight>
<italic>false</italic>
<bold>false</bold>
</font>
</property>
<property name="toolTip">
<string>启动或关闭串口</string>
</property>
<property name="autoFillBackground">
<bool>false</bool>
</property>
<property name="text">
<string>打开串口</string>
</property>
<property name="icon">
<iconset>
<normalon>:/Src/kaiguan_kai.ico</normalon>
<disabledoff>:/Src/kaiguan_guan.ico</disabledoff>
<disabledon>:/Src/kaiguan_kai.ico</disabledon>
<activeoff>:/Src/kaiguan_guan.ico</activeoff>
</iconset>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QComboBox" name="stop_bit_Box">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
<property name="font">
<font>
<family>微软雅黑</family>
<pointsize>10</pointsize>
<weight>9</weight>
<italic>false</italic>
<bold>false</bold>
</font>
</property>
<property name="toolTip">
<string>默认1位</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QComboBox" name="baudrate_Box">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<family>微软雅黑</family>
<pointsize>10</pointsize>
<weight>9</weight>
<italic>false</italic>
<bold>false</bold>
</font>
</property>
<property name="toolTip">
<string>默认115200</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QComboBox" name="data_bit_Box">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
<property name="font">
<font>
<family>微软雅黑</family>
<pointsize>10</pointsize>
<weight>9</weight>
<italic>false</italic>
<bold>false</bold>
</font>
</property>
<property name="toolTip">
<string>默认8位</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="5" column="1">
<widget class="QGroupBox" name="groupBox_5">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>380</height>
</size>
</property>
<property name="title">
<string>本地串口收发信息窗口</string>
</property>
<layout class="QGridLayout" name="gridLayout_8">
<item row="1" column="0">
<widget class="QTextBrowser" name="Write_to_device_textBrowser">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip">
<string>调试信息展示窗口</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="2" column="0" rowspan="2">
<widget class="QGroupBox" name="groupBox_3">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="title">
<string>信息提示口</string>
</property>
<layout class="QGridLayout" name="gridLayout_6">
<item row="1" column="0">
<widget class="QTextBrowser" name="textBrowser_megtips">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip">
<string>信息提示窗口</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="5" column="0">
<widget class="QGroupBox" name="groupBox_2">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title">
<string>数据过滤</string>
</property>
<layout class="QFormLayout" name="formLayout">
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>协议头HEX</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="lineEdit_protocol_head"/>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_2">
<property name="text">
<string>协议尾HEX</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLineEdit" name="lineEdit_protocol_tail"/>
</item>
<item row="2" column="0">
<widget class="QCheckBox" name="checkBox_filter_log">
<property name="text">
<string>过滤日志</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QCheckBox" name="checkBox_filter_show">
<property name="text">
<string>协议字段显示</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<widget class="QMenuBar" name="menubar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1468</width>
<height>23</height>
</rect>
</property>
<widget class="QMenu" name="menushezhi">
<property name="title">
<string>设置</string>
</property>
</widget>
<widget class="QMenu" name="menu">
<property name="title">
<string>关于</string>
</property>
<addaction name="separator"/>
<addaction name="action_operating"/>
</widget>
<widget class="QMenu" name="action_news">
<property name="styleSheet">
<string notr="true">color: rgb(120, 120, 120);</string>
</property>
<property name="title">
<string>V2.0.6</string>
</property>
</widget>
<addaction name="menushezhi"/>
<addaction name="menu"/>
<addaction name="action_news"/>
</widget>
<action name="actionReturn_default">
<property name="text">
<string>恢复默认值</string>
</property>
</action>
<action name="actionReturn_0">
<property name="text">
<string>归零</string>
</property>
</action>
<action name="action_select_version">
<property name="text">
<string>点击选择型号</string>
</property>
</action>
<action name="action_see_dvc_info">
<property name="icon">
<iconset resource="Src/Src.qrc">
<normaloff>:/Src/banshou.ico</normaloff>:/Src/banshou.ico</iconset>
</property>
<property name="text">
<string>查看设备已用信息</string>
</property>
<property name="iconText">
<string>查看设备已用信息</string>
</property>
</action>
<action name="action_operating">
<property name="icon">
<iconset resource="Src/Src.qrc">
<normaloff>:/Src/wenhao.ico</normaloff>:/Src/wenhao.ico</iconset>
</property>
<property name="text">
<string>使用说明</string>
</property>
</action>
<action name="action_news_switch">
<property name="text">
<string/>
</property>
</action>
<action name="action_news_switch_2">
<property name="text">
<string>启用新闻轮播</string>
</property>
</action>
<action name="action_find_dvc_update_time">
<property name="icon">
<iconset resource="Src/Src.qrc">
<normaloff>:/Src/fangdajing.ico</normaloff>:/Src/fangdajing.ico</iconset>
</property>
<property name="text">
<string>查找设备数据更新时间</string>
</property>
</action>
<action name="action_open_info_with_sys">
<property name="icon">
<iconset resource="Src/Src.qrc">
<normaloff>:/Src/correct.ico</normaloff>:/Src/correct.ico</iconset>
</property>
<property name="text">
<string>打开设备信息文件</string>
</property>
</action>
</widget>
<resources>
<include location="Src/Src.qrc"/>
</resources>
<connections/>
</ui>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/gin521/uart_pc_tool.git
git@gitee.com:gin521/uart_pc_tool.git
gin521
uart_pc_tool
uart_pc_tool
master

搜索帮助