29df4cdb180847d7dfd10943cbddb360039ada4d
[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    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
22 #ifndef VAR_SHEET_H
23 #define VAR_SHEET_H
24
25 #include <gtksheet/gtksheet.h>
26
27 #include "psppire-dict.h"
28
29 enum {COL_NAME, 
30       COL_TYPE, 
31       COL_WIDTH, 
32       COL_DECIMALS, 
33       COL_LABEL, 
34       COL_VALUES, 
35       COL_MISSING, 
36       COL_COLUMNS, 
37       COL_ALIGN, 
38       COL_MEASURE, 
39       n_COLS};
40
41
42 void var_sheet_range_set_editable(GtkSheet *sheet, 
43                                   const GtkSheetRange *urange, 
44                                   gboolean editable);
45
46
47 /* Create the var sheet */
48 GtkWidget* psppire_variable_sheet_create (gchar *widget_name, 
49                                           gchar *string1, 
50                                           gchar *string2,
51                                           gint int1, gint int2);
52
53 #define n_ALIGNMENTS 3
54
55 extern const gchar *alignments[n_ALIGNMENTS + 1];
56
57 #define n_MEASURES 3
58
59 extern const gchar *measures[n_MEASURES + 1];
60
61
62 #endif