Widget Hierachy
The following widgets are included in the gxsnmp application.
All widgets follow the Gtk+ standard for widget construction.
gxsnmp_window
The gxsnmp window is derived from the gnome_app type.
Its the main application window for the program.
gxsnmp_map
The gxsnmp_map widget is derived from the gnome_canvas
type. It is the graphical network map object.
gxsnmp_map_item
This widget class is derived from the gnome_canvas_item
type. It contains the following data and class methods:
data
A flag to indicate whether this item has been selected,
a handle for the selection bounding box, and a GList of all
gxsnmp_wire object that attach to this map_item.
Methods
Select this object.
Deselect this object.
Move this object on screen.
Add a wire.
Remove a wire
Update wire
Edit item
Popup Menu
Changed
Functions
The following functions are the implementation of the methods
detailed out above.
gxsnmp_map_item_set_location
gxsnmp_map_item_get_location
gxsnmp_map_item_select
gxsnmp_map_item_deselect
gxsnmp_map_item_selected