Remove unused declarations
[pspp-builds.git] / src / ui / gui / var-type-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
18 #ifndef __PSPPIRE_VAR_TYPE_DIALOG_H
19 #define __PSPPIRE_VAR_TYPE_DIALOG_H
20
21 #include <data/format.h>
22
23 /*  This module describes the behaviour of the Variable Type dialog box,
24     used for input of the variable type parameter in the var sheet */
25
26 enum
27   {
28     BUTTON_NUMERIC,
29     BUTTON_COMMA,
30     BUTTON_DOT,
31     BUTTON_SCIENTIFIC,
32     BUTTON_DATE,
33     BUTTON_DOLLAR,
34     BUTTON_CUSTOM,
35     BUTTON_STRING,
36     num_BUTTONS
37   };
38
39 struct variable;
40
41 struct var_type_dialog
42 {
43   GtkWidget *window;
44
45   /* Variable to be updated */
46   struct variable *pv;
47
48   /* Local copy of format specifier */
49   struct fmt_spec fmt_l;
50
51   /* Toggle Buttons */
52   GtkWidget *radioButton[num_BUTTONS];
53
54   /* Decimals */
55   GtkWidget *label_decimals;
56   GtkWidget *entry_decimals;
57
58   /* Width */
59   GtkWidget *entry_width;
60
61   /* Container for width/decimals entry/labels */
62   GtkWidget *width_decimals;
63
64   /* Date */
65   GtkWidget *date_format_list;
66   GtkTreeView *date_format_treeview;
67
68   /* Dollar */
69   GtkWidget *dollar_window;
70   GtkTreeView *dollar_treeview;
71
72   /* Custom Currency */
73   GtkWidget *custom_currency_hbox;
74   GtkTreeView *custom_treeview;
75   GtkWidget *label_psample;
76   GtkWidget *label_nsample;
77
78   /* Actions */
79   GtkWidget *ok;
80
81   gint active_button;
82 };
83
84
85 struct var_type_dialog * var_type_dialog_create (GtkWindow *);
86
87 void var_type_dialog_show (struct var_type_dialog *dialog);
88
89 #endif