Convert to utf8 in data_out function.
[pspp-builds.git] / src / ui / gui / missing-val-dialog.h
1 /* PSPPIRE - a graphical user interface for PSPP.
2    Copyright (C) 2005  Free Software Foundation
3
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.
8
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.
13
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/>. */
16
17 #ifndef __PSPPIRE_MISSING_VAL_DIALOG_H
18 #define __PSPPIRE_MISSING_VAL_DIALOG_H
19
20 /*  This module describes the behaviour of the Missing Values dialog box,
21     used for input of the missing values in the variable sheet */
22
23
24 #include <gtk/gtk.h>
25
26 #include <data/missing-values.h>
27
28 struct missing_val_dialog
29 {
30   GtkWidget *window;
31
32   /* The variable whose missing values are to be updated */
33   struct variable *pv;
34
35   /* The dictionary to which that value belongs */
36   const struct dictionary *dict;
37
38   /* local copy */
39   struct missing_values mvl;
40
41   /* Radio Buttons */
42   GtkToggleButton *button_none;
43   GtkToggleButton *button_discrete;
44   GtkToggleButton *button_range;
45
46   /* Entry boxes */
47   GtkWidget *mv[3];
48   GtkWidget *low;
49   GtkWidget *high;
50   GtkWidget *discrete;
51 };
52
53 struct missing_val_dialog * missing_val_dialog_create (GtkWindow *toplevel);
54
55 void missing_val_dialog_show (struct missing_val_dialog *dialog);
56
57 #endif