X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=inline;f=src%2Fui%2Fgui%2Fdict-display.h;h=0a079bcd25bfa987dbcfddcd499dc848f6890a5e;hb=0cd7c010e3e5c316ef0eb0317fb7f408d164679d;hp=22cb3816295143abca280a93c2d2fb45d1e2bfe6;hpb=b06c888cf2e8c126b04d4678120439533a5086e5;p=pspp
diff --git a/src/ui/gui/dict-display.h b/src/ui/gui/dict-display.h
index 22cb381629..0a079bcd25 100644
--- a/src/ui/gui/dict-display.h
+++ b/src/ui/gui/dict-display.h
@@ -1,10 +1,9 @@
-/*
- PSPPIRE --- A Graphical User Interface for PSPP
+/* PSPPIRE - a graphical user interface for PSPP.
Copyright (C) 2007 Free Software Foundation
- This program is free software; you can redistribute it and/or modify
+ This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
+ the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
@@ -13,43 +12,44 @@
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
- 02110-1301, USA. */
+ along with this program. If not, see . */
/* This module provides various functions necessary for displaying a
dictionary in GTK widgets.
*/
+#ifndef DICT_DISPLAY
+#define DICT_DISPLAY 1
+
#include
#include "psppire-selector.h"
-#include "psppire-dict.h"
-#include
-/* Sets up TREEVIEW to display the variables of DICT.
- MODE is the selection mode for TREEVIEW.
- PREDICATE determines which variables should be visible, or NULL if
- all are to be visible.
- */
-void attach_dictionary_to_treeview (GtkTreeView *treeview, PsppireDict *dict,
- GtkSelectionMode mode,
- var_predicate_func *predicate
- );
+void
+get_base_model (GtkTreeModel *top_model, GtkTreeIter *top_iter,
+ GtkTreeModel **model, GtkTreeIter *iter);
/* A SelectItemsFunc function for GtkTreeView widgets */
void insert_source_row_into_tree_view (GtkTreeIter source_iter,
GtkWidget *dest,
- GtkTreeModel *source_model
- );
+ GtkTreeModel *source_model,
+ gpointer data);
+
+
+/* A SelectItemsFunc function for PsppireMeansLayers widgets */
+void insert_source_row_into_layers (GtkTreeIter source_iter,
+ GtkWidget *dest,
+ GtkTreeModel *source_model,
+ gpointer data);
/* A SelectItemsFunc function for GtkEntry widgets */
void insert_source_row_into_entry (GtkTreeIter source_iter,
GtkWidget *dest,
- GtkTreeModel *source_model
+ GtkTreeModel *source_model,
+ gpointer data
);
@@ -59,6 +59,8 @@ gboolean is_currently_in_entry (GtkTreeModel *model, GtkTreeIter *iter,
PsppireSelector *selector);
-void get_base_model (GtkTreeModel *top_model, GtkTreeIter *top_iter,
- GtkTreeModel **model, GtkTreeIter *iter
- );
+/* A FilterItemsFunc function for PsppireVarview widgets */
+gboolean is_currently_in_varview (GtkTreeModel *model, GtkTreeIter *iter,
+ PsppireSelector *sel);
+
+#endif