Oneway Dialog: Remove deprecated properties
[pspp] / src / ui / gui / psppire-dialog-action-examine.h
1 /* PSPPIRE - a graphical user interface for PSPP.
2    Copyright (C) 2012, 2020  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 #ifndef __PSPPIRE_DIALOG_ACTION_EXAMINE_H__
19 #define __PSPPIRE_DIALOG_ACTION_EXAMINE_H__
20
21 #include <glib-object.h>
22 #include <glib.h>
23
24 #include "psppire-dialog-action.h"
25
26 G_BEGIN_DECLS
27
28
29 #define PSPPIRE_TYPE_DIALOG_ACTION_EXAMINE (psppire_dialog_action_examine_get_type ())
30
31 #define PSPPIRE_DIALOG_ACTION_EXAMINE(obj)      \
32                      (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
33                                                   PSPPIRE_TYPE_DIALOG_ACTION_EXAMINE, PsppireDialogActionExamine))
34
35 #define PSPPIRE_DIALOG_ACTION_EXAMINE_CLASS(klass) \
36                      (G_TYPE_CHECK_CLASS_CAST ((klass), \
37                                  PSPPIRE_TYPE_DIALOG_ACTION_EXAMINE, \
38                                  PsppireDialogActionExamineClass))
39
40
41 #define PSPPIRE_IS_DIALOG_ACTION_EXAMINE(obj) \
42                      (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PSPPIRE_TYPE_DIALOG_ACTION_EXAMINE))
43
44 #define PSPPIRE_IS_DIALOG_ACTION_EXAMINE_CLASS(klass) \
45                      (G_TYPE_CHECK_CLASS_TYPE ((klass), PSPPIRE_TYPE_DIALOG_ACTION_EXAMINE))
46
47
48 #define PSPPIRE_DIALOG_ACTION_EXAMINE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \
49                                    PSPPIRE_TYPE_DIALOG_ACTION_EXAMINE, \
50                                    PsppireDialogActionExamineClass))
51
52 typedef struct _PsppireDialogActionExamine       PsppireDialogActionExamine;
53 typedef struct _PsppireDialogActionExamineClass  PsppireDialogActionExamineClass;
54
55
56 enum PsppireDialogActionExamineOpts
57   {
58     OPT_LISTWISE,
59     OPT_PAIRWISE,
60     OPT_REPORT
61   };
62
63 enum PsppireDialogActionExaminePlotsBoxplots
64   {
65    BOXPLOT_FACTORS,
66    BOXPLOT_DEPENDENTS,
67    BOXPLOT_NONE
68   };
69
70 enum PsppireDialogActionExaminePlotsSpreadlevel
71   {
72    SPREAD_NONE,
73    SPREAD_POWER,
74    SPREAD_TRANS,
75    SPREAD_UNTRANS
76   };
77
78 enum PsppireDialogActionExaminePlotsSpreadpower
79   {
80    SPREADPOWER_NATLOG,
81    SPREADPOWER_CUBE,
82    SPREADPOWER_SQUARE,
83    SPREADPOWER_SQUAREROOT,
84    SPREADPOWER_RECROOT,
85    SPREADPOWER_RECIPROCAL
86   };
87
88 struct _PsppireDialogActionExamine
89 {
90   PsppireDialogAction parent;
91
92   /*< private >*/
93   GtkWidget *variables;
94   GtkWidget *factors;
95   GtkWidget *id_var;
96
97   GtkWidget *display_both_button;
98   GtkWidget *display_stats_button;
99   GtkWidget *display_plots_button;
100
101   /* The stats dialog */
102   GtkWidget *stats_dialog;
103   GtkWidget *descriptives_button;
104   GtkWidget *extremes_button;
105   GtkWidget *percentiles_button;
106   guint stats;
107
108   /* The options dialog */
109   GtkWidget *opts_dialog;
110   GtkWidget *listwise;
111   GtkWidget *pairwise;
112   GtkWidget *report;
113   enum PsppireDialogActionExamineOpts opts;
114
115   /* The plots dialog */
116   GtkWidget *plots_dialog;
117   GtkWidget *boxplot_factors_button;
118   GtkWidget *boxplot_dependents_button;
119   GtkWidget *boxplot_none_button;
120   enum PsppireDialogActionExaminePlotsBoxplots boxplots;
121   GtkWidget *histogram_button;
122   bool histogram;
123   GtkWidget *npplots_button;
124   bool npplots;
125   GtkWidget *spread_none_button;
126   GtkWidget *spread_power_button;
127   GtkWidget *spread_trans_button;
128   GtkWidget *spread_untrans_button;
129   enum PsppireDialogActionExaminePlotsSpreadlevel spreadlevel;
130   GtkWidget *spread_power_combo;
131   enum PsppireDialogActionExaminePlotsSpreadpower spreadpower;
132
133 };
134
135
136 struct _PsppireDialogActionExamineClass
137 {
138   PsppireDialogActionClass parent_class;
139 };
140
141
142 GType psppire_dialog_action_examine_get_type (void) ;
143
144 G_END_DECLS
145
146 #endif /* __PSPPIRE_DIALOG_ACTION_EXAMINE_H__ */