1 /* PSPPIRE - a graphical user interface for PSPP. 2 Copyright (C) 2013 Free Software Foundation 3 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. 8 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. 13 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/>. */ 16 17 18 #include <glib-object.h> 19 #include <glib.h> 20 21 #include "psppire-dialog-action.h" 22 23 #ifndef __PSPPIRE_DIALOG_ACTION_TWO_SAMPLE_H__ 24 #define __PSPPIRE_DIALOG_ACTION_TWO_SAMPLE_H__ 25 26 G_BEGIN_DECLS 27 28 29 #define PSPPIRE_TYPE_DIALOG_ACTION_TWO_SAMPLE (psppire_dialog_action_two_sample_get_type ()) 30 31 #define PSPPIRE_DIALOG_ACTION_TWO_SAMPLE(obj) \ 32 (G_TYPE_CHECK_INSTANCE_CAST ((obj), \ 33 PSPPIRE_TYPE_DIALOG_ACTION_TWO_SAMPLE, PsppireDialogActionTwoSample)) 34 35 #define PSPPIRE_DIALOG_ACTION_TWO_SAMPLE_CLASS(klass) \ 36 (G_TYPE_CHECK_CLASS_CAST ((klass), \ 37 PSPPIRE_TYPE_DIALOG_ACTION_TWO_SAMPLE, \ 38 PsppireDialogActionTwoSampleClass)) 39 40 41 #define PSPPIRE_IS_DIALOG_ACTION_TWO_SAMPLE(obj) \ 42 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PSPPIRE_TYPE_DIALOG_ACTION_TWO_SAMPLE)) 43 44 #define PSPPIRE_IS_DIALOG_ACTION_TWO_SAMPLE_CLASS(klass) \ 45 (G_TYPE_CHECK_CLASS_TYPE ((klass), PSPPIRE_TYPE_DIALOG_ACTION_TWO_SAMPLE)) 46 47 48 #define PSPPIRE_DIALOG_ACTION_TWO_SAMPLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \ 49 PSPPIRE_TYPE_DIALOG_ACTION_TWO_SAMPLE, \ 50 PsppireDialogActionTwoSampleClass)) 51 52 typedef struct _PsppireDialogActionTwoSample PsppireDialogActionTwoSample; 53 typedef struct _PsppireDialogActionTwoSampleClass PsppireDialogActionTwoSampleClass; 54 55 56 enum test 57 { 58 NT_WILCOXON, 59 NT_SIGN, 60 NT_MCNEMAR, 61 n_Tests 62 }; 63 64 struct ts_test 65 { 66 GtkWidget *button; 67 char syntax[16]; 68 }; 69 70 struct _PsppireDialogActionTwoSample 71 { 72 PsppireDialogAction parent; 73 74 /*< private >*/ 75 gboolean dispose_has_run; 76 77 GtkWidget *pairs_treeview ; 78 GtkListStore *list_store ; 79 struct ts_test nts[n_Tests]; 80 }; 81 82 83 struct _PsppireDialogActionTwoSampleClass 84 { 85 PsppireDialogActionClass parent_class; 86 }; 87 88 89 GType psppire_dialog_action_two_sample_get_type (void) ; 90 91 G_END_DECLS 92 93 #endif /* __PSPPIRE_DIALOG_ACTION_TWO_SAMPLE_H__ */ 94