Implemented the paired samples t test dialog. Closes patch #6378
[pspp-builds.git] / src / ui / gui / dialog-common.h
index b952e9cbab54d89373cd027f7e55255be2af2eda..9a003f35a20e84941b6ec83cc92870295ac38e0d 100644 (file)
 
 /* Append the names of selected variables to STRING.
    TREEVIEW is the treeview containing the variables.
+   COLUMN is column in treeview containing the variables.
    DICT is the dictionary for those variables.
 */
-gint append_variable_names (GString *, PsppireDict *, GtkTreeView *);
+gint append_variable_names (GString *string, PsppireDict *dict,
+                           GtkTreeView *treeview, gint column);
 
 
 /* Returns the variable currently selected by the iterator
@@ -55,4 +57,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