X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-var-view.h;h=a8fb0565cab64fbcb2bfd1f0f902621451f99d70;hb=130edcbf2974767a7550b47c1933670e5302bd96;hp=3509a46b09f4098a34c70a7b3b4839daeaecc5e5;hpb=75d5c1d6e3253ab1e83abc23b0e7a279ad4ab48b;p=pspp diff --git a/src/ui/gui/psppire-var-view.h b/src/ui/gui/psppire-var-view.h index 3509a46b09..a8fb0565ca 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 @@ -44,10 +44,15 @@ struct _PsppireVarView { GtkTreeView parent; - GtkListStore *list; + /* Private */ + GtkListStore **list; + GType *cols; gint *nums; + gint n_cols; + gint n_lists; + gint l_idx; }; struct _PsppireVarViewClass @@ -58,9 +63,9 @@ struct _PsppireVarViewClass GType psppire_var_view_get_type (void); -gboolean psppire_var_view_contains_var (PsppireVarView *vv, const GValue *v); - 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); @@ -68,6 +73,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); + +void psppire_var_view_clear (PsppireVarView *vv); + +GtkWidget* psppire_var_view_new (void); + G_END_DECLS