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 #define GNC_TREE_MODEL_COMMODITY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_TREE_MODEL_COMMODITY, GncTreeModelCommodity))
49 #define GNC_TREE_MODEL_COMMODITY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_TREE_MODEL_COMMODITY, GncTreeModelCommodityClass))
50 #define GNC_IS_TREE_MODEL_COMMODITY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_TREE_MODEL_COMMODITY))
51 #define GNC_IS_TREE_MODEL_COMMODITY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_TREE_MODEL_COMMODITY))
52 #define GNC_TREE_MODEL_COMMODITY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_TREE_MODEL_COMMODITY, GncTreeModelCommodityClass))
53 #define GNC_TREE_MODEL_COMMODITY_NAME "GncTreeModelCommodity"
58 GNC_TREE_MODEL_COMMODITY_COL_NAMESPACE,
59 GNC_TREE_MODEL_COMMODITY_COL_MNEMONIC,
60 GNC_TREE_MODEL_COMMODITY_COL_USER_SYMBOL,
61 GNC_TREE_MODEL_COMMODITY_COL_FULLNAME,
62 GNC_TREE_MODEL_COMMODITY_COL_PRINTNAME,
63 GNC_TREE_MODEL_COMMODITY_COL_UNIQUE_NAME,
64 GNC_TREE_MODEL_COMMODITY_COL_CUSIP,
65 GNC_TREE_MODEL_COMMODITY_COL_FRACTION,
66 GNC_TREE_MODEL_COMMODITY_COL_QUOTE_FLAG,
67 GNC_TREE_MODEL_COMMODITY_COL_QUOTE_SOURCE,
68 GNC_TREE_MODEL_COMMODITY_COL_QUOTE_TZ,
70 GNC_TREE_MODEL_COMMODITY_COL_LAST_VISIBLE = GNC_TREE_MODEL_COMMODITY_COL_QUOTE_TZ,
73 GNC_TREE_MODEL_COMMODITY_COL_VISIBILITY,
75 GNC_TREE_MODEL_COMMODITY_NUM_COLUMNS
76 } GncTreeModelCommodityColumn;
gnc_commodity * gnc_tree_model_commodity_get_commodity(GncTreeModelCommodity *model, GtkTreeIter *iter)
gboolean gnc_tree_model_commodity_get_iter_from_commodity(GncTreeModelCommodity *model, gnc_commodity *commodity, GtkTreeIter *iter)
GtkTreePath * gnc_tree_model_commodity_get_path_from_commodity(GncTreeModelCommodity *model, gnc_commodity *commodity)
gnc_commodity_namespace * gnc_tree_model_commodity_get_namespace(GncTreeModelCommodity *model, GtkTreeIter *iter)
GncTreeModelClass gnc_tree_model
GtkTreeModel implementation for a generic gnucash tree.
GType gnc_tree_model_commodity_get_type(void)
GtkTreeModel * gnc_tree_model_commodity_new(QofBook *book, gnc_commodity_table *ct)
gboolean gnc_tree_model_commodity_get_iter_from_namespace(GncTreeModelCommodity *model, gnc_commodity_namespace *name_space, GtkTreeIter *iter)
gboolean gnc_tree_model_commodity_iter_is_commodity(GncTreeModelCommodity *model, GtkTreeIter *iter)
gboolean gnc_tree_model_commodity_iter_is_namespace(GncTreeModelCommodity *model, GtkTreeIter *iter)
Commodity handling public routines.
GncTreeModel gnc_tree_model