Changed include paths to be explicitly specified in the #include directive.
[pspp-builds.git] / src / ui / gui / psppire-var-store.h
1 /* psppire-var-store.h
2  
3    PSPPIRE --- A Graphical User Interface for PSPP
4    Copyright (C) 2006  Free Software Foundation
5    Written by John Darrington
6
7    This program is free software; you can redistribute it and/or modify
8    it under the terms of the GNU General Public License as published by
9    the Free Software Foundation; either version 2 of the License, or
10    (at your option) any later version.
11
12    This program is distributed in the hope that it will be useful,
13    but WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15    GNU General Public License for more details.
16
17    You should have received a copy of the GNU General Public License
18    along with this program; if not, write to the Free Software
19    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
20    02110-1301, USA. */
21
22 #ifndef __PSPPIRE_VAR_STORE_H__
23 #define __PSPPIRE_VAR_STORE_H__
24
25 #include <gtksheet/gsheetmodel.h>
26 #include "psppire-dict.h"
27 #include <gdk/gdk.h>
28
29 #ifdef __cplusplus
30 extern "C" {
31 #endif /* __cplusplus */
32
33 #define GTK_TYPE_VAR_STORE             (psppire_var_store_get_type ())
34
35 #define PSPPIRE_VAR_STORE(obj)         (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
36                                                                     GTK_TYPE_VAR_STORE, PsppireVarStore))
37
38 #define PSPPIRE_VAR_STORE_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), \
39                                                                  GTK_TYPE_VAR_STORE, \
40                                                                  PsppireVarStoreClass))
41
42 #define PSPPIRE_IS_VAR_STORE(obj)              (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_VAR_STORE))
43
44 #define PSPPIRE_IS_VAR_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_VAR_STORE))
45
46 #define PSPPIRE_VAR_STORE_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), \
47                                                                    GTK_TYPE_VAR_STORE, \
48                                                                    PsppireVarStoreClass))
49
50 typedef struct _PsppireVarStore       PsppireVarStore;
51 typedef struct _PsppireVarStoreClass  PsppireVarStoreClass;
52
53 struct dictionary;
54
55 struct _PsppireVarStore
56 {
57   GObject parent;
58
59   /*< private >*/
60   PsppireDict *dict;
61   GdkColor disabled;
62   PangoFontDescription *font_desc;
63 };
64
65 struct _PsppireVarStoreClass
66 {
67   GObjectClass parent_class;
68
69   /* Padding for future expansion */
70   void (*_gtk_reserved1) (void);
71   void (*_gtk_reserved2) (void);
72   void (*_gtk_reserved3) (void);
73   void (*_gtk_reserved4) (void);
74 };
75
76
77 GType         psppire_var_store_get_type         (void) G_GNUC_CONST;
78 PsppireVarStore *psppire_var_store_new              (PsppireDict *dict);
79 struct variable * psppire_var_store_get_var (PsppireVarStore *store, gint row);
80 struct PsppireVariable * psppire_var_store_get_variable(PsppireVarStore *store, 
81                                                   gint row);
82
83 void psppire_var_store_set_dictionary(PsppireVarStore *var_store, PsppireDict *dict);
84
85
86 /* Return the number of variables */
87 gint psppire_var_store_get_var_cnt(PsppireVarStore      *var_store);
88
89 void psppire_var_store_set_font(PsppireVarStore *store, PangoFontDescription *fd);
90
91
92 #ifdef __cplusplus
93 }
94 #endif /* __cplusplus */
95
96
97 #endif /* __PSPPIRE_VAR_STORE_H__ */