GnuCash  4.8a-134-g214de30c7+
import-account-matcher.h
Go to the documentation of this file.
1 /********************************************************************\
2  * import-account-matcher.h - flexible account picker/matcher *
3  * *
4  * Copyright (C) 2002 Benoit GrĂ©goire <bock@step.polymtl.ca> *
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 \********************************************************************/
30 #ifndef IMPORT_ACCOUNT_MATCHER_H
31 #define IMPORT_ACCOUNT_MATCHER_H
32 
33 #include "Account.h"
34 #include <gtk/gtk.h>
35 
36 #include "gnc-tree-view-account.h"
37 
38 typedef struct
39 {
40  GtkWidget *dialog; /* Dialog Widget */
41  GtkWidget *new_button; /* new account button Widget */
42  GtkWidget *ok_button; /* ok button Widget */
43  GncTreeViewAccount *account_tree; /* Account tree */
44  GtkWidget *account_tree_sw; /* Scroll Window for Account tree */
45  gboolean auto_create; /* Auto create retAccount, can be used to step over this stage */
46  const gchar *account_human_description; /* description for on line id, incoming */
47  const gchar *account_online_id_value; /* On line id value, incoming */
48  GtkWidget *account_online_id_label; /* the label Widget for the on line id, incoming */
49  const gnc_commodity *new_account_default_commodity; /* new account default commodity, incoming */
50  GNCAccountType new_account_default_type; /* new account default type, incoming */
51  Account *default_account; /* default account for selection, incoming */
52  Account *retAccount; /* Account value returned to caller */
53  GtkWidget *whbox; /* Warning HBox */
54  GtkWidget *warning; /* Warning Label */
56 
118 Account * gnc_import_select_account(GtkWidget *parent,
119  const gchar * account_online_id_value,
120  gboolean auto_create,
121  const gchar * account_human_description,
122  const gnc_commodity * new_account_default_commodity,
123  GNCAccountType new_account_default_type,
124  Account * default_selection,
125  gboolean * ok_pressed
126  );
127 
128 #endif
129 
Account * gnc_import_select_account(GtkWidget *parent, const gchar *account_online_id_value, gboolean auto_create, const gchar *account_human_description, const gnc_commodity *new_account_default_commodity, GNCAccountType new_account_default_type, Account *default_selection, gboolean *ok_pressed)
Must be called with a string containing a unique identifier for the account.
Account handling public routines.
GtkTreeView implementation for gnucash account tree.
GNCAccountType
The account types are used to determine how the transaction data in the account is displayed...
Definition: Account.h:105