CToolDialog.ui 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui version="4.0">
  3. <class>CToolDialog</class>
  4. <widget class="QDialog" name="CToolDialog">
  5. <property name="geometry">
  6. <rect>
  7. <x>0</x>
  8. <y>0</y>
  9. <width>900</width>
  10. <height>540</height>
  11. </rect>
  12. </property>
  13. <property name="windowTitle">
  14. <string>CToolDialog</string>
  15. </property>
  16. <property name="styleSheet">
  17. <string notr="true">#Tool_widget{border:1px solid rgb(61, 61, 61)}
  18. #Image_widget{border:1px solid rgb(61, 61, 61)}</string>
  19. </property>
  20. <layout class="QGridLayout" name="gridLayout_2">
  21. <item row="0" column="0">
  22. <widget class="QTabWidget" name="tabWidget">
  23. <property name="minimumSize">
  24. <size>
  25. <width>300</width>
  26. <height>0</height>
  27. </size>
  28. </property>
  29. <property name="maximumSize">
  30. <size>
  31. <width>300</width>
  32. <height>16777215</height>
  33. </size>
  34. </property>
  35. <property name="currentIndex">
  36. <number>1</number>
  37. </property>
  38. <widget class="QWidget" name="tab">
  39. <attribute name="title">
  40. <string>变量相关</string>
  41. </attribute>
  42. <widget class="QGroupBox" name="groupBox">
  43. <property name="geometry">
  44. <rect>
  45. <x>2</x>
  46. <y>140</y>
  47. <width>261</width>
  48. <height>71</height>
  49. </rect>
  50. </property>
  51. <property name="title">
  52. <string>输出的变量</string>
  53. </property>
  54. <widget class="QLabel" name="label_3">
  55. <property name="enabled">
  56. <bool>true</bool>
  57. </property>
  58. <property name="geometry">
  59. <rect>
  60. <x>43</x>
  61. <y>20</y>
  62. <width>61</width>
  63. <height>31</height>
  64. </rect>
  65. </property>
  66. <property name="text">
  67. <string>Value3</string>
  68. </property>
  69. </widget>
  70. <widget class="QTextEdit" name="textEdit_3">
  71. <property name="geometry">
  72. <rect>
  73. <x>100</x>
  74. <y>20</y>
  75. <width>141</width>
  76. <height>31</height>
  77. </rect>
  78. </property>
  79. </widget>
  80. </widget>
  81. <widget class="QGroupBox" name="groupBox_2">
  82. <property name="geometry">
  83. <rect>
  84. <x>2</x>
  85. <y>20</y>
  86. <width>261</width>
  87. <height>111</height>
  88. </rect>
  89. </property>
  90. <property name="title">
  91. <string>输入的变量</string>
  92. </property>
  93. <widget class="QTextEdit" name="textEdit_1">
  94. <property name="geometry">
  95. <rect>
  96. <x>100</x>
  97. <y>20</y>
  98. <width>141</width>
  99. <height>31</height>
  100. </rect>
  101. </property>
  102. </widget>
  103. <widget class="QLabel" name="label_2">
  104. <property name="enabled">
  105. <bool>true</bool>
  106. </property>
  107. <property name="geometry">
  108. <rect>
  109. <x>33</x>
  110. <y>60</y>
  111. <width>71</width>
  112. <height>31</height>
  113. </rect>
  114. </property>
  115. <property name="text">
  116. <string>Value2</string>
  117. </property>
  118. </widget>
  119. <widget class="QLabel" name="label">
  120. <property name="enabled">
  121. <bool>true</bool>
  122. </property>
  123. <property name="geometry">
  124. <rect>
  125. <x>33</x>
  126. <y>20</y>
  127. <width>71</width>
  128. <height>31</height>
  129. </rect>
  130. </property>
  131. <property name="text">
  132. <string>Value1</string>
  133. </property>
  134. </widget>
  135. <widget class="QTextEdit" name="textEdit_2">
  136. <property name="geometry">
  137. <rect>
  138. <x>100</x>
  139. <y>60</y>
  140. <width>141</width>
  141. <height>31</height>
  142. </rect>
  143. </property>
  144. </widget>
  145. </widget>
  146. <widget class="QGroupBox" name="groupBox_5">
  147. <property name="geometry">
  148. <rect>
  149. <x>0</x>
  150. <y>220</y>
  151. <width>261</width>
  152. <height>101</height>
  153. </rect>
  154. </property>
  155. <property name="title">
  156. <string>DB测试</string>
  157. </property>
  158. <widget class="QPushButton" name="buttonDbWrite">
  159. <property name="geometry">
  160. <rect>
  161. <x>40</x>
  162. <y>20</y>
  163. <width>111</width>
  164. <height>31</height>
  165. </rect>
  166. </property>
  167. <property name="text">
  168. <string>写入Int测试</string>
  169. </property>
  170. </widget>
  171. <widget class="QPushButton" name="buttonDbRead">
  172. <property name="geometry">
  173. <rect>
  174. <x>40</x>
  175. <y>60</y>
  176. <width>111</width>
  177. <height>31</height>
  178. </rect>
  179. </property>
  180. <property name="text">
  181. <string>读取DB测试</string>
  182. </property>
  183. </widget>
  184. </widget>
  185. <widget class="QGroupBox" name="groupBox_6">
  186. <property name="geometry">
  187. <rect>
  188. <x>0</x>
  189. <y>330</y>
  190. <width>261</width>
  191. <height>101</height>
  192. </rect>
  193. </property>
  194. <property name="title">
  195. <string>动态接口测试</string>
  196. </property>
  197. <widget class="QPushButton" name="buttonInfAdd">
  198. <property name="geometry">
  199. <rect>
  200. <x>40</x>
  201. <y>20</y>
  202. <width>111</width>
  203. <height>31</height>
  204. </rect>
  205. </property>
  206. <property name="text">
  207. <string>添加Int端口</string>
  208. </property>
  209. </widget>
  210. <widget class="QPushButton" name="buttonInfDel">
  211. <property name="geometry">
  212. <rect>
  213. <x>40</x>
  214. <y>60</y>
  215. <width>111</width>
  216. <height>31</height>
  217. </rect>
  218. </property>
  219. <property name="text">
  220. <string>删除Int端口</string>
  221. </property>
  222. </widget>
  223. </widget>
  224. </widget>
  225. <widget class="QWidget" name="widget">
  226. <attribute name="title">
  227. <string>图像相关</string>
  228. </attribute>
  229. <widget class="QGroupBox" name="groupBox_3">
  230. <property name="geometry">
  231. <rect>
  232. <x>0</x>
  233. <y>20</y>
  234. <width>261</width>
  235. <height>151</height>
  236. </rect>
  237. </property>
  238. <property name="title">
  239. <string/>
  240. </property>
  241. <widget class="QLabel" name="label_4">
  242. <property name="geometry">
  243. <rect>
  244. <x>0</x>
  245. <y>0</y>
  246. <width>261</width>
  247. <height>21</height>
  248. </rect>
  249. </property>
  250. <property name="text">
  251. <string>加载本地图像</string>
  252. </property>
  253. </widget>
  254. <widget class="QRadioButton" name="radioButton">
  255. <property name="geometry">
  256. <rect>
  257. <x>50</x>
  258. <y>40</y>
  259. <width>89</width>
  260. <height>16</height>
  261. </rect>
  262. </property>
  263. <property name="text">
  264. <string>RadioButton</string>
  265. </property>
  266. </widget>
  267. <widget class="QRadioButton" name="radioButton_2">
  268. <property name="geometry">
  269. <rect>
  270. <x>50</x>
  271. <y>70</y>
  272. <width>89</width>
  273. <height>16</height>
  274. </rect>
  275. </property>
  276. <property name="text">
  277. <string>RadioButton</string>
  278. </property>
  279. </widget>
  280. </widget>
  281. <widget class="QStackedWidget" name="stackedWidget">
  282. <property name="geometry">
  283. <rect>
  284. <x>0</x>
  285. <y>190</y>
  286. <width>251</width>
  287. <height>251</height>
  288. </rect>
  289. </property>
  290. <property name="currentIndex">
  291. <number>1</number>
  292. </property>
  293. <widget class="QWidget" name="page">
  294. <widget class="QLabel" name="label_8">
  295. <property name="geometry">
  296. <rect>
  297. <x>0</x>
  298. <y>0</y>
  299. <width>251</width>
  300. <height>21</height>
  301. </rect>
  302. </property>
  303. <property name="text">
  304. <string>本地图像</string>
  305. </property>
  306. </widget>
  307. </widget>
  308. <widget class="QWidget" name="page_2">
  309. <widget class="QLabel" name="label_9">
  310. <property name="geometry">
  311. <rect>
  312. <x>0</x>
  313. <y>0</y>
  314. <width>261</width>
  315. <height>21</height>
  316. </rect>
  317. </property>
  318. <property name="text">
  319. <string>本地路径</string>
  320. </property>
  321. </widget>
  322. <widget class="QPushButton" name="pushButton">
  323. <property name="geometry">
  324. <rect>
  325. <x>20</x>
  326. <y>90</y>
  327. <width>201</width>
  328. <height>31</height>
  329. </rect>
  330. </property>
  331. <property name="text">
  332. <string>加载图像</string>
  333. </property>
  334. </widget>
  335. </widget>
  336. </widget>
  337. </widget>
  338. <widget class="QWidget" name="tab_2">
  339. <attribute name="title">
  340. <string>事件相关</string>
  341. </attribute>
  342. <widget class="QGroupBox" name="groupBox_4">
  343. <property name="geometry">
  344. <rect>
  345. <x>0</x>
  346. <y>20</y>
  347. <width>271</width>
  348. <height>191</height>
  349. </rect>
  350. </property>
  351. <property name="title">
  352. <string/>
  353. </property>
  354. <widget class="QPushButton" name="pushButton_2">
  355. <property name="geometry">
  356. <rect>
  357. <x>50</x>
  358. <y>40</y>
  359. <width>131</width>
  360. <height>41</height>
  361. </rect>
  362. </property>
  363. <property name="text">
  364. <string>触发事件 1</string>
  365. </property>
  366. </widget>
  367. <widget class="QPushButton" name="pushButton_3">
  368. <property name="geometry">
  369. <rect>
  370. <x>50</x>
  371. <y>110</y>
  372. <width>131</width>
  373. <height>41</height>
  374. </rect>
  375. </property>
  376. <property name="text">
  377. <string>触发事件 2</string>
  378. </property>
  379. </widget>
  380. <widget class="QLabel" name="label_7">
  381. <property name="geometry">
  382. <rect>
  383. <x>0</x>
  384. <y>0</y>
  385. <width>261</width>
  386. <height>21</height>
  387. </rect>
  388. </property>
  389. <property name="text">
  390. <string>手动触发内部事件</string>
  391. </property>
  392. </widget>
  393. </widget>
  394. </widget>
  395. </widget>
  396. </item>
  397. <item row="0" column="1">
  398. <widget class="QWidget" name="Image_widget" native="true"/>
  399. </item>
  400. <item row="1" column="0" colspan="2">
  401. <widget class="QWidget" name="Tool_widget" native="true">
  402. <property name="minimumSize">
  403. <size>
  404. <width>0</width>
  405. <height>42</height>
  406. </size>
  407. </property>
  408. <property name="maximumSize">
  409. <size>
  410. <width>16777215</width>
  411. <height>42</height>
  412. </size>
  413. </property>
  414. <property name="styleSheet">
  415. <string notr="true">
  416. </string>
  417. </property>
  418. <layout class="QGridLayout" name="gridLayout">
  419. <property name="leftMargin">
  420. <number>6</number>
  421. </property>
  422. <property name="topMargin">
  423. <number>6</number>
  424. </property>
  425. <property name="rightMargin">
  426. <number>6</number>
  427. </property>
  428. <property name="bottomMargin">
  429. <number>6</number>
  430. </property>
  431. <property name="horizontalSpacing">
  432. <number>20</number>
  433. </property>
  434. <item row="0" column="3" rowspan="2">
  435. <widget class="QPushButton" name="btnOK">
  436. <property name="minimumSize">
  437. <size>
  438. <width>80</width>
  439. <height>30</height>
  440. </size>
  441. </property>
  442. <property name="styleSheet">
  443. <string notr="true"/>
  444. </property>
  445. <property name="text">
  446. <string>确定</string>
  447. </property>
  448. </widget>
  449. </item>
  450. <item row="0" column="2" rowspan="2">
  451. <widget class="QPushButton" name="btnExecute">
  452. <property name="minimumSize">
  453. <size>
  454. <width>80</width>
  455. <height>30</height>
  456. </size>
  457. </property>
  458. <property name="styleSheet">
  459. <string notr="true"/>
  460. </property>
  461. <property name="text">
  462. <string>执行</string>
  463. </property>
  464. </widget>
  465. </item>
  466. <item row="0" column="4" rowspan="2">
  467. <widget class="QPushButton" name="btnCancel">
  468. <property name="minimumSize">
  469. <size>
  470. <width>80</width>
  471. <height>30</height>
  472. </size>
  473. </property>
  474. <property name="styleSheet">
  475. <string notr="true"/>
  476. </property>
  477. <property name="text">
  478. <string>取消</string>
  479. </property>
  480. </widget>
  481. </item>
  482. <item row="0" column="1" rowspan="2">
  483. <spacer name="horizontalSpacer">
  484. <property name="orientation">
  485. <enum>Qt::Horizontal</enum>
  486. </property>
  487. <property name="sizeHint" stdset="0">
  488. <size>
  489. <width>553</width>
  490. <height>20</height>
  491. </size>
  492. </property>
  493. </spacer>
  494. </item>
  495. <item row="1" column="0">
  496. <widget class="QLabel" name="label_time">
  497. <property name="enabled">
  498. <bool>true</bool>
  499. </property>
  500. <property name="minimumSize">
  501. <size>
  502. <width>200</width>
  503. <height>0</height>
  504. </size>
  505. </property>
  506. <property name="styleSheet">
  507. <string notr="true"/>
  508. </property>
  509. <property name="text">
  510. <string>耗时: 0ms</string>
  511. </property>
  512. </widget>
  513. </item>
  514. <item row="0" column="0">
  515. <widget class="QLabel" name="label_state">
  516. <property name="enabled">
  517. <bool>true</bool>
  518. </property>
  519. <property name="minimumSize">
  520. <size>
  521. <width>0</width>
  522. <height>0</height>
  523. </size>
  524. </property>
  525. <property name="styleSheet">
  526. <string notr="true"/>
  527. </property>
  528. <property name="text">
  529. <string>状态: OK</string>
  530. </property>
  531. </widget>
  532. </item>
  533. </layout>
  534. </widget>
  535. </item>
  536. </layout>
  537. </widget>
  538. <layoutdefault spacing="6" margin="11"/>
  539. <resources/>
  540. <connections/>
  541. </ui>