36 #ifndef __GNC_TREE_MODEL_ACCOUNT_H 37 #define __GNC_TREE_MODEL_ACCOUNT_H 47 #define GNC_TYPE_TREE_MODEL_ACCOUNT (gnc_tree_model_account_get_type ()) 48 G_DECLARE_FINAL_TYPE (GncTreeModelAccount, gnc_tree_model_account, GNC, TREE_MODEL_ACCOUNT, GncTreeModel)
49 #define GNC_TREE_MODEL_ACCOUNT_NAME "GncTreeModelAccount" 53 GNC_TREE_MODEL_ACCOUNT_COL_NAME,
54 GNC_TREE_MODEL_ACCOUNT_COL_TYPE,
55 GNC_TREE_MODEL_ACCOUNT_COL_COMMODITY,
56 GNC_TREE_MODEL_ACCOUNT_COL_CODE,
57 GNC_TREE_MODEL_ACCOUNT_COL_DESCRIPTION,
58 GNC_TREE_MODEL_ACCOUNT_COL_LASTNUM,
59 GNC_TREE_MODEL_ACCOUNT_COL_PRESENT,
60 GNC_TREE_MODEL_ACCOUNT_COL_PRESENT_REPORT,
61 GNC_TREE_MODEL_ACCOUNT_COL_BALANCE,
62 GNC_TREE_MODEL_ACCOUNT_COL_BALANCE_REPORT,
63 GNC_TREE_MODEL_ACCOUNT_COL_BALANCE_PERIOD,
64 GNC_TREE_MODEL_ACCOUNT_COL_BALANCE_LIMIT,
65 GNC_TREE_MODEL_ACCOUNT_COL_BALANCE_LIMIT_EXPLANATION,
66 GNC_TREE_MODEL_ACCOUNT_COL_CLEARED,
67 GNC_TREE_MODEL_ACCOUNT_COL_CLEARED_REPORT,
68 GNC_TREE_MODEL_ACCOUNT_COL_RECONCILED,
69 GNC_TREE_MODEL_ACCOUNT_COL_RECONCILED_REPORT,
70 GNC_TREE_MODEL_ACCOUNT_COL_RECONCILED_DATE,
71 GNC_TREE_MODEL_ACCOUNT_COL_FUTURE_MIN,
72 GNC_TREE_MODEL_ACCOUNT_COL_FUTURE_MIN_REPORT,
73 GNC_TREE_MODEL_ACCOUNT_COL_TOTAL,
74 GNC_TREE_MODEL_ACCOUNT_COL_TOTAL_REPORT,
75 GNC_TREE_MODEL_ACCOUNT_COL_TOTAL_PERIOD,
76 GNC_TREE_MODEL_ACCOUNT_COL_NOTES,
77 GNC_TREE_MODEL_ACCOUNT_COL_TAX_INFO,
78 GNC_TREE_MODEL_ACCOUNT_COL_TAX_INFO_SUB_ACCT,
79 GNC_TREE_MODEL_ACCOUNT_COL_HIDDEN,
80 GNC_TREE_MODEL_ACCOUNT_COL_PLACEHOLDER,
81 GNC_TREE_MODEL_ACCOUNT_COL_OPENING_BALANCE,
83 GNC_TREE_MODEL_ACCOUNT_COL_LAST_VISIBLE = GNC_TREE_MODEL_ACCOUNT_COL_OPENING_BALANCE,
86 GNC_TREE_MODEL_ACCOUNT_COL_COLOR_PRESENT,
87 GNC_TREE_MODEL_ACCOUNT_COL_COLOR_ACCOUNT,
88 GNC_TREE_MODEL_ACCOUNT_COL_COLOR_BALANCE,
89 GNC_TREE_MODEL_ACCOUNT_COL_COLOR_BALANCE_PERIOD,
90 GNC_TREE_MODEL_ACCOUNT_COL_COLOR_CLEARED,
91 GNC_TREE_MODEL_ACCOUNT_COL_COLOR_RECONCILED,
92 GNC_TREE_MODEL_ACCOUNT_COL_COLOR_FUTURE_MIN,
93 GNC_TREE_MODEL_ACCOUNT_COL_COLOR_TOTAL,
94 GNC_TREE_MODEL_ACCOUNT_COL_COLOR_TOTAL_PERIOD,
96 GNC_TREE_MODEL_ACCOUNT_NUM_COLUMNS
97 } GncTreeModelAccountColumn;
Account * gnc_tree_model_account_get_account(GncTreeModelAccount *model, GtkTreeIter *iter)
Convert a model/iter pair to a gnucash account.
GtkTreeModel implementation for a generic gnucash tree.
gboolean gnc_tree_model_account_get_iter_from_account(GncTreeModelAccount *model, Account *account, GtkTreeIter *iter)
Convert a model/account pair into a gtk_tree_model_iter.
void gnc_tree_model_account_clear_cache(GncTreeModelAccount *model)
Clear the tree model account cached values.
Account handling public routines.
GtkTreeModel * gnc_tree_model_account_new(Account *root)
Create a new GtkTreeModel for manipulating gnucash accounts.
GtkTreePath * gnc_tree_model_account_get_path_from_account(GncTreeModelAccount *model, Account *account)
Convert a model/account pair into a gtk_tree_model_path.