6a086b7ada39306c9a324ea983a092510eda2ce3
[pspp] / 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 #ifndef DICT_DISPLAY 
23 #define DICT_DISPLAY 1
24
25 #include <gtk/gtk.h>
26
27 #include "psppire-selector.h"
28
29
30 /* A SelectItemsFunc function for GtkTreeView widgets */
31 void insert_source_row_into_tree_view (GtkTreeIter source_iter,
32                                        GtkWidget *dest,
33                                        GtkTreeModel *source_model,
34                                        gpointer data);
35
36
37 /* A SelectItemsFunc function for PsppireMeansLayers widgets */
38 void insert_source_row_into_layers (GtkTreeIter source_iter,
39                                     GtkWidget *dest,
40                                     GtkTreeModel *source_model,
41                                     gpointer data);
42
43
44 /* A SelectItemsFunc function for GtkEntry widgets */
45 void insert_source_row_into_entry (GtkTreeIter source_iter,
46                                    GtkWidget *dest,
47                                    GtkTreeModel *source_model,
48                                    gpointer data
49                                    );
50
51
52
53 /* A FilterItemsFunc function for GtkEntry widgets */
54 gboolean is_currently_in_entry (GtkTreeModel *model, GtkTreeIter *iter,
55                                 PsppireSelector *selector);
56
57
58 /* A FilterItemsFunc function for PsppireVarview widgets */
59 gboolean is_currently_in_varview (GtkTreeModel *model, GtkTreeIter *iter,
60                                   PsppireSelector *sel);
61
62 #endif