1 /* PSPPIRE - a graphical user interface for PSPP.
2 Copyright (C) 2007 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/>. */
22 #include <glade/glade-build.h>
23 #include "psppire-dialog.h"
24 #include "psppire-selector.h"
25 #include "psppire-acr.h"
26 #include "psppire-keypad.h"
27 #include "psppire-hbuttonbox.h"
28 #include "psppire-vbuttonbox.h"
30 GLADE_MODULE_CHECK_INIT
32 /* Glade registration functions for PSPPIRE custom widgets */
35 dialog_find_internal_child (GladeXML *xml,
37 const gchar *childname)
39 if (!strcmp(childname, "hbox"))
40 return PSPPIRE_DIALOG (parent)->box;
46 glade_module_register_widgets (void)
48 glade_register_widget (PSPPIRE_DIALOG_TYPE, NULL,
49 glade_standard_build_children,
50 dialog_find_internal_child);
53 glade_register_widget (PSPPIRE_VBUTTON_BOX_TYPE, NULL,
54 glade_standard_build_children,
57 glade_register_widget (PSPPIRE_HBUTTON_BOX_TYPE, NULL,
58 glade_standard_build_children,
61 glade_register_widget (PSPPIRE_SELECTOR_TYPE, NULL,
62 glade_standard_build_children,
65 glade_register_widget (PSPPIRE_KEYPAD_TYPE, NULL,
66 glade_standard_build_children,
69 glade_register_widget (PSPPIRE_ACR_TYPE, NULL,
70 glade_standard_build_children,