2 PSPPIRE --- A Graphical User Interface for PSPP
3 Copyright (C) 2007 Free Software Foundation
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21 #ifndef __PSPPIRE_BUTTONBOX_H__
22 #define __PSPPIRE_BUTTONBOX_H__
26 #include <glib-object.h>
27 #include <gtk/gtkbbox.h>
31 #define PSPPIRE_BUTTONBOX_TYPE (psppire_button_box_get_type ())
32 #define PSPPIRE_BUTTONBOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PSPPIRE_BUTTONBOX_TYPE, PsppireButtonBox))
33 #define PSPPIRE_BUTTONBOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PSPPIRE_BUTTONBOX_TYPE, PsppireButtonBoxClass))
34 #define PSPPIRE_IS_BUTTONBOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PSPPIRE_BUTTONBOX_TYPE))
35 #define PSPPIRE_IS_BUTTONBOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PSPPIRE_BUTTONBOX_TYPE))
38 typedef struct _PsppireButtonBox PsppireButtonBox;
39 typedef struct _PsppireButtonBoxClass PsppireButtonBoxClass;
43 PSPPIRE_BUTTON_OK = 0,
45 PSPPIRE_BUTTON_CONTINUE,
46 PSPPIRE_BUTTON_CANCEL,
50 n_PsppireButtonBoxButtons
53 struct _PsppireButtonBox
58 GtkWidget *button[n_PsppireButtonBoxButtons];
61 struct _PsppireButtonBoxClass
63 GtkButtonBoxClass parent_class;
66 GType psppire_button_box_get_type (void);
69 /* Internal function. Do not use */
71 _psppire_button_box_child_requisition (GtkWidget *widget,
73 int *nvis_secondaries,
77 #define G_TYPE_PSPPIRE_BUTTON_MASK \
78 (psppire_button_flags_get_type())
83 #endif /* __PSPPIRE_BUTTONBOX_H__ */