GnuCash  5.6-150-g038405b370+
gnc-account-sel.h
1 
13 /* GnuCash is free software; you can redistribute it and/or modify
14  * it under the terms of the GNU Library General Public License as
15  * published by the Free Software Foundation; either version 2 of
16  * the License, or (at your option) any later version.
17  *
18  * Gnucash is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21  * Library General Public License for more details.
22  *
23  * You should have received a copy of the GNU General Public License
24  * along with this program; if not, contact:
25  *
26  * Free Software Foundation Voice: +1-617-542-5942
27  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652
28  * Boston, MA 02110-1301, USA gnu@gnu.org
29  */
30 
31 #ifndef GNC_ACCOUNT_SEL_H
32 #define GNC_ACCOUNT_SEL_H
33 
34 #include "Account.h"
35 
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
39 
40 #define GNC_TYPE_ACCOUNT_SEL (gnc_account_sel_get_type())
41 G_DECLARE_FINAL_TYPE (GNCAccountSel, gnc_account_sel, GNC, ACCOUNT_SEL, GtkBox)
42 
43 GtkWidget* gnc_account_sel_new (void);
44 
50 void gnc_account_sel_set_account (GNCAccountSel *gas, Account *acct,
51  gboolean set_default_acct);
52 
57 Account* gnc_account_sel_get_account (GNCAccountSel *gas);
58 
65 void gnc_account_sel_set_acct_filters (GNCAccountSel *gas,
66  GList *typeFilters,
67  GList *commodityFilters);
68 
75 void gnc_account_sel_set_acct_exclude_filter (GNCAccountSel *gas,
76  GList *excludeFilter);
77 
78 
85 void gnc_account_sel_set_default_new_commodity (GNCAccountSel*, gnc_commodity*);
91 void gnc_account_sel_set_new_account_ability (GNCAccountSel *gas, gboolean state);
92 
97 void gnc_account_sel_set_new_account_modal (GNCAccountSel *gas, gboolean state);
98 
105 gint gnc_account_sel_get_visible_account_num (GNCAccountSel *gas);
106 
107 #ifdef __cplusplus
108 }
109 #endif
110 
111 #endif /* GNC_ACCOUNT_SEL_H */
STRUCTS.
Account handling public routines.