]> Dogcows Code - chaz/homebank/blob - src/ui-assist-import.h
import homebank-5.2.4
[chaz/homebank] / src / ui-assist-import.h
1 /* HomeBank -- Free, easy, personal accounting for everyone.
2 * Copyright (C) 1995-2019 Maxime DOYEN
3 *
4 * This file is part of HomeBank.
5 *
6 * HomeBank is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * HomeBank is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20 #ifndef __HOMEBANK_IMPORT_H__
21 #define __HOMEBANK_IMPORT_H__
22
23
24 #define PAGE_WELCOME 0
25 #define PAGE_FILES 1
26 #define PAGE_IMPORT 2
27
28 enum
29 {
30 LST_GENFILE_POINTER,
31 LST_GENFILE_NAME,
32 NUM_LST_FILE
33 };
34
35 enum
36 {
37 LST_GENACC_NAME,
38 LST_GENACC_KEY,
39 NUM_LST_GENACC
40 };
41
42 enum
43 {
44 LST_GENTXN_POINTER,
45 NUM_LST_GENTXN
46 };
47
48 typedef struct _import_txndata ImpTxnData;
49
50
51 struct _import_txndata
52 {
53 // account page
54 GtkWidget *IM_txn, *LB_txn;
55 GtkWidget *LB_acc_title;
56 //GtkWidget *LB_acc_count;
57 GtkWidget *LB_txn_title;
58 GtkWidget *BT_all, *BT_non, *BT_inv;
59 GtkWidget *CY_acc;
60 GtkWidget *IM_unamed;
61 GtkWidget *LV_gentxn;
62 GtkWidget *EX_duptxn;
63 GtkWidget *LV_duptxn;
64
65 GtkWidget *ST_stack;
66 GtkWidget *GR_misc;
67 GtkWidget *GR_msg;
68 GtkWidget *GR_date;
69 GtkWidget *GR_ofx;
70 GtkWidget *GR_qif;
71 GtkWidget *GR_select;
72
73 GtkWidget *CY_txn_dateorder;
74 GtkWidget *NB_txn_daygap;
75 GtkWidget *CM_txn_ucfirst;
76 GtkWidget *CY_txn_ofxname;
77 GtkWidget *CY_txn_ofxmemo;
78 GtkWidget *CM_txn_qifmemo;
79 GtkWidget *CM_txn_qifswap;
80 };
81
82
83 struct import_data
84 {
85 GtkWidget *assistant;
86
87 //intro
88 GtkWidget *CM_dsta;
89
90 // filechooser
91 GtkWidget *filechooser;
92 GtkWidget *LV_file;
93 GtkWidget *BT_file_add;
94 GtkWidget *BT_file_remove;
95
96 //struct import_txndata txndata[TXN_MAX_ACCOUNT];
97 GArray *txndata;
98
99 //summary
100 GtkWidget *TX_summary;
101
102 // import context
103 ImportContext ictx;
104
105 };
106
107
108 struct import_target_data
109 {
110 GtkWidget *label1, *label2;
111 GtkWidget *getwidget1;
112 GtkWidget *getwidget2;
113 GtkWidget *radio[2];
114 };
115
116
117 GtkWidget *ui_import_assistant_new (gchar **paths);
118 Account *import_create_account(gchar *name, gchar *number);
119 const gchar *homebank_file_getencoding(gchar *filename);
120 gchar *homebank_utf8_ensure(gchar *buffer);
121
122
123 #endif
124
This page took 0.033323 seconds and 4 git commands to generate.