Move data-editor.c to psppire-data-window.c
[pspp-builds.git] / src / ui / gui / psppire-data-window.h
diff --git a/src/ui/gui/psppire-data-window.h b/src/ui/gui/psppire-data-window.h
new file mode 100644 (file)
index 0000000..13d59a0
--- /dev/null
@@ -0,0 +1,122 @@
+/* PSPPIRE - a graphical user interface for PSPP.
+   Copyright (C) 2008  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 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.
+
+   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 __PSPPIRE_DATA_WINDOW_H__
+#define __PSPPIRE_DATA_WINDOW_H__
+
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtkaction.h>
+#include "psppire-window.h"
+#include "psppire-data-editor.h"
+#include <glade/glade.h>
+#include <gtk/gtk.h>
+
+G_BEGIN_DECLS
+
+#define PSPPIRE_DATA_WINDOW_TYPE            (psppire_data_window_get_type ())
+#define PSPPIRE_DATA_WINDOW(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), PSPPIRE_DATA_WINDOW_TYPE, PsppireDataWindow))
+#define PSPPIRE_DATA_WINDOW_CLASS(class)    (G_TYPE_CHECK_CLASS_CAST ((class), \
+    PSPPIRE_DATA_WINDOW_TYPE, PsppireData_WindowClass))
+#define PSPPIRE_IS_DATA_WINDOW(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
+    PSPPIRE_DATA_WINDOW_TYPE))
+#define PSPPIRE_IS_DATA_WINDOW_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), \
+    PSPPIRE_DATA_WINDOW_TYPE))
+
+
+typedef struct _PsppireDataWindow       PsppireDataWindow;
+typedef struct _PsppireDataWindowClass  PsppireDataWindowClass;
+
+
+struct _PsppireDataWindow
+{
+  PsppireWindow parent;
+
+  /* <private> */
+  PsppireDataEditor *data_editor;
+  GladeXML *xml;
+  GtkAction *action_data_new;
+  GtkAction *action_data_open;
+  GtkAction *action_data_save_as;
+  GtkAction *action_data_save;
+
+  GtkAction *invoke_text_import_assistant;
+
+  /* Actions which invoke dialog boxes */
+  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_select_cases_dialog;
+  GtkAction *invoke_goto_dialog;
+  GtkAction *invoke_variable_info_dialog;
+  GtkAction *invoke_find_dialog;
+  GtkAction *invoke_rank_dialog;
+  GtkAction *invoke_recode_same_dialog;
+  GtkAction *invoke_recode_different_dialog;
+
+  GtkAction *invoke_crosstabs_dialog;
+  GtkAction *invoke_descriptives_dialog;
+  GtkAction *invoke_frequencies_dialog;
+  GtkAction *invoke_examine_dialog;
+  GtkAction *invoke_regression_dialog;
+
+  GtkAction *invoke_t_test_independent_samples_dialog;
+  GtkAction *invoke_t_test_paired_samples_dialog;
+  GtkAction *invoke_oneway_anova_dialog;
+  GtkAction *invoke_t_test_one_sample_dialog;
+
+  GtkToggleAction *toggle_split_window;
+  GtkToggleAction *toggle_value_labels;
+
+
+  GtkAction *insert_variable;
+  GtkAction *insert_case;
+  GtkAction *delete_variables;
+  GtkAction *delete_cases;
+
+
+  GtkMenu *data_sheet_variable_popup_menu;
+  GtkMenu *data_sheet_cases_popup_menu;
+  GtkMenu *var_sheet_variable_popup_menu;
+
+
+  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;
+};
+
+struct _PsppireDataWindowClass
+{
+  PsppireWindowClass parent_class;
+};
+
+GType      psppire_data_window_get_type        (void);
+GtkWidget* psppire_data_window_new             (void);
+
+void create_data_window (void);
+
+
+G_END_DECLS
+
+#endif /* __PSPPIRE_DATA_WINDOW_H__ */