MainWindowPrivate.ui 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548
  1. <!DOCTYPE UI><UI version="3.3" stdsetdef="1">
  2. <class>MainWindowPrivate</class>
  3. <widget class="QMainWindow">
  4. <property name="name">
  5. <cstring>MainWindowPrivate</cstring>
  6. </property>
  7. <property name="geometry">
  8. <rect>
  9. <x>0</x>
  10. <y>0</y>
  11. <width>619</width>
  12. <height>580</height>
  13. </rect>
  14. </property>
  15. <property name="caption">
  16. <string>Simple SNMP++ example with Qt</string>
  17. </property>
  18. <property name="iconText">
  19. <string>snmp++ example</string>
  20. </property>
  21. <grid>
  22. <property name="name">
  23. <cstring>unnamed</cstring>
  24. </property>
  25. <widget class="QLabel" row="0" column="0">
  26. <property name="name">
  27. <cstring>text_label_obj_id</cstring>
  28. </property>
  29. <property name="text">
  30. <string>Object-ID</string>
  31. </property>
  32. </widget>
  33. <widget class="QLabel" row="1" column="0">
  34. <property name="name">
  35. <cstring>text_label_value</cstring>
  36. </property>
  37. <property name="text">
  38. <string>Value</string>
  39. </property>
  40. </widget>
  41. <widget class="QLineEdit" row="0" column="1" rowspan="1" colspan="2">
  42. <property name="name">
  43. <cstring>line_edit_obj_id</cstring>
  44. </property>
  45. <property name="text">
  46. <string>1.3.6.1.2.1.1.1.0</string>
  47. </property>
  48. </widget>
  49. <widget class="QLabel" row="2" column="0">
  50. <property name="name">
  51. <cstring>text_label_target</cstring>
  52. </property>
  53. <property name="text">
  54. <string>Target</string>
  55. </property>
  56. </widget>
  57. <widget class="QLineEdit" row="1" column="1" rowspan="1" colspan="2">
  58. <property name="name">
  59. <cstring>line_edit_value</cstring>
  60. </property>
  61. </widget>
  62. <widget class="QLineEdit" row="2" column="1" rowspan="1" colspan="2">
  63. <property name="name">
  64. <cstring>line_edit_target</cstring>
  65. </property>
  66. <property name="text">
  67. <string>localhost/4700</string>
  68. </property>
  69. </widget>
  70. <widget class="QButtonGroup" row="3" column="0" rowspan="1" colspan="3">
  71. <property name="name">
  72. <cstring>button_group_version</cstring>
  73. </property>
  74. <property name="title">
  75. <string>SNMP Version</string>
  76. </property>
  77. <property name="toolTip" stdset="0">
  78. <string>Select the SNMP version to use</string>
  79. </property>
  80. <grid>
  81. <property name="name">
  82. <cstring>unnamed</cstring>
  83. </property>
  84. <widget class="QRadioButton" row="0" column="0">
  85. <property name="name">
  86. <cstring>radio_button_v1</cstring>
  87. </property>
  88. <property name="text">
  89. <string>SNMPv1</string>
  90. </property>
  91. <property name="checked">
  92. <bool>true</bool>
  93. </property>
  94. <property name="buttonGroupId">
  95. <number>1</number>
  96. </property>
  97. </widget>
  98. <widget class="QRadioButton" row="0" column="1">
  99. <property name="name">
  100. <cstring>radio_button_v2</cstring>
  101. </property>
  102. <property name="text">
  103. <string>SNMPv2c</string>
  104. </property>
  105. <property name="buttonGroupId">
  106. <number>2</number>
  107. </property>
  108. </widget>
  109. <widget class="QRadioButton" row="0" column="2">
  110. <property name="name">
  111. <cstring>radio_button_v3</cstring>
  112. </property>
  113. <property name="text">
  114. <string>SNMPv3</string>
  115. </property>
  116. <property name="buttonGroupId">
  117. <number>3</number>
  118. </property>
  119. </widget>
  120. </grid>
  121. </widget>
  122. <widget class="QGroupBox" row="4" column="0" rowspan="1" colspan="2">
  123. <property name="name">
  124. <cstring>group_box_v1</cstring>
  125. </property>
  126. <property name="title">
  127. <string>SNMPv1 / v2c options</string>
  128. </property>
  129. <property name="toolTip" stdset="0">
  130. <string>Here options specific to SNMPv1/v2c can be entered</string>
  131. </property>
  132. <grid>
  133. <property name="name">
  134. <cstring>unnamed</cstring>
  135. </property>
  136. <widget class="QLineEdit" row="0" column="1">
  137. <property name="name">
  138. <cstring>line_edit_community</cstring>
  139. </property>
  140. <property name="text">
  141. <string>public</string>
  142. </property>
  143. <property name="alignment">
  144. <set>AlignRight</set>
  145. </property>
  146. </widget>
  147. <widget class="QLabel" row="0" column="0">
  148. <property name="name">
  149. <cstring>text_label_community</cstring>
  150. </property>
  151. <property name="text">
  152. <string>Community</string>
  153. </property>
  154. </widget>
  155. </grid>
  156. </widget>
  157. <widget class="QGroupBox" row="4" column="2" rowspan="2" colspan="1">
  158. <property name="name">
  159. <cstring>group_box_v3</cstring>
  160. </property>
  161. <property name="enabled">
  162. <bool>false</bool>
  163. </property>
  164. <property name="title">
  165. <string>SNMPv3 options</string>
  166. </property>
  167. <grid>
  168. <property name="name">
  169. <cstring>unnamed</cstring>
  170. </property>
  171. <widget class="QComboBox" row="0" column="1">
  172. <property name="name">
  173. <cstring>combo_box_sec_name</cstring>
  174. </property>
  175. </widget>
  176. <widget class="QComboBox" row="1" column="1">
  177. <item>
  178. <property name="text">
  179. <string>noAuthNoPriv</string>
  180. </property>
  181. </item>
  182. <item>
  183. <property name="text">
  184. <string>authNoPriv</string>
  185. </property>
  186. </item>
  187. <item>
  188. <property name="text">
  189. <string>authPriv</string>
  190. </property>
  191. </item>
  192. <property name="name">
  193. <cstring>combo_box_sec_level</cstring>
  194. </property>
  195. </widget>
  196. <widget class="QLabel" row="1" column="0">
  197. <property name="name">
  198. <cstring>text_label_sec_level</cstring>
  199. </property>
  200. <property name="text">
  201. <string>SecurityLevel</string>
  202. </property>
  203. </widget>
  204. <widget class="QLabel" row="2" column="0">
  205. <property name="name">
  206. <cstring>text_label_context_name</cstring>
  207. </property>
  208. <property name="text">
  209. <string>ConextName</string>
  210. </property>
  211. <property name="toolTip" stdset="0">
  212. <string>Can be left empty</string>
  213. </property>
  214. </widget>
  215. <widget class="QLabel" row="3" column="0">
  216. <property name="name">
  217. <cstring>text_label_context_engine_id</cstring>
  218. </property>
  219. <property name="text">
  220. <string>ContextEngineId</string>
  221. </property>
  222. <property name="toolTip" stdset="0">
  223. <string>Can be left empty</string>
  224. </property>
  225. </widget>
  226. <widget class="QLineEdit" row="2" column="1">
  227. <property name="name">
  228. <cstring>line_edit_context_name</cstring>
  229. </property>
  230. <property name="alignment">
  231. <set>AlignRight</set>
  232. </property>
  233. </widget>
  234. <widget class="QLineEdit" row="3" column="1">
  235. <property name="name">
  236. <cstring>line_edit_context_engine_id</cstring>
  237. </property>
  238. <property name="alignment">
  239. <set>AlignRight</set>
  240. </property>
  241. </widget>
  242. <widget class="QLabel" row="0" column="0">
  243. <property name="name">
  244. <cstring>text_label_sec_name</cstring>
  245. </property>
  246. <property name="text">
  247. <string>SecurityName</string>
  248. </property>
  249. </widget>
  250. </grid>
  251. </widget>
  252. <widget class="QLayoutWidget" row="8" column="0" rowspan="1" colspan="3">
  253. <property name="name">
  254. <cstring>layout_buttons</cstring>
  255. </property>
  256. <hbox>
  257. <property name="name">
  258. <cstring>unnamed</cstring>
  259. </property>
  260. <widget class="QPushButton">
  261. <property name="name">
  262. <cstring>push_button_broadcast</cstring>
  263. </property>
  264. <property name="text">
  265. <string>Broadcast</string>
  266. </property>
  267. <property name="toolTip" stdset="0">
  268. <string>Send a discovery broadcast to the target address</string>
  269. </property>
  270. </widget>
  271. <spacer>
  272. <property name="name">
  273. <cstring>spacer_buttons</cstring>
  274. </property>
  275. <property name="orientation">
  276. <enum>Horizontal</enum>
  277. </property>
  278. <property name="sizeType">
  279. <enum>Expanding</enum>
  280. </property>
  281. <property name="sizeHint">
  282. <size>
  283. <width>290</width>
  284. <height>31</height>
  285. </size>
  286. </property>
  287. </spacer>
  288. <widget class="QPushButton">
  289. <property name="name">
  290. <cstring>push_button_get_next</cstring>
  291. </property>
  292. <property name="text">
  293. <string>GetNext</string>
  294. </property>
  295. </widget>
  296. </hbox>
  297. </widget>
  298. <widget class="QTextEdit" row="7" column="0" rowspan="1" colspan="3">
  299. <property name="name">
  300. <cstring>text_edit_output</cstring>
  301. </property>
  302. </widget>
  303. <widget class="QGroupBox" row="5" column="0" rowspan="1" colspan="2">
  304. <property name="name">
  305. <cstring>group_box_gen_opts</cstring>
  306. </property>
  307. <property name="title">
  308. <string>General Options</string>
  309. </property>
  310. <grid>
  311. <property name="name">
  312. <cstring>unnamed</cstring>
  313. </property>
  314. <widget class="QLabel" row="1" column="0">
  315. <property name="name">
  316. <cstring>text_label_timeout</cstring>
  317. </property>
  318. <property name="text">
  319. <string>Timeout (sec)</string>
  320. </property>
  321. </widget>
  322. <widget class="QLabel" row="0" column="0">
  323. <property name="name">
  324. <cstring>text_label_retries</cstring>
  325. </property>
  326. <property name="text">
  327. <string>Retries</string>
  328. </property>
  329. </widget>
  330. <widget class="QSpinBox" row="0" column="1">
  331. <property name="name">
  332. <cstring>spin_box_retries</cstring>
  333. </property>
  334. <property name="maxValue">
  335. <number>10</number>
  336. </property>
  337. <property name="value">
  338. <number>1</number>
  339. </property>
  340. </widget>
  341. <widget class="QSpinBox" row="1" column="1">
  342. <property name="name">
  343. <cstring>spin_box_timeout</cstring>
  344. </property>
  345. <property name="maxValue">
  346. <number>20</number>
  347. </property>
  348. <property name="minValue">
  349. <number>0</number>
  350. </property>
  351. <property name="value">
  352. <number>3</number>
  353. </property>
  354. </widget>
  355. </grid>
  356. </widget>
  357. <widget class="QGroupBox" row="6" column="0" rowspan="1" colspan="3">
  358. <property name="name">
  359. <cstring>groupBox4</cstring>
  360. </property>
  361. <property name="minimumSize">
  362. <size>
  363. <width>79</width>
  364. <height>0</height>
  365. </size>
  366. </property>
  367. <property name="title">
  368. <string>Traps</string>
  369. </property>
  370. <grid>
  371. <property name="name">
  372. <cstring>unnamed</cstring>
  373. </property>
  374. <widget class="QPushButton" row="0" column="3">
  375. <property name="name">
  376. <cstring>push_button_traps</cstring>
  377. </property>
  378. <property name="text">
  379. <string>Start receiving Traps</string>
  380. </property>
  381. <property name="accel">
  382. <string>Alt+A</string>
  383. </property>
  384. <property name="toggleButton">
  385. <bool>true</bool>
  386. </property>
  387. </widget>
  388. <spacer row="0" column="2">
  389. <property name="name">
  390. <cstring>spacer2</cstring>
  391. </property>
  392. <property name="orientation">
  393. <enum>Horizontal</enum>
  394. </property>
  395. <property name="sizeType">
  396. <enum>Expanding</enum>
  397. </property>
  398. <property name="sizeHint">
  399. <size>
  400. <width>151</width>
  401. <height>21</height>
  402. </size>
  403. </property>
  404. </spacer>
  405. <widget class="QLineEdit" row="0" column="1">
  406. <property name="name">
  407. <cstring>line_edit_trap_port</cstring>
  408. </property>
  409. <property name="text">
  410. <string>162</string>
  411. </property>
  412. </widget>
  413. <widget class="QLabel" row="0" column="0">
  414. <property name="name">
  415. <cstring>textLabel1</cstring>
  416. </property>
  417. <property name="minimumSize">
  418. <size>
  419. <width>79</width>
  420. <height>0</height>
  421. </size>
  422. </property>
  423. <property name="text">
  424. <string>Port</string>
  425. </property>
  426. </widget>
  427. </grid>
  428. </widget>
  429. </grid>
  430. </widget>
  431. <menubar>
  432. <property name="name">
  433. <cstring>menubar</cstring>
  434. </property>
  435. <item text="&amp;File" name="fileMenu">
  436. <separator/>
  437. <separator/>
  438. <action name="fileExitAction"/>
  439. </item>
  440. <item text="Edit" name="PopupMenu">
  441. <action name="edit_properties_action"/>
  442. </item>
  443. <item text="&amp;Help" name="helpMenu">
  444. <separator/>
  445. <action name="helpAboutAction"/>
  446. </item>
  447. </menubar>
  448. <toolbars>
  449. </toolbars>
  450. <actions>
  451. <action>
  452. <property name="name">
  453. <cstring>fileExitAction</cstring>
  454. </property>
  455. <property name="text">
  456. <string>Exit</string>
  457. </property>
  458. <property name="menuText">
  459. <string>E&amp;xit</string>
  460. </property>
  461. <property name="accel">
  462. <string></string>
  463. </property>
  464. </action>
  465. <action>
  466. <property name="name">
  467. <cstring>helpAboutAction</cstring>
  468. </property>
  469. <property name="text">
  470. <string>About</string>
  471. </property>
  472. <property name="menuText">
  473. <string>&amp;About</string>
  474. </property>
  475. <property name="accel">
  476. <string></string>
  477. </property>
  478. </action>
  479. <action>
  480. <property name="name">
  481. <cstring>edit_properties_action</cstring>
  482. </property>
  483. <property name="text">
  484. <string>Properties</string>
  485. </property>
  486. <property name="menuText">
  487. <string>Properties</string>
  488. </property>
  489. </action>
  490. </actions>
  491. <connections>
  492. <connection>
  493. <sender>fileExitAction</sender>
  494. <signal>activated()</signal>
  495. <receiver>MainWindowPrivate</receiver>
  496. <slot>fileExit()</slot>
  497. </connection>
  498. <connection>
  499. <sender>helpAboutAction</sender>
  500. <signal>activated()</signal>
  501. <receiver>MainWindowPrivate</receiver>
  502. <slot>helpAbout()</slot>
  503. </connection>
  504. <connection>
  505. <sender>push_button_get_next</sender>
  506. <signal>clicked()</signal>
  507. <receiver>MainWindowPrivate</receiver>
  508. <slot>push_button_get_next_clicked()</slot>
  509. </connection>
  510. <connection>
  511. <sender>edit_properties_action</sender>
  512. <signal>activated()</signal>
  513. <receiver>MainWindowPrivate</receiver>
  514. <slot>edit_properties_action_activated()</slot>
  515. </connection>
  516. <connection>
  517. <sender>button_group_version</sender>
  518. <signal>clicked(int)</signal>
  519. <receiver>MainWindowPrivate</receiver>
  520. <slot>button_group_version_clicked(int)</slot>
  521. </connection>
  522. <connection>
  523. <sender>push_button_broadcast</sender>
  524. <signal>clicked()</signal>
  525. <receiver>MainWindowPrivate</receiver>
  526. <slot>push_button_broadcast_clicked()</slot>
  527. </connection>
  528. <connection>
  529. <sender>push_button_traps</sender>
  530. <signal>toggled(bool)</signal>
  531. <receiver>MainWindowPrivate</receiver>
  532. <slot>push_button_traps_toggled(bool)</slot>
  533. </connection>
  534. </connections>
  535. <includes>
  536. <include location="local" impldecl="in implementation">MainWindowPrivate.ui.h</include>
  537. </includes>
  538. <slots>
  539. <slot>fileExit()</slot>
  540. <slot>helpAbout()</slot>
  541. <slot>push_button_get_next_clicked()</slot>
  542. <slot>edit_properties_action_activated()</slot>
  543. <slot>button_group_version_clicked( int version )</slot>
  544. <slot>push_button_broadcast_clicked()</slot>
  545. <slot>push_button_traps_toggled(bool)</slot>
  546. </slots>
  547. <layoutdefaults spacing="6" margin="11"/>
  548. </UI>