Added new files resulting from directory restructuring.
[pspp-builds.git] / src / ui / gui / data-sheet.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
22 #ifndef DATA_SHEET_H
23 #define DATA_SHEET_H
24
25 #include <gtksheet.h>
26 #include <psppire-case-array.h>
27 #include <psppire-dict.h>
28
29 void psppire_data_sheet_clear(GtkSheet *sheet);
30
31 #if 0
32 void psppire_data_sheet_set_dictionary(GtkSheet *sheet, PsppireDict *d);
33 #endif
34
35 GtkWidget* psppire_data_sheet_create (gchar *widget_name, 
36                                       gchar *string1, 
37                                       gchar *string2, 
38                                       gint int1, gint int2);
39
40
41 void data_sheet_set_cell_value(GtkSheet *sheet, gint row, gint col, 
42                                const GValue *value);
43
44
45 void psppire_data_sheet_set_show_labels(GtkSheet *sheet, gboolean show_labels);
46
47 /* Repair any damage that may have been done to the data sheet */
48 void psppire_data_sheet_redisplay(GtkSheet *sheet);
49
50 guint columnWidthToPixels(GtkSheet *sheet, gint column, guint width);
51
52
53 #endif