34 #ifndef __GNC_TREE_MODEL_OWNER_H 35 #define __GNC_TREE_MODEL_OWNER_H 45 #define GNC_TYPE_TREE_MODEL_OWNER (gnc_tree_model_owner_get_type ()) 46 G_DECLARE_FINAL_TYPE (GncTreeModelOwner, gnc_tree_model_owner, GNC, TREE_MODEL_OWNER, GncTreeModel)
48 #define GNC_TREE_MODEL_OWNER_NAME "GncTreeModelOwner" 53 GNC_TREE_MODEL_OWNER_COL_NAME,
54 GNC_TREE_MODEL_OWNER_COL_TYPE,
55 GNC_TREE_MODEL_OWNER_COL_ID,
56 GNC_TREE_MODEL_OWNER_COL_CURRENCY,
57 GNC_TREE_MODEL_OWNER_COL_ADDRESS_NAME,
58 GNC_TREE_MODEL_OWNER_COL_ADDRESS_1,
59 GNC_TREE_MODEL_OWNER_COL_ADDRESS_2,
60 GNC_TREE_MODEL_OWNER_COL_ADDRESS_3,
61 GNC_TREE_MODEL_OWNER_COL_ADDRESS_4,
62 GNC_TREE_MODEL_OWNER_COL_PHONE,
63 GNC_TREE_MODEL_OWNER_COL_FAX,
64 GNC_TREE_MODEL_OWNER_COL_EMAIL,
65 GNC_TREE_MODEL_OWNER_COL_BALANCE,
66 GNC_TREE_MODEL_OWNER_COL_BALANCE_REPORT,
67 GNC_TREE_MODEL_OWNER_COL_NOTES,
68 GNC_TREE_MODEL_OWNER_COL_ACTIVE,
70 GNC_TREE_MODEL_OWNER_COL_LAST_VISIBLE = GNC_TREE_MODEL_OWNER_COL_ACTIVE,
73 GNC_TREE_MODEL_OWNER_COL_COLOR_BALANCE,
75 GNC_TREE_MODEL_OWNER_NUM_COLUMNS
76 } GncTreeModelOwnerColumn;
Business Interface: Object OWNERs.
GtkTreeModel implementation for a generic gnucash tree.
GtkTreeModel * gnc_tree_model_owner_new(GncOwnerType owner_type)
Create a new GtkTreeModel for manipulating gnucash owners.
GtkTreePath * gnc_tree_model_owner_get_path_from_owner(GncTreeModelOwner *model, GncOwner *owner)
Convert a model/owner pair into a gtk_tree_model_path.
GncOwner * gnc_tree_model_owner_get_owner(GncTreeModelOwner *model, GtkTreeIter *iter)
Convert a model/iter pair to a gnucash owner.
gboolean gnc_tree_model_owner_get_iter_from_owner(GncTreeModelOwner *model, GncOwner *owner, GtkTreeIter *iter)
Convert a model/owner pair into a gtk_tree_model_iter.