2 PSPPIRE --- A Graphical User Interface for PSPP
3 Copyright (C) 2007 Free Software Foundation
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.
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.
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
21 #ifndef __PSPPIRE_VAR_SELECT_H__
22 #define __PSPPIRE_VAR_SELECT_H__
25 #include <glib-object.h>
29 #include "psppire-dict.h"
34 /* --- type macros --- */
35 #define G_TYPE_PSPPIRE_VAR_SELECT (psppire_var_select_get_type ())
36 #define PSPPIRE_VAR_SELECT(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), G_TYPE_PSPPIRE_VAR_SELECT, PsppireVarSelect))
37 #define PSPPIRE_VAR_SELECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), G_TYPE_PSPPIRE_VAR_SELECT, PsppireVarSelectClass))
38 #define G_IS_PSPPIRE_VAR_SELECT(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), G_TYPE_PSPPIRE_VAR_SELECT))
39 #define G_IS_PSPPIRE_VAR_SELECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), G_TYPE_PSPPIRE_VAR_SELECT))
40 #define PSPPIRE_VAR_SELECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), G_TYPE_PSPPIRE_VAR_SELECT, PsppireVarSelectClass))
44 /* --- typedefs & structures --- */
45 typedef struct _PsppireVarSelect PsppireVarSelect;
46 typedef struct _PsppireVarSelectClass PsppireVarSelectClass;
48 struct _PsppireVarSelect
51 const PsppireDict *dict;
55 GtkSelectionMode mode;
61 struct _PsppireVarSelectClass
63 GObjectClass parent_class;
67 /* -- PsppireVarSelect --- */
68 GType psppire_var_select_get_type (void);
71 PsppireVarSelect* psppire_var_select_new (GtkWidget *,
75 /* Remove all variables from the selection */
76 void psppire_var_select_deselect_all (PsppireVarSelect *);
78 /* Return a list of all the currently selected variables */
79 const GList *psppire_var_select_get_variables (PsppireVarSelect *);
81 /* Append VAR to the list of selected variables */
82 void psppire_var_select_set_variable (PsppireVarSelect *,
83 struct variable *var);
87 #endif /* __PSPPIRE_VAR_SELECT_H__ */