Text import dialog: Display the thousands separator in the number of cases.
[pspp] / src / ui / gui / psppire-var-view.h
index 45832eba0e8804a46b7381e48f5079cff9fc1b2c..bd1dca2df311535f182bd5e60b1fefb65b3bb7fa 100644 (file)
@@ -40,13 +40,28 @@ typedef struct _PsppireVarViewClass  PsppireVarViewClass;
 
 struct variable;
 
+struct vvstate
+{
+  /* An array of GtkListStores */
+  GtkListStore **list;
+
+  /* The size of the above array */
+  gint n_lists;
+
+  /* The currently selected item in the array */
+  gint l_idx;
+};
+
 struct _PsppireVarView
 {
   GtkTreeView parent;
 
-  GtkListStore *list;
+  /* Private */
+  struct vvstate *state;
   
+  GType *cols;
   gint *nums;
+  gint n_cols;
 };
 
 struct _PsppireVarViewClass
@@ -58,6 +73,8 @@ 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);
 
@@ -65,7 +82,14 @@ gboolean psppire_var_view_get_iter_next (PsppireVarView *vv, GtkTreeIter *iter);
 
 const struct variable * psppire_var_view_get_variable (PsppireVarView *vv, gint column, GtkTreeIter *iter);
 
+void     psppire_var_view_push_model (PsppireVarView *vv);
+
+gboolean psppire_var_view_set_current_model (PsppireVarView *vv, gint n);
+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