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 #define GNC_TREE_MODEL_PRICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_TREE_MODEL_PRICE, GncTreeModelPrice))
49 #define GNC_TREE_MODEL_PRICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_TREE_MODEL_PRICE, GncTreeModelPriceClass))
50 #define GNC_IS_TREE_MODEL_PRICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_TREE_MODEL_PRICE))
51 #define GNC_IS_TREE_MODEL_PRICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_TREE_MODEL_PRICE))
52 #define GNC_TREE_MODEL_PRICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_TREE_MODEL_PRICE, GncTreeModelPriceClass))
53 #define GNC_TREE_MODEL_PRICE_NAME "GncTreeModelPrice"
58 GNC_TREE_MODEL_PRICE_COL_COMMODITY,
59 GNC_TREE_MODEL_PRICE_COL_CURRENCY,
60 GNC_TREE_MODEL_PRICE_COL_DATE,
61 GNC_TREE_MODEL_PRICE_COL_SOURCE,
62 GNC_TREE_MODEL_PRICE_COL_TYPE,
63 GNC_TREE_MODEL_PRICE_COL_VALUE,
65 GNC_TREE_MODEL_PRICE_COL_LAST_VISIBLE = GNC_TREE_MODEL_PRICE_COL_VALUE,
68 GNC_TREE_MODEL_PRICE_COL_VISIBILITY,
69 GNC_TREE_MODEL_PRICE_NUM_COLUMNS
70 } GncTreeModelPriceColumn;
gboolean gnc_tree_model_price_get_iter_from_price(GncTreeModelPrice *model, GNCPrice *price, GtkTreeIter *iter)
gnc_commodity * gnc_tree_model_price_get_commodity(GncTreeModelPrice *model, GtkTreeIter *iter)
a simple price database for gnucash
gboolean gnc_tree_model_price_get_iter_from_namespace(GncTreeModelPrice *model, gnc_commodity_namespace *name_space, GtkTreeIter *iter)
GNCPrice * gnc_tree_model_price_get_price(GncTreeModelPrice *model, GtkTreeIter *iter)
gnc_commodity_namespace * gnc_tree_model_price_get_namespace(GncTreeModelPrice *model, GtkTreeIter *iter)
GtkTreeModel implementation for a generic gnucash tree.
GncTreeModelClass gnc_tree_model
gboolean gnc_tree_model_price_iter_is_namespace(GncTreeModelPrice *model, GtkTreeIter *iter)
gboolean gnc_tree_model_price_iter_is_commodity(GncTreeModelPrice *model, GtkTreeIter *iter)
gboolean gnc_tree_model_price_iter_is_price(GncTreeModelPrice *model, GtkTreeIter *iter)
GType gnc_tree_model_price_get_type(void)
GtkTreeModel * gnc_tree_model_price_new(QofBook *book, GNCPriceDB *price_db)
GncTreeModel gnc_tree_model
GtkTreePath * gnc_tree_model_price_get_path_from_price(GncTreeModelPrice *model, GNCPrice *price)
gboolean gnc_tree_model_price_get_iter_from_commodity(GncTreeModelPrice *model, gnc_commodity *commodity, GtkTreeIter *iter)