1 /* PSPPIRE - a graphical user interface for PSPP.
2 Copyright (C) 2011 Free Software Foundation
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>. */
18 #ifndef __PSPPIRE_VAL_CHOOSER_H__
19 #define __PSPPIRE_VAL_CHOOSER_H__
23 #include <glib-object.h>
29 #define PSPPIRE_VAL_CHOOSER_TYPE (psppire_val_chooser_get_type ())
30 #define PSPPIRE_VAL_CHOOSER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PSPPIRE_VAL_CHOOSER_TYPE, PsppireValChooser))
31 #define PSPPIRE_VAL_CHOOSER_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), \
32 PSPPIRE_VAL_CHOOSER_TYPE, PsppireValChooserClass))
33 #define PSPPIRE_IS_VAL_CHOOSER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
34 PSPPIRE_VAL_CHOOSER_TYPE))
35 #define PSPPIRE_IS_VAL_CHOOSER_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), \
36 PSPPIRE_VAL_CHOOSER_TYPE))
39 typedef struct _PsppireValChooser PsppireValChooser;
40 typedef struct _PsppireValChooserClass PsppireValChooserClass;
42 #define n_VAL_CHOOSER_BUTTONS 7
52 struct _PsppireValChooser
56 struct range_widgets rw [n_VAL_CHOOSER_BUTTONS];
57 gboolean input_var_is_string;
60 struct _PsppireValChooserClass
62 GtkTreeViewClass parent_class;
66 GType psppire_val_chooser_get_type (void);
88 enum old_value_type type;
96 GType old_value_get_type (void);
99 void old_value_append_syntax (struct string *str, const struct old_value *ov);
101 void psppire_val_chooser_get_status (PsppireValChooser *vr, struct old_value *ov);
102 void psppire_val_chooser_set_status (PsppireValChooser *vr, const struct old_value *ov);
106 #endif /* __PSPPIRE_VAL_CHOOSER_H__ */