Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 

484 rindas
11 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui version="4.0">
  3. <class>Widget</class>
  4. <widget class="QWidget" name="Widget">
  5. <property name="geometry">
  6. <rect>
  7. <x>0</x>
  8. <y>0</y>
  9. <width>700</width>
  10. <height>486</height>
  11. </rect>
  12. </property>
  13. <property name="windowTitle">
  14. <string>Widget</string>
  15. </property>
  16. <widget class="QGroupBox" name="groupBox">
  17. <property name="geometry">
  18. <rect>
  19. <x>30</x>
  20. <y>240</y>
  21. <width>181</width>
  22. <height>231</height>
  23. </rect>
  24. </property>
  25. <property name="title">
  26. <string>从站配置</string>
  27. </property>
  28. <widget class="QWidget" name="">
  29. <property name="geometry">
  30. <rect>
  31. <x>10</x>
  32. <y>30</y>
  33. <width>159</width>
  34. <height>131</height>
  35. </rect>
  36. </property>
  37. <layout class="QGridLayout" name="gridLayout_2">
  38. <item row="0" column="0">
  39. <widget class="QLabel" name="label_9">
  40. <property name="text">
  41. <string>站地址</string>
  42. </property>
  43. </widget>
  44. </item>
  45. <item row="0" column="1">
  46. <widget class="QComboBox" name="comboBox_stationAddress">
  47. <item>
  48. <property name="text">
  49. <string>1</string>
  50. </property>
  51. </item>
  52. <item>
  53. <property name="text">
  54. <string>2</string>
  55. </property>
  56. </item>
  57. <item>
  58. <property name="text">
  59. <string>3</string>
  60. </property>
  61. </item>
  62. <item>
  63. <property name="text">
  64. <string>4</string>
  65. </property>
  66. </item>
  67. <item>
  68. <property name="text">
  69. <string>5</string>
  70. </property>
  71. </item>
  72. <item>
  73. <property name="text">
  74. <string>6</string>
  75. </property>
  76. </item>
  77. <item>
  78. <property name="text">
  79. <string>7</string>
  80. </property>
  81. </item>
  82. <item>
  83. <property name="text">
  84. <string>8</string>
  85. </property>
  86. </item>
  87. <item>
  88. <property name="text">
  89. <string>9</string>
  90. </property>
  91. </item>
  92. </widget>
  93. </item>
  94. <item row="1" column="0">
  95. <widget class="QLabel" name="label_10">
  96. <property name="text">
  97. <string>操作</string>
  98. </property>
  99. </widget>
  100. </item>
  101. <item row="1" column="1">
  102. <widget class="QComboBox" name="comboBox_gongnengma">
  103. <item>
  104. <property name="text">
  105. <string>读线圈</string>
  106. </property>
  107. </item>
  108. <item>
  109. <property name="text">
  110. <string>读寄存器</string>
  111. </property>
  112. </item>
  113. <item>
  114. <property name="text">
  115. <string>写线圈</string>
  116. </property>
  117. </item>
  118. <item>
  119. <property name="text">
  120. <string>写寄存器</string>
  121. </property>
  122. </item>
  123. </widget>
  124. </item>
  125. <item row="2" column="0">
  126. <widget class="QLabel" name="label_11">
  127. <property name="text">
  128. <string>起始地址</string>
  129. </property>
  130. </widget>
  131. </item>
  132. <item row="2" column="1">
  133. <widget class="QLineEdit" name="lineEdit_stratAddress">
  134. <property name="text">
  135. <string>256</string>
  136. </property>
  137. </widget>
  138. </item>
  139. <item row="3" column="0">
  140. <widget class="QLabel" name="label_12">
  141. <property name="text">
  142. <string>长度</string>
  143. </property>
  144. </widget>
  145. </item>
  146. <item row="3" column="1">
  147. <widget class="QLineEdit" name="lineEdit_length">
  148. <property name="text">
  149. <string>1</string>
  150. </property>
  151. </widget>
  152. </item>
  153. </layout>
  154. </widget>
  155. <widget class="QPushButton" name="btn_read">
  156. <property name="geometry">
  157. <rect>
  158. <x>10</x>
  159. <y>160</y>
  160. <width>71</width>
  161. <height>51</height>
  162. </rect>
  163. </property>
  164. <property name="text">
  165. <string>读</string>
  166. </property>
  167. </widget>
  168. <widget class="QPushButton" name="pushWrite">
  169. <property name="geometry">
  170. <rect>
  171. <x>90</x>
  172. <y>160</y>
  173. <width>71</width>
  174. <height>51</height>
  175. </rect>
  176. </property>
  177. <property name="text">
  178. <string>写</string>
  179. </property>
  180. </widget>
  181. </widget>
  182. <widget class="QGroupBox" name="groupBox_2">
  183. <property name="geometry">
  184. <rect>
  185. <x>30</x>
  186. <y>19</y>
  187. <width>181</width>
  188. <height>211</height>
  189. </rect>
  190. </property>
  191. <property name="title">
  192. <string>串口配置</string>
  193. </property>
  194. <widget class="QWidget" name="">
  195. <property name="geometry">
  196. <rect>
  197. <x>10</x>
  198. <y>20</y>
  199. <width>161</width>
  200. <height>181</height>
  201. </rect>
  202. </property>
  203. <layout class="QGridLayout" name="gridLayout">
  204. <item row="0" column="0">
  205. <widget class="QLabel" name="label">
  206. <property name="text">
  207. <string>串口</string>
  208. </property>
  209. </widget>
  210. </item>
  211. <item row="0" column="1">
  212. <widget class="QComboBox" name="comboBox_serialNum"/>
  213. </item>
  214. <item row="1" column="0">
  215. <widget class="QLabel" name="label_2">
  216. <property name="text">
  217. <string>波特率</string>
  218. </property>
  219. </widget>
  220. </item>
  221. <item row="1" column="1">
  222. <widget class="QComboBox" name="comboBox_baudRate">
  223. <item>
  224. <property name="text">
  225. <string>1200</string>
  226. </property>
  227. </item>
  228. <item>
  229. <property name="text">
  230. <string>2400</string>
  231. </property>
  232. </item>
  233. <item>
  234. <property name="text">
  235. <string>4800</string>
  236. </property>
  237. </item>
  238. <item>
  239. <property name="text">
  240. <string>9600</string>
  241. </property>
  242. </item>
  243. <item>
  244. <property name="text">
  245. <string>19200</string>
  246. </property>
  247. </item>
  248. <item>
  249. <property name="text">
  250. <string>38400</string>
  251. </property>
  252. </item>
  253. </widget>
  254. </item>
  255. <item row="2" column="0">
  256. <widget class="QLabel" name="label_3">
  257. <property name="text">
  258. <string>数据位</string>
  259. </property>
  260. </widget>
  261. </item>
  262. <item row="2" column="1">
  263. <widget class="QComboBox" name="comboBox_dataBit">
  264. <item>
  265. <property name="text">
  266. <string>5</string>
  267. </property>
  268. </item>
  269. <item>
  270. <property name="text">
  271. <string>6</string>
  272. </property>
  273. </item>
  274. <item>
  275. <property name="text">
  276. <string>7</string>
  277. </property>
  278. </item>
  279. <item>
  280. <property name="text">
  281. <string>8</string>
  282. </property>
  283. </item>
  284. <item>
  285. <property name="text">
  286. <string>NONE</string>
  287. </property>
  288. </item>
  289. </widget>
  290. </item>
  291. <item row="3" column="0">
  292. <widget class="QLabel" name="label_7">
  293. <property name="text">
  294. <string>校验位</string>
  295. </property>
  296. </widget>
  297. </item>
  298. <item row="3" column="1">
  299. <widget class="QComboBox" name="comboBox_xiaoyan">
  300. <item>
  301. <property name="text">
  302. <string>无校验(N)</string>
  303. </property>
  304. </item>
  305. <item>
  306. <property name="text">
  307. <string>奇校验(O)</string>
  308. </property>
  309. </item>
  310. <item>
  311. <property name="text">
  312. <string>偶校验(E)</string>
  313. </property>
  314. </item>
  315. </widget>
  316. </item>
  317. <item row="4" column="0">
  318. <widget class="QLabel" name="label_8">
  319. <property name="text">
  320. <string>停止位</string>
  321. </property>
  322. </widget>
  323. </item>
  324. <item row="4" column="1">
  325. <widget class="QComboBox" name="comboBox_stopBit">
  326. <item>
  327. <property name="text">
  328. <string>1</string>
  329. </property>
  330. </item>
  331. <item>
  332. <property name="text">
  333. <string>2</string>
  334. </property>
  335. </item>
  336. </widget>
  337. </item>
  338. <item row="5" column="0" colspan="2">
  339. <widget class="QPushButton" name="btnConnect">
  340. <property name="text">
  341. <string>连接</string>
  342. </property>
  343. </widget>
  344. </item>
  345. </layout>
  346. </widget>
  347. </widget>
  348. <widget class="QGroupBox" name="groupBox_3">
  349. <property name="geometry">
  350. <rect>
  351. <x>240</x>
  352. <y>20</y>
  353. <width>211</width>
  354. <height>271</height>
  355. </rect>
  356. </property>
  357. <property name="title">
  358. <string>数据读取</string>
  359. </property>
  360. <widget class="QTextEdit" name="textEdit">
  361. <property name="geometry">
  362. <rect>
  363. <x>10</x>
  364. <y>20</y>
  365. <width>191</width>
  366. <height>241</height>
  367. </rect>
  368. </property>
  369. <property name="readOnly">
  370. <bool>true</bool>
  371. </property>
  372. </widget>
  373. </widget>
  374. <widget class="QGroupBox" name="groupBox_4">
  375. <property name="geometry">
  376. <rect>
  377. <x>470</x>
  378. <y>20</y>
  379. <width>221</width>
  380. <height>271</height>
  381. </rect>
  382. </property>
  383. <property name="title">
  384. <string>状态通知</string>
  385. </property>
  386. <widget class="QTextEdit" name="textEdit_2">
  387. <property name="geometry">
  388. <rect>
  389. <x>10</x>
  390. <y>20</y>
  391. <width>201</width>
  392. <height>241</height>
  393. </rect>
  394. </property>
  395. <property name="readOnly">
  396. <bool>true</bool>
  397. </property>
  398. </widget>
  399. </widget>
  400. <widget class="QGroupBox" name="groupBox_5">
  401. <property name="geometry">
  402. <rect>
  403. <x>240</x>
  404. <y>340</y>
  405. <width>341</width>
  406. <height>131</height>
  407. </rect>
  408. </property>
  409. <property name="title">
  410. <string>写入数据</string>
  411. </property>
  412. <widget class="QLabel" name="label_13">
  413. <property name="geometry">
  414. <rect>
  415. <x>10</x>
  416. <y>0</y>
  417. <width>311</width>
  418. <height>101</height>
  419. </rect>
  420. </property>
  421. <property name="text">
  422. <string>写线圈时,使用1、0代表线圈的开关状态,
  423. 从左到右依次输入每个线圈的开关;
  424. 写寄存器时要写入所有寄存器的16进制数值,
  425. 相邻寄存器的值之间用英文&quot;,&quot;分离。</string>
  426. </property>
  427. </widget>
  428. <widget class="QLineEdit" name="lineEdit">
  429. <property name="geometry">
  430. <rect>
  431. <x>10</x>
  432. <y>90</y>
  433. <width>301</width>
  434. <height>31</height>
  435. </rect>
  436. </property>
  437. </widget>
  438. </widget>
  439. <widget class="QWidget" name="">
  440. <property name="geometry">
  441. <rect>
  442. <x>240</x>
  443. <y>300</y>
  444. <width>451</width>
  445. <height>30</height>
  446. </rect>
  447. </property>
  448. <layout class="QHBoxLayout" name="horizontalLayout">
  449. <item>
  450. <widget class="QPushButton" name="btn_ClearRead">
  451. <property name="text">
  452. <string>清空读取信息</string>
  453. </property>
  454. </widget>
  455. </item>
  456. <item>
  457. <widget class="QPushButton" name="btn_ClearDate">
  458. <property name="text">
  459. <string>清空收发信息</string>
  460. </property>
  461. </widget>
  462. </item>
  463. <item>
  464. <widget class="QPushButton" name="btn_ReadDate">
  465. <property name="text">
  466. <string>读取历史收发信息</string>
  467. </property>
  468. </widget>
  469. </item>
  470. <item>
  471. <widget class="QPushButton" name="btn_SaveDate">
  472. <property name="text">
  473. <string>保存收发信息</string>
  474. </property>
  475. </widget>
  476. </item>
  477. </layout>
  478. </widget>
  479. </widget>
  480. <layoutdefault spacing="6" margin="11"/>
  481. <resources/>
  482. <connections/>
  483. </ui>