281e1f0d631e9c2e007a32f055ac5dda698c74e3
[pspp-builds.git] / src / ui / gui / menu-actions.h
1 /* 
2     PSPPIRE --- A Graphical User Interface for PSPP
3     Copyright (C) 2004  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 #ifndef MENU_ACTIONS_H
21 #define MENU_ACTIONS_H 
22
23 #include <gtk/gtk.h>
24
25
26 void
27 on_new1_activate                       (GtkMenuItem     *menuitem,
28                                         gpointer         user_data);
29
30 void
31 on_open1_activate                      (GtkMenuItem     *menuitem,
32                                         gpointer         user_data);
33
34 void
35 on_save1_activate                      (GtkMenuItem     *menuitem,
36                                         gpointer         user_data);
37
38 void
39 on_save_as1_activate                   (GtkMenuItem     *menuitem,
40                                         gpointer         user_data);
41
42 void
43 on_quit1_activate                      (GtkMenuItem     *menuitem,
44                                         gpointer         user_data);
45
46 void
47 on_cut1_activate                       (GtkMenuItem     *menuitem,
48                                         gpointer         user_data);
49
50 void
51 on_copy1_activate                      (GtkMenuItem     *menuitem,
52                                         gpointer         user_data);
53
54 void
55 on_paste1_activate                     (GtkMenuItem     *menuitem,
56                                         gpointer         user_data);
57
58 void
59 on_delete1_activate                    (GtkMenuItem     *menuitem,
60                                         gpointer         user_data);
61
62 void
63 on_about1_activate                     (GtkMenuItem     *menuitem,
64                                         gpointer         user_data);
65
66 GtkWidget*
67 psppire_data_sheet_create (gchar *widget_name, gchar *string1, gchar *string2,
68                 gint int1, gint int2);
69
70 GtkWidget*
71 psppire_data_sheet_create (gchar *widget_name, gchar *string1, gchar *string2,
72                 gint int1, gint int2);
73
74 GtkWidget*
75 psppire_variable_sheet_create (gchar *widget_name, gchar *string1, gchar *string2,
76                 gint int1, gint int2);
77
78
79 /* Switch between the VAR SHEET and the DATA SHEET */
80 enum {PAGE_DATA_SHEET = 0, PAGE_VAR_SHEET};
81
82 gboolean load_system_file(const gchar *file_name);
83 gboolean clear_file(void);
84
85 void select_sheet(gint page);
86 void var_data_selection_init(void);
87
88
89 #endif
90
91
92