Cleaned up GUI, by objectifying the data editor. Removed a number of global variables.
[pspp-builds.git] / src / ui / gui / var-sheet.h
1 /* 
2    PSPPIRE --- A Graphical User Interface for PSPP
3    Copyright (C) 2004, 2005, 2006  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
21 #ifndef VAR_SHEET_H
22 #define VAR_SHEET_H
23
24 #include <gtksheet/gtksheet.h>
25
26 #include "psppire-dict.h"
27
28 enum {COL_NAME, 
29       COL_TYPE, 
30       COL_WIDTH, 
31       COL_DECIMALS, 
32       COL_LABEL, 
33       COL_VALUES, 
34       COL_MISSING, 
35       COL_COLUMNS, 
36       COL_ALIGN, 
37       COL_MEASURE, 
38       n_COLS};
39
40
41 void var_sheet_range_set_editable(GtkSheet *sheet, 
42                                   const GtkSheetRange *urange, 
43                                   gboolean editable);
44
45
46 /* Create the var sheet */
47 GtkWidget* psppire_variable_sheet_create (gchar *widget_name, 
48                                           gchar *string1, 
49                                           gchar *string2,
50                                           gint int1, gint int2);
51
52 #define n_ALIGNMENTS 3
53
54 extern const gchar *const alignments[n_ALIGNMENTS + 1];
55
56 #define n_MEASURES 3
57
58 extern const gchar *const measures[n_MEASURES + 1];
59
60
61 #endif