Fixed some bad interaction between variable and data sheets.
[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     Written by John Darrington
5
6     This program is free software; you can redistribute it and/or modify
7     it under the terms of the GNU General Public License as published by
8     the Free Software Foundation; either version 2 of the License, or
9     (at your option) any later version.
10
11     This program is distributed in the hope that it will be useful,
12     but WITHOUT ANY WARRANTY; without even the implied warranty of
13     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14     GNU General Public License for more details.
15
16     You should have received a copy of the GNU General Public License
17     along with this program; if not, write to the Free Software
18     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19     02110-1301, USA. */
20
21 #ifndef MENU_ACTIONS_H
22 #define MENU_ACTIONS_H 
23
24 #include <gtk/gtk.h>
25
26
27 void
28 on_new1_activate                       (GtkMenuItem     *menuitem,
29                                         gpointer         user_data);
30
31 void
32 on_open1_activate                      (GtkMenuItem     *menuitem,
33                                         gpointer         user_data);
34
35 void
36 on_save1_activate                      (GtkMenuItem     *menuitem,
37                                         gpointer         user_data);
38
39 void
40 on_save_as1_activate                   (GtkMenuItem     *menuitem,
41                                         gpointer         user_data);
42
43 void
44 on_quit1_activate                      (GtkMenuItem     *menuitem,
45                                         gpointer         user_data);
46
47 void
48 on_cut1_activate                       (GtkMenuItem     *menuitem,
49                                         gpointer         user_data);
50
51 void
52 on_copy1_activate                      (GtkMenuItem     *menuitem,
53                                         gpointer         user_data);
54
55 void
56 on_paste1_activate                     (GtkMenuItem     *menuitem,
57                                         gpointer         user_data);
58
59 void
60 on_delete1_activate                    (GtkMenuItem     *menuitem,
61                                         gpointer         user_data);
62
63 void
64 on_about1_activate                     (GtkMenuItem     *menuitem,
65                                         gpointer         user_data);
66
67 GtkWidget*
68 psppire_data_sheet_create (gchar *widget_name, gchar *string1, gchar *string2,
69                 gint int1, gint int2);
70
71 GtkWidget*
72 psppire_data_sheet_create (gchar *widget_name, gchar *string1, gchar *string2,
73                 gint int1, gint int2);
74
75 GtkWidget*
76 psppire_variable_sheet_create (gchar *widget_name, gchar *string1, gchar *string2,
77                 gint int1, gint int2);
78
79
80 gboolean callbacks_on_init(gpointer data) ;
81
82
83 /* Switch between the VAR SHEET and the DATA SHEET */
84 enum {PAGE_DATA_SHEET = 0, PAGE_VAR_SHEET};
85
86 gboolean load_system_file(const gchar *file_name);
87
88 void select_sheet(gint page);
89
90 #endif
91
92
93