Update model on inserting/deleting cases
[pspp-builds.git] / src / ui / gui / dict-display.h
index 71479ba5503f47881d2edb4c6ce39d5a07d9e883..a9481c6d85534439490d672accbf7d1a56f06f46 100644 (file)
@@ -1,10 +1,9 @@
-/*
-   PSPPIRE --- A Graphical User Interface for PSPP
+/* PSPPIRE - a graphical user interface for PSPP.
    Copyright (C) 2007  Free Software Foundation
 
    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
    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,
    (at your option) any later version.
 
    This program is distributed in the hope that it will be useful,
@@ -13,9 +12,7 @@
    GNU General Public License for more details.
 
    You should have received a copy of the GNU General Public License
    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 <http://www.gnu.org/licenses/>. */
 
 
 /* This module provides various functions necessary for displaying a
 
 
 /* This module provides various functions necessary for displaying a
@@ -42,14 +39,16 @@ void attach_dictionary_to_treeview (GtkTreeView *treeview, PsppireDict *dict,
 /* A SelectItemsFunc function for GtkTreeView widgets */
 void insert_source_row_into_tree_view (GtkTreeIter source_iter,
                                       GtkWidget *dest,
 /* 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 GtkEntry widgets */
 void insert_source_row_into_entry (GtkTreeIter source_iter,
                                   GtkWidget *dest,
                                       );
 
 
 /* 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
                                   );
 
 
                                   );
 
 
@@ -57,3 +56,8 @@ void insert_source_row_into_entry (GtkTreeIter source_iter,
 /* A FilterItemsFunc function for GtkEntry widgets */
 gboolean is_currently_in_entry (GtkTreeModel *model, GtkTreeIter *iter,
                                PsppireSelector *selector);
 /* A FilterItemsFunc function for GtkEntry widgets */
 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
+                    );