CToolDialog.ui 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  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="currentIndex">
  24. <number>0</number>
  25. </property>
  26. <widget class="QWidget" name="tab">
  27. <attribute name="title">
  28. <string>变量相关</string>
  29. </attribute>
  30. <widget class="QGroupBox" name="groupBox_2">
  31. <property name="geometry">
  32. <rect>
  33. <x>2</x>
  34. <y>10</y>
  35. <width>871</width>
  36. <height>81</height>
  37. </rect>
  38. </property>
  39. <property name="title">
  40. <string>连接参数</string>
  41. </property>
  42. <widget class="QPushButton" name="btn_Connect">
  43. <property name="geometry">
  44. <rect>
  45. <x>770</x>
  46. <y>30</y>
  47. <width>75</width>
  48. <height>23</height>
  49. </rect>
  50. </property>
  51. <property name="text">
  52. <string>连接</string>
  53. </property>
  54. </widget>
  55. <widget class="QStackedWidget" name="stackedWidget">
  56. <property name="geometry">
  57. <rect>
  58. <x>210</x>
  59. <y>10</y>
  60. <width>471</width>
  61. <height>51</height>
  62. </rect>
  63. </property>
  64. <property name="currentIndex">
  65. <number>1</number>
  66. </property>
  67. <widget class="QWidget" name="page_1"/>
  68. <widget class="QWidget" name="page_2">
  69. <widget class="QLabel" name="label_IP">
  70. <property name="enabled">
  71. <bool>true</bool>
  72. </property>
  73. <property name="geometry">
  74. <rect>
  75. <x>50</x>
  76. <y>20</y>
  77. <width>41</width>
  78. <height>21</height>
  79. </rect>
  80. </property>
  81. <property name="text">
  82. <string>IP:</string>
  83. </property>
  84. </widget>
  85. <widget class="QLineEdit" name="edit_IP">
  86. <property name="geometry">
  87. <rect>
  88. <x>90</x>
  89. <y>20</y>
  90. <width>151</width>
  91. <height>20</height>
  92. </rect>
  93. </property>
  94. <property name="text">
  95. <string>192.168.1.1</string>
  96. </property>
  97. </widget>
  98. <widget class="QLineEdit" name="edit_Port">
  99. <property name="geometry">
  100. <rect>
  101. <x>332</x>
  102. <y>20</y>
  103. <width>61</width>
  104. <height>20</height>
  105. </rect>
  106. </property>
  107. </widget>
  108. <widget class="QLabel" name="label_Port">
  109. <property name="enabled">
  110. <bool>true</bool>
  111. </property>
  112. <property name="geometry">
  113. <rect>
  114. <x>280</x>
  115. <y>20</y>
  116. <width>41</width>
  117. <height>21</height>
  118. </rect>
  119. </property>
  120. <property name="text">
  121. <string>Port:</string>
  122. </property>
  123. </widget>
  124. </widget>
  125. </widget>
  126. <widget class="QRadioButton" name="rbnModbusTCP">
  127. <property name="geometry">
  128. <rect>
  129. <x>30</x>
  130. <y>20</y>
  131. <width>89</width>
  132. <height>16</height>
  133. </rect>
  134. </property>
  135. <property name="text">
  136. <string>RTU</string>
  137. </property>
  138. </widget>
  139. <widget class="QRadioButton" name="rbnModbusRTU">
  140. <property name="geometry">
  141. <rect>
  142. <x>30</x>
  143. <y>50</y>
  144. <width>89</width>
  145. <height>16</height>
  146. </rect>
  147. </property>
  148. <property name="text">
  149. <string>TCP</string>
  150. </property>
  151. </widget>
  152. </widget>
  153. <widget class="QTableWidget" name="tableWidget">
  154. <property name="geometry">
  155. <rect>
  156. <x>10</x>
  157. <y>100</y>
  158. <width>861</width>
  159. <height>341</height>
  160. </rect>
  161. </property>
  162. </widget>
  163. </widget>
  164. </widget>
  165. </item>
  166. <item row="1" column="0">
  167. <widget class="QWidget" name="Tool_widget" native="true">
  168. <property name="maximumSize">
  169. <size>
  170. <width>16777215</width>
  171. <height>42</height>
  172. </size>
  173. </property>
  174. <property name="styleSheet">
  175. <string notr="true"/>
  176. </property>
  177. <layout class="QGridLayout" name="gridLayout">
  178. <property name="leftMargin">
  179. <number>6</number>
  180. </property>
  181. <property name="topMargin">
  182. <number>6</number>
  183. </property>
  184. <property name="rightMargin">
  185. <number>6</number>
  186. </property>
  187. <property name="bottomMargin">
  188. <number>6</number>
  189. </property>
  190. <property name="horizontalSpacing">
  191. <number>20</number>
  192. </property>
  193. <item row="0" column="3" rowspan="2">
  194. <widget class="QPushButton" name="btnOK">
  195. <property name="minimumSize">
  196. <size>
  197. <width>80</width>
  198. <height>30</height>
  199. </size>
  200. </property>
  201. <property name="styleSheet">
  202. <string notr="true"/>
  203. </property>
  204. <property name="text">
  205. <string>确定</string>
  206. </property>
  207. </widget>
  208. </item>
  209. <item row="0" column="2" rowspan="2">
  210. <widget class="QPushButton" name="btnExecute">
  211. <property name="minimumSize">
  212. <size>
  213. <width>80</width>
  214. <height>30</height>
  215. </size>
  216. </property>
  217. <property name="styleSheet">
  218. <string notr="true"/>
  219. </property>
  220. <property name="text">
  221. <string>执行</string>
  222. </property>
  223. </widget>
  224. </item>
  225. <item row="0" column="4" rowspan="2">
  226. <widget class="QPushButton" name="btnCancel">
  227. <property name="minimumSize">
  228. <size>
  229. <width>80</width>
  230. <height>30</height>
  231. </size>
  232. </property>
  233. <property name="styleSheet">
  234. <string notr="true"/>
  235. </property>
  236. <property name="text">
  237. <string>取消</string>
  238. </property>
  239. </widget>
  240. </item>
  241. <item row="0" column="1" rowspan="2">
  242. <spacer name="horizontalSpacer">
  243. <property name="orientation">
  244. <enum>Qt::Horizontal</enum>
  245. </property>
  246. <property name="sizeHint" stdset="0">
  247. <size>
  248. <width>553</width>
  249. <height>20</height>
  250. </size>
  251. </property>
  252. </spacer>
  253. </item>
  254. <item row="1" column="0">
  255. <widget class="QLabel" name="label_time">
  256. <property name="enabled">
  257. <bool>true</bool>
  258. </property>
  259. <property name="minimumSize">
  260. <size>
  261. <width>200</width>
  262. <height>0</height>
  263. </size>
  264. </property>
  265. <property name="styleSheet">
  266. <string notr="true"/>
  267. </property>
  268. <property name="text">
  269. <string>耗时: 0ms</string>
  270. </property>
  271. </widget>
  272. </item>
  273. <item row="0" column="0">
  274. <widget class="QLabel" name="label_state">
  275. <property name="enabled">
  276. <bool>true</bool>
  277. </property>
  278. <property name="minimumSize">
  279. <size>
  280. <width>0</width>
  281. <height>0</height>
  282. </size>
  283. </property>
  284. <property name="styleSheet">
  285. <string notr="true"/>
  286. </property>
  287. <property name="text">
  288. <string>状态: OK</string>
  289. </property>
  290. </widget>
  291. </item>
  292. </layout>
  293. </widget>
  294. </item>
  295. </layout>
  296. </widget>
  297. <layoutdefault spacing="6" margin="11"/>
  298. <resources/>
  299. <connections/>
  300. </ui>