Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

717 řádky
16 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui version="4.0">
  3. <class>MainWindow</class>
  4. <widget class="QMainWindow" name="MainWindow">
  5. <property name="geometry">
  6. <rect>
  7. <x>0</x>
  8. <y>0</y>
  9. <width>815</width>
  10. <height>606</height>
  11. </rect>
  12. </property>
  13. <property name="windowTitle">
  14. <string>MainWindow</string>
  15. </property>
  16. <widget class="QWidget" name="centralwidget">
  17. <widget class="QGroupBox" name="groupBox_3">
  18. <property name="geometry">
  19. <rect>
  20. <x>10</x>
  21. <y>240</y>
  22. <width>381</width>
  23. <height>311</height>
  24. </rect>
  25. </property>
  26. <property name="font">
  27. <font>
  28. <family>楷体</family>
  29. <pointsize>12</pointsize>
  30. </font>
  31. </property>
  32. <property name="title">
  33. <string/>
  34. </property>
  35. <widget class="QLabel" name="label">
  36. <property name="geometry">
  37. <rect>
  38. <x>10</x>
  39. <y>120</y>
  40. <width>91</width>
  41. <height>31</height>
  42. </rect>
  43. </property>
  44. <property name="text">
  45. <string>起始地址:</string>
  46. </property>
  47. </widget>
  48. <widget class="QLabel" name="label_10">
  49. <property name="geometry">
  50. <rect>
  51. <x>190</x>
  52. <y>110</y>
  53. <width>91</width>
  54. <height>41</height>
  55. </rect>
  56. </property>
  57. <property name="font">
  58. <font>
  59. <family>楷体</family>
  60. <pointsize>12</pointsize>
  61. </font>
  62. </property>
  63. <property name="text">
  64. <string>读取数量:</string>
  65. </property>
  66. </widget>
  67. <widget class="QLabel" name="label_4">
  68. <property name="geometry">
  69. <rect>
  70. <x>10</x>
  71. <y>70</y>
  72. <width>91</width>
  73. <height>20</height>
  74. </rect>
  75. </property>
  76. <property name="font">
  77. <font>
  78. <family>楷体</family>
  79. <pointsize>12</pointsize>
  80. </font>
  81. </property>
  82. <property name="text">
  83. <string>从站地址:</string>
  84. </property>
  85. </widget>
  86. <widget class="QLabel" name="label_8">
  87. <property name="geometry">
  88. <rect>
  89. <x>200</x>
  90. <y>60</y>
  91. <width>81</width>
  92. <height>31</height>
  93. </rect>
  94. </property>
  95. <property name="font">
  96. <font>
  97. <family>楷体</family>
  98. <pointsize>12</pointsize>
  99. </font>
  100. </property>
  101. <property name="text">
  102. <string>功能码:</string>
  103. </property>
  104. </widget>
  105. <widget class="QComboBox" name="functionComboBox">
  106. <property name="geometry">
  107. <rect>
  108. <x>270</x>
  109. <y>60</y>
  110. <width>101</width>
  111. <height>31</height>
  112. </rect>
  113. </property>
  114. <property name="font">
  115. <font>
  116. <family>楷体</family>
  117. <pointsize>11</pointsize>
  118. </font>
  119. </property>
  120. <item>
  121. <property name="text">
  122. <string>01读线圈</string>
  123. </property>
  124. </item>
  125. <item>
  126. <property name="text">
  127. <string>03读寄存器</string>
  128. </property>
  129. </item>
  130. <item>
  131. <property name="text">
  132. <string>0F写线圈</string>
  133. </property>
  134. </item>
  135. <item>
  136. <property name="text">
  137. <string>10写寄存器</string>
  138. </property>
  139. </item>
  140. </widget>
  141. <widget class="QTextEdit" name="writeTextEdit">
  142. <property name="geometry">
  143. <rect>
  144. <x>0</x>
  145. <y>260</y>
  146. <width>381</width>
  147. <height>41</height>
  148. </rect>
  149. </property>
  150. </widget>
  151. <widget class="QPushButton" name="writeButton">
  152. <property name="geometry">
  153. <rect>
  154. <x>260</x>
  155. <y>180</y>
  156. <width>93</width>
  157. <height>41</height>
  158. </rect>
  159. </property>
  160. <property name="text">
  161. <string>写入</string>
  162. </property>
  163. </widget>
  164. <widget class="QPushButton" name="readButton">
  165. <property name="geometry">
  166. <rect>
  167. <x>90</x>
  168. <y>180</y>
  169. <width>93</width>
  170. <height>41</height>
  171. </rect>
  172. </property>
  173. <property name="text">
  174. <string>读取</string>
  175. </property>
  176. </widget>
  177. <widget class="QSpinBox" name="numberSpinBox">
  178. <property name="geometry">
  179. <rect>
  180. <x>280</x>
  181. <y>120</y>
  182. <width>90</width>
  183. <height>31</height>
  184. </rect>
  185. </property>
  186. <property name="font">
  187. <font>
  188. <family>黑体</family>
  189. <pointsize>12</pointsize>
  190. </font>
  191. </property>
  192. <property name="maximum">
  193. <number>1000</number>
  194. </property>
  195. </widget>
  196. <widget class="QSpinBox" name="startAddrSpinBox">
  197. <property name="geometry">
  198. <rect>
  199. <x>100</x>
  200. <y>120</y>
  201. <width>91</width>
  202. <height>31</height>
  203. </rect>
  204. </property>
  205. <property name="maximum">
  206. <number>20000</number>
  207. </property>
  208. </widget>
  209. <widget class="QSpinBox" name="stationAddrSpinBox">
  210. <property name="geometry">
  211. <rect>
  212. <x>100</x>
  213. <y>60</y>
  214. <width>91</width>
  215. <height>31</height>
  216. </rect>
  217. </property>
  218. <property name="font">
  219. <font>
  220. <family>黑体</family>
  221. <pointsize>12</pointsize>
  222. </font>
  223. </property>
  224. <property name="maximum">
  225. <number>1000</number>
  226. </property>
  227. </widget>
  228. <widget class="QLabel" name="label_13">
  229. <property name="geometry">
  230. <rect>
  231. <x>0</x>
  232. <y>0</y>
  233. <width>101</width>
  234. <height>31</height>
  235. </rect>
  236. </property>
  237. <property name="text">
  238. <string>Modbus配置</string>
  239. </property>
  240. </widget>
  241. <widget class="QLabel" name="label_14">
  242. <property name="geometry">
  243. <rect>
  244. <x>0</x>
  245. <y>230</y>
  246. <width>91</width>
  247. <height>31</height>
  248. </rect>
  249. </property>
  250. <property name="text">
  251. <string>写入数据</string>
  252. </property>
  253. </widget>
  254. </widget>
  255. <widget class="QGroupBox" name="groupBox_4">
  256. <property name="geometry">
  257. <rect>
  258. <x>400</x>
  259. <y>310</y>
  260. <width>401</width>
  261. <height>241</height>
  262. </rect>
  263. </property>
  264. <property name="font">
  265. <font>
  266. <family>楷体</family>
  267. <pointsize>12</pointsize>
  268. </font>
  269. </property>
  270. <property name="title">
  271. <string/>
  272. </property>
  273. <widget class="QTextEdit" name="logTextEdit">
  274. <property name="geometry">
  275. <rect>
  276. <x>0</x>
  277. <y>30</y>
  278. <width>391</width>
  279. <height>201</height>
  280. </rect>
  281. </property>
  282. <property name="font">
  283. <font>
  284. <family>微软雅黑 Light</family>
  285. <pointsize>10</pointsize>
  286. </font>
  287. </property>
  288. </widget>
  289. <widget class="QPushButton" name="clearLogButton">
  290. <property name="geometry">
  291. <rect>
  292. <x>300</x>
  293. <y>0</y>
  294. <width>93</width>
  295. <height>31</height>
  296. </rect>
  297. </property>
  298. <property name="text">
  299. <string>清空</string>
  300. </property>
  301. </widget>
  302. <widget class="QLabel" name="label_12">
  303. <property name="geometry">
  304. <rect>
  305. <x>0</x>
  306. <y>0</y>
  307. <width>81</width>
  308. <height>21</height>
  309. </rect>
  310. </property>
  311. <property name="text">
  312. <string>日志框</string>
  313. </property>
  314. </widget>
  315. </widget>
  316. <widget class="QGroupBox" name="groupBox">
  317. <property name="geometry">
  318. <rect>
  319. <x>10</x>
  320. <y>10</y>
  321. <width>381</width>
  322. <height>231</height>
  323. </rect>
  324. </property>
  325. <property name="font">
  326. <font>
  327. <family>楷体</family>
  328. <pointsize>12</pointsize>
  329. </font>
  330. </property>
  331. <property name="title">
  332. <string>通信配置</string>
  333. </property>
  334. <widget class="QComboBox" name="verifyComboBox">
  335. <property name="geometry">
  336. <rect>
  337. <x>120</x>
  338. <y>70</y>
  339. <width>70</width>
  340. <height>30</height>
  341. </rect>
  342. </property>
  343. </widget>
  344. <widget class="QComboBox" name="dataComboBox">
  345. <property name="geometry">
  346. <rect>
  347. <x>280</x>
  348. <y>70</y>
  349. <width>70</width>
  350. <height>30</height>
  351. </rect>
  352. </property>
  353. <property name="font">
  354. <font>
  355. <family>黑体</family>
  356. <pointsize>10</pointsize>
  357. </font>
  358. </property>
  359. </widget>
  360. <widget class="QComboBox" name="stopComboBox">
  361. <property name="geometry">
  362. <rect>
  363. <x>280</x>
  364. <y>110</y>
  365. <width>70</width>
  366. <height>30</height>
  367. </rect>
  368. </property>
  369. <property name="font">
  370. <font>
  371. <family>黑体</family>
  372. <pointsize>10</pointsize>
  373. </font>
  374. </property>
  375. </widget>
  376. <widget class="QLabel" name="label_5">
  377. <property name="geometry">
  378. <rect>
  379. <x>40</x>
  380. <y>120</y>
  381. <width>85</width>
  382. <height>23</height>
  383. </rect>
  384. </property>
  385. <property name="font">
  386. <font>
  387. <family>楷体</family>
  388. <pointsize>12</pointsize>
  389. </font>
  390. </property>
  391. <property name="text">
  392. <string>波特率:</string>
  393. </property>
  394. </widget>
  395. <widget class="QComboBox" name="baudComboBox">
  396. <property name="geometry">
  397. <rect>
  398. <x>120</x>
  399. <y>110</y>
  400. <width>70</width>
  401. <height>30</height>
  402. </rect>
  403. </property>
  404. <property name="font">
  405. <font>
  406. <family>黑体</family>
  407. <pointsize>10</pointsize>
  408. </font>
  409. </property>
  410. <item>
  411. <property name="text">
  412. <string>4800</string>
  413. </property>
  414. </item>
  415. <item>
  416. <property name="text">
  417. <string>9600</string>
  418. </property>
  419. </item>
  420. <item>
  421. <property name="text">
  422. <string>19200</string>
  423. </property>
  424. </item>
  425. <item>
  426. <property name="text">
  427. <string>38400</string>
  428. </property>
  429. </item>
  430. <item>
  431. <property name="text">
  432. <string>115200</string>
  433. </property>
  434. </item>
  435. </widget>
  436. <widget class="QPushButton" name="disconnectButton">
  437. <property name="geometry">
  438. <rect>
  439. <x>260</x>
  440. <y>190</y>
  441. <width>93</width>
  442. <height>31</height>
  443. </rect>
  444. </property>
  445. <property name="text">
  446. <string>断开连接</string>
  447. </property>
  448. </widget>
  449. <widget class="QPushButton" name="connectButton">
  450. <property name="geometry">
  451. <rect>
  452. <x>110</x>
  453. <y>190</y>
  454. <width>93</width>
  455. <height>31</height>
  456. </rect>
  457. </property>
  458. <property name="text">
  459. <string>连接</string>
  460. </property>
  461. </widget>
  462. <widget class="QComboBox" name="serialPortCombox">
  463. <property name="geometry">
  464. <rect>
  465. <x>120</x>
  466. <y>30</y>
  467. <width>231</width>
  468. <height>31</height>
  469. </rect>
  470. </property>
  471. <property name="font">
  472. <font>
  473. <family>楷体</family>
  474. <pointsize>10</pointsize>
  475. </font>
  476. </property>
  477. </widget>
  478. <widget class="QLabel" name="label_2">
  479. <property name="geometry">
  480. <rect>
  481. <x>30</x>
  482. <y>30</y>
  483. <width>85</width>
  484. <height>31</height>
  485. </rect>
  486. </property>
  487. <property name="font">
  488. <font>
  489. <family>楷体</family>
  490. <pointsize>12</pointsize>
  491. </font>
  492. </property>
  493. <property name="text">
  494. <string>通信接口:</string>
  495. </property>
  496. </widget>
  497. <widget class="QLabel" name="label_6">
  498. <property name="geometry">
  499. <rect>
  500. <x>210</x>
  501. <y>70</y>
  502. <width>68</width>
  503. <height>23</height>
  504. </rect>
  505. </property>
  506. <property name="font">
  507. <font>
  508. <family>楷体</family>
  509. <pointsize>12</pointsize>
  510. </font>
  511. </property>
  512. <property name="text">
  513. <string>数据位:</string>
  514. </property>
  515. </widget>
  516. <widget class="QLabel" name="label_3">
  517. <property name="geometry">
  518. <rect>
  519. <x>30</x>
  520. <y>80</y>
  521. <width>85</width>
  522. <height>23</height>
  523. </rect>
  524. </property>
  525. <property name="font">
  526. <font>
  527. <family>楷体</family>
  528. <pointsize>12</pointsize>
  529. </font>
  530. </property>
  531. <property name="text">
  532. <string>奇偶校验:</string>
  533. </property>
  534. </widget>
  535. <widget class="QLabel" name="label_7">
  536. <property name="geometry">
  537. <rect>
  538. <x>210</x>
  539. <y>110</y>
  540. <width>68</width>
  541. <height>23</height>
  542. </rect>
  543. </property>
  544. <property name="font">
  545. <font>
  546. <family>楷体</family>
  547. <pointsize>12</pointsize>
  548. </font>
  549. </property>
  550. <property name="text">
  551. <string>停止位:</string>
  552. </property>
  553. </widget>
  554. <widget class="QLineEdit" name="timeoutEdit">
  555. <property name="geometry">
  556. <rect>
  557. <x>120</x>
  558. <y>150</y>
  559. <width>71</width>
  560. <height>21</height>
  561. </rect>
  562. </property>
  563. <property name="font">
  564. <font>
  565. <family>黑体</family>
  566. <pointsize>9</pointsize>
  567. </font>
  568. </property>
  569. <property name="maxLength">
  570. <number>5000</number>
  571. </property>
  572. </widget>
  573. <widget class="QLineEdit" name="reissueEdit">
  574. <property name="geometry">
  575. <rect>
  576. <x>280</x>
  577. <y>150</y>
  578. <width>71</width>
  579. <height>21</height>
  580. </rect>
  581. </property>
  582. <property name="font">
  583. <font>
  584. <family>黑体</family>
  585. <pointsize>9</pointsize>
  586. </font>
  587. </property>
  588. <property name="maxLength">
  589. <number>10</number>
  590. </property>
  591. </widget>
  592. <widget class="QLabel" name="label_9">
  593. <property name="geometry">
  594. <rect>
  595. <x>0</x>
  596. <y>150</y>
  597. <width>121</width>
  598. <height>23</height>
  599. </rect>
  600. </property>
  601. <property name="font">
  602. <font>
  603. <family>楷体</family>
  604. <pointsize>12</pointsize>
  605. </font>
  606. </property>
  607. <property name="text">
  608. <string>超时时间(ms):</string>
  609. </property>
  610. </widget>
  611. <widget class="QLabel" name="label_11">
  612. <property name="geometry">
  613. <rect>
  614. <x>190</x>
  615. <y>150</y>
  616. <width>101</width>
  617. <height>23</height>
  618. </rect>
  619. </property>
  620. <property name="font">
  621. <font>
  622. <family>楷体</family>
  623. <pointsize>12</pointsize>
  624. </font>
  625. </property>
  626. <property name="text">
  627. <string>重发次数:</string>
  628. </property>
  629. </widget>
  630. </widget>
  631. <widget class="QGroupBox" name="groupBox_2">
  632. <property name="geometry">
  633. <rect>
  634. <x>400</x>
  635. <y>0</y>
  636. <width>401</width>
  637. <height>301</height>
  638. </rect>
  639. </property>
  640. <property name="title">
  641. <string/>
  642. </property>
  643. <widget class="QListWidget" name="historyListWidget">
  644. <property name="geometry">
  645. <rect>
  646. <x>0</x>
  647. <y>40</y>
  648. <width>391</width>
  649. <height>261</height>
  650. </rect>
  651. </property>
  652. <property name="font">
  653. <font>
  654. <pointsize>10</pointsize>
  655. </font>
  656. </property>
  657. </widget>
  658. <widget class="QLabel" name="recv_label">
  659. <property name="geometry">
  660. <rect>
  661. <x>0</x>
  662. <y>0</y>
  663. <width>81</width>
  664. <height>31</height>
  665. </rect>
  666. </property>
  667. <property name="font">
  668. <font>
  669. <family>楷体</family>
  670. <pointsize>12</pointsize>
  671. </font>
  672. </property>
  673. <property name="text">
  674. <string>通信历史</string>
  675. </property>
  676. </widget>
  677. <widget class="QPushButton" name="exportHistoryButton">
  678. <property name="geometry">
  679. <rect>
  680. <x>300</x>
  681. <y>10</y>
  682. <width>93</width>
  683. <height>31</height>
  684. </rect>
  685. </property>
  686. <property name="text">
  687. <string>导出历史</string>
  688. </property>
  689. </widget>
  690. </widget>
  691. <zorder>groupBox</zorder>
  692. <zorder>groupBox_3</zorder>
  693. <zorder>groupBox_4</zorder>
  694. <zorder>groupBox_2</zorder>
  695. </widget>
  696. <widget class="QMenuBar" name="menubar">
  697. <property name="geometry">
  698. <rect>
  699. <x>0</x>
  700. <y>0</y>
  701. <width>815</width>
  702. <height>26</height>
  703. </rect>
  704. </property>
  705. <widget class="QMenu" name="menu">
  706. <property name="title">
  707. <string>主站界面</string>
  708. </property>
  709. </widget>
  710. <addaction name="menu"/>
  711. </widget>
  712. <widget class="QStatusBar" name="statusbar"/>
  713. </widget>
  714. <resources/>
  715. <connections/>
  716. </ui>