Fixed bug reporting the significance of paired value t-test.
[pspp-builds.git] / src / ui / gui / dict-display.h
1 /* PSPPIRE - a graphical user interface for PSPP.
2    Copyright (C) 2007  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 /* This module provides various functions necessary for displaying a
19    dictionary in  GTK widgets.
20 */
21
22 #include <gtk/gtk.h>
23
24 #include "psppire-selector.h"
25 #include "psppire-dict.h"
26 #include <data/variable.h>
27
28 /* Sets up TREEVIEW to display the variables of DICT.
29    MODE is the selection mode for TREEVIEW.
30    PREDICATE determines which variables should be visible, or NULL if
31    all are to be visible.
32  */
33 void attach_dictionary_to_treeview (GtkTreeView *treeview, PsppireDict *dict,
34                                     GtkSelectionMode mode,
35                                     var_predicate_func *predicate
36                                     );
37
38
39 /* A SelectItemsFunc function for GtkTreeView widgets */
40 void insert_source_row_into_tree_view (GtkTreeIter source_iter,
41                                        GtkWidget *dest,
42                                        GtkTreeModel *source_model,
43                                        gpointer data
44                                        );
45
46
47 /* A SelectItemsFunc function for GtkEntry widgets */
48 void insert_source_row_into_entry (GtkTreeIter source_iter,
49                                    GtkWidget *dest,
50                                    GtkTreeModel *source_model,
51                                    gpointer data
52                                    );
53
54
55
56 /* A FilterItemsFunc function for GtkEntry widgets */
57 gboolean is_currently_in_entry (GtkTreeModel *model, GtkTreeIter *iter,
58                                 PsppireSelector *selector);
59
60
61 void get_base_model (GtkTreeModel *top_model, GtkTreeIter *top_iter,
62                      GtkTreeModel **model, GtkTreeIter *iter
63                      );