gschem
|
00001 /* gEDA - GPL Electronic Design Automation 00002 * gschem - gEDA Schematic Capture 00003 * Copyright (C) 1998-2010 Ales Hvezda 00004 * 00005 * This library is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU Library General Public 00007 * License as published by the Free Software Foundation; either 00008 * version 2 of the License, or (at your option) any later version. 00009 * 00010 * This library is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 * Library General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, write to the Free Software 00017 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 00018 * MA 02111-1301 USA. 00019 */ 00020 00021 00022 #ifndef __GSCHEM_DIALOG_H__ 00023 #define __GSCHEM_DIALOG_H__ 00024 00025 00026 #define GSCHEM_TYPE_DIALOG (gschem_dialog_get_type()) 00027 #define GSCHEM_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GSCHEM_TYPE_DIALOG, GschemDialog)) 00028 #define GSCHEM_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GSCHEM_TYPE_DIALOG, GschemDialogClass)) 00029 #define GSCHEM_IS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GSCHEM_TYPE_DIALOG)) 00030 #define GSCHEM_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GSCHEM_TYPE_DIALOG, GschemDialogClass)) 00031 00032 typedef struct _GschemDialogClass GschemDialogClass; 00033 typedef struct _GschemDialog GschemDialog; 00034 00035 00036 struct _GschemDialogClass { 00037 GtkDialogClass parent_class; 00038 00039 void (*geometry_save) (GschemDialog *dialog, 00040 GKeyFile *key_file, 00041 gchar *group_name); 00042 void (*geometry_restore) (GschemDialog *dialog, 00043 GKeyFile *key_file, 00044 gchar *group_name); 00045 }; 00046 00047 struct _GschemDialog { 00048 GtkDialog parent_instance; 00049 00050 gchar *settings_name; 00051 GSCHEM_TOPLEVEL *w_current; 00052 }; 00053 00054 00055 GType gschem_dialog_get_type (void); 00056 00057 GtkWidget* gschem_dialog_new_with_buttons (const gchar *title, GtkWindow *parent, GtkDialogFlags flags, 00058 const gchar *settings_name, GSCHEM_TOPLEVEL *w_current, 00059 const gchar *first_button_text, ...); 00060 00061 00062 #endif /* __GSCHEM_DIALOG_H__ */