Change license from GPLv2+ to GPLv3+.
[pspp-builds.git] / src / ui / gui / var-sheet.h
1 /* PSPPIRE - a graphical user interface for PSPP.
2    Copyright (C) 2004, 2005, 2006  Free Software Foundation
3
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.
8
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.
13
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/>. */
16
17
18 #ifndef VAR_SHEET_H
19 #define VAR_SHEET_H
20
21 #include <gtksheet/gtksheet.h>
22
23 #include "psppire-dict.h"
24
25 enum {COL_NAME,
26       COL_TYPE,
27       COL_WIDTH,
28       COL_DECIMALS,
29       COL_LABEL,
30       COL_VALUES,
31       COL_MISSING,
32       COL_COLUMNS,
33       COL_ALIGN,
34       COL_MEASURE,
35       n_COLS};
36
37
38 void var_sheet_range_set_editable (GtkSheet *sheet,
39                                   const GtkSheetRange *urange,
40                                   gboolean editable);
41
42
43 /* Create the var sheet */
44 GtkWidget* psppire_variable_sheet_create (gchar *widget_name,
45                                           gchar *string1,
46                                           gchar *string2,
47                                           gint int1, gint int2);
48
49 #define n_ALIGNMENTS 3
50
51 extern const gchar *const alignments[n_ALIGNMENTS + 1];
52
53 #define n_MEASURES 3
54
55 extern const gchar *const measures[n_MEASURES + 1];
56
57
58 #endif