Whitespace changes only.
[pspp-builds.git] / src / ui / gui / val-labs-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
21
22 #ifndef __PSPPIRE_VAL_LABS_DIALOG_H
23 #define __PSPPIRE_VAL_LABS_DIALOG_H
24
25
26 /*  This module describes the behaviour of the Value Labels dialog box,
27     used for input of the value labels in the variable sheet */
28
29
30 #include <gtk/gtk.h>
31 #include <glade/glade.h>
32
33
34 struct val_labs;
35
36 struct val_labs_dialog
37 {
38   GtkWidget *window;
39
40
41   /* The variable to be updated */
42   struct variable *pv;
43
44   /* Local copy of labels */
45   struct val_labs *labs;
46
47   /* Actions */
48   GtkWidget *ok;
49   GtkWidget *add_button;
50   GtkWidget *remove_button;
51   GtkWidget *change_button;
52
53   /* Entry Boxes */
54   GtkWidget *value_entry;
55   GtkWidget *label_entry;
56
57   /* Signal handler ids */
58   gint change_handler_id;
59   gint value_handler_id;
60
61   GtkWidget *treeview;
62 };
63
64
65
66
67 struct val_labs_dialog * val_labs_dialog_create (GladeXML *xml);
68
69 void val_labs_dialog_show (struct val_labs_dialog *dialog);
70
71
72 #endif