GnuCash c935c2f+
Loading...
Searching...
No Matches
assistant-csv-account-import.h
Go to the documentation of this file.
1/*******************************************************************\
2 * assistant-csv-account-import.h -- An assistant for importing *
3 * Accounts from a file. *
4 * *
5 * Copyright (C) 2012 Robert Fewell *
6 * *
7 * This program is free software; you can redistribute it and/or *
8 * modify it under the terms of the GNU General Public License as *
9 * published by the Free Software Foundation; either version 2 of *
10 * the License, or (at your option) any later version. *
11 * *
12 * This program is distributed in the hope that it will be useful, *
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15 * GNU General Public License for more details. *
16 * *
17 * You should have received a copy of the GNU General Public License*
18 * along with this program; if not, contact: *
19 * *
20 * Free Software Foundation Voice: +1-617-542-5942 *
21 * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
22 * Boston, MA 02110-1301, USA gnu@gnu.org *
23\********************************************************************/
28#ifndef GNC_ASSISTANT_CSV_IMPORT_H
29#define GNC_ASSISTANT_CSV_IMPORT_H
30
31
32// Account tree model
33enum tree_import_model_columns
34{
35 TYPE, FULL_NAME, NAME, CODE, DESCRIPTION, COLOR,
36 NOTES, SYMBOL, NAMESPACE, HIDDEN, TAX, PLACE_HOLDER, ROW_COLOR,
37 N_COLUMNS
38};
39
40typedef struct
41{
42 GtkWidget *assistant;
43
44 GtkWidget *file_chooser;
45 GtkWidget *tree_view;
46 GtkListStore *store;
47 GString *regexp;
48 GtkWidget *header_row_spin;
49 GtkWidget *finish_label;
50 GtkWidget *summary_label;
51 GtkWidget *summary_error_view;
52
53 GtkWidget *file_page;
54 GtkWidget *account_page;
55
56 gchar *starting_dir;
57 gchar *file_name;
58 gchar *error;
59
60 int header_rows;
61 int num_new;
62 int num_updates;
63 gboolean new_book;
65
66
71#endif
void gnc_file_csv_account_import(void)
The gnc_file_csv_account_import() will let the user import accounts from a delimited file.
gboolean new_book
Are we importing into a new book?; if yes, call book options.