oops
[pspp-builds.git] / src / ui / gui / data-editor.h
1 /* PSPPIRE - a graphical user interface for PSPP.
2    Copyright (C) 2006, 2007  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 DATA_EDITOR_H
19 #define DATA_EDITOR_H
20
21 #include <glade/glade.h>
22 #include <gtk/gtk.h>
23 #include "window-manager.h"
24
25 struct data_editor
26 {
27   struct editor_window parent;
28
29   GtkAction *action_data_new;
30   GtkAction *action_data_open;
31   GtkAction *action_data_save_as;
32   GtkAction *action_data_save;
33
34   GtkAction *invoke_text_import_assistant;
35
36   /* Actions which invoke dialog boxes */
37   GtkAction *invoke_weight_cases_dialog;
38   GtkAction *invoke_transpose_dialog;
39   GtkAction *invoke_split_file_dialog;
40   GtkAction *invoke_sort_cases_dialog;
41   GtkAction *invoke_compute_dialog;
42   GtkAction *invoke_comments_dialog;
43   GtkAction *invoke_select_cases_dialog;
44   GtkAction *invoke_goto_dialog;
45   GtkAction *invoke_variable_info_dialog;
46   GtkAction *invoke_find_dialog;
47   GtkAction *invoke_rank_dialog;
48   GtkAction *invoke_recode_same_dialog;
49   GtkAction *invoke_recode_different_dialog;
50
51   GtkAction *invoke_crosstabs_dialog;
52   GtkAction *invoke_descriptives_dialog;
53   GtkAction *invoke_frequencies_dialog;
54
55   GtkAction *invoke_t_test_independent_samples_dialog;
56   GtkAction *invoke_t_test_paired_samples_dialog;
57   GtkAction *invoke_oneway_anova_dialog;
58   GtkAction *invoke_t_test_one_sample_dialog;
59
60
61   /* Actions which do things */
62   GtkAction *insert_variable;
63   GtkAction *insert_case;
64   GtkAction *delete_variables;
65   GtkAction *delete_cases;
66
67   GtkToggleAction *toggle_value_labels;
68
69   GladeXML *xml;
70
71   GtkMenu *data_sheet_variable_popup_menu;
72   GtkMenu *data_sheet_cases_popup_menu;
73
74
75   gboolean save_as_portable;
76
77   /* Name of the file this data is associated with (ie, was loaded from or
78      has been  saved to), in "filename encoding",  or NULL, if it's not
79      associated with any file */
80   gchar *file_name;
81 };
82
83
84 struct data_editor * new_data_editor (void);
85
86 void new_data_window (GtkMenuItem *, gpointer);
87
88 void data_editor_select_sheet (struct data_editor *de, gint page);
89
90 enum {PAGE_DATA_SHEET = 0, PAGE_VAR_SHEET};
91
92
93 #endif