36 #ifndef __GNC_TREE_MODEL_COMMODITY_H 37 #define __GNC_TREE_MODEL_COMMODITY_H 47 #define GNC_TYPE_TREE_MODEL_COMMODITY (gnc_tree_model_commodity_get_type ()) 48 G_DECLARE_FINAL_TYPE (GncTreeModelCommodity, gnc_tree_model_commodity, GNC, TREE_MODEL_COMMODITY, GncTreeModel)
50 #define GNC_TREE_MODEL_COMMODITY_NAME "GncTreeModelCommodity" 55 GNC_TREE_MODEL_COMMODITY_COL_NAMESPACE,
56 GNC_TREE_MODEL_COMMODITY_COL_MNEMONIC,
57 GNC_TREE_MODEL_COMMODITY_COL_USER_SYMBOL,
58 GNC_TREE_MODEL_COMMODITY_COL_FULLNAME,
59 GNC_TREE_MODEL_COMMODITY_COL_PRINTNAME,
60 GNC_TREE_MODEL_COMMODITY_COL_UNIQUE_NAME,
61 GNC_TREE_MODEL_COMMODITY_COL_CUSIP,
62 GNC_TREE_MODEL_COMMODITY_COL_FRACTION,
63 GNC_TREE_MODEL_COMMODITY_COL_QUOTE_FLAG,
64 GNC_TREE_MODEL_COMMODITY_COL_QUOTE_SOURCE,
65 GNC_TREE_MODEL_COMMODITY_COL_QUOTE_TZ,
67 GNC_TREE_MODEL_COMMODITY_COL_LAST_VISIBLE = GNC_TREE_MODEL_COMMODITY_COL_QUOTE_TZ,
70 GNC_TREE_MODEL_COMMODITY_COL_VISIBILITY,
72 GNC_TREE_MODEL_COMMODITY_NUM_COLUMNS
73 } GncTreeModelCommodityColumn;
168 gnc_commodity_namespace *name_space,
182 gnc_commodity *commodity,
196 gnc_commodity *commodity);
gnc_commodity * gnc_tree_model_commodity_get_commodity(GncTreeModelCommodity *model, GtkTreeIter *iter)
Convert a model/iter pair to a gnucash commodity.
gboolean gnc_tree_model_commodity_get_iter_from_commodity(GncTreeModelCommodity *model, gnc_commodity *commodity, GtkTreeIter *iter)
Convert a commodity pointer into a GtkTreeIter.
GtkTreePath * gnc_tree_model_commodity_get_path_from_commodity(GncTreeModelCommodity *model, gnc_commodity *commodity)
Convert a commodity pointer into a GtkTreePath.
gnc_commodity_namespace * gnc_tree_model_commodity_get_namespace(GncTreeModelCommodity *model, GtkTreeIter *iter)
Convert a model/iter pair to a gnucash commodity namespace.
GtkTreeModel implementation for a generic gnucash tree.
GtkTreeModel * gnc_tree_model_commodity_new(QofBook *book, gnc_commodity_table *ct)
Create a new GtkTreeModel for manipulating gnucash commodities.
gboolean gnc_tree_model_commodity_get_iter_from_namespace(GncTreeModelCommodity *model, gnc_commodity_namespace *name_space, GtkTreeIter *iter)
Convert a commodity namespace pointer into a GtkTreeIter.
gboolean gnc_tree_model_commodity_iter_is_commodity(GncTreeModelCommodity *model, GtkTreeIter *iter)
Determine whether or not the specified GtkTreeIter points to a commodity.
gboolean gnc_tree_model_commodity_iter_is_namespace(GncTreeModelCommodity *model, GtkTreeIter *iter)
Determine whether or not the specified GtkTreeIter points to a commodity namespace.
Commodity handling public routines.