7100e34eb87baa167bc2b238c9d5d650e5672749
[pspp-builds.git] / src / ui / gui / data-editor.h
1 /*
2     PSPPIRE --- A Graphical User Interface for PSPP
3     Copyright (C) 2006, 2007  Free Software Foundation
4
5     This program is free software; you can redistribute it and/or modify
6     it under the terms of the GNU General Public License as published by
7     the Free Software Foundation; either version 2 of the License, or
8     (at your option) any later version.
9
10     This program is distributed in the hope that it will be useful,
11     but WITHOUT ANY WARRANTY; without even the implied warranty of
12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13     GNU General Public License for more details.
14
15     You should have received a copy of the GNU General Public License
16     along with this program; if not, write to the Free Software
17     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18     02110-1301, USA. */
19
20
21 #ifndef DATA_EDITOR_H
22 #define DATA_EDITOR_H
23
24 #include <glade/glade.h>
25 #include <gtk/gtk.h>
26 #include "window-manager.h"
27
28 struct data_editor
29 {
30   struct editor_window parent;
31
32   GtkAction *action_data_new;
33   GtkAction *action_data_open;
34   GtkAction *action_data_save_as;
35   GtkAction *action_data_save;
36
37   GtkAction *invoke_weight_cases_dialog;
38   GtkAction *invoke_transpose_dialog;
39
40   GladeXML *xml;
41
42   gboolean save_as_portable;
43
44   /* Name of the file this data is associated with (ie, was loaded from or
45      has been  saved to), in "filename encoding",  or NULL, if it's not
46      associated with any file */
47   gchar *file_name;
48 };
49
50
51 struct data_editor * new_data_editor (void);
52
53 void new_data_window (GtkMenuItem *, gpointer);
54
55 void data_editor_select_sheet (struct data_editor *de, gint page);
56
57
58 #endif