projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gui: For text data import, use the same parser for preview as for import.
[pspp]
/
src
/
ui
/
gui
/
psppire-delimited-text.h
diff --git
a/src/ui/gui/psppire-delimited-text.h
b/src/ui/gui/psppire-delimited-text.h
index d18570a83fcf16d5c1510f6db9d801b3afa4b7ee..c24ce10c9375d2f1c5d07efeff68eb996928a49e 100644
(file)
--- a/
src/ui/gui/psppire-delimited-text.h
+++ b/
src/ui/gui/psppire-delimited-text.h
@@
-18,6
+18,7
@@
#define __PSPPIRE_DELIMITED_TEXT_H__
#include "libpspp/str.h"
#define __PSPPIRE_DELIMITED_TEXT_H__
#include "libpspp/str.h"
+#include "libpspp/string-array.h"
#include <glib-object.h>
#include <gtk/gtk.h>
#include <glib-object.h>
#include <gtk/gtk.h>
@@
-54,21
+55,23
@@
struct _PsppireDelimitedText
GObject parent;
GtkTreeModel *child;
GObject parent;
GtkTreeModel *child;
-
+
/* The first line of the file to be modelled */
gint first_line;
/* The first line of the file to be modelled */
gint first_line;
-
+
GSList *delimiters;
GSList *delimiters;
- gint max_delimiters;
-
+ gint max_fields;
+
+ gunichar quote;
+
/*< private >*/
gboolean dispose_has_run ;
gint stamp;
/* caching */
/*< private >*/
gboolean dispose_has_run ;
gint stamp;
/* caching */
- const char *cache_starts[512];
- struct substring const_cache;
int cache_row;
int cache_row;
+ struct string_array cache;
+ struct data_parser *parser;
};
struct _PsppireDelimitedTextClass
};
struct _PsppireDelimitedTextClass