1 /* PSPPIRE - a graphical user interface for PSPP.
2 Copyright (C) 2012 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/>. */
18 #ifndef __PSPPIRE_DIALOG_ACTION_FACTOR_H__
19 #define __PSPPIRE_DIALOG_ACTION_FACTOR_H__
21 #include <glib-object.h>
24 #include "psppire-dialog-action.h"
29 #define PSPPIRE_TYPE_DIALOG_ACTION_FACTOR (psppire_dialog_action_factor_get_type ())
31 #define PSPPIRE_DIALOG_ACTION_FACTOR(obj) \
32 (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
33 PSPPIRE_TYPE_DIALOG_ACTION_FACTOR, PsppireDialogActionFactor))
35 #define PSPPIRE_DIALOG_ACTION_FACTOR_CLASS(klass) \
36 (G_TYPE_CHECK_CLASS_CAST ((klass), \
37 PSPPIRE_TYPE_DIALOG_ACTION_FACTOR, \
38 PsppireDialogActionFactorClass))
41 #define PSPPIRE_IS_DIALOG_ACTION_FACTOR(obj) \
42 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PSPPIRE_TYPE_DIALOG_ACTION_FACTOR))
44 #define PSPPIRE_IS_DIALOG_ACTION_FACTOR_CLASS(klass) \
45 (G_TYPE_CHECK_CLASS_TYPE ((klass), PSPPIRE_TYPE_DIALOG_ACTION_FACTOR))
48 #define PSPPIRE_DIALOG_ACTION_FACTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \
49 PSPPIRE_TYPE_DIALOG_ACTION_FACTOR, \
50 PsppireDialogActionFactorClass))
52 typedef struct _PsppireDialogActionFactor PsppireDialogActionFactor;
53 typedef struct _PsppireDialogActionFactorClass PsppireDialogActionFactorClass;
63 struct rotation_parameters
65 gboolean rotated_solution;
68 enum rotation_type method;
71 struct extraction_parameters
77 gboolean explicit_nfactors;
87 struct _PsppireDialogActionFactor
89 PsppireDialogAction parent;
92 GtkWidget *variables ;
94 /* The Extraction subdialog */
95 GtkWidget *extraction_dialog;
96 GtkWidget *rotation_dialog;
100 GtkWidget *extract_iterations;
102 GtkWidget *nfactors_toggle;
103 GtkWidget *mineigen_toggle;
105 GtkWidget *covariance_toggle;
106 GtkWidget *correlation_toggle;
108 GtkWidget *scree_button;
109 GtkWidget *unrotated_button;
111 GtkWidget *extraction_combo;
114 /* Rotation Widgets */
115 GtkWidget *rotate_iterations;
116 GtkWidget *display_rotated_solution;
117 GtkWidget *rotation_none;
118 GtkWidget *rotation_varimax;
119 GtkWidget *rotation_quartimax;
120 GtkWidget *rotation_equimax;
123 struct extraction_parameters extraction;
124 struct rotation_parameters rotation;
128 struct _PsppireDialogActionFactorClass
130 PsppireDialogActionClass parent_class;
134 GType psppire_dialog_action_factor_get_type (void) ;
138 #endif /* __PSPPIRE_DIALOG_ACTION_FACTOR_H__ */