X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fui%2Fgui%2Fpsppire-import-assistant.h;h=c983c92496a427e8fcc49588f5ba46de43e4f254;hb=6a4b99242da1222b711790926aa6be41ad8adb3f;hp=60a771dbc4cf933cfc0e10fbecb461b7a28d15e9;hpb=128192d98c77ce9399f90483f8a100942af68205;p=pspp diff --git a/src/ui/gui/psppire-import-assistant.h b/src/ui/gui/psppire-import-assistant.h index 60a771dbc4..c983c92496 100644 --- a/src/ui/gui/psppire-import-assistant.h +++ b/src/ui/gui/psppire-import-assistant.h @@ -1,5 +1,5 @@ /* PSPPIRE - a graphical user interface for PSPP. - Copyright (C) 2015 Free Software Foundation + Copyright (C) 2015, 2017, 2020 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 @@ -23,10 +23,10 @@ #include -#include "libpspp/str.h" #include "psppire-dict.h" #include "data/spreadsheet-reader.h" #include "psppire-text-file.h" +#include "psppire-delimited-text.h" G_BEGIN_DECLS @@ -89,7 +89,6 @@ struct _PsppireImportAssistant /* START Page where the user chooses field separators. */ /* How to break lines into columns. */ - // struct string separators; /* Field separators. */ struct string quotes; /* Quote characters. */ GtkWidget *custom_cb; @@ -97,18 +96,11 @@ struct _PsppireImportAssistant GtkWidget *quote_cb; GtkWidget *quote_combo; - GtkEntry *quote_entry; GtkWidget *fields_tree_view; /* END Page where the user chooses field separators. */ -/* START Page where the user verifies and adjusts input formats. */ - struct variable **modified_vars; - size_t modified_var_cnt; -/* END Page where the user verifies and adjusts input formats. */ - - /* START first line page */ GtkWidget *first_line_tree_view; GtkWidget *variable_names_cb; @@ -118,27 +110,14 @@ struct _PsppireImportAssistant GtkWidget *paste_button; GtkWidget *reset_button; int response; - int watch_cursor; - - GtkCellRenderer *prop_renderer; - GtkCellRenderer *fixed_renderer; PsppireTextFile *text_file; - - GtkTreeModel *delimiters_model; + PsppireDelimitedText *delimiters_model; struct sheet_spec_page *sheet_spec; -#if MERGE_SHEET - /* The columns produced. */ - struct column *columns; /* Information about each column. */ - size_t column_cnt; /* Number of columns. */ - - int skip_lines; /* Number of initial lines to skip? */ - gboolean variable_names; /* Variable names above first line of data? */ -#endif - struct dictionary *dict; + struct dictionary *casereader_dict; GtkWidget *var_sheet; GtkWidget *data_sheet; @@ -158,6 +137,8 @@ GtkWidget *psppire_import_assistant_new (GtkWindow *toplevel); gchar *psppire_import_assistant_generate_syntax (PsppireImportAssistant *); +int psppire_import_assistant_run (PsppireImportAssistant *asst); + G_END_DECLS #endif /* __PSPPIRE_IMPORT_ASSISTANT_H__ */