X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-dict.h;h=e71ef20403daec009fe11456201c04f552211884;hb=0fa141762183890ebd139ccd9264f08db9011539;hp=b36ccf9e6156297ade8b892e74ef3ef798f4ae47;hpb=dcf9b154cbcaa35c3d8459a201b77eec8bcb30bd;p=pspp diff --git a/src/ui/gui/psppire-dict.h b/src/ui/gui/psppire-dict.h index b36ccf9e61..e71ef20403 100644 --- a/src/ui/gui/psppire-dict.h +++ b/src/ui/gui/psppire-dict.h @@ -26,8 +26,8 @@ #include #include -#include -#include +#include +#include G_BEGIN_DECLS @@ -47,6 +47,8 @@ G_BEGIN_DECLS typedef struct _PsppireDict PsppireDict; typedef struct _PsppireDictClass PsppireDictClass; +enum {DICT_TVM_COL_NAME=0, DICT_TVM_COL_VAR, n_DICT_COLS} ; + struct _PsppireDict { GObject parent; @@ -56,6 +58,9 @@ struct _PsppireDict struct PsppireVariable **variables; gint cache_size; + + /* For GtkTreeModelIface */ + gint stamp; }; struct _PsppireDictClass @@ -72,11 +77,6 @@ PsppireDict* psppire_dict_new_from_dict (struct dictionary *d); void psppire_dict_set_name (PsppireDict* s, gint idx, const gchar *name); void psppire_dict_delete_var (PsppireDict *s, gint idx); -/* Return the variable indexed by IDX. - returns NULL if IDX is not valid. -*/ -struct variable *psppire_dict_get_var(PsppireDict *d, gint idx); - /* Return the number of variables in the dictionary */ gint psppire_dict_get_var_cnt(const PsppireDict *d); @@ -102,9 +102,15 @@ void psppire_dict_delete_variables(PsppireDict *d, gint first, gint n); /* Insert a new variable at posn IDX */ void psppire_dict_insert_variable(PsppireDict *d, gint idx, const gchar *name); +void psppire_dict_resize_variable(PsppireDict *d, + const struct PsppireVariable *pv, + gint old_size, gint new_size); + gboolean psppire_dict_check_name(const PsppireDict *dict, const gchar *name, gboolean report); +gint psppire_dict_get_next_value_idx (const PsppireDict *dict); + G_END_DECLS