1 /* PSPPIRE - a graphical user interface for PSPP.
2 Copyright (C) 2005 Free Software Foundation
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.
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.
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/>. */
18 #ifndef __PSPPIRE_VAR_TYPE_DIALOG_H
19 #define __PSPPIRE_VAR_TYPE_DIALOG_H
21 #include <data/format.h>
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 */
41 typedef void (*variable_changed_func)(struct variable *var);
43 struct var_type_dialog
47 /* Variable to be updated */
50 /* Local copy of format specifier */
51 struct fmt_spec fmt_l;
54 GtkWidget *radioButton[num_BUTTONS];
57 GtkWidget *label_decimals;
58 GtkWidget *entry_decimals;
61 GtkWidget *entry_width;
63 /* Container for width/decimals entry/labels */
64 GtkWidget *width_decimals;
67 GtkWidget *date_format_list;
68 GtkTreeView *date_format_treeview;
71 GtkWidget *dollar_window;
72 GtkTreeView *dollar_treeview;
75 GtkWidget *custom_currency_hbox;
76 GtkTreeView *custom_treeview;
77 GtkWidget *label_psample;
78 GtkWidget *label_nsample;
87 struct var_type_dialog * var_type_dialog_create (GtkWindow *);
90 void var_type_dialog_set_variable (struct var_type_dialog *dialog,
91 variable_changed_func set_variable_changed,
92 struct variable *var);
94 void var_type_dialog_show (struct var_type_dialog *dialog);