3 PSPPIRE --- A Graphical User Interface for PSPP
4 Copyright (C) 2006 Free Software Foundation
5 Written by John Darrington
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.
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.
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
22 #ifndef __PSPPIRE_VAR_STORE_H__
23 #define __PSPPIRE_VAR_STORE_H__
25 #include <gtksheet/gsheetmodel.h>
26 #include "psppire-dict.h"
31 #endif /* __cplusplus */
33 #define GTK_TYPE_VAR_STORE (psppire_var_store_get_type ())
35 #define PSPPIRE_VAR_STORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
36 GTK_TYPE_VAR_STORE, PsppireVarStore))
38 #define PSPPIRE_VAR_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), \
40 PsppireVarStoreClass))
42 #define PSPPIRE_IS_VAR_STORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_VAR_STORE))
44 #define PSPPIRE_IS_VAR_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_VAR_STORE))
46 #define PSPPIRE_VAR_STORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \
48 PsppireVarStoreClass))
50 typedef struct _PsppireVarStore PsppireVarStore;
51 typedef struct _PsppireVarStoreClass PsppireVarStoreClass;
55 struct _PsppireVarStore
62 const PangoFontDescription *font_desc;
65 struct _PsppireVarStoreClass
67 GObjectClass parent_class;
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);
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,
83 void psppire_var_store_set_dictionary(PsppireVarStore *var_store, PsppireDict *dict);
86 /* Return the number of variables */
87 gint psppire_var_store_get_var_cnt(PsppireVarStore *var_store);
89 void psppire_var_store_set_font(PsppireVarStore *store, const PangoFontDescription *fd);
94 #endif /* __cplusplus */
97 #endif /* __PSPPIRE_VAR_STORE_H__ */