Change license from GPLv2+ to GPLv3+.
[pspp-builds.git] / src / ui / gui / data-editor.h
index d0c6d0905c39864387b82ec34c25f5a0c6c9b4ac..de3a0c9c93cae0df7615ae8e0b04dba103554b88 100644 (file)
@@ -1,21 +1,18 @@
-/*
-    PSPPIRE --- A Graphical User Interface for PSPP
-    Copyright (C) 2006  Free Software Foundation
+/* PSPPIRE - a graphical user interface for PSPP.
+   Copyright (C) 2006, 2007  Free Software Foundation
 
-    This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2 of the License, or
-    (at your option) any later version.
+   This program is free software: you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation, either version 3 of the License, or
+   (at your option) any later version.
 
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
 
-    You should have received a copy of the GNU General Public License
-    along with this program; if not, write to the Free Software
-    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-    02110-1301, USA. */
+   You should have received a copy of the GNU General Public License
+   along with this program.  If not, see <http://www.gnu.org/licenses/>. */
 
 
 #ifndef DATA_EDITOR_H
 struct data_editor
 {
   struct editor_window parent;
+
+  GtkAction *action_data_new;
+  GtkAction *action_data_open;
+  GtkAction *action_data_save_as;
+  GtkAction *action_data_save;
+
+  GtkAction *invoke_weight_cases_dialog;
+  GtkAction *invoke_transpose_dialog;
+  GtkAction *invoke_split_file_dialog;
+  GtkAction *invoke_sort_cases_dialog;
+  GtkAction *invoke_compute_dialog;
+  GtkAction *invoke_comments_dialog;
+
+  GtkAction *invoke_variable_info_dialog;
+
+
+  GtkAction *insert_variable;
+
   GladeXML *xml;
+
+  gboolean save_as_portable;
+
+  /* Name of the file this data is associated with (ie, was loaded from or
+     has been  saved to), in "filename encoding",  or NULL, if it's not
+     associated with any file */
+  gchar *file_name;
 };
 
 
@@ -36,9 +58,9 @@ struct data_editor * new_data_editor (void);
 
 void new_data_window (GtkMenuItem *, gpointer);
 
-void open_data_window (GtkMenuItem *, gpointer);
+void data_editor_select_sheet (struct data_editor *de, gint page);
 
-void data_editor_select_sheet(struct data_editor *de, gint page);
+enum {PAGE_DATA_SHEET = 0, PAGE_VAR_SHEET};
 
 
 #endif