1 /* PSPPIRE - a graphical user interface for PSPP.
2 Copyright (C) 2006, 2007 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/>. */
21 #include <glade/glade.h>
23 #include "window-manager.h"
27 struct editor_window parent;
29 GtkAction *action_data_new;
30 GtkAction *action_data_open;
31 GtkAction *action_data_save_as;
32 GtkAction *action_data_save;
34 /* Actions which invoke dialog boxes */
35 GtkAction *invoke_weight_cases_dialog;
36 GtkAction *invoke_transpose_dialog;
37 GtkAction *invoke_split_file_dialog;
38 GtkAction *invoke_sort_cases_dialog;
39 GtkAction *invoke_compute_dialog;
40 GtkAction *invoke_comments_dialog;
41 GtkAction *invoke_select_cases_dialog;
42 GtkAction *invoke_goto_dialog;
43 GtkAction *invoke_variable_info_dialog;
44 GtkAction *invoke_find_dialog;
45 GtkAction *invoke_descriptives_dialog;
47 GtkAction *invoke_t_test_independent_samples_dialog;
50 /* Actions which do things */
51 GtkAction *insert_variable;
52 GtkAction *insert_case;
53 GtkAction *delete_variables;
54 GtkAction *delete_cases;
56 GtkToggleAction *toggle_value_labels;
60 GtkMenu *data_sheet_variable_popup_menu;
61 GtkMenu *data_sheet_cases_popup_menu;
64 gboolean save_as_portable;
66 /* Name of the file this data is associated with (ie, was loaded from or
67 has been saved to), in "filename encoding", or NULL, if it's not
68 associated with any file */
73 struct data_editor * new_data_editor (void);
75 void new_data_window (GtkMenuItem *, gpointer);
77 void data_editor_select_sheet (struct data_editor *de, gint page);
79 enum {PAGE_DATA_SHEET = 0, PAGE_VAR_SHEET};