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