1 /* PSPPIRE - a graphical user interface for PSPP.
2 Copyright (C) 2008 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/>. */
18 #ifndef __PSPPIRE_DATA_WINDOW_H__
19 #define __PSPPIRE_DATA_WINDOW_H__
23 #include <glib-object.h>
24 #include <gtk/gtkaction.h>
25 #include "psppire-window.h"
26 #include "psppire-data-editor.h"
27 #include <glade/glade.h>
32 #define PSPPIRE_DATA_WINDOW_TYPE (psppire_data_window_get_type ())
33 #define PSPPIRE_DATA_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PSPPIRE_DATA_WINDOW_TYPE, PsppireDataWindow))
34 #define PSPPIRE_DATA_WINDOW_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), \
35 PSPPIRE_DATA_WINDOW_TYPE, PsppireData_WindowClass))
36 #define PSPPIRE_IS_DATA_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
37 PSPPIRE_DATA_WINDOW_TYPE))
38 #define PSPPIRE_IS_DATA_WINDOW_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), \
39 PSPPIRE_DATA_WINDOW_TYPE))
42 typedef struct _PsppireDataWindow PsppireDataWindow;
43 typedef struct _PsppireDataWindowClass PsppireDataWindowClass;
46 struct _PsppireDataWindow
51 PsppireDataEditor *data_editor;
54 GtkAction *action_data_new;
55 GtkAction *action_data_open;
56 GtkAction *action_data_save_as;
57 GtkAction *action_data_save;
59 GtkAction *invoke_text_import_assistant;
61 /* Actions which invoke dialog boxes */
62 GtkAction *invoke_weight_cases_dialog;
63 GtkAction *invoke_transpose_dialog;
64 GtkAction *invoke_split_file_dialog;
65 GtkAction *invoke_sort_cases_dialog;
66 GtkAction *invoke_compute_dialog;
67 GtkAction *invoke_comments_dialog;
68 GtkAction *invoke_select_cases_dialog;
69 GtkAction *invoke_goto_dialog;
70 GtkAction *invoke_variable_info_dialog;
71 GtkAction *invoke_find_dialog;
72 GtkAction *invoke_rank_dialog;
73 GtkAction *invoke_recode_same_dialog;
74 GtkAction *invoke_recode_different_dialog;
76 GtkAction *invoke_crosstabs_dialog;
77 GtkAction *invoke_descriptives_dialog;
78 GtkAction *invoke_frequencies_dialog;
79 GtkAction *invoke_examine_dialog;
80 GtkAction *invoke_regression_dialog;
82 GtkAction *invoke_t_test_independent_samples_dialog;
83 GtkAction *invoke_t_test_paired_samples_dialog;
84 GtkAction *invoke_oneway_anova_dialog;
85 GtkAction *invoke_t_test_one_sample_dialog;
88 GtkAction *insert_variable;
89 GtkAction *insert_case;
90 GtkAction *delete_variables;
91 GtkAction *delete_cases;
94 GtkMenu *data_sheet_variable_popup_menu;
95 GtkMenu *data_sheet_cases_popup_menu;
96 GtkMenu *var_sheet_variable_popup_menu;
99 gboolean save_as_portable;
101 /* Name of the file this data is associated with (ie, was loaded from or
102 has been saved to), in "filename encoding", or NULL, if it's not
103 associated with any file */
107 struct _PsppireDataWindowClass
109 PsppireWindowClass parent_class;
112 GType psppire_data_window_get_type (void);
113 GtkWidget* psppire_data_window_new (void);
114 void psppire_data_window_load_file (PsppireDataWindow *, const gchar *);
119 #endif /* __PSPPIRE_DATA_WINDOW_H__ */