X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-var-view.h;h=430265d4fd8adafb2bf1aba9162eda5586171bfd;hb=d8160a5ee0ff2329c32172a41a81abd2188209d6;hp=9563cce4ac0c1d358038c864076a741f38c50b6a;hpb=7a8adbe2e7067f33767f934ec36c60549d50d2e2;p=pspp diff --git a/src/ui/gui/psppire-var-view.h b/src/ui/gui/psppire-var-view.h index 9563cce4ac..430265d4fd 100644 --- a/src/ui/gui/psppire-var-view.h +++ b/src/ui/gui/psppire-var-view.h @@ -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 #include -#include +#include G_BEGIN_DECLS @@ -38,16 +38,16 @@ G_BEGIN_DECLS typedef struct _PsppireVarView PsppireVarView; typedef struct _PsppireVarViewClass PsppireVarViewClass; - +struct variable; struct _PsppireVarView { GtkTreeView parent; - GtkListStore *list; - + /* Private */ + GType *cols; gint *nums; - + gint n_cols; }; struct _PsppireVarViewClass @@ -59,7 +59,22 @@ 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); + +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