]> Dogcows Code - chaz/homebank/blobdiff - src/ui-assist-import.h
import homebank-5.1.2
[chaz/homebank] / src / ui-assist-import.h
similarity index 74%
rename from src/import.h
rename to src/ui-assist-import.h
index 6ef596a420dc8bce7d4a08cc5281afae8e638572..2cdc89a37b65e08a0271db297f11d0efd66c6bf7 100644 (file)
@@ -1,5 +1,5 @@
 /*  HomeBank -- Free, easy, personal accounting for everyone.
- *  Copyright (C) 1995-2014 Maxime DOYEN
+ *  Copyright (C) 1995-2016 Maxime DOYEN
  *
  *  This file is part of HomeBank.
  *
 #ifndef __HOMEBANK_IMPORT_H__
 #define __HOMEBANK_IMPORT_H__
 
-#define QIF_UNKNOW_ACCOUNT_NAME "(unknown)"
-
 
 enum
 {
-       PAGE_INTRO,
-       PAGE_FILE,
-       PAGE_RESULT,
-       PAGE_OPTIONS,
+       PAGE_WELCOME,
+       PAGE_SELECTFILE,
+       PAGE_IMPORT,
+       PAGE_PROPERTIES,
+       PAGE_ACCOUNT,
+       PAGE_TRANSACTION,
        PAGE_CONFIRM,
        NUM_PAGE
 };
 
 
-typedef struct _OfxContext OfxContext;
-struct _OfxContext
-{
-       GList           *trans_list;
-       Account         *curr_acc;
-       gboolean        curr_acc_isnew;
-};
-
-
-typedef struct _ImportContext ImportContext;
-struct _ImportContext
-{
-       GList           *trans_list;            // trn storage
-       gint            cnt_initial_acc;        //max key account when start
-       gint            cnt_new_acc;            //
-       gint            cnt_new_ope;
-       gint            cnt_new_pay;
-       gint            cnt_new_cat;
-       gint            datefmt;
-       const gchar             *encoding;
-       gint            cnt_err_date;
-       gint            nb_duplicate;
-};
-
-
 struct import_data
 {
        GtkWidget       *assistant;
@@ -77,10 +52,10 @@ struct import_data
        GtkWidget       *TX_filepath;
        GtkWidget       *TX_filename;
        GtkWidget       *TX_encoding;
+       GtkWidget       *TX_datefmt;
+
        GtkWidget       *TX_filedetails;
 
-       GtkWidget       *GR_error;
-       GtkWidget   *GR_options;
        GtkWidget   *GR_duplicate;
 
 //     GtkWidget       *LA_acc;
@@ -89,9 +64,13 @@ struct import_data
        GtkWidget       *BT_refresh;
        GtkWidget       *CY_dateorder;
 
+       GtkWidget   *IM_acc;
+       GtkWidget   *LB_acc;
        GtkWidget       *LV_acc;
        GtkWidget       *BT_edit;
        
+       GtkWidget   *IM_txn;
+       GtkWidget   *LB_txn;
        GtkWidget       *imported_ope;
        GtkWidget       *duplicat_ope;
        
@@ -123,17 +102,18 @@ struct import_data
 
 struct import_target_data
 {
+       GtkWidget   *label1, *label2;
        GtkWidget       *getwidget1;
        GtkWidget       *getwidget2;
        GtkWidget       *radio[2];
 };
 
 
-GtkWidget *ui_import_window_new (void);
+GtkWidget *ui_import_assistant_new (gint filetype);
 Account *import_create_account(gchar *name, gchar *number);
 const gchar *homebank_file_getencoding(gchar *filename);
 gchar *homebank_utf8_ensure(gchar *buffer);
 
-#endif
 
+#endif
 
This page took 0.025779 seconds and 4 git commands to generate.