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-keypad.h"
26 #include "psppire-hbuttonbox.h"
27 #include "psppire-vbuttonbox.h"
29 GLADE_MODULE_CHECK_INIT
31 /* Glade registration functions for PSPPIRE custom widgets */
34 dialog_find_internal_child (GladeXML *xml,
36 const gchar *childname)
38 if (!strcmp(childname, "hbox"))
39 return PSPPIRE_DIALOG (parent)->box;
45 glade_module_register_widgets (void)
47 glade_register_widget (PSPPIRE_DIALOG_TYPE, NULL,
48 glade_standard_build_children,
49 dialog_find_internal_child);
52 glade_register_widget (PSPPIRE_VBUTTON_BOX_TYPE, NULL,
53 glade_standard_build_children,
56 glade_register_widget (PSPPIRE_HBUTTON_BOX_TYPE, NULL,
57 glade_standard_build_children,
60 glade_register_widget (PSPPIRE_SELECTOR_TYPE, NULL,
61 glade_standard_build_children,
64 glade_register_widget (PSPPIRE_KEYPAD_TYPE, NULL,
65 glade_standard_build_children,