36 #ifndef __GNC_TREE_MODEL_PRICE_H 37 #define __GNC_TREE_MODEL_PRICE_H 47 #define GNC_TYPE_TREE_MODEL_PRICE (gnc_tree_model_price_get_type ()) 48 G_DECLARE_FINAL_TYPE (GncTreeModelPrice, gnc_tree_model_price, GNC, TREE_MODEL_PRICE, GncTreeModel)
50 #define GNC_TREE_MODEL_PRICE_NAME "GncTreeModelPrice" 55 GNC_TREE_MODEL_PRICE_COL_COMMODITY,
56 GNC_TREE_MODEL_PRICE_COL_CURRENCY,
57 GNC_TREE_MODEL_PRICE_COL_DATE,
58 GNC_TREE_MODEL_PRICE_COL_SOURCE,
59 GNC_TREE_MODEL_PRICE_COL_TYPE,
60 GNC_TREE_MODEL_PRICE_COL_VALUE,
62 GNC_TREE_MODEL_PRICE_COL_LAST_VISIBLE = GNC_TREE_MODEL_PRICE_COL_VALUE,
65 GNC_TREE_MODEL_PRICE_COL_VISIBILITY,
66 GNC_TREE_MODEL_PRICE_NUM_COLUMNS
67 } GncTreeModelPriceColumn;
195 gnc_commodity_namespace *name_space,
209 gnc_commodity *commodity,
gboolean gnc_tree_model_price_get_iter_from_price(GncTreeModelPrice *model, GNCPrice *price, GtkTreeIter *iter)
Convert a price pointer into a GtkTreeIter.
gnc_commodity * gnc_tree_model_price_get_commodity(GncTreeModelPrice *model, GtkTreeIter *iter)
Convert a model/iter pair to a gnucash commodity.
a simple price database for gnucash
gboolean gnc_tree_model_price_get_iter_from_namespace(GncTreeModelPrice *model, gnc_commodity_namespace *name_space, GtkTreeIter *iter)
Convert a commodity namespace pointer into a GtkTreeIter.
GNCPrice * gnc_tree_model_price_get_price(GncTreeModelPrice *model, GtkTreeIter *iter)
Convert a model/iter pair to a gnucash price.
gnc_commodity_namespace * gnc_tree_model_price_get_namespace(GncTreeModelPrice *model, GtkTreeIter *iter)
Convert a model/iter pair to a gnucash commodity namespace.
GtkTreeModel implementation for a generic gnucash tree.
gboolean gnc_tree_model_price_iter_is_namespace(GncTreeModelPrice *model, GtkTreeIter *iter)
Determine whether or not the specified GtkTreeIter points to a "commodity namespace".
gboolean gnc_tree_model_price_iter_is_commodity(GncTreeModelPrice *model, GtkTreeIter *iter)
Determine whether or not the specified GtkTreeIter points to a commodity.
gboolean gnc_tree_model_price_iter_is_price(GncTreeModelPrice *model, GtkTreeIter *iter)
Determine whether or not the specified GtkTreeIter points to a price.
GtkTreeModel * gnc_tree_model_price_new(QofBook *book, GNCPriceDB *price_db)
Create a new GtkTreeModel for manipulating gnucash commodity prices.
GtkTreePath * gnc_tree_model_price_get_path_from_price(GncTreeModelPrice *model, GNCPrice *price)
Convert a price pointer into a GtkTreePath.
gboolean gnc_tree_model_price_get_iter_from_commodity(GncTreeModelPrice *model, gnc_commodity *commodity, GtkTreeIter *iter)
Convert a commodity pointer into a GtkTreeIter.