X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Ftext-data-import-dialog.h;h=9e13b65f0af233151835f1bfdad16ec921766976;hb=03a7b96a587a58bda342b4eb5ce5f935880ba2b7;hp=0122312300af74ff30a2e496d4bacc80d96f9693;hpb=d2010182cba609e77a6c901b7cf2d5a669e92757;p=pspp diff --git a/src/ui/gui/text-data-import-dialog.h b/src/ui/gui/text-data-import-dialog.h index 0122312300..9e13b65f0a 100644 --- a/src/ui/gui/text-data-import-dialog.h +++ b/src/ui/gui/text-data-import-dialog.h @@ -47,6 +47,7 @@ struct assistant GtkBuilder *builder; GtkAssistant *assistant; GMainLoop *main_loop; + bool loop_done; GtkWidget *paste_button; GtkWidget *reset_button; int response; @@ -74,6 +75,8 @@ struct import_assistant int skip_lines; /* Number of initial lines to skip? */ bool variable_names; /* Variable names above first line of data? */ struct dictionary *dict; + + struct spreadsheet *spreadsheet; }; struct column @@ -109,11 +112,11 @@ void text_data_import_assistant (PsppireDataWindow *); /* FIXME: Should this be private to first line page ? */ void make_tree_view (const struct import_assistant *ia, size_t first_line, - GtkTreeView **tree_view); + PsppSheetView **tree_view); -gint get_monospace_width (GtkTreeView *, GtkCellRenderer *, +gint get_monospace_width (PsppSheetView *, GtkCellRenderer *, size_t char_cnt); -gint get_string_width (GtkTreeView *, GtkCellRenderer *, +gint get_string_width (PsppSheetView *, GtkCellRenderer *, const char *string); @@ -122,12 +125,12 @@ void push_watch_cursor (struct import_assistant *); void pop_watch_cursor (struct import_assistant *); -GtkTreeView *create_data_tree_view (bool input, GtkContainer *parent, - struct import_assistant *); +PsppSheetView *create_data_tree_view (bool input, GtkContainer *parent, + struct import_assistant *); -GtkTreeViewColumn *make_data_column (struct import_assistant *, - GtkTreeView *, bool input, - gint column_idx); +PsppSheetViewColumn *make_data_column (struct import_assistant *, + PsppSheetView *, bool input, + gint column_idx); void update_assistant (struct import_assistant *ia); @@ -142,6 +145,8 @@ void post_sheet_spec_page (struct import_assistant *ia); void prepare_first_line_page (struct import_assistant *ia); void reset_first_line_page (struct import_assistant *); +void reset_intro_page (struct import_assistant *ia); + void prepare_separators_page (struct import_assistant *ia); void reset_separators_page (struct import_assistant *); void destroy_separators_page (struct import_assistant *ia);