contrib/gmk_sym: Fix missing break
[geda-gaf.git] / gschem / include / gschem_dialog.h
blob11c747712fb1fc359c2fb8b7a2ae3acb37825b11
1 /* gEDA - GPL Electronic Design Automation
2 * gschem - gEDA Schematic Capture
3 * Copyright (C) 1998-2010 Ales Hvezda
4 * Copyright (C) 1998-2019 gEDA Contributors (see ChangeLog for details)
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22 #ifndef __GSCHEM_DIALOG_H__
23 #define __GSCHEM_DIALOG_H__
26 #define GSCHEM_TYPE_DIALOG (gschem_dialog_get_type())
27 #define GSCHEM_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GSCHEM_TYPE_DIALOG, GschemDialog))
28 #define GSCHEM_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GSCHEM_TYPE_DIALOG, GschemDialogClass))
29 #define GSCHEM_IS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GSCHEM_TYPE_DIALOG))
30 #define GSCHEM_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GSCHEM_TYPE_DIALOG, GschemDialogClass))
32 typedef struct _GschemDialogClass GschemDialogClass;
33 typedef struct _GschemDialog GschemDialog;
36 struct _GschemDialogClass {
37 GtkDialogClass parent_class;
39 void (*geometry_save) (GschemDialog *dialog,
40 EdaConfig *cfg,
41 gchar *group_name);
42 void (*geometry_restore) (GschemDialog *dialog,
43 EdaConfig *cfg,
44 gchar *group_name);
47 struct _GschemDialog {
48 GtkDialog parent_instance;
50 gchar *settings_name;
51 GschemToplevel *w_current;
55 GType gschem_dialog_get_type (void);
57 GtkWidget* gschem_dialog_new_with_buttons (const gchar *title, GtkWindow *parent, GtkDialogFlags flags,
58 const gchar *settings_name, GschemToplevel *w_current,
59 const gchar *first_button_text, ...);
62 #endif /* __GSCHEM_DIALOG_H__ */