Miscellaneous T Test improvements. See bug #21760
[pspp-builds.git] / src / ui / gui / dialog-common.h
index d6ee950b451b46c32bb9a1435926a69a34d30aa5..1e66c8f8ca76a6e8e3367c865146271d8db43fb6 100644 (file)
@@ -1,22 +1,18 @@
-/*
-    PSPPIRE --- A Graphical User Interface for PSPP
-    Copyright (C) 2007  Free Software Foundation
+/* PSPPIRE - a graphical user interface for PSPP.
+   Copyright (C) 2007 Free Software Foundation, Inc.
 
-    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
-    (at your option) any later version.
+   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 3 of the License, or
+   (at your option) any later version.
 
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    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. */
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   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, see <http://www.gnu.org/licenses/>. */
 
 /* Some common routines used in the implementation of dialog boxes */
 
@@ -59,4 +55,24 @@ void cell_var_name (GtkTreeViewColumn *tree_column,
 void set_dest_model (GtkTreeView *dest, PsppireDict *dict);
 
 
+/* Returns FALSE if the variables represented by the union of the rows
+   currently selected by SOURCE widget, and contents of the DEST
+   widget, are of different types.
+
+   In other words, this function when passed as the argument to
+   psppire_selector_set_allow, ensures that the selector selects only
+   string  variables, or only numeric variables, not a mixture.
+*/
+gboolean homogeneous_types (GtkWidget *source, GtkWidget *dest);
+
+/* Returns TRUE if all of the variable(s) represented by the rows
+   currently selected by SOURCE widget, are numeric. DEST is ignored.
+
+   In other words, this function when passed as the argument to
+   psppire_selector_set_allow, ensures that the selector selects only
+   numeric variables.
+*/
+gboolean numeric_only (GtkWidget *source, GtkWidget *dest);
+
+
 #endif