2 PSPPIRE --- A Graphical User Interface for PSPP
3 Copyright (C) 2005 Free Software Foundation
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.
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.
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
21 #ifndef __PSPPIRE_VAR_TYPE_DIALOG_H
22 #define __PSPPIRE_VAR_TYPE_DIALOG_H
25 /* This module describes the behaviour of the Variable Type dialog box,
26 used for input of the variable type parameter in the var sheet */
28 #include <data/format.h>
45 typedef void (*variable_changed_func)(struct variable *var);
47 struct var_type_dialog
51 /* Variable to be updated */
54 /* Local copy of format specifier */
55 struct fmt_spec fmt_l;
58 GtkWidget *radioButton[num_BUTTONS];
61 GtkWidget *label_decimals;
62 GtkWidget *entry_decimals;
65 GtkWidget *entry_width;
67 /* Container for width/decimals entry/labels */
68 GtkWidget *width_decimals;
71 GtkWidget *date_format_list;
72 GtkTreeView *date_format_treeview;
75 GtkWidget *dollar_window;
76 GtkTreeView *dollar_treeview;
79 GtkWidget *custom_currency_hbox;
80 GtkTreeView *custom_treeview;
81 GtkWidget *label_psample;
82 GtkWidget *label_nsample;
91 struct var_type_dialog * var_type_dialog_create (GladeXML *xml);
94 void var_type_dialog_set_variable (struct var_type_dialog *dialog,
95 variable_changed_func set_variable_changed,
96 struct variable *var);
98 void var_type_dialog_show (struct var_type_dialog *dialog);