Properties.ui 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364
  1. <!DOCTYPE UI><UI version="3.2" stdsetdef="1">
  2. <class>Properties</class>
  3. <widget class="QDialog">
  4. <property name="name">
  5. <cstring>Properties</cstring>
  6. </property>
  7. <property name="geometry">
  8. <rect>
  9. <x>0</x>
  10. <y>0</y>
  11. <width>583</width>
  12. <height>441</height>
  13. </rect>
  14. </property>
  15. <property name="caption">
  16. <string>Properties</string>
  17. </property>
  18. <property name="sizeGripEnabled">
  19. <bool>true</bool>
  20. </property>
  21. <grid>
  22. <property name="name">
  23. <cstring>unnamed</cstring>
  24. </property>
  25. <property name="margin">
  26. <number>11</number>
  27. </property>
  28. <property name="spacing">
  29. <number>6</number>
  30. </property>
  31. <widget class="QTabWidget" row="0" column="0">
  32. <property name="name">
  33. <cstring>tabWidget</cstring>
  34. </property>
  35. <widget class="QWidget">
  36. <property name="name">
  37. <cstring>Widget8</cstring>
  38. </property>
  39. <attribute name="title">
  40. <string>USM</string>
  41. </attribute>
  42. <grid>
  43. <property name="name">
  44. <cstring>unnamed</cstring>
  45. </property>
  46. <widget class="QPushButton" row="5" column="4">
  47. <property name="name">
  48. <cstring>push_button_reset</cstring>
  49. </property>
  50. <property name="text">
  51. <string>Reset</string>
  52. </property>
  53. <property name="toolTip" stdset="0">
  54. <string>Reset the values to the old values</string>
  55. </property>
  56. </widget>
  57. <widget class="QPushButton" row="5" column="5">
  58. <property name="name">
  59. <cstring>push_button_apply</cstring>
  60. </property>
  61. <property name="text">
  62. <string>Apply</string>
  63. </property>
  64. <property name="toolTip" stdset="0">
  65. <string>Changes are only stored if this button is clicked</string>
  66. </property>
  67. </widget>
  68. <widget class="QLabel" row="1" column="0">
  69. <property name="name">
  70. <cstring>text_label_auth_prot</cstring>
  71. </property>
  72. <property name="text">
  73. <string>AuthProtocol</string>
  74. </property>
  75. <property name="alignment">
  76. <set>AlignVCenter|AlignRight</set>
  77. </property>
  78. </widget>
  79. <widget class="QLabel" row="2" column="0">
  80. <property name="name">
  81. <cstring>text_label_auth_pass</cstring>
  82. </property>
  83. <property name="text">
  84. <string>AuthPassword</string>
  85. </property>
  86. <property name="alignment">
  87. <set>AlignVCenter|AlignRight</set>
  88. </property>
  89. </widget>
  90. <widget class="QLabel" row="4" column="0">
  91. <property name="name">
  92. <cstring>text_label_priv_pass</cstring>
  93. </property>
  94. <property name="text">
  95. <string>PrivPassword</string>
  96. </property>
  97. <property name="alignment">
  98. <set>AlignVCenter|AlignRight</set>
  99. </property>
  100. </widget>
  101. <widget class="QLabel" row="3" column="0">
  102. <property name="name">
  103. <cstring>textlabel_priv_prot</cstring>
  104. </property>
  105. <property name="text">
  106. <string>PrivProtocol</string>
  107. </property>
  108. <property name="alignment">
  109. <set>AlignVCenter|AlignRight</set>
  110. </property>
  111. </widget>
  112. <widget class="QLabel" row="0" column="0">
  113. <property name="name">
  114. <cstring>text_label_sec_name</cstring>
  115. </property>
  116. <property name="text">
  117. <string>SecurityName</string>
  118. </property>
  119. <property name="alignment">
  120. <set>AlignVCenter|AlignRight</set>
  121. </property>
  122. </widget>
  123. <widget class="QComboBox" row="0" column="1" rowspan="1" colspan="5">
  124. <property name="name">
  125. <cstring>combo_box_sec_name</cstring>
  126. </property>
  127. <property name="duplicatesEnabled">
  128. <bool>false</bool>
  129. </property>
  130. </widget>
  131. <widget class="QComboBox" row="1" column="1" rowspan="1" colspan="5">
  132. <item>
  133. <property name="text">
  134. <string>None</string>
  135. </property>
  136. </item>
  137. <item>
  138. <property name="text">
  139. <string>HMAC-MD5</string>
  140. </property>
  141. </item>
  142. <item>
  143. <property name="text">
  144. <string>HMAC-SHA</string>
  145. </property>
  146. </item>
  147. <property name="name">
  148. <cstring>combo_box_auth_prot</cstring>
  149. </property>
  150. </widget>
  151. <widget class="QLineEdit" row="2" column="1" rowspan="1" colspan="5">
  152. <property name="name">
  153. <cstring>line_edit_auth_pass</cstring>
  154. </property>
  155. </widget>
  156. <widget class="QComboBox" row="3" column="1" rowspan="1" colspan="5">
  157. <item>
  158. <property name="text">
  159. <string>None</string>
  160. </property>
  161. </item>
  162. <item>
  163. <property name="text">
  164. <string>DES</string>
  165. </property>
  166. </item>
  167. <item>
  168. <property name="text">
  169. <string>IDEA</string>
  170. </property>
  171. </item>
  172. <item>
  173. <property name="text">
  174. <string>AES128</string>
  175. </property>
  176. </item>
  177. <item>
  178. <property name="text">
  179. <string>AES196</string>
  180. </property>
  181. </item>
  182. <item>
  183. <property name="text">
  184. <string>AES256</string>
  185. </property>
  186. </item>
  187. <property name="name">
  188. <cstring>combo_box_priv_prot</cstring>
  189. </property>
  190. </widget>
  191. <widget class="QLineEdit" row="4" column="1" rowspan="1" colspan="5">
  192. <property name="name">
  193. <cstring>line_edit_priv_pass</cstring>
  194. </property>
  195. </widget>
  196. <widget class="QPushButton" row="5" column="0" rowspan="1" colspan="2">
  197. <property name="name">
  198. <cstring>push_button_add_user</cstring>
  199. </property>
  200. <property name="text">
  201. <string>Add new user</string>
  202. </property>
  203. </widget>
  204. <widget class="QPushButton" row="5" column="2">
  205. <property name="name">
  206. <cstring>push_button_del_user</cstring>
  207. </property>
  208. <property name="text">
  209. <string>Delete User</string>
  210. </property>
  211. <property name="toolTip" stdset="0">
  212. <string>Delete the selected user</string>
  213. </property>
  214. </widget>
  215. <spacer row="5" column="3">
  216. <property name="name">
  217. <cstring>spacer2</cstring>
  218. </property>
  219. <property name="orientation">
  220. <enum>Horizontal</enum>
  221. </property>
  222. <property name="sizeType">
  223. <enum>Expanding</enum>
  224. </property>
  225. <property name="sizeHint">
  226. <size>
  227. <width>110</width>
  228. <height>21</height>
  229. </size>
  230. </property>
  231. </spacer>
  232. </grid>
  233. </widget>
  234. </widget>
  235. <widget class="QLayoutWidget" row="1" column="0">
  236. <property name="name">
  237. <cstring>Layout1</cstring>
  238. </property>
  239. <hbox>
  240. <property name="name">
  241. <cstring>unnamed</cstring>
  242. </property>
  243. <property name="margin">
  244. <number>0</number>
  245. </property>
  246. <property name="spacing">
  247. <number>6</number>
  248. </property>
  249. <spacer>
  250. <property name="name">
  251. <cstring>Horizontal Spacing2</cstring>
  252. </property>
  253. <property name="orientation">
  254. <enum>Horizontal</enum>
  255. </property>
  256. <property name="sizeType">
  257. <enum>Expanding</enum>
  258. </property>
  259. <property name="sizeHint">
  260. <size>
  261. <width>20</width>
  262. <height>20</height>
  263. </size>
  264. </property>
  265. </spacer>
  266. <widget class="QPushButton">
  267. <property name="name">
  268. <cstring>button_close</cstring>
  269. </property>
  270. <property name="text">
  271. <string>Close</string>
  272. </property>
  273. <property name="accel">
  274. <string></string>
  275. </property>
  276. <property name="autoDefault">
  277. <bool>true</bool>
  278. </property>
  279. <property name="default">
  280. <bool>true</bool>
  281. </property>
  282. </widget>
  283. </hbox>
  284. </widget>
  285. </grid>
  286. </widget>
  287. <connections>
  288. <connection>
  289. <sender>button_close</sender>
  290. <signal>clicked()</signal>
  291. <receiver>Properties</receiver>
  292. <slot>accept()</slot>
  293. </connection>
  294. <connection>
  295. <sender>combo_box_sec_name</sender>
  296. <signal>activated(const QString&amp;)</signal>
  297. <receiver>Properties</receiver>
  298. <slot>combo_box_sec_name_activated(const QString&amp;)</slot>
  299. </connection>
  300. <connection>
  301. <sender>push_button_reset</sender>
  302. <signal>clicked()</signal>
  303. <receiver>Properties</receiver>
  304. <slot>push_button_reset_clicked()</slot>
  305. </connection>
  306. <connection>
  307. <sender>push_button_apply</sender>
  308. <signal>clicked()</signal>
  309. <receiver>Properties</receiver>
  310. <slot>push_button_apply_clicked()</slot>
  311. </connection>
  312. <connection>
  313. <sender>combo_box_auth_prot</sender>
  314. <signal>activated(int)</signal>
  315. <receiver>Properties</receiver>
  316. <slot>combo_box_auth_prot_activated(int)</slot>
  317. </connection>
  318. <connection>
  319. <sender>combo_box_priv_prot</sender>
  320. <signal>activated(int)</signal>
  321. <receiver>Properties</receiver>
  322. <slot>combo_box_priv_prot_activated(int)</slot>
  323. </connection>
  324. <connection>
  325. <sender>push_button_add_user</sender>
  326. <signal>clicked()</signal>
  327. <receiver>Properties</receiver>
  328. <slot>push_button_add_user_clicked()</slot>
  329. </connection>
  330. <connection>
  331. <sender>push_button_del_user</sender>
  332. <signal>clicked()</signal>
  333. <receiver>Properties</receiver>
  334. <slot>push_button_del_user_clicked()</slot>
  335. </connection>
  336. </connections>
  337. <includes>
  338. <include location="local" impldecl="in declaration">snmp_pp/snmp_pp.h</include>
  339. <include location="local" impldecl="in implementation">Properties.ui.h</include>
  340. </includes>
  341. <forwards>
  342. <forward>#ifdef SNMP_PP_NAMESPACE</forward>
  343. <forward>using namespace Snmp_pp</forward>
  344. <forward>#endif</forward>
  345. </forwards>
  346. <variables>
  347. <variable access="private">Snmp *snmp;</variable>
  348. <variable>v3MP *v3mp;</variable>
  349. <variable>USM *usm;</variable>
  350. </variables>
  351. <slots>
  352. <slot>combo_box_sec_name_activated( const QString &amp; sec_name )</slot>
  353. <slot>push_button_reset_clicked()</slot>
  354. <slot>push_button_apply_clicked()</slot>
  355. <slot>combo_box_auth_prot_activated( int auth_prot )</slot>
  356. <slot>combo_box_priv_prot_activated( int priv_prot )</slot>
  357. <slot>push_button_add_user_clicked()</slot>
  358. <slot>push_button_del_user_clicked()</slot>
  359. </slots>
  360. <functions>
  361. <function specifier="non virtual">set_snmp( Snmp * s )</function>
  362. </functions>
  363. <layoutdefaults spacing="6" margin="11"/>
  364. </UI>