Logistical Regression Dialog: Automatically mark appropriate variables as categorical
[pspp] / src / ui / gui / psppire-var-view.h
index 35dc91d2b98f3af1460e19cd571480fe2aeebe31..c53ac6e1d75b7aa3dacd9e262fb407cd5195cf32 100644 (file)
@@ -1,5 +1,5 @@
 /* PSPPIRE - a graphical user interface for PSPP.
-   Copyright (C) 2009  Free Software Foundation
+   Copyright (C) 2009, 2010  Free Software Foundation
 
    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
@@ -21,7 +21,7 @@
 
 #include <glib.h>
 #include <glib-object.h>
-#include <gtk/gtktreeview.h>
+#include <gtk/gtk.h>
 
 G_BEGIN_DECLS
 
@@ -44,9 +44,10 @@ struct _PsppireVarView
 {
   GtkTreeView parent;
 
-  GtkListStore *list;
-  
+  /* Private */
+  GType *cols;
   gint *nums;
+  gint n_cols;
 };
 
 struct _PsppireVarViewClass
@@ -58,14 +59,25 @@ struct _PsppireVarViewClass
 GType      psppire_var_view_get_type        (void);
 
 gint psppire_var_view_append_names (PsppireVarView *vv, gint column, GString *string);
+struct string;
+gint psppire_var_view_append_names_str (PsppireVarView *vv, gint column, struct string *);
 
 gboolean psppire_var_view_get_iter_first (PsppireVarView *vv, GtkTreeIter *iter);
 
 gboolean psppire_var_view_get_iter_next (PsppireVarView *vv, GtkTreeIter *iter);
 
+GSList *psppire_var_view_list_names (PsppireVarView *vv, gint column);
+
+
 const struct variable * psppire_var_view_get_variable (PsppireVarView *vv, gint column, GtkTreeIter *iter);
+const struct variable * psppire_var_view_get_var_from_model (GtkTreeModel *, gint column, GtkTreeIter *iter);
+
+
+GtkTreeModel *psppire_var_view_get_current_model (PsppireVarView *vv);
 
+void psppire_var_view_clear (PsppireVarView *vv);
 
+GtkWidget* psppire_var_view_new (void);
 
 G_END_DECLS