X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fdialog-common.h;h=328904acfc9643fbf669cf6cd0f2f3451166d9c1;hb=fd0c595927a23ea0373551a1eed4570388ea0fc5;hp=4dd11cb7864822a52045ccd0fe3e9c8b03bfcff1;hpb=c65449a628d13f4683e7dc7125874608c7152017;p=pspp-builds.git diff --git a/src/ui/gui/dialog-common.h b/src/ui/gui/dialog-common.h index 4dd11cb7..328904ac 100644 --- a/src/ui/gui/dialog-common.h +++ b/src/ui/gui/dialog-common.h @@ -23,38 +23,18 @@ #include #include "psppire-dict.h" -/* Append the names of selected variables to STRING. - TREEVIEW is the treeview containing the variables. - DICT is the dictionary for those variables. -*/ -gint append_variable_names (GString *, PsppireDict *, GtkTreeView *); - - -/* Returns the variable currently selected by the iterator - pointing to TREEMODEL */ -struct variable * get_selected_variable (GtkTreeModel *treemodel, - GtkTreeIter *iter, - PsppireDict *dict); - - - /* A (*GtkTreeCellDataFunc) function. This function expects TREEMODEL to hold G_TYPE_INT. The ints it holds are the indices of the variables in the dictionary, which DATA points to. It renders the name of the variable into CELL. */ -void cell_var_name (GtkTreeViewColumn *tree_column, +void XXX_cell_var_name (GtkTreeViewColumn *tree_column, GtkCellRenderer *cell, GtkTreeModel *tree_model, GtkTreeIter *iter, gpointer data); -/* Set a model for DEST, which is an GtkListStore of g_int's - whose values are the indices into DICT */ -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. @@ -65,5 +45,14 @@ void set_dest_model (GtkTreeView *dest, PsppireDict *dict); */ 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