]> Dogcows Code - chaz/homebank/blob - src/ui-assist-import.h
import homebank-4.6.3
[chaz/homebank] / src / ui-assist-import.h
1 /* HomeBank -- Free, easy, personal accounting for everyone.
2 * Copyright (C) 1995-2016 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 enum
25 {
26 PAGE_WELCOME,
27 PAGE_SELECTFILE,
28 PAGE_IMPORT,
29 PAGE_PROPERTIES,
30 PAGE_ACCOUNT,
31 PAGE_TRANSACTION,
32 PAGE_CONFIRM,
33 NUM_PAGE
34 };
35
36
37 struct import_data
38 {
39 GtkWidget *assistant;
40 GtkWidget *pages[NUM_PAGE];
41
42 GtkWidget *GR_page;
43
44 GdkPixbuf *head_pixbuf;
45 GdkPixbuf *side_pixbuf;
46
47 GtkWidget *filechooser;
48 GtkWidget *user_info;
49 GtkWidget *ok_image;
50 GtkWidget *ko_image;
51
52 GtkWidget *TX_filepath;
53 GtkWidget *TX_filename;
54 GtkWidget *TX_encoding;
55 GtkWidget *TX_datefmt;
56
57 GtkWidget *TX_filedetails;
58
59 GtkWidget *GR_duplicate;
60
61 // GtkWidget *LA_acc;
62 GtkWidget *NB_maxgap;
63
64 GtkWidget *BT_refresh;
65 GtkWidget *CY_dateorder;
66
67 GtkWidget *IM_acc;
68 GtkWidget *LB_acc;
69 GtkWidget *LV_acc;
70 GtkWidget *BT_edit;
71
72 GtkWidget *IM_txn;
73 GtkWidget *LB_txn;
74 GtkWidget *imported_ope;
75 GtkWidget *duplicat_ope;
76
77 GtkWidget *TX_acc_upd;
78 GtkWidget *TX_acc_new;
79 GtkWidget *TX_trn_imp;
80 GtkWidget *TX_trn_nop;
81 GtkWidget *TX_trn_asg;
82
83 gchar *filepath;
84 gchar *filename;
85 guint filetype;
86
87 /* count imported items */
88 guint imp_cnt_acc;
89 guint imp_cnt_trn;
90 guint imp_cnt_asg;
91
92 gboolean valid;
93
94 // guint step;
95 // guint maxstep;
96
97
98 // import context
99 ImportContext ictx;
100
101 };
102
103 struct import_target_data
104 {
105 GtkWidget *label1, *label2;
106 GtkWidget *getwidget1;
107 GtkWidget *getwidget2;
108 GtkWidget *radio[2];
109 };
110
111
112 GtkWidget *ui_import_assistant_new (gint filetype);
113 Account *import_create_account(gchar *name, gchar *number);
114 const gchar *homebank_file_getencoding(gchar *filename);
115 gchar *homebank_utf8_ensure(gchar *buffer);
116
117
118 #endif
119
This page took 0.035184 seconds and 4 git commands to generate.