7dc079d731d342244ef256759acc9cc6cc23e1c4
[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   /* local copy */
36   struct missing_values mvl;
37
38   /* Radio Buttons */
39   GtkToggleButton *button_none;
40   GtkToggleButton *button_discrete;
41   GtkToggleButton *button_range;
42
43   /* Entry boxes */
44   GtkWidget *mv[3];
45   GtkWidget *low;
46   GtkWidget *high;
47   GtkWidget *discrete;
48 };
49
50 struct missing_val_dialog * missing_val_dialog_create (GtkWindow *toplevel);
51
52 void missing_val_dialog_show (struct missing_val_dialog *dialog);
53
54 #endif