39cbe2758e8785d6d117cf20d36f22b2ee952519
[pspp-builds.git] / src / ui / gui / missing-val-dialog.h
1 /*
2     PSPPIRE --- A Graphical User Interface for PSPP
3     Copyright (C) 2005  Free Software Foundation
4
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.
9
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.
14
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
18     02110-1301, USA. */
19
20 #ifndef __PSPPIRE_MISSING_VAL_DIALOG_H
21 #define __PSPPIRE_MISSING_VAL_DIALOG_H
22
23 /*  This module describes the behaviour of the Missing Values dialog box,
24     used for input of the missing values in the variable sheet */
25
26
27 #include <gtk/gtk.h>
28 #include <glade/glade.h>
29
30 #include <data/missing-values.h>
31
32 struct missing_val_dialog
33 {
34   GtkWidget *window;
35
36   /* The variable whose missing values are to be updated */
37   struct variable *pv;
38
39   /* local copy */
40   struct missing_values mvl;
41
42   /* Radio Buttons */
43   GtkToggleButton *button_none;
44   GtkToggleButton *button_discrete;
45   GtkToggleButton *button_range;
46
47   /* Entry boxes */
48   GtkWidget *mv[3];
49   GtkWidget *low;
50   GtkWidget *high;
51   GtkWidget *discrete;
52 };
53
54 struct missing_val_dialog * missing_val_dialog_create (GladeXML *xml);
55
56 void missing_val_dialog_show (struct missing_val_dialog *dialog);
57
58 #endif