123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548 |
- <!DOCTYPE UI><UI version="3.3" stdsetdef="1">
- <class>MainWindowPrivate</class>
- <widget class="QMainWindow">
- <property name="name">
- <cstring>MainWindowPrivate</cstring>
- </property>
- <property name="geometry">
- <rect>
- <x>0</x>
- <y>0</y>
- <width>619</width>
- <height>580</height>
- </rect>
- </property>
- <property name="caption">
- <string>Simple SNMP++ example with Qt</string>
- </property>
- <property name="iconText">
- <string>snmp++ example</string>
- </property>
- <grid>
- <property name="name">
- <cstring>unnamed</cstring>
- </property>
- <widget class="QLabel" row="0" column="0">
- <property name="name">
- <cstring>text_label_obj_id</cstring>
- </property>
- <property name="text">
- <string>Object-ID</string>
- </property>
- </widget>
- <widget class="QLabel" row="1" column="0">
- <property name="name">
- <cstring>text_label_value</cstring>
- </property>
- <property name="text">
- <string>Value</string>
- </property>
- </widget>
- <widget class="QLineEdit" row="0" column="1" rowspan="1" colspan="2">
- <property name="name">
- <cstring>line_edit_obj_id</cstring>
- </property>
- <property name="text">
- <string>1.3.6.1.2.1.1.1.0</string>
- </property>
- </widget>
- <widget class="QLabel" row="2" column="0">
- <property name="name">
- <cstring>text_label_target</cstring>
- </property>
- <property name="text">
- <string>Target</string>
- </property>
- </widget>
- <widget class="QLineEdit" row="1" column="1" rowspan="1" colspan="2">
- <property name="name">
- <cstring>line_edit_value</cstring>
- </property>
- </widget>
- <widget class="QLineEdit" row="2" column="1" rowspan="1" colspan="2">
- <property name="name">
- <cstring>line_edit_target</cstring>
- </property>
- <property name="text">
- <string>localhost/4700</string>
- </property>
- </widget>
- <widget class="QButtonGroup" row="3" column="0" rowspan="1" colspan="3">
- <property name="name">
- <cstring>button_group_version</cstring>
- </property>
- <property name="title">
- <string>SNMP Version</string>
- </property>
- <property name="toolTip" stdset="0">
- <string>Select the SNMP version to use</string>
- </property>
- <grid>
- <property name="name">
- <cstring>unnamed</cstring>
- </property>
- <widget class="QRadioButton" row="0" column="0">
- <property name="name">
- <cstring>radio_button_v1</cstring>
- </property>
- <property name="text">
- <string>SNMPv1</string>
- </property>
- <property name="checked">
- <bool>true</bool>
- </property>
- <property name="buttonGroupId">
- <number>1</number>
- </property>
- </widget>
- <widget class="QRadioButton" row="0" column="1">
- <property name="name">
- <cstring>radio_button_v2</cstring>
- </property>
- <property name="text">
- <string>SNMPv2c</string>
- </property>
- <property name="buttonGroupId">
- <number>2</number>
- </property>
- </widget>
- <widget class="QRadioButton" row="0" column="2">
- <property name="name">
- <cstring>radio_button_v3</cstring>
- </property>
- <property name="text">
- <string>SNMPv3</string>
- </property>
- <property name="buttonGroupId">
- <number>3</number>
- </property>
- </widget>
- </grid>
- </widget>
- <widget class="QGroupBox" row="4" column="0" rowspan="1" colspan="2">
- <property name="name">
- <cstring>group_box_v1</cstring>
- </property>
- <property name="title">
- <string>SNMPv1 / v2c options</string>
- </property>
- <property name="toolTip" stdset="0">
- <string>Here options specific to SNMPv1/v2c can be entered</string>
- </property>
- <grid>
- <property name="name">
- <cstring>unnamed</cstring>
- </property>
- <widget class="QLineEdit" row="0" column="1">
- <property name="name">
- <cstring>line_edit_community</cstring>
- </property>
- <property name="text">
- <string>public</string>
- </property>
- <property name="alignment">
- <set>AlignRight</set>
- </property>
- </widget>
- <widget class="QLabel" row="0" column="0">
- <property name="name">
- <cstring>text_label_community</cstring>
- </property>
- <property name="text">
- <string>Community</string>
- </property>
- </widget>
- </grid>
- </widget>
- <widget class="QGroupBox" row="4" column="2" rowspan="2" colspan="1">
- <property name="name">
- <cstring>group_box_v3</cstring>
- </property>
- <property name="enabled">
- <bool>false</bool>
- </property>
- <property name="title">
- <string>SNMPv3 options</string>
- </property>
- <grid>
- <property name="name">
- <cstring>unnamed</cstring>
- </property>
- <widget class="QComboBox" row="0" column="1">
- <property name="name">
- <cstring>combo_box_sec_name</cstring>
- </property>
- </widget>
- <widget class="QComboBox" row="1" column="1">
- <item>
- <property name="text">
- <string>noAuthNoPriv</string>
- </property>
- </item>
- <item>
- <property name="text">
- <string>authNoPriv</string>
- </property>
- </item>
- <item>
- <property name="text">
- <string>authPriv</string>
- </property>
- </item>
- <property name="name">
- <cstring>combo_box_sec_level</cstring>
- </property>
- </widget>
- <widget class="QLabel" row="1" column="0">
- <property name="name">
- <cstring>text_label_sec_level</cstring>
- </property>
- <property name="text">
- <string>SecurityLevel</string>
- </property>
- </widget>
- <widget class="QLabel" row="2" column="0">
- <property name="name">
- <cstring>text_label_context_name</cstring>
- </property>
- <property name="text">
- <string>ConextName</string>
- </property>
- <property name="toolTip" stdset="0">
- <string>Can be left empty</string>
- </property>
- </widget>
- <widget class="QLabel" row="3" column="0">
- <property name="name">
- <cstring>text_label_context_engine_id</cstring>
- </property>
- <property name="text">
- <string>ContextEngineId</string>
- </property>
- <property name="toolTip" stdset="0">
- <string>Can be left empty</string>
- </property>
- </widget>
- <widget class="QLineEdit" row="2" column="1">
- <property name="name">
- <cstring>line_edit_context_name</cstring>
- </property>
- <property name="alignment">
- <set>AlignRight</set>
- </property>
- </widget>
- <widget class="QLineEdit" row="3" column="1">
- <property name="name">
- <cstring>line_edit_context_engine_id</cstring>
- </property>
- <property name="alignment">
- <set>AlignRight</set>
- </property>
- </widget>
- <widget class="QLabel" row="0" column="0">
- <property name="name">
- <cstring>text_label_sec_name</cstring>
- </property>
- <property name="text">
- <string>SecurityName</string>
- </property>
- </widget>
- </grid>
- </widget>
- <widget class="QLayoutWidget" row="8" column="0" rowspan="1" colspan="3">
- <property name="name">
- <cstring>layout_buttons</cstring>
- </property>
- <hbox>
- <property name="name">
- <cstring>unnamed</cstring>
- </property>
- <widget class="QPushButton">
- <property name="name">
- <cstring>push_button_broadcast</cstring>
- </property>
- <property name="text">
- <string>Broadcast</string>
- </property>
- <property name="toolTip" stdset="0">
- <string>Send a discovery broadcast to the target address</string>
- </property>
- </widget>
- <spacer>
- <property name="name">
- <cstring>spacer_buttons</cstring>
- </property>
- <property name="orientation">
- <enum>Horizontal</enum>
- </property>
- <property name="sizeType">
- <enum>Expanding</enum>
- </property>
- <property name="sizeHint">
- <size>
- <width>290</width>
- <height>31</height>
- </size>
- </property>
- </spacer>
- <widget class="QPushButton">
- <property name="name">
- <cstring>push_button_get_next</cstring>
- </property>
- <property name="text">
- <string>GetNext</string>
- </property>
- </widget>
- </hbox>
- </widget>
- <widget class="QTextEdit" row="7" column="0" rowspan="1" colspan="3">
- <property name="name">
- <cstring>text_edit_output</cstring>
- </property>
- </widget>
- <widget class="QGroupBox" row="5" column="0" rowspan="1" colspan="2">
- <property name="name">
- <cstring>group_box_gen_opts</cstring>
- </property>
- <property name="title">
- <string>General Options</string>
- </property>
- <grid>
- <property name="name">
- <cstring>unnamed</cstring>
- </property>
- <widget class="QLabel" row="1" column="0">
- <property name="name">
- <cstring>text_label_timeout</cstring>
- </property>
- <property name="text">
- <string>Timeout (sec)</string>
- </property>
- </widget>
- <widget class="QLabel" row="0" column="0">
- <property name="name">
- <cstring>text_label_retries</cstring>
- </property>
- <property name="text">
- <string>Retries</string>
- </property>
- </widget>
- <widget class="QSpinBox" row="0" column="1">
- <property name="name">
- <cstring>spin_box_retries</cstring>
- </property>
- <property name="maxValue">
- <number>10</number>
- </property>
- <property name="value">
- <number>1</number>
- </property>
- </widget>
- <widget class="QSpinBox" row="1" column="1">
- <property name="name">
- <cstring>spin_box_timeout</cstring>
- </property>
- <property name="maxValue">
- <number>20</number>
- </property>
- <property name="minValue">
- <number>0</number>
- </property>
- <property name="value">
- <number>3</number>
- </property>
- </widget>
- </grid>
- </widget>
- <widget class="QGroupBox" row="6" column="0" rowspan="1" colspan="3">
- <property name="name">
- <cstring>groupBox4</cstring>
- </property>
- <property name="minimumSize">
- <size>
- <width>79</width>
- <height>0</height>
- </size>
- </property>
- <property name="title">
- <string>Traps</string>
- </property>
- <grid>
- <property name="name">
- <cstring>unnamed</cstring>
- </property>
- <widget class="QPushButton" row="0" column="3">
- <property name="name">
- <cstring>push_button_traps</cstring>
- </property>
- <property name="text">
- <string>Start receiving Traps</string>
- </property>
- <property name="accel">
- <string>Alt+A</string>
- </property>
- <property name="toggleButton">
- <bool>true</bool>
- </property>
- </widget>
- <spacer row="0" column="2">
- <property name="name">
- <cstring>spacer2</cstring>
- </property>
- <property name="orientation">
- <enum>Horizontal</enum>
- </property>
- <property name="sizeType">
- <enum>Expanding</enum>
- </property>
- <property name="sizeHint">
- <size>
- <width>151</width>
- <height>21</height>
- </size>
- </property>
- </spacer>
- <widget class="QLineEdit" row="0" column="1">
- <property name="name">
- <cstring>line_edit_trap_port</cstring>
- </property>
- <property name="text">
- <string>162</string>
- </property>
- </widget>
- <widget class="QLabel" row="0" column="0">
- <property name="name">
- <cstring>textLabel1</cstring>
- </property>
- <property name="minimumSize">
- <size>
- <width>79</width>
- <height>0</height>
- </size>
- </property>
- <property name="text">
- <string>Port</string>
- </property>
- </widget>
- </grid>
- </widget>
- </grid>
- </widget>
- <menubar>
- <property name="name">
- <cstring>menubar</cstring>
- </property>
- <item text="&File" name="fileMenu">
- <separator/>
- <separator/>
- <action name="fileExitAction"/>
- </item>
- <item text="Edit" name="PopupMenu">
- <action name="edit_properties_action"/>
- </item>
- <item text="&Help" name="helpMenu">
- <separator/>
- <action name="helpAboutAction"/>
- </item>
- </menubar>
- <toolbars>
- </toolbars>
- <actions>
- <action>
- <property name="name">
- <cstring>fileExitAction</cstring>
- </property>
- <property name="text">
- <string>Exit</string>
- </property>
- <property name="menuText">
- <string>E&xit</string>
- </property>
- <property name="accel">
- <string></string>
- </property>
- </action>
- <action>
- <property name="name">
- <cstring>helpAboutAction</cstring>
- </property>
- <property name="text">
- <string>About</string>
- </property>
- <property name="menuText">
- <string>&About</string>
- </property>
- <property name="accel">
- <string></string>
- </property>
- </action>
- <action>
- <property name="name">
- <cstring>edit_properties_action</cstring>
- </property>
- <property name="text">
- <string>Properties</string>
- </property>
- <property name="menuText">
- <string>Properties</string>
- </property>
- </action>
- </actions>
- <connections>
- <connection>
- <sender>fileExitAction</sender>
- <signal>activated()</signal>
- <receiver>MainWindowPrivate</receiver>
- <slot>fileExit()</slot>
- </connection>
- <connection>
- <sender>helpAboutAction</sender>
- <signal>activated()</signal>
- <receiver>MainWindowPrivate</receiver>
- <slot>helpAbout()</slot>
- </connection>
- <connection>
- <sender>push_button_get_next</sender>
- <signal>clicked()</signal>
- <receiver>MainWindowPrivate</receiver>
- <slot>push_button_get_next_clicked()</slot>
- </connection>
- <connection>
- <sender>edit_properties_action</sender>
- <signal>activated()</signal>
- <receiver>MainWindowPrivate</receiver>
- <slot>edit_properties_action_activated()</slot>
- </connection>
- <connection>
- <sender>button_group_version</sender>
- <signal>clicked(int)</signal>
- <receiver>MainWindowPrivate</receiver>
- <slot>button_group_version_clicked(int)</slot>
- </connection>
- <connection>
- <sender>push_button_broadcast</sender>
- <signal>clicked()</signal>
- <receiver>MainWindowPrivate</receiver>
- <slot>push_button_broadcast_clicked()</slot>
- </connection>
- <connection>
- <sender>push_button_traps</sender>
- <signal>toggled(bool)</signal>
- <receiver>MainWindowPrivate</receiver>
- <slot>push_button_traps_toggled(bool)</slot>
- </connection>
- </connections>
- <includes>
- <include location="local" impldecl="in implementation">MainWindowPrivate.ui.h</include>
- </includes>
- <slots>
- <slot>fileExit()</slot>
- <slot>helpAbout()</slot>
- <slot>push_button_get_next_clicked()</slot>
- <slot>edit_properties_action_activated()</slot>
- <slot>button_group_version_clicked( int version )</slot>
- <slot>push_button_broadcast_clicked()</slot>
- <slot>push_button_traps_toggled(bool)</slot>
- </slots>
- <layoutdefaults spacing="6" margin="11"/>
- </UI>
|