T-TEST Independent Samples Dialog: Converted to a PsppireDialogAction object
[pspp] / src / ui / gui / psppire-dialog-action-indep-samps.h
1 /* PSPPIRE - a graphical user interface for PSPP.
2    Copyright (C) 2012  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_INDEP_SAMPS_H__
24 #define __PSPPIRE_DIALOG_ACTION_INDEP_SAMPS_H__
25
26 G_BEGIN_DECLS
27
28
29 #define PSPPIRE_TYPE_DIALOG_ACTION_INDEP_SAMPS (psppire_dialog_action_indep_samps_get_type ())
30
31 #define PSPPIRE_DIALOG_ACTION_INDEP_SAMPS(obj)  \
32                      (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
33                                                   PSPPIRE_TYPE_DIALOG_ACTION_INDEP_SAMPS, PsppireDialogActionIndepSamps))
34
35 #define PSPPIRE_DIALOG_ACTION_INDEP_SAMPS_CLASS(klass) \
36                      (G_TYPE_CHECK_CLASS_CAST ((klass), \
37                                  PSPPIRE_TYPE_DIALOG_ACTION_INDEP_SAMPS, \
38                                  PsppireDialogActionIndepSampsClass))
39
40
41 #define PSPPIRE_IS_DIALOG_ACTION_INDEP_SAMPS(obj) \
42                      (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PSPPIRE_TYPE_DIALOG_ACTION_INDEP_SAMPS))
43
44 #define PSPPIRE_IS_DIALOG_ACTION_INDEP_SAMPS_CLASS(klass) \
45                      (G_TYPE_CHECK_CLASS_TYPE ((klass), PSPPIRE_TYPE_DIALOG_ACTION_INDEP_SAMPS))
46
47
48 #define PSPPIRE_DIALOG_ACTION_INDEP_SAMPS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \
49                                    PSPPIRE_TYPE_DIALOG_ACTION_INDEP_SAMPS, \
50                                    PsppireDialogActionIndepSampsClass))
51
52 typedef struct _PsppireDialogActionIndepSamps       PsppireDialogActionIndepSamps;
53 typedef struct _PsppireDialogActionIndepSampsClass  PsppireDialogActionIndepSampsClass;
54
55
56 enum group_definition
57   {
58     GROUPS_UNDEF,
59     GROUPS_VALUES,
60     GROUPS_CUT_POINT
61   };
62
63 struct tt_options_dialog;
64
65 struct _PsppireDialogActionIndepSamps
66 {
67   PsppireDialogAction parent;
68
69   /*< private >*/
70   gboolean dispose_has_run ;
71
72   GtkWidget *test_vars_tv;
73   GtkWidget *def_grps_dialog;
74   GtkWidget *define_groups_button;
75   GtkWidget *options_button;
76
77   /* The variable which determines to which group a datum belongs */
78   const struct variable *grp_var;
79
80   /* The GtkEntry which holds the reference to the above variable */
81   GtkWidget *group_var_entry;
82
83   /* The define groups subdialog */
84   GtkWidget *dg_dialog;
85   GtkWidget *dg_label;
86   GtkWidget *dg_table1;
87   GtkWidget *dg_table2;
88   GtkWidget *dg_hbox1;
89   GtkWidget *dg_box;
90
91   GtkWidget *dg_values_toggle_button;
92   GtkWidget *dg_cut_point_toggle_button;
93
94   GtkWidget *dg_grp_entry[2];
95   GtkWidget *dg_cut_point_entry;
96
97   enum group_definition group_defn;
98
99   union value grp_val[2];
100   union value cut_point;
101
102   /* The options dialog */
103   struct tt_options_dialog *opts;
104 };
105
106
107 struct _PsppireDialogActionIndepSampsClass
108 {
109   PsppireDialogActionClass parent_class;
110 };
111
112
113 GType psppire_dialog_action_indep_samps_get_type (void) ;
114
115 G_END_DECLS
116
117 #endif /* __PSPPIRE_DIALOG_ACTION_INDEP_SAMPS_H__ */