34 #ifndef __GNC_TREE_VIEW_COMMODITY_H
35 #define __GNC_TREE_VIEW_COMMODITY_H
46 #define GNC_TYPE_TREE_VIEW_COMMODITY (gnc_tree_view_commodity_get_type ())
47 #define GNC_TREE_VIEW_COMMODITY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_TREE_VIEW_COMMODITY, GncTreeViewCommodity))
48 #define GNC_TREE_VIEW_COMMODITY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_TREE_VIEW_COMMODITY, GncTreeViewCommodityClass))
49 #define GNC_IS_TREE_VIEW_COMMODITY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_TREE_VIEW_COMMODITY))
50 #define GNC_IS_TREE_VIEW_COMMODITY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_TREE_VIEW_COMMODITY))
51 #define GNC_TREE_VIEW_COMMODITY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_TREE_VIEW_COMMODITY, GncTreeViewCommodityClass))
68 GType gnc_tree_view_commodity_get_type (
void);
89 const gchar *first_property_name,
107 GSList *column_names);
122 const gchar *column_title,
123 const gchar *kvp_key);
132 typedef gboolean (*gnc_tree_view_commodity_cm_filter_func)(
gnc_commodity*, gpointer data);
159 gnc_tree_view_commodity_ns_filter_func ns_func,
160 gnc_tree_view_commodity_cm_filter_func cm_func,
162 GDestroyNotify destroy);
GtkTreeView * gnc_tree_view_commodity_new(QofBook *book, const gchar *first_property_name,...)
void gnc_tree_view_commodity_set_filter(GncTreeViewCommodity *view, gnc_tree_view_commodity_ns_filter_func ns_func, gnc_tree_view_commodity_cm_filter_func cm_func, gpointer data, GDestroyNotify destroy)
utility functions for the GnuCash UI
common utilities for manipulating a GtkTreeView within gnucash
void gnc_tree_view_commodity_configure_columns(GncTreeViewCommodity *view, GSList *column_names)
void gnc_tree_view_commodity_select_subcommodities(GncTreeViewCommodity *view, gnc_commodity *commodity)
gnc_commodity * gnc_tree_view_commodity_get_selected_commodity(GncTreeViewCommodity *view)
void gnc_tree_view_commodity_refilter(GncTreeViewCommodity *view)
gnc_commodity * gnc_tree_view_commodity_get_cursor_commodity(GncTreeViewCommodity *view)
Commodity handling public routines.