gschem
|
00001 /* gEDA - GPL Electronic Design Automation 00002 * gschem - gEDA Schematic Capture 00003 * Copyright (C) 1998-2010 Ales V. Hvezda 00004 * Copyright (C) 1998-2010 gEDA Contributors (see ChangeLog for details) 00005 * 00006 * This library is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU Library General Public 00008 * License as published by the Free Software Foundation; either 00009 * version 2 of the License, or (at your option) any later version. 00010 * 00011 * This library is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Library General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, write to the Free Software 00018 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 00019 * MA 02111-1301 USA. 00020 */ 00021 00022 00023 #ifndef __GSCHEM_ACTION_H__ 00024 #define __GSCHEM_ACTION_H__ 00025 00026 00027 #define GSCHEM_TYPE_ACTION (gschem_action_get_type()) 00028 #define GSCHEM_ACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GSCHEM_TYPE_ACTION, GschemAction)) 00029 #define GSCHEM_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GSCHEM_TYPE_ACTION, GschemActionClass)) 00030 #define GSCHEM_IS_ACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GSCHEM_TYPE_ACTION)) 00031 #define GSCHEM_ACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GSCHEM_TYPE_ACTION, GschemActionClass)) 00032 00033 typedef struct _GschemActionClass GschemActionClass; 00034 typedef struct _GschemAction GschemAction; 00035 00036 00037 struct _GschemActionClass { 00038 GtkActionClass parent_class; 00039 00040 }; 00041 00042 struct _GschemAction { 00043 GtkAction parent_instance; 00044 00045 gchar *multikey_accel; 00046 }; 00047 00048 00049 GType gschem_action_get_type (void); 00050 00051 GschemAction *gschem_action_new (const gchar *name, 00052 const gchar *label, 00053 const gchar *tooltip, 00054 const gchar *stock_id, 00055 const gchar *multikey_accel); 00056 00057 #endif /* __GSCHEM_ACTION_H__ */