📄 route_dialog.h
字号:
/*** $Id: route_dialog.h,v 1.7 1999/04/25 14:50:54 jochen Exp $**** GXSNMP -- An snmp management application**** This program is free software; you can redistribute it and/or modify** it under the terms of the GNU General Public License as published by** the Free Software Foundation; either version 2 of the License, or** (at your option) any later version.**** This program is distributed in the hope that it will be useful,** but WITHOUT ANY WARRANTY; without even the implied warranty of** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the** GNU General Public License for more details.**** You should have received a copy of the GNU General Public License** along with this program; if not, write to the Free Software** Foundation, Inc., 59 Temple Place - Suite 330, Cambridge, MA 02139, USA.**** The route_dialog widget is the control panel for the route** plugin.*/#ifndef __GXSNMP_ROUTE_DIALOG_H__#define __GXSNMP_ROUTE_DIALOG_H__#include <gnome.h>#include "gnome-property-dialog.h"#include "tables.h"BEGIN_GNOME_DECLS/************************************************************************** * Standard widget macros *************************************************************************/#define GXSNMP_TYPE_ROUTE_DIALOG (gxsnmp_route_dialog_get_type())#define GXSNMP_ROUTE_DIALOG(obj) \ GTK_CHECK_CAST ((obj), GXSNMP_TYPE_ROUTE_DIALOG, \ GXsnmp_route_dialog)#define GXSNMP_ROUTE_DIALOG_CLASS(klass) \ GTK_CHECK_CLASS_CAST (klass, GXSNMP_TYPE_ROUTE_DIALOG, \ GXsnmp_route_dialogClass)#define GXSNMP_IS_ROUTE_DIALOG(obj) \ GTK_CHECK_TYPE ((obj), GXSNMP_TYPE_ROUTE_DIALOG)#define GXSNMP_IS_ROUTE_DIALOG_CLASS(klass) \ GTK_CHECK_CLASS_TYPE ((klass), GXSNMP_TYPE_ROUTE_DIALOG)/************************************************************************** * Control blocks for the widget class and for widget instances *************************************************************************/typedef struct _GXsnmp_route_dialog GXsnmp_route_dialog;typedef struct _GXsnmp_route_dialogClass GXsnmp_route_dialogClass;typedef struct _rt_data rt_data;struct _GXsnmp_route_dialog{ GnomeDialog dialog; /* Base structure */ GtkWidget *table; /* The top level box */ GtkWidget *clist; rt_data *rt;};struct _GXsnmp_route_dialogClass{ GnomeDialogClass parent_class; /* Class base structure */};struct _rt_data{ gint rowid; /* rowid of the DB_interface to use */ host_snmp host; /* Host snmp structure for the route requests */ GtkWidget *dialog; GHashTable *if_desc; /* ifDesc cache */ gpointer table; /* The SNMP request */};/************************************************************************** * Public widget manipulation functions *************************************************************************/guint gxsnmp_route_dialog_get_type (void);GtkWidget * gxsnmp_route_dialog_new (rt_data *rt);void route_dialog_set_state (GXsnmp_route_dialog *dialog);END_GNOME_DECLS#endif /* __GXSNMP_ROUTE_DIALOG_H__ *//* EOF */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -