1 /* PSPPIRE - a graphical user interface for PSPP.
2 Copyright (C) 2007, 2010, 2011, 2012 Free Software Foundation
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>. */
18 #ifndef __PSPPIRE_BUTTON_BOX_H__
19 #define __PSPPIRE_BUTTON_BOX_H__
23 #include <glib-object.h>
28 #define PSPPIRE_BUTTON_BOX_TYPE (psppire_button_box_get_type ())
29 #define PSPPIRE_BUTTON_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PSPPIRE_BUTTON_BOX_TYPE, PsppireButtonBox))
30 #define PSPPIRE_BUTTON_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PSPPIRE_BUTTON_BOX_TYPE, PsppireButtonBoxClass))
31 #define PSPPIRE_IS_BUTTON_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PSPPIRE_BUTTON_BOX_TYPE))
32 #define PSPPIRE_IS_BUTTON_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PSPPIRE_BUTTON_BOX_TYPE))
35 typedef struct _PsppireButtonBox PsppireButtonBox;
36 typedef struct _PsppireButtonBoxClass PsppireButtonBoxClass;
41 PSPPIRE_BUTTON_OK = 0,
43 PSPPIRE_BUTTON_CONTINUE,
44 PSPPIRE_BUTTON_CANCEL,
49 n_PsppireButtonBoxButtons
54 PSPPIRE_BUTTON_OK_MASK = (1 << PSPPIRE_BUTTON_OK),
55 PSPPIRE_BUTTON_GOTO_MASK = (1 << PSPPIRE_BUTTON_GOTO),
56 PSPPIRE_BUTTON_CONTINUE_MASK = (1 << PSPPIRE_BUTTON_CONTINUE),
57 PSPPIRE_BUTTON_CANCEL_MASK = (1 << PSPPIRE_BUTTON_CANCEL),
58 PSPPIRE_BUTTON_CLOSE_MASK = (1 << PSPPIRE_BUTTON_CLOSE),
59 PSPPIRE_BUTTON_HELP_MASK = (1 << PSPPIRE_BUTTON_HELP),
60 PSPPIRE_BUTTON_RESET_MASK = (1 << PSPPIRE_BUTTON_RESET),
61 PSPPIRE_BUTTON_PASTE_MASK = (1 << PSPPIRE_BUTTON_PASTE)
64 struct _PsppireButtonBox
69 GtkWidget *button[n_PsppireButtonBoxButtons];
73 struct _PsppireButtonBoxClass
75 GtkButtonBoxClass parent_class;
78 GType psppire_button_box_get_type (void);
79 GtkWidget* psppire_button_box_new (void);
82 #define PSPPIRE_TYPE_BUTTON_MASK psppire_button_flags_get_type()
86 #endif /* __PSPPIRE_BUTTON_BOX_H__ */