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.

686 lines
23 KiB

2 years ago
2 years ago
1 year 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
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>相机光源和时序控制器</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="UpdateCfg_Key">
  232. <property name="text">
  233. <string>提交配置</string>
  234. </property>
  235. </widget>
  236. </item>
  237. <item>
  238. <widget class="QPushButton" name="storageConfigKey">
  239. <property name="text">
  240. <string>保存配置</string>
  241. </property>
  242. </widget>
  243. </item>
  244. <item>
  245. <widget class="QPushButton" name="rebootDeviceKey">
  246. <property name="text">
  247. <string>重启设备</string>
  248. </property>
  249. </widget>
  250. </item>
  251. <item>
  252. <widget class="QPushButton" name="factoryResetKey">
  253. <property name="text">
  254. <string>恢复出厂设置</string>
  255. </property>
  256. </widget>
  257. </item>
  258. </layout>
  259. </widget>
  260. </item>
  261. <item>
  262. <widget class="QGroupBox" name="RegOpeation">
  263. <property name="minimumSize">
  264. <size>
  265. <width>0</width>
  266. <height>0</height>
  267. </size>
  268. </property>
  269. <property name="title">
  270. <string>寄存器操作</string>
  271. </property>
  272. <layout class="QGridLayout" name="gridLayout_2">
  273. <item row="2" column="0">
  274. <widget class="QLabel" name="regReadbakValLable">
  275. <property name="sizePolicy">
  276. <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
  277. <horstretch>0</horstretch>
  278. <verstretch>0</verstretch>
  279. </sizepolicy>
  280. </property>
  281. <property name="minimumSize">
  282. <size>
  283. <width>0</width>
  284. <height>25</height>
  285. </size>
  286. </property>
  287. <property name="maximumSize">
  288. <size>
  289. <width>16777215</width>
  290. <height>25</height>
  291. </size>
  292. </property>
  293. <property name="text">
  294. <string>读数值</string>
  295. </property>
  296. </widget>
  297. </item>
  298. <item row="0" column="0">
  299. <widget class="QLabel" name="RegAddLable">
  300. <property name="sizePolicy">
  301. <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
  302. <horstretch>0</horstretch>
  303. <verstretch>0</verstretch>
  304. </sizepolicy>
  305. </property>
  306. <property name="minimumSize">
  307. <size>
  308. <width>0</width>
  309. <height>25</height>
  310. </size>
  311. </property>
  312. <property name="maximumSize">
  313. <size>
  314. <width>16777215</width>
  315. <height>25</height>
  316. </size>
  317. </property>
  318. <property name="text">
  319. <string>地址</string>
  320. </property>
  321. </widget>
  322. </item>
  323. <item row="4" column="0">
  324. <widget class="QLabel" name="regWritebakValLable">
  325. <property name="sizePolicy">
  326. <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
  327. <horstretch>0</horstretch>
  328. <verstretch>0</verstretch>
  329. </sizepolicy>
  330. </property>
  331. <property name="minimumSize">
  332. <size>
  333. <width>0</width>
  334. <height>25</height>
  335. </size>
  336. </property>
  337. <property name="maximumSize">
  338. <size>
  339. <width>16777215</width>
  340. <height>25</height>
  341. </size>
  342. </property>
  343. <property name="text">
  344. <string>写数值</string>
  345. </property>
  346. </widget>
  347. </item>
  348. <item row="2" column="1">
  349. <widget class="QTextBrowser" name="regReadbakVal">
  350. <property name="sizePolicy">
  351. <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
  352. <horstretch>0</horstretch>
  353. <verstretch>0</verstretch>
  354. </sizepolicy>
  355. </property>
  356. <property name="minimumSize">
  357. <size>
  358. <width>0</width>
  359. <height>25</height>
  360. </size>
  361. </property>
  362. <property name="maximumSize">
  363. <size>
  364. <width>16777215</width>
  365. <height>25</height>
  366. </size>
  367. </property>
  368. <property name="lineWrapColumnOrWidth">
  369. <number>2</number>
  370. </property>
  371. </widget>
  372. </item>
  373. <item row="5" column="0">
  374. <widget class="QPushButton" name="regReadKey">
  375. <property name="text">
  376. <string>读寄存器</string>
  377. </property>
  378. </widget>
  379. </item>
  380. <item row="5" column="1">
  381. <widget class="QPushButton" name="regWriteKey">
  382. <property name="text">
  383. <string>写寄存器</string>
  384. </property>
  385. </widget>
  386. </item>
  387. <item row="0" column="1">
  388. <widget class="QLineEdit" name="RegAdd">
  389. <property name="minimumSize">
  390. <size>
  391. <width>0</width>
  392. <height>25</height>
  393. </size>
  394. </property>
  395. </widget>
  396. </item>
  397. <item row="4" column="1">
  398. <widget class="QLineEdit" name="regWriteVal">
  399. <property name="minimumSize">
  400. <size>
  401. <width>0</width>
  402. <height>25</height>
  403. </size>
  404. </property>
  405. </widget>
  406. </item>
  407. </layout>
  408. </widget>
  409. </item>
  410. <item>
  411. <spacer name="verticalSpacer">
  412. <property name="orientation">
  413. <enum>Qt::Vertical</enum>
  414. </property>
  415. <property name="sizeHint" stdset="0">
  416. <size>
  417. <width>20</width>
  418. <height>40</height>
  419. </size>
  420. </property>
  421. </spacer>
  422. </item>
  423. </layout>
  424. </widget>
  425. </item>
  426. <item>
  427. <widget class="QWidget" name="content" native="true">
  428. <layout class="QVBoxLayout" name="verticalLayout_5">
  429. <item>
  430. <widget class="QTabWidget" name="contentTab">
  431. <property name="sizePolicy">
  432. <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
  433. <horstretch>0</horstretch>
  434. <verstretch>10</verstretch>
  435. </sizepolicy>
  436. </property>
  437. <property name="currentIndex">
  438. <number>1</number>
  439. </property>
  440. <property name="tabBarAutoHide">
  441. <bool>true</bool>
  442. </property>
  443. <widget class="QWidget" name="tab0">
  444. <attribute name="title">
  445. <string>外部触发源配置</string>
  446. </attribute>
  447. </widget>
  448. <widget class="QWidget" name="tab_2">
  449. <attribute name="title">
  450. <string>内部触发源配置</string>
  451. </attribute>
  452. <widget class="QGroupBox" name="InternalTriggerGB">
  453. <property name="geometry">
  454. <rect>
  455. <x>20</x>
  456. <y>10</y>
  457. <width>300</width>
  458. <height>191</height>
  459. </rect>
  460. </property>
  461. <property name="maximumSize">
  462. <size>
  463. <width>300</width>
  464. <height>200</height>
  465. </size>
  466. </property>
  467. <property name="title">
  468. <string>内部触发源配置</string>
  469. </property>
  470. <layout class="QGridLayout" name="gridLayout_4">
  471. <item row="2" column="0">
  472. <widget class="QLabel" name="InterClk_Freq_Lable">
  473. <property name="sizePolicy">
  474. <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
  475. <horstretch>0</horstretch>
  476. <verstretch>0</verstretch>
  477. </sizepolicy>
  478. </property>
  479. <property name="minimumSize">
  480. <size>
  481. <width>0</width>
  482. <height>25</height>
  483. </size>
  484. </property>
  485. <property name="maximumSize">
  486. <size>
  487. <width>16777215</width>
  488. <height>25</height>
  489. </size>
  490. </property>
  491. <property name="text">
  492. <string>触发时钟(HZ)</string>
  493. </property>
  494. </widget>
  495. </item>
  496. <item row="3" column="0">
  497. <widget class="QLabel" name="InterClk_PluseCnt_Lable">
  498. <property name="sizePolicy">
  499. <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
  500. <horstretch>0</horstretch>
  501. <verstretch>0</verstretch>
  502. </sizepolicy>
  503. </property>
  504. <property name="minimumSize">
  505. <size>
  506. <width>0</width>
  507. <height>25</height>
  508. </size>
  509. </property>
  510. <property name="maximumSize">
  511. <size>
  512. <width>16777215</width>
  513. <height>25</height>
  514. </size>
  515. </property>
  516. <property name="text">
  517. <string>触发脉冲数量(0等于无限)</string>
  518. </property>
  519. </widget>
  520. </item>
  521. <item row="3" column="1">
  522. <widget class="QLineEdit" name="InterClk_PluseCnt_Text">
  523. <property name="minimumSize">
  524. <size>
  525. <width>0</width>
  526. <height>25</height>
  527. </size>
  528. </property>
  529. </widget>
  530. </item>
  531. <item row="4" column="1">
  532. <widget class="QLineEdit" name="InterClk_SeqCtrlPluseCntMax_Text">
  533. <property name="minimumSize">
  534. <size>
  535. <width>0</width>
  536. <height>25</height>
  537. </size>
  538. </property>
  539. </widget>
  540. </item>
  541. <item row="6" column="0">
  542. <widget class="QPushButton" name="InterClk_trigger_Key">
  543. <property name="text">
  544. <string>触发</string>
  545. </property>
  546. </widget>
  547. </item>
  548. <item row="4" column="0">
  549. <widget class="QLabel" name="InterClk_SeqCtrlPluseCntMax_Lable">
  550. <property name="sizePolicy">
  551. <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
  552. <horstretch>0</horstretch>
  553. <verstretch>0</verstretch>
  554. </sizepolicy>
  555. </property>
  556. <property name="minimumSize">
  557. <size>
  558. <width>0</width>
  559. <height>25</height>
  560. </size>
  561. </property>
  562. <property name="maximumSize">
  563. <size>
  564. <width>16777215</width>
  565. <height>25</height>
  566. </size>
  567. </property>
  568. <property name="text">
  569. <string>顺序触发模式最大计数</string>
  570. </property>
  571. </widget>
  572. </item>
  573. <item row="2" column="1">
  574. <widget class="QLineEdit" name="InterClk_Freq_Text">
  575. <property name="minimumSize">
  576. <size>
  577. <width>0</width>
  578. <height>25</height>
  579. </size>
  580. </property>
  581. </widget>
  582. </item>
  583. <item row="5" column="0">
  584. <widget class="QLabel" name="InterClk_TriOutSignalFreq_Lable">
  585. <property name="sizePolicy">
  586. <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
  587. <horstretch>0</horstretch>
  588. <verstretch>0</verstretch>
  589. </sizepolicy>
  590. </property>
  591. <property name="minimumSize">
  592. <size>
  593. <width>0</width>
  594. <height>25</height>
  595. </size>
  596. </property>
  597. <property name="maximumSize">
  598. <size>
  599. <width>16777215</width>
  600. <height>25</height>
  601. </size>
  602. </property>
  603. <property name="text">
  604. <string>输出频率探测(HZ)</string>
  605. </property>
  606. </widget>
  607. </item>
  608. <item row="5" column="1">
  609. <widget class="QLineEdit" name="InterClk_TriOutSignalFreq_Text">
  610. <property name="minimumSize">
  611. <size>
  612. <width>0</width>
  613. <height>25</height>
  614. </size>
  615. </property>
  616. </widget>
  617. </item>
  618. <item row="6" column="1">
  619. <widget class="QPushButton" name="InterClk_stop_Key">
  620. <property name="text">
  621. <string>停止</string>
  622. </property>
  623. </widget>
  624. </item>
  625. </layout>
  626. </widget>
  627. </widget>
  628. <widget class="QWidget" name="tab1">
  629. <attribute name="title">
  630. <string>光源时序配置</string>
  631. </attribute>
  632. </widget>
  633. <widget class="QWidget" name="tab">
  634. <attribute name="title">
  635. <string>快门时序配置</string>
  636. </attribute>
  637. </widget>
  638. </widget>
  639. </item>
  640. <item>
  641. <widget class="QTextBrowser" name="instructionPreview">
  642. <property name="sizePolicy">
  643. <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
  644. <horstretch>0</horstretch>
  645. <verstretch>1</verstretch>
  646. </sizepolicy>
  647. </property>
  648. <property name="minimumSize">
  649. <size>
  650. <width>0</width>
  651. <height>100</height>
  652. </size>
  653. </property>
  654. </widget>
  655. </item>
  656. </layout>
  657. </widget>
  658. </item>
  659. </layout>
  660. <zorder>content</zorder>
  661. <zorder>sidebar</zorder>
  662. </widget>
  663. </item>
  664. </layout>
  665. </widget>
  666. <widget class="QMenuBar" name="menubar">
  667. <property name="geometry">
  668. <rect>
  669. <x>0</x>
  670. <y>0</y>
  671. <width>1055</width>
  672. <height>23</height>
  673. </rect>
  674. </property>
  675. <widget class="QMenu" name="menu123">
  676. <property name="title">
  677. <string>iflytop</string>
  678. </property>
  679. </widget>
  680. <addaction name="menu123"/>
  681. </widget>
  682. <widget class="QStatusBar" name="statusbar"/>
  683. </widget>
  684. <resources/>
  685. <connections/>
  686. </ui>