34 #ifndef __GNC_TREE_VIEW_PRICE_H 35 #define __GNC_TREE_VIEW_PRICE_H 46 #define GNC_TYPE_TREE_VIEW_PRICE (gnc_tree_view_price_get_type ()) 47 #define GNC_TREE_VIEW_PRICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_TREE_VIEW_PRICE, GncTreeViewPrice)) 48 #define GNC_TREE_VIEW_PRICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_TREE_VIEW_PRICE, GncTreeViewPriceClass)) 49 #define GNC_IS_TREE_VIEW_PRICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_TREE_VIEW_PRICE)) 50 #define GNC_IS_TREE_VIEW_PRICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_TREE_VIEW_PRICE)) 51 #define GNC_TREE_VIEW_PRICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_TREE_VIEW_PRICE, GncTreeViewPriceClass)) 68 GType gnc_tree_view_price_get_type (
void);
89 const gchar *first_property_name,
110 const gchar *column_title,
111 const gchar *kvp_key);
139 typedef gboolean (*gnc_tree_view_price_cm_filter_func)(gnc_commodity *, gpointer data);
140 typedef gboolean (*gnc_tree_view_price_pc_filter_func)(GNCPrice *, gpointer data);
143 gnc_tree_view_price_cm_filter_func cm_func,
144 gnc_tree_view_price_pc_filter_func pc_func,
146 GDestroyNotify destroy);
a simple price database for gnucash
utility functions for the GnuCash UI
gboolean(* gnc_tree_view_price_ns_filter_func)(gnc_commodity_namespace *, gpointer data)
This function attaches a filter function to the given price tree.
common utilities for manipulating a GtkTreeView within gnucash
GNCPrice * gnc_tree_view_price_get_selected_price(GncTreeViewPrice *view)
This function returns the price associated with the selected item in the price tree view...
GList * gnc_tree_view_price_get_selected_commodities(GncTreeViewPrice *view)
This function returns a list of commodities associated with the selected rows that are not prices but...
GList * gnc_tree_view_price_get_selected_prices(GncTreeViewPrice *view)
This function returns a list of the prices associated with the selected items in the price tree view...
void gnc_tree_view_price_set_selected_price(GncTreeViewPrice *view, GNCPrice *price)
This function selects an price in the price tree view.
GNCPrice * gnc_tree_view_price_get_cursor_price(GncTreeViewPrice *view)
This function returns the price in the price tree view at the current location of the cursor...
GtkTreeView * gnc_tree_view_price_new(QofBook *book, const gchar *first_property_name,...)
Create a new price tree view.