SearchDeviceUI.ui 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  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>677</width>
  10. <height>702</height>
  11. </rect>
  12. </property>
  13. <property name="windowTitle">
  14. <string>设备搜索Search Devices</string>
  15. </property>
  16. <widget class="QWidget" name="centralwidget">
  17. <widget class="QGroupBox" name="devicelist_groupBox">
  18. <property name="geometry">
  19. <rect>
  20. <x>20</x>
  21. <y>10</y>
  22. <width>641</width>
  23. <height>381</height>
  24. </rect>
  25. </property>
  26. <property name="title">
  27. <string>设备列表(Device List)</string>
  28. </property>
  29. <widget class="QTableWidget" name="tableWidget">
  30. <property name="enabled">
  31. <bool>true</bool>
  32. </property>
  33. <property name="geometry">
  34. <rect>
  35. <x>30</x>
  36. <y>20</y>
  37. <width>601</width>
  38. <height>351</height>
  39. </rect>
  40. </property>
  41. <property name="gridStyle">
  42. <enum>Qt::SolidLine</enum>
  43. </property>
  44. <attribute name="horizontalHeaderDefaultSectionSize">
  45. <number>150</number>
  46. </attribute>
  47. <attribute name="horizontalHeaderMinimumSectionSize">
  48. <number>50</number>
  49. </attribute>
  50. <attribute name="verticalHeaderVisible">
  51. <bool>false</bool>
  52. </attribute>
  53. <column>
  54. <property name="text">
  55. <string>序号(No.)</string>
  56. </property>
  57. <property name="font">
  58. <font>
  59. <pointsize>9</pointsize>
  60. </font>
  61. </property>
  62. </column>
  63. <column>
  64. <property name="text">
  65. <string>状态(Status)</string>
  66. </property>
  67. </column>
  68. <column>
  69. <property name="text">
  70. <string>IP版本(IP Version)</string>
  71. </property>
  72. </column>
  73. <column>
  74. <property name="text">
  75. <string>IP地址(IP Address)</string>
  76. </property>
  77. </column>
  78. <column>
  79. <property name="text">
  80. <string>端口(Port)</string>
  81. </property>
  82. </column>
  83. <column>
  84. <property name="text">
  85. <string> 子网掩码(Subnet Mask)</string>
  86. </property>
  87. </column>
  88. <column>
  89. <property name="text">
  90. <string>网关(Gateway)</string>
  91. </property>
  92. </column>
  93. <column>
  94. <property name="text">
  95. <string>物理地址(Mac Address)</string>
  96. </property>
  97. </column>
  98. <column>
  99. <property name="text">
  100. <string>设备类型(Device Type)</string>
  101. </property>
  102. </column>
  103. <column>
  104. <property name="text">
  105. <string>详细类型(Detail Type)</string>
  106. </property>
  107. </column>
  108. <column>
  109. <property name="text">
  110. <string>Http(Http)</string>
  111. </property>
  112. </column>
  113. </widget>
  114. </widget>
  115. <widget class="QGroupBox" name="searchdevice_groupBox">
  116. <property name="geometry">
  117. <rect>
  118. <x>20</x>
  119. <y>400</y>
  120. <width>311</width>
  121. <height>141</height>
  122. </rect>
  123. </property>
  124. <property name="title">
  125. <string>搜索设备(Search Devices)</string>
  126. </property>
  127. <widget class="QPushButton" name="SearchDeviceButton">
  128. <property name="enabled">
  129. <bool>true</bool>
  130. </property>
  131. <property name="geometry">
  132. <rect>
  133. <x>30</x>
  134. <y>50</y>
  135. <width>261</width>
  136. <height>41</height>
  137. </rect>
  138. </property>
  139. <property name="text">
  140. <string>组播和广播搜索(Multicast and Broadcast)</string>
  141. </property>
  142. </widget>
  143. </widget>
  144. <widget class="QLabel" name="Searchtime_label">
  145. <property name="geometry">
  146. <rect>
  147. <x>360</x>
  148. <y>450</y>
  149. <width>121</width>
  150. <height>20</height>
  151. </rect>
  152. </property>
  153. <property name="text">
  154. <string>搜索时间ms(Time:ms):</string>
  155. </property>
  156. </widget>
  157. <widget class="QLineEdit" name="Searchtime_lineEdit">
  158. <property name="geometry">
  159. <rect>
  160. <x>490</x>
  161. <y>450</y>
  162. <width>131</width>
  163. <height>20</height>
  164. </rect>
  165. </property>
  166. <property name="text">
  167. <string>3000</string>
  168. </property>
  169. </widget>
  170. <widget class="QGroupBox" name="Init_groupBox">
  171. <property name="geometry">
  172. <rect>
  173. <x>20</x>
  174. <y>540</y>
  175. <width>311</width>
  176. <height>91</height>
  177. </rect>
  178. </property>
  179. <property name="title">
  180. <string>操作设备(Operate Devices)</string>
  181. </property>
  182. <widget class="QPushButton" name="InitButton">
  183. <property name="geometry">
  184. <rect>
  185. <x>30</x>
  186. <y>30</y>
  187. <width>261</width>
  188. <height>41</height>
  189. </rect>
  190. </property>
  191. <property name="text">
  192. <string>初始化(Initialization)</string>
  193. </property>
  194. </widget>
  195. </widget>
  196. <widget class="QPushButton" name="SearchByIpButton">
  197. <property name="geometry">
  198. <rect>
  199. <x>360</x>
  200. <y>570</y>
  201. <width>261</width>
  202. <height>41</height>
  203. </rect>
  204. </property>
  205. <property name="text">
  206. <string>点对点搜索(Point to Point Search)</string>
  207. </property>
  208. </widget>
  209. <widget class="QGroupBox" name="groupBox">
  210. <property name="geometry">
  211. <rect>
  212. <x>340</x>
  213. <y>400</y>
  214. <width>331</width>
  215. <height>231</height>
  216. </rect>
  217. </property>
  218. <property name="title">
  219. <string>单播搜索(Unicast)</string>
  220. </property>
  221. <widget class="QLineEdit" name="StartIP_lineEdit">
  222. <property name="geometry">
  223. <rect>
  224. <x>150</x>
  225. <y>90</y>
  226. <width>131</width>
  227. <height>20</height>
  228. </rect>
  229. </property>
  230. </widget>
  231. <widget class="QLabel" name="StartIP_label">
  232. <property name="geometry">
  233. <rect>
  234. <x>20</x>
  235. <y>90</y>
  236. <width>121</width>
  237. <height>20</height>
  238. </rect>
  239. </property>
  240. <property name="text">
  241. <string>起始IP地址(Start IP)</string>
  242. </property>
  243. </widget>
  244. <widget class="QLabel" name="label_2">
  245. <property name="geometry">
  246. <rect>
  247. <x>30</x>
  248. <y>130</y>
  249. <width>111</width>
  250. <height>20</height>
  251. </rect>
  252. </property>
  253. <property name="text">
  254. <string>结束IP地址(End IP)</string>
  255. </property>
  256. </widget>
  257. <widget class="QLineEdit" name="EndIP_lineEdit">
  258. <property name="geometry">
  259. <rect>
  260. <x>150</x>
  261. <y>130</y>
  262. <width>131</width>
  263. <height>20</height>
  264. </rect>
  265. </property>
  266. </widget>
  267. </widget>
  268. <zorder>groupBox</zorder>
  269. <zorder>searchdevice_groupBox</zorder>
  270. <zorder>devicelist_groupBox</zorder>
  271. <zorder>Searchtime_label</zorder>
  272. <zorder>Searchtime_lineEdit</zorder>
  273. <zorder>Init_groupBox</zorder>
  274. <zorder>SearchByIpButton</zorder>
  275. </widget>
  276. <widget class="QMenuBar" name="menubar">
  277. <property name="geometry">
  278. <rect>
  279. <x>0</x>
  280. <y>0</y>
  281. <width>677</width>
  282. <height>23</height>
  283. </rect>
  284. </property>
  285. </widget>
  286. <widget class="QStatusBar" name="statusbar"/>
  287. </widget>
  288. <resources/>
  289. <connections>
  290. <connection>
  291. <sender>SearchDeviceButton</sender>
  292. <signal>clicked()</signal>
  293. <receiver>MainWindow</receiver>
  294. <slot>search_Device_Btn()</slot>
  295. <hints>
  296. <hint type="sourcelabel">
  297. <x>199</x>
  298. <y>473</y>
  299. </hint>
  300. <hint type="destinationlabel">
  301. <x>248</x>
  302. <y>455</y>
  303. </hint>
  304. </hints>
  305. </connection>
  306. <connection>
  307. <sender>InitButton</sender>
  308. <signal>clicked()</signal>
  309. <receiver>MainWindow</receiver>
  310. <slot>Init_Btn()</slot>
  311. <hints>
  312. <hint type="sourcelabel">
  313. <x>310</x>
  314. <y>593</y>
  315. </hint>
  316. <hint type="destinationlabel">
  317. <x>601</x>
  318. <y>577</y>
  319. </hint>
  320. </hints>
  321. </connection>
  322. <connection>
  323. <sender>SearchByIpButton</sender>
  324. <signal>clicked()</signal>
  325. <receiver>MainWindow</receiver>
  326. <slot>search_Device_ByIp_Btn()</slot>
  327. <hints>
  328. <hint type="sourcelabel">
  329. <x>557</x>
  330. <y>619</y>
  331. </hint>
  332. <hint type="destinationlabel">
  333. <x>603</x>
  334. <y>676</y>
  335. </hint>
  336. </hints>
  337. </connection>
  338. </connections>
  339. <slots>
  340. <slot>search_Device_Btn()</slot>
  341. <slot>search_Device_ByIp_Btn()</slot>
  342. <slot>Init_Btn()</slot>
  343. </slots>
  344. </ui>