X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Ftext-data-import-dialog.h;h=59b5819c3ee873c944bca810623c0c64994de65c;hb=e17bf22963466952e4333a9f9994ebad4ca2f5e8;hp=847a1af6c6b304f742c80fc3bc393f75a9f2a1e2;hpb=6dc7fb98e663313902b4d3977407c63e83d8ae19;p=pspp diff --git a/src/ui/gui/text-data-import-dialog.h b/src/ui/gui/text-data-import-dialog.h index 847a1af6c6..59b5819c3e 100644 --- a/src/ui/gui/text-data-import-dialog.h +++ b/src/ui/gui/text-data-import-dialog.h @@ -25,6 +25,11 @@ enum { MAX_PREVIEW_LINES = 1000 }; /* Max number of lines to read. */ +struct assist_page +{ + GtkWidget *page; +}; + /* The file to be imported. */ struct file { @@ -47,6 +52,7 @@ struct assistant GtkBuilder *builder; GtkAssistant *assistant; GMainLoop *main_loop; + bool loop_done; GtkWidget *paste_button; GtkWidget *reset_button; int response; @@ -111,11 +117,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); @@ -124,12 +130,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); @@ -144,6 +150,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);