Aggregate Dialog: Convert from old fashioned method to PsppireDialogAction paradigm
[pspp] / src / ui / gui / psppire-dialog-action-aggregate.h
1 /* PSPPIRE - a graphical user interface for PSPP.
2    Copyright (C) 2015  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_AGGREGATE_H__
24 #define __PSPPIRE_DIALOG_ACTION_AGGREGATE_H__
25
26 G_BEGIN_DECLS
27
28
29 #define PSPPIRE_TYPE_DIALOG_ACTION_AGGREGATE (psppire_dialog_action_aggregate_get_type ())
30
31 #define PSPPIRE_DIALOG_ACTION_AGGREGATE(obj)    \
32                      (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
33                                                   PSPPIRE_TYPE_DIALOG_ACTION_AGGREGATE, PsppireDialogActionAggregate))
34
35 #define PSPPIRE_DIALOG_ACTION_AGGREGATE_CLASS(klass) \
36                      (G_TYPE_CHECK_CLASS_CAST ((klass), \
37                                  PSPPIRE_TYPE_DIALOG_ACTION_AGGREGATE, \
38                                  PsppireDialogActionAggregateClass))
39
40
41 #define PSPPIRE_IS_DIALOG_ACTION_AGGREGATE(obj) \
42                      (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PSPPIRE_TYPE_DIALOG_ACTION_AGGREGATE))
43
44 #define PSPPIRE_IS_DIALOG_ACTION_AGGREGATE_CLASS(klass) \
45                      (G_TYPE_CHECK_CLASS_TYPE ((klass), PSPPIRE_TYPE_DIALOG_ACTION_AGGREGATE))
46
47
48 #define PSPPIRE_DIALOG_ACTION_AGGREGATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \
49                                    PSPPIRE_TYPE_DIALOG_ACTION_AGGREGATE, \
50                                    PsppireDialogActionAggregateClass))
51
52 typedef struct _PsppireDialogActionAggregate       PsppireDialogActionAggregate;
53 typedef struct _PsppireDialogActionAggregateClass  PsppireDialogActionAggregateClass;
54
55
56 struct _PsppireDialogActionAggregate
57 {
58   PsppireDialogAction parent;
59
60   /*< private >*/
61   gboolean dispose_has_run ;
62
63   GtkWidget *break_variables;
64
65   GtkWidget *replace_radiobutton;
66   GtkWidget *add_radiobutton;
67   GtkWidget *filename_radiobutton;
68   GtkWidget *filename_button;
69   GtkWidget *filename_box;
70   GtkWidget *filename_label;
71
72   GtkWidget *function_combo;
73
74   GtkWidget *summary_acr;
75   GtkWidget *summary_var_name_entry;
76   GtkWidget *summary_var_label_entry;
77
78   GtkWidget *summary_sv;
79   GtkWidget *summary_sv_entry;
80
81   GtkWidget *summary_arg1;
82   GtkWidget *summary_arg2;
83
84   GtkWidget *summary_arg1_entry;
85   GtkWidget *summary_arg2_entry;
86
87   GtkWidget *sorted_button;
88   GtkWidget *needs_sort_button;
89
90   GtkWidget *pane;
91 };
92
93
94 struct _PsppireDialogActionAggregateClass
95 {
96   PsppireDialogActionClass parent_class;
97 };
98
99
100 GType psppire_dialog_action_aggregate_get_type (void) ;
101
102 G_END_DECLS
103
104 #endif /* __PSPPIRE_DIALOG_ACTION_AGGREGATE_H__ */