You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

491 lines
16 KiB

2 years ago
2 years ago
1 year ago
2 years ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
1 year ago
2 years ago
  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>1055</width>
  10. <height>768</height>
  11. </rect>
  12. </property>
  13. <property name="sizePolicy">
  14. <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
  15. <horstretch>0</horstretch>
  16. <verstretch>8</verstretch>
  17. </sizepolicy>
  18. </property>
  19. <property name="windowTitle">
  20. <string>MainWindow</string>
  21. </property>
  22. <widget class="QWidget" name="top">
  23. <layout class="QVBoxLayout" name="verticalLayout">
  24. <item>
  25. <widget class="QWidget" name="top2" native="true">
  26. <property name="sizePolicy">
  27. <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
  28. <horstretch>0</horstretch>
  29. <verstretch>0</verstretch>
  30. </sizepolicy>
  31. </property>
  32. <layout class="QHBoxLayout" name="horizontalLayout">
  33. <item>
  34. <widget class="QWidget" name="sidebar" native="true">
  35. <property name="minimumSize">
  36. <size>
  37. <width>200</width>
  38. <height>0</height>
  39. </size>
  40. </property>
  41. <property name="maximumSize">
  42. <size>
  43. <width>200</width>
  44. <height>16777215</height>
  45. </size>
  46. </property>
  47. <layout class="QVBoxLayout" name="verticalLayout_2">
  48. <item>
  49. <widget class="QGroupBox" name="serialSettingGB">
  50. <property name="maximumSize">
  51. <size>
  52. <width>16777215</width>
  53. <height>16777215</height>
  54. </size>
  55. </property>
  56. <property name="title">
  57. <string>串口设置</string>
  58. </property>
  59. <layout class="QGridLayout" name="gridLayout">
  60. <item row="0" column="1">
  61. <widget class="QComboBox" name="serialPortCB"/>
  62. </item>
  63. <item row="3" column="0" colspan="2">
  64. <widget class="QPushButton" name="serialOpenKey">
  65. <property name="text">
  66. <string>打开</string>
  67. </property>
  68. </widget>
  69. </item>
  70. <item row="1" column="1">
  71. <widget class="QComboBox" name="serialBaudrateCB"/>
  72. </item>
  73. <item row="1" column="0">
  74. <widget class="QLabel" name="serialBaudrateLable">
  75. <property name="text">
  76. <string>波特率</string>
  77. </property>
  78. </widget>
  79. </item>
  80. <item row="0" column="0">
  81. <widget class="QLabel" name="serialPortLable">
  82. <property name="text">
  83. <string>串口</string>
  84. </property>
  85. </widget>
  86. </item>
  87. <item row="2" column="0" colspan="2">
  88. <widget class="QPushButton" name="serialPortRefreshKey">
  89. <property name="text">
  90. <string>刷新</string>
  91. </property>
  92. </widget>
  93. </item>
  94. </layout>
  95. </widget>
  96. </item>
  97. <item>
  98. <widget class="QGroupBox" name="StateGB">
  99. <property name="sizePolicy">
  100. <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
  101. <horstretch>0</horstretch>
  102. <verstretch>0</verstretch>
  103. </sizepolicy>
  104. </property>
  105. <property name="minimumSize">
  106. <size>
  107. <width>0</width>
  108. <height>0</height>
  109. </size>
  110. </property>
  111. <property name="maximumSize">
  112. <size>
  113. <width>16777215</width>
  114. <height>16777215</height>
  115. </size>
  116. </property>
  117. <property name="autoFillBackground">
  118. <bool>false</bool>
  119. </property>
  120. <property name="title">
  121. <string>状态</string>
  122. </property>
  123. <layout class="QFormLayout" name="formLayout_2">
  124. <item row="0" column="0">
  125. <widget class="QLabel" name="DeviceConnectStateLable">
  126. <property name="sizePolicy">
  127. <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
  128. <horstretch>0</horstretch>
  129. <verstretch>0</verstretch>
  130. </sizepolicy>
  131. </property>
  132. <property name="minimumSize">
  133. <size>
  134. <width>0</width>
  135. <height>25</height>
  136. </size>
  137. </property>
  138. <property name="maximumSize">
  139. <size>
  140. <width>16777215</width>
  141. <height>25</height>
  142. </size>
  143. </property>
  144. <property name="text">
  145. <string>设备连接状态</string>
  146. </property>
  147. </widget>
  148. </item>
  149. <item row="0" column="1">
  150. <widget class="QTextBrowser" name="DeviceConnectStateTB">
  151. <property name="sizePolicy">
  152. <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
  153. <horstretch>0</horstretch>
  154. <verstretch>0</verstretch>
  155. </sizepolicy>
  156. </property>
  157. <property name="minimumSize">
  158. <size>
  159. <width>0</width>
  160. <height>25</height>
  161. </size>
  162. </property>
  163. <property name="maximumSize">
  164. <size>
  165. <width>16777215</width>
  166. <height>25</height>
  167. </size>
  168. </property>
  169. <property name="lineWrapColumnOrWidth">
  170. <number>2</number>
  171. </property>
  172. </widget>
  173. </item>
  174. </layout>
  175. </widget>
  176. </item>
  177. <item>
  178. <widget class="QGroupBox" name="MessageGB">
  179. <property name="title">
  180. <string>信息栏</string>
  181. </property>
  182. <layout class="QVBoxLayout" name="verticalLayout_4">
  183. <item>
  184. <widget class="QTextBrowser" name="informationBrowser">
  185. <property name="sizePolicy">
  186. <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
  187. <horstretch>0</horstretch>
  188. <verstretch>0</verstretch>
  189. </sizepolicy>
  190. </property>
  191. <property name="minimumSize">
  192. <size>
  193. <width>0</width>
  194. <height>25</height>
  195. </size>
  196. </property>
  197. <property name="maximumSize">
  198. <size>
  199. <width>16777215</width>
  200. <height>25</height>
  201. </size>
  202. </property>
  203. <property name="autoFillBackground">
  204. <bool>false</bool>
  205. </property>
  206. </widget>
  207. </item>
  208. </layout>
  209. </widget>
  210. </item>
  211. <item>
  212. <widget class="QGroupBox" name="FunctionKeyGB">
  213. <property name="minimumSize">
  214. <size>
  215. <width>0</width>
  216. <height>0</height>
  217. </size>
  218. </property>
  219. <property name="title">
  220. <string>功能按键</string>
  221. </property>
  222. <layout class="QVBoxLayout" name="verticalLayout_3">
  223. <item>
  224. <widget class="QPushButton" name="refreshPageKey">
  225. <property name="text">
  226. <string>刷新页面</string>
  227. </property>
  228. </widget>
  229. </item>
  230. <item>
  231. <widget class="QPushButton" name="storageConfigKey">
  232. <property name="text">
  233. <string>保存配置</string>
  234. </property>
  235. </widget>
  236. </item>
  237. <item>
  238. <widget class="QPushButton" name="rebootDeviceKey">
  239. <property name="text">
  240. <string>重启设备</string>
  241. </property>
  242. </widget>
  243. </item>
  244. <item>
  245. <widget class="QPushButton" name="factoryResetKey">
  246. <property name="text">
  247. <string>恢复出厂设置</string>
  248. </property>
  249. </widget>
  250. </item>
  251. </layout>
  252. </widget>
  253. </item>
  254. <item>
  255. <widget class="QGroupBox" name="RegOpeation">
  256. <property name="minimumSize">
  257. <size>
  258. <width>0</width>
  259. <height>0</height>
  260. </size>
  261. </property>
  262. <property name="title">
  263. <string>寄存器操作</string>
  264. </property>
  265. <layout class="QGridLayout" name="gridLayout_2">
  266. <item row="2" column="0">
  267. <widget class="QLabel" name="regReadbakValLable">
  268. <property name="sizePolicy">
  269. <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
  270. <horstretch>0</horstretch>
  271. <verstretch>0</verstretch>
  272. </sizepolicy>
  273. </property>
  274. <property name="minimumSize">
  275. <size>
  276. <width>0</width>
  277. <height>25</height>
  278. </size>
  279. </property>
  280. <property name="maximumSize">
  281. <size>
  282. <width>16777215</width>
  283. <height>25</height>
  284. </size>
  285. </property>
  286. <property name="text">
  287. <string>读数值</string>
  288. </property>
  289. </widget>
  290. </item>
  291. <item row="0" column="0">
  292. <widget class="QLabel" name="RegAddLable">
  293. <property name="sizePolicy">
  294. <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
  295. <horstretch>0</horstretch>
  296. <verstretch>0</verstretch>
  297. </sizepolicy>
  298. </property>
  299. <property name="minimumSize">
  300. <size>
  301. <width>0</width>
  302. <height>25</height>
  303. </size>
  304. </property>
  305. <property name="maximumSize">
  306. <size>
  307. <width>16777215</width>
  308. <height>25</height>
  309. </size>
  310. </property>
  311. <property name="text">
  312. <string>地址</string>
  313. </property>
  314. </widget>
  315. </item>
  316. <item row="4" column="0">
  317. <widget class="QLabel" name="regWritebakValLable">
  318. <property name="sizePolicy">
  319. <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
  320. <horstretch>0</horstretch>
  321. <verstretch>0</verstretch>
  322. </sizepolicy>
  323. </property>
  324. <property name="minimumSize">
  325. <size>
  326. <width>0</width>
  327. <height>25</height>
  328. </size>
  329. </property>
  330. <property name="maximumSize">
  331. <size>
  332. <width>16777215</width>
  333. <height>25</height>
  334. </size>
  335. </property>
  336. <property name="text">
  337. <string>写数值</string>
  338. </property>
  339. </widget>
  340. </item>
  341. <item row="2" column="1">
  342. <widget class="QTextBrowser" name="regReadbakVal">
  343. <property name="sizePolicy">
  344. <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
  345. <horstretch>0</horstretch>
  346. <verstretch>0</verstretch>
  347. </sizepolicy>
  348. </property>
  349. <property name="minimumSize">
  350. <size>
  351. <width>0</width>
  352. <height>25</height>
  353. </size>
  354. </property>
  355. <property name="maximumSize">
  356. <size>
  357. <width>16777215</width>
  358. <height>25</height>
  359. </size>
  360. </property>
  361. <property name="lineWrapColumnOrWidth">
  362. <number>2</number>
  363. </property>
  364. </widget>
  365. </item>
  366. <item row="5" column="0">
  367. <widget class="QPushButton" name="regReadKey">
  368. <property name="text">
  369. <string>读寄存器</string>
  370. </property>
  371. </widget>
  372. </item>
  373. <item row="5" column="1">
  374. <widget class="QPushButton" name="regWriteKey">
  375. <property name="text">
  376. <string>写寄存器</string>
  377. </property>
  378. </widget>
  379. </item>
  380. <item row="0" column="1">
  381. <widget class="QLineEdit" name="RegAdd">
  382. <property name="minimumSize">
  383. <size>
  384. <width>0</width>
  385. <height>25</height>
  386. </size>
  387. </property>
  388. </widget>
  389. </item>
  390. <item row="4" column="1">
  391. <widget class="QLineEdit" name="regWriteVal">
  392. <property name="minimumSize">
  393. <size>
  394. <width>0</width>
  395. <height>25</height>
  396. </size>
  397. </property>
  398. </widget>
  399. </item>
  400. </layout>
  401. </widget>
  402. </item>
  403. <item>
  404. <spacer name="verticalSpacer">
  405. <property name="orientation">
  406. <enum>Qt::Vertical</enum>
  407. </property>
  408. <property name="sizeHint" stdset="0">
  409. <size>
  410. <width>20</width>
  411. <height>40</height>
  412. </size>
  413. </property>
  414. </spacer>
  415. </item>
  416. </layout>
  417. </widget>
  418. </item>
  419. <item>
  420. <widget class="QWidget" name="content" native="true">
  421. <layout class="QVBoxLayout" name="verticalLayout_5">
  422. <item>
  423. <widget class="QTabWidget" name="contentTab">
  424. <property name="sizePolicy">
  425. <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
  426. <horstretch>0</horstretch>
  427. <verstretch>10</verstretch>
  428. </sizepolicy>
  429. </property>
  430. <property name="currentIndex">
  431. <number>0</number>
  432. </property>
  433. <widget class="QWidget" name="tab0">
  434. <attribute name="title">
  435. <string>Tab 1</string>
  436. </attribute>
  437. </widget>
  438. <widget class="QWidget" name="tab1">
  439. <attribute name="title">
  440. <string>Tab 2</string>
  441. </attribute>
  442. </widget>
  443. </widget>
  444. </item>
  445. <item>
  446. <widget class="QTextBrowser" name="instructionPreview">
  447. <property name="sizePolicy">
  448. <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
  449. <horstretch>0</horstretch>
  450. <verstretch>1</verstretch>
  451. </sizepolicy>
  452. </property>
  453. <property name="minimumSize">
  454. <size>
  455. <width>0</width>
  456. <height>100</height>
  457. </size>
  458. </property>
  459. </widget>
  460. </item>
  461. </layout>
  462. </widget>
  463. </item>
  464. </layout>
  465. <zorder>content</zorder>
  466. <zorder>sidebar</zorder>
  467. </widget>
  468. </item>
  469. </layout>
  470. </widget>
  471. <widget class="QMenuBar" name="menubar">
  472. <property name="geometry">
  473. <rect>
  474. <x>0</x>
  475. <y>0</y>
  476. <width>1055</width>
  477. <height>23</height>
  478. </rect>
  479. </property>
  480. <widget class="QMenu" name="menu123">
  481. <property name="title">
  482. <string>iflytop</string>
  483. </property>
  484. </widget>
  485. <addaction name="menu123"/>
  486. </widget>
  487. <widget class="QStatusBar" name="statusbar"/>
  488. </widget>
  489. <resources/>
  490. <connections/>
  491. </ui>