📄 sw_dialog.h
字号:
/*** $Id: sw_dialog.h,v 1.1 1999/10/07 09:10:36 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 sw_dialog widget is the control panel for the software** plugin.*/#ifndef __GXSNMP_SW_DIALOG_H__#define __GXSNMP_SW_DIALOG_H__#include <gnome.h>#include "gnome-property-dialog.h"#include "tables.h"BEGIN_GNOME_DECLS/************************************************************************** * Standard widget macros *************************************************************************/#define GXSNMP_TYPE_SW_DIALOG (gxsnmp_sw_dialog_get_type())#define GXSNMP_SW_DIALOG(obj) \ GTK_CHECK_CAST ((obj), GXSNMP_TYPE_SW_DIALOG, GXsnmp_sw_dialog)#define GXSNMP_SW_DIALOG_CLASS(klass) \ GTK_CHECK_CLASS_CAST (klass, GXSNMP_TYPE_SW_DIALOG, \ GXsnmp_sw_dialogClass)#define GXSNMP_IS_SW_DIALOG(obj) \ GTK_CHECK_TYPE ((obj), GXSNMP_TYPE_SW_DIALOG)#define GXSNMP_IS_SW_DIALOG_CLASS(klass) \ GTK_CHECK_CLASS_TYPE ((klass), GXSNMP_TYPE_SW_DIALOG)/************************************************************************** * Control blocks for the widget class and for widget instances *************************************************************************/typedef struct _GXsnmp_sw_dialog GXsnmp_sw_dialog;typedef struct _GXsnmp_sw_dialogClass GXsnmp_sw_dialogClass;typedef struct _sw_data sw_data;struct _GXsnmp_sw_dialog{ GnomeDialog dialog; /* Base structure */ GtkWidget *table; /* The top level box */ GtkWidget *clist; sw_data *sw;};struct _GXsnmp_sw_dialogClass{ GnomeDialogClass parent_class; /* Class base structure */};struct _sw_data{ gint rowid; /* rowid of the DB_interface to use */ host_snmp host; /* Host snmp structure for the sw requests */ GtkWidget *dialog; gpointer table; /* The SNMP request */};/************************************************************************** * Public widget manipulation functions *************************************************************************/guint gxsnmp_sw_dialog_get_type (void);GtkWidget * gxsnmp_sw_dialog_new (sw_data *sw);void sw_dialog_set_state (GXsnmp_sw_dialog *dialog);END_GNOME_DECLS#endif /* __GXSNMP_SW_DIALOG_H__ *//* EOF */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -