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=4288982f62b6d11e268d73f648395de716ab3042;hb=bbebcf3f9d827d8c68aeaf90b65c88ad1b77ba8e;hp=dc69277546d2d5eaea9f62c3fcdf4190f0be62b0;hpb=6dbe135dc0a825499276fa2e4ade71f110e53a4f;p=pspp diff --git a/src/ui/gui/psppire-import-assistant.h b/src/ui/gui/psppire-import-assistant.h index dc69277546..4288982f62 100644 --- a/src/ui/gui/psppire-import-assistant.h +++ b/src/ui/gui/psppire-import-assistant.h @@ -69,6 +69,8 @@ struct _PsppireImportAssistant gint current_page; + gchar *file_name; + /* START The chooser page of the assistant. */ GtkWidget *encoding_selector; GtkFileFilter *default_filter; @@ -87,27 +89,19 @@ 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; GtkWidget *custom_entry; 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. */ - GtkWidget *data_tree_view; - PsppireDict *psppire_dict; - 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; @@ -117,26 +111,16 @@ 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; - - struct sheet_spec_page *sheet_spec; - /* The columns produced. */ - struct column *columns; /* Information about each column. */ - size_t column_cnt; /* Number of columns. */ + struct sheet_spec_page *sheet_spec; - int skip_lines; /* Number of initial lines to skip? */ - gboolean variable_names; /* Variable names above first line of data? */ struct dictionary *dict; GtkWidget *var_sheet; + GtkWidget *data_sheet; struct spreadsheet *spreadsheet; }; @@ -153,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__ */