projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rewrite formatted data input routines to conform to SPSS data formats
[pspp]
/
src
/
ui
/
gui
/
psppire-dict.h
diff --git
a/src/ui/gui/psppire-dict.h
b/src/ui/gui/psppire-dict.h
index b36ccf9e6156297ade8b892e74ef3ef798f4ae47..e71ef20403daec009fe11456201c04f552211884 100644
(file)
--- a/
src/ui/gui/psppire-dict.h
+++ b/
src/ui/gui/psppire-dict.h
@@
-26,8
+26,8
@@
#include <glib-object.h>
#include <glib.h>
#include <glib-object.h>
#include <glib.h>
-#include <dictionary.h>
-#include <variable.h>
+#include <d
ata/d
ictionary.h>
+#include <
data/
variable.h>
G_BEGIN_DECLS
G_BEGIN_DECLS
@@
-47,6
+47,8
@@
G_BEGIN_DECLS
typedef struct _PsppireDict PsppireDict;
typedef struct _PsppireDictClass PsppireDictClass;
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;
struct _PsppireDict
{
GObject parent;
@@
-56,6
+58,9
@@
struct _PsppireDict
struct PsppireVariable **variables;
gint cache_size;
struct PsppireVariable **variables;
gint cache_size;
+
+ /* For GtkTreeModelIface */
+ gint stamp;
};
struct _PsppireDictClass
};
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);
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);
/* 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);
/* 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);
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
G_END_DECLS