CToolDialog.ui 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  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>20</y>
  35. <width>881</width>
  36. <height>71</height>
  37. </rect>
  38. </property>
  39. <property name="title">
  40. <string>连接参数</string>
  41. </property>
  42. <widget class="QLabel" name="label_IP">
  43. <property name="enabled">
  44. <bool>true</bool>
  45. </property>
  46. <property name="geometry">
  47. <rect>
  48. <x>50</x>
  49. <y>20</y>
  50. <width>41</width>
  51. <height>31</height>
  52. </rect>
  53. </property>
  54. <property name="text">
  55. <string>IP:</string>
  56. </property>
  57. </widget>
  58. <widget class="QLineEdit" name="edit_IP">
  59. <property name="geometry">
  60. <rect>
  61. <x>90</x>
  62. <y>30</y>
  63. <width>191</width>
  64. <height>20</height>
  65. </rect>
  66. </property>
  67. </widget>
  68. <widget class="QPushButton" name="btn_Connect">
  69. <property name="geometry">
  70. <rect>
  71. <x>434</x>
  72. <y>22</y>
  73. <width>221</width>
  74. <height>31</height>
  75. </rect>
  76. </property>
  77. <property name="toolTip">
  78. <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Bit = 1, //1 位 布尔 0 到 1&lt;/p&gt;&lt;p&gt;Byte = 2, //8 位 有符号字节(SIMATIC 模式仅用于 SHRB 指令) - 128 到 + 127 8 位 无符号字节0 到 255&lt;/p&gt;&lt;p&gt;Word = 3, //16 位 无符号整数 0 到 65, 535&lt;/p&gt;&lt;p&gt;DWord = 4, //32 位 无符号双整数 0 到 4294967295&lt;/p&gt;&lt;p&gt;Int = 5, //16 位 有符号整数 - 32768 到 + 32767&lt;/p&gt;&lt;p&gt;DInt =6, //32 位 有符号双整数 -2147483648 到 +2147483647&lt;/p&gt;&lt;p&gt;Real = 7, //32 位 IEEE 32 位浮点 +1.175495E-38 至 +3.402823E+38&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
  79. </property>
  80. <property name="text">
  81. <string>连接</string>
  82. </property>
  83. </widget>
  84. </widget>
  85. <widget class="QTableWidget" name="tableWidget">
  86. <property name="geometry">
  87. <rect>
  88. <x>10</x>
  89. <y>100</y>
  90. <width>861</width>
  91. <height>341</height>
  92. </rect>
  93. </property>
  94. </widget>
  95. </widget>
  96. </widget>
  97. </item>
  98. <item row="1" column="0">
  99. <widget class="QWidget" name="Tool_widget" native="true">
  100. <property name="maximumSize">
  101. <size>
  102. <width>16777215</width>
  103. <height>42</height>
  104. </size>
  105. </property>
  106. <property name="styleSheet">
  107. <string notr="true"/>
  108. </property>
  109. <layout class="QGridLayout" name="gridLayout">
  110. <property name="leftMargin">
  111. <number>6</number>
  112. </property>
  113. <property name="topMargin">
  114. <number>6</number>
  115. </property>
  116. <property name="rightMargin">
  117. <number>6</number>
  118. </property>
  119. <property name="bottomMargin">
  120. <number>6</number>
  121. </property>
  122. <property name="horizontalSpacing">
  123. <number>20</number>
  124. </property>
  125. <item row="0" column="3" rowspan="2">
  126. <widget class="QPushButton" name="btnOK">
  127. <property name="minimumSize">
  128. <size>
  129. <width>80</width>
  130. <height>30</height>
  131. </size>
  132. </property>
  133. <property name="styleSheet">
  134. <string notr="true"/>
  135. </property>
  136. <property name="text">
  137. <string>确定</string>
  138. </property>
  139. </widget>
  140. </item>
  141. <item row="0" column="2" rowspan="2">
  142. <widget class="QPushButton" name="btnExecute">
  143. <property name="minimumSize">
  144. <size>
  145. <width>80</width>
  146. <height>30</height>
  147. </size>
  148. </property>
  149. <property name="styleSheet">
  150. <string notr="true"/>
  151. </property>
  152. <property name="text">
  153. <string>执行</string>
  154. </property>
  155. </widget>
  156. </item>
  157. <item row="0" column="4" rowspan="2">
  158. <widget class="QPushButton" name="btnCancel">
  159. <property name="minimumSize">
  160. <size>
  161. <width>80</width>
  162. <height>30</height>
  163. </size>
  164. </property>
  165. <property name="styleSheet">
  166. <string notr="true"/>
  167. </property>
  168. <property name="text">
  169. <string>取消</string>
  170. </property>
  171. </widget>
  172. </item>
  173. <item row="0" column="1" rowspan="2">
  174. <spacer name="horizontalSpacer">
  175. <property name="orientation">
  176. <enum>Qt::Horizontal</enum>
  177. </property>
  178. <property name="sizeHint" stdset="0">
  179. <size>
  180. <width>553</width>
  181. <height>20</height>
  182. </size>
  183. </property>
  184. </spacer>
  185. </item>
  186. <item row="1" column="0">
  187. <widget class="QLabel" name="label_time">
  188. <property name="enabled">
  189. <bool>true</bool>
  190. </property>
  191. <property name="minimumSize">
  192. <size>
  193. <width>200</width>
  194. <height>0</height>
  195. </size>
  196. </property>
  197. <property name="styleSheet">
  198. <string notr="true"/>
  199. </property>
  200. <property name="text">
  201. <string>耗时: 0ms</string>
  202. </property>
  203. </widget>
  204. </item>
  205. <item row="0" column="0">
  206. <widget class="QLabel" name="label_state">
  207. <property name="enabled">
  208. <bool>true</bool>
  209. </property>
  210. <property name="minimumSize">
  211. <size>
  212. <width>0</width>
  213. <height>0</height>
  214. </size>
  215. </property>
  216. <property name="styleSheet">
  217. <string notr="true"/>
  218. </property>
  219. <property name="text">
  220. <string>状态: OK</string>
  221. </property>
  222. </widget>
  223. </item>
  224. </layout>
  225. </widget>
  226. </item>
  227. </layout>
  228. </widget>
  229. <layoutdefault spacing="6" margin="11"/>
  230. <resources/>
  231. <connections/>
  232. </ui>