1 Star 0 Fork 76

路洋/SerialMaster

forked from moonan/SerialMaster 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
mainwindow.ui 18.15 KB
一键复制 编辑 原始数据 按行查看 历史
moonan 提交于 2022-06-19 13:22 . 首次发布
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727
<?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>1000</width>
<height>800</height>
</rect>
</property>
<property name="windowTitle">
<string>Serial Master</string>
</property>
<widget class="QWidget" name="centralwidget">
<widget class="QGroupBox" name="groupBox">
<property name="geometry">
<rect>
<x>10</x>
<y>10</y>
<width>200</width>
<height>240</height>
</rect>
</property>
<property name="title">
<string>串口配置</string>
</property>
<widget class="QLabel" name="label">
<property name="geometry">
<rect>
<x>10</x>
<y>40</y>
<width>68</width>
<height>15</height>
</rect>
</property>
<property name="text">
<string>串口号:</string>
</property>
</widget>
<widget class="QLabel" name="label_2">
<property name="geometry">
<rect>
<x>10</x>
<y>80</y>
<width>68</width>
<height>15</height>
</rect>
</property>
<property name="text">
<string>波特率:</string>
</property>
</widget>
<widget class="QLabel" name="label_3">
<property name="geometry">
<rect>
<x>10</x>
<y>120</y>
<width>68</width>
<height>15</height>
</rect>
</property>
<property name="text">
<string>数据位:</string>
</property>
</widget>
<widget class="QLabel" name="label_4">
<property name="geometry">
<rect>
<x>10</x>
<y>160</y>
<width>68</width>
<height>15</height>
</rect>
</property>
<property name="text">
<string>校验位:</string>
</property>
</widget>
<widget class="QLabel" name="label_5">
<property name="geometry">
<rect>
<x>10</x>
<y>200</y>
<width>68</width>
<height>15</height>
</rect>
</property>
<property name="text">
<string>停止位:</string>
</property>
</widget>
<widget class="QComboBox" name="comboBoxPort">
<property name="geometry">
<rect>
<x>80</x>
<y>30</y>
<width>100</width>
<height>30</height>
</rect>
</property>
</widget>
<widget class="QComboBox" name="comboBoxBaud">
<property name="geometry">
<rect>
<x>80</x>
<y>70</y>
<width>100</width>
<height>30</height>
</rect>
</property>
</widget>
<widget class="QComboBox" name="comboBoxData">
<property name="geometry">
<rect>
<x>80</x>
<y>110</y>
<width>100</width>
<height>30</height>
</rect>
</property>
</widget>
<widget class="QComboBox" name="comboBoxParity">
<property name="geometry">
<rect>
<x>80</x>
<y>150</y>
<width>100</width>
<height>30</height>
</rect>
</property>
</widget>
<widget class="QComboBox" name="comboBoxStop">
<property name="geometry">
<rect>
<x>80</x>
<y>190</y>
<width>100</width>
<height>30</height>
</rect>
</property>
</widget>
</widget>
<widget class="QGroupBox" name="groupBox_2">
<property name="geometry">
<rect>
<x>10</x>
<y>260</y>
<width>200</width>
<height>230</height>
</rect>
</property>
<property name="title">
<string>接收配置</string>
</property>
<widget class="QCheckBox" name="checkBoxRecieve">
<property name="geometry">
<rect>
<x>20</x>
<y>30</y>
<width>120</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>十六进制显示</string>
</property>
</widget>
<widget class="QLCDNumber" name="lcdNumberRecieve">
<property name="geometry">
<rect>
<x>20</x>
<y>65</y>
<width>160</width>
<height>30</height>
</rect>
</property>
<property name="digitCount">
<number>9</number>
</property>
</widget>
<widget class="QPushButton" name="pushButtonClearCounterRecieve">
<property name="geometry">
<rect>
<x>20</x>
<y>105</y>
<width>80</width>
<height>30</height>
</rect>
</property>
<property name="text">
<string>清除计数</string>
</property>
</widget>
<widget class="QPushButton" name="pushButtonClearDataRecieve">
<property name="geometry">
<rect>
<x>110</x>
<y>105</y>
<width>80</width>
<height>30</height>
</rect>
</property>
<property name="text">
<string>清除数据</string>
</property>
</widget>
</widget>
<widget class="QGroupBox" name="groupBox_3">
<property name="geometry">
<rect>
<x>10</x>
<y>500</y>
<width>200</width>
<height>230</height>
</rect>
</property>
<property name="title">
<string>发送配置</string>
</property>
<widget class="QCheckBox" name="checkBoxSend">
<property name="geometry">
<rect>
<x>20</x>
<y>30</y>
<width>120</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>十六进制发送</string>
</property>
</widget>
<widget class="QCheckBox" name="checkBoxPoll">
<property name="geometry">
<rect>
<x>20</x>
<y>150</y>
<width>120</width>
<height>30</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>自动循环发送</string>
</property>
</widget>
<widget class="QSpinBox" name="spinBoxInterval">
<property name="geometry">
<rect>
<x>55</x>
<y>190</y>
<width>90</width>
<height>22</height>
</rect>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="maximum">
<number>100000</number>
</property>
<property name="value">
<number>0</number>
</property>
</widget>
<widget class="QLabel" name="label_6">
<property name="geometry">
<rect>
<x>20</x>
<y>190</y>
<width>30</width>
<height>22</height>
</rect>
</property>
<property name="text">
<string>间隔</string>
</property>
</widget>
<widget class="QLabel" name="label_7">
<property name="geometry">
<rect>
<x>150</x>
<y>190</y>
<width>30</width>
<height>22</height>
</rect>
</property>
<property name="text">
<string>毫秒</string>
</property>
</widget>
<widget class="QLCDNumber" name="lcdNumberSend">
<property name="geometry">
<rect>
<x>19</x>
<y>65</y>
<width>161</width>
<height>30</height>
</rect>
</property>
<property name="digitCount">
<number>9</number>
</property>
<property name="mode">
<enum>QLCDNumber::Dec</enum>
</property>
<property name="value" stdset="0">
<double>0.000000000000000</double>
</property>
<property name="intValue" stdset="0">
<number>0</number>
</property>
</widget>
<widget class="QPushButton" name="pushButtonClearCounterSend">
<property name="geometry">
<rect>
<x>20</x>
<y>105</y>
<width>80</width>
<height>30</height>
</rect>
</property>
<property name="text">
<string>清除计数</string>
</property>
</widget>
<widget class="QPushButton" name="pushButtonClearDataSend">
<property name="geometry">
<rect>
<x>110</x>
<y>105</y>
<width>80</width>
<height>30</height>
</rect>
</property>
<property name="text">
<string>清除数据</string>
</property>
</widget>
</widget>
<widget class="QGroupBox" name="groupBoxMessage">
<property name="geometry">
<rect>
<x>220</x>
<y>500</y>
<width>770</width>
<height>230</height>
</rect>
</property>
<property name="title">
<string>信息发送</string>
</property>
<widget class="QCheckBox" name="checkBoxSendEnable1">
<property name="geometry">
<rect>
<x>10</x>
<y>30</y>
<width>80</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>消息1</string>
</property>
</widget>
<widget class="QCheckBox" name="checkBoxSendEnable2">
<property name="geometry">
<rect>
<x>10</x>
<y>70</y>
<width>80</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>消息2</string>
</property>
</widget>
<widget class="QCheckBox" name="checkBoxSendEnable3">
<property name="geometry">
<rect>
<x>10</x>
<y>110</y>
<width>80</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>消息3</string>
</property>
</widget>
<widget class="QCheckBox" name="checkBoxSendEnable4">
<property name="geometry">
<rect>
<x>10</x>
<y>150</y>
<width>80</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>消息4</string>
</property>
</widget>
<widget class="QCheckBox" name="checkBoxSendEnable5">
<property name="geometry">
<rect>
<x>10</x>
<y>190</y>
<width>80</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>消息5</string>
</property>
</widget>
<widget class="QLineEdit" name="lineEditSend2">
<property name="geometry">
<rect>
<x>90</x>
<y>65</y>
<width>550</width>
<height>30</height>
</rect>
</property>
</widget>
<widget class="QLineEdit" name="lineEditSend3">
<property name="geometry">
<rect>
<x>90</x>
<y>105</y>
<width>550</width>
<height>30</height>
</rect>
</property>
</widget>
<widget class="QLineEdit" name="lineEditSend4">
<property name="geometry">
<rect>
<x>90</x>
<y>145</y>
<width>550</width>
<height>30</height>
</rect>
</property>
</widget>
<widget class="QLineEdit" name="lineEditSend5">
<property name="geometry">
<rect>
<x>90</x>
<y>185</y>
<width>550</width>
<height>30</height>
</rect>
</property>
</widget>
<widget class="QLineEdit" name="lineEditSend1">
<property name="geometry">
<rect>
<x>90</x>
<y>25</y>
<width>550</width>
<height>30</height>
</rect>
</property>
</widget>
<widget class="QPushButton" name="pushButtonSend1">
<property name="geometry">
<rect>
<x>660</x>
<y>25</y>
<width>100</width>
<height>30</height>
</rect>
</property>
<property name="text">
<string>发送</string>
</property>
</widget>
<widget class="QPushButton" name="pushButtonSend2">
<property name="geometry">
<rect>
<x>660</x>
<y>65</y>
<width>100</width>
<height>30</height>
</rect>
</property>
<property name="text">
<string>发送</string>
</property>
</widget>
<widget class="QPushButton" name="pushButtonSend3">
<property name="geometry">
<rect>
<x>660</x>
<y>105</y>
<width>100</width>
<height>30</height>
</rect>
</property>
<property name="text">
<string>发送</string>
</property>
</widget>
<widget class="QPushButton" name="pushButtonSend4">
<property name="geometry">
<rect>
<x>660</x>
<y>145</y>
<width>100</width>
<height>30</height>
</rect>
</property>
<property name="text">
<string>发送</string>
</property>
</widget>
<widget class="QPushButton" name="pushButtonSend5">
<property name="geometry">
<rect>
<x>660</x>
<y>185</y>
<width>100</width>
<height>30</height>
</rect>
</property>
<property name="text">
<string>发送</string>
</property>
</widget>
</widget>
<widget class="QGroupBox" name="groupBox_5">
<property name="geometry">
<rect>
<x>220</x>
<y>260</y>
<width>770</width>
<height>230</height>
</rect>
</property>
<property name="title">
<string>信息接收</string>
</property>
<widget class="QTextBrowser" name="textBrowser">
<property name="geometry">
<rect>
<x>5</x>
<y>20</y>
<width>761</width>
<height>201</height>
</rect>
</property>
</widget>
</widget>
<widget class="QGroupBox" name="groupBox_6">
<property name="geometry">
<rect>
<x>220</x>
<y>10</y>
<width>771</width>
<height>241</height>
</rect>
</property>
<property name="title">
<string>动态曲线</string>
</property>
<widget class="QChartView" name="graphicsView">
<property name="geometry">
<rect>
<x>5</x>
<y>20</y>
<width>761</width>
<height>211</height>
</rect>
</property>
</widget>
</widget>
</widget>
<widget class="QMenuBar" name="mainMenubar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1000</width>
<height>26</height>
</rect>
</property>
<widget class="QMenu" name="menuFile">
<property name="title">
<string>文件(&amp;F)</string>
</property>
<addaction name="actionConnect"/>
<addaction name="actionClose"/>
<addaction name="actionSave"/>
<addaction name="actionRefresh"/>
<addaction name="actionExit"/>
</widget>
<widget class="QMenu" name="menuEdit">
<property name="title">
<string>编辑(&amp;E)</string>
</property>
</widget>
<widget class="QMenu" name="menuWindow">
<property name="title">
<string>窗口(&amp;W)</string>
</property>
</widget>
<widget class="QMenu" name="menuHelp">
<property name="title">
<string>帮助(&amp;H)</string>
</property>
</widget>
<addaction name="menuFile"/>
<addaction name="menuEdit"/>
<addaction name="menuWindow"/>
<addaction name="menuHelp"/>
</widget>
<widget class="QStatusBar" name="statusbar"/>
<widget class="QToolBar" name="mainToolBar">
<property name="windowTitle">
<string>toolBar</string>
</property>
<property name="toolButtonStyle">
<enum>Qt::ToolButtonTextBesideIcon</enum>
</property>
<attribute name="toolBarArea">
<enum>TopToolBarArea</enum>
</attribute>
<attribute name="toolBarBreak">
<bool>false</bool>
</attribute>
<addaction name="actionConnect"/>
<addaction name="actionClose"/>
<addaction name="actionSave"/>
<addaction name="actionRefresh"/>
</widget>
<action name="actionConnect">
<property name="icon">
<iconset resource="images.qrc">
<normaloff>:/images/images/open.png</normaloff>:/images/images/open.png</iconset>
</property>
<property name="text">
<string>打开串口</string>
</property>
<property name="toolTip">
<string>建立连接</string>
</property>
<property name="shortcut">
<string>Ctrl+O</string>
</property>
</action>
<action name="actionClose">
<property name="icon">
<iconset resource="images.qrc">
<normaloff>:/images/images/close.png</normaloff>:/images/images/close.png</iconset>
</property>
<property name="text">
<string>关闭串口</string>
</property>
<property name="toolTip">
<string>断开连接</string>
</property>
<property name="shortcut">
<string>Ctrl+C</string>
</property>
</action>
<action name="actionSave">
<property name="icon">
<iconset resource="images.qrc">
<normaloff>:/images/images/save.png</normaloff>:/images/images/save.png</iconset>
</property>
<property name="text">
<string>保存消息</string>
</property>
<property name="toolTip">
<string>保存消息窗的数据</string>
</property>
<property name="shortcut">
<string>Ctrl+S</string>
</property>
</action>
<action name="actionRefresh">
<property name="icon">
<iconset resource="images.qrc">
<normaloff>:/images/images/refresh.png</normaloff>:/images/images/refresh.png</iconset>
</property>
<property name="text">
<string>刷新串口</string>
</property>
<property name="toolTip">
<string>刷新串口列表</string>
</property>
<property name="shortcut">
<string>Ctrl+R</string>
</property>
</action>
<action name="actionExit">
<property name="icon">
<iconset resource="images.qrc">
<normaloff>:/images/images/exit.png</normaloff>:/images/images/exit.png</iconset>
</property>
<property name="text">
<string>退出(&amp;X)</string>
</property>
</action>
</widget>
<customwidgets>
<customwidget>
<class>QChartView</class>
<extends>QGraphicsView</extends>
<header location="global">qchartview.h</header>
</customwidget>
</customwidgets>
<resources>
<include location="images.qrc"/>
</resources>
<connections/>
</ui>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/IOTTS/serial-master.git
git@gitee.com:IOTTS/serial-master.git
IOTTS
serial-master
SerialMaster
master

搜索帮助