23 #ifndef GNUCASH_ITEM_LIST_H 24 #define GNUCASH_ITEM_LIST_H 35 #define GNC_TYPE_ITEM_LIST (gnc_item_list_get_type ()) 36 #define GNC_ITEM_LIST(o) (G_TYPE_CHECK_INSTANCE_CAST((o), GNC_TYPE_ITEM_LIST, GncItemList)) 37 #define GNC_ITEM_LIST_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GNC_TYPE_ITEM_LIST, GncItemListClass)) 38 #define IS_GNC_ITEM_LIST(o) (G_TYPE_CHECK_INSTANCE_TYPE((o), GNC_TYPE_ITEM_LIST)) 44 GtkTreeView *tree_view;
45 GtkScrolledWindow* scrollwin;
46 GtkListStore *list_store;
47 GtkListStore *temp_store;
48 GtkCellRenderer *renderer;
54 GtkEventBoxClass parent_class;
68 GType gnc_item_list_get_type (
void);
70 GtkWidget *gnc_item_list_new (GtkListStore *shared_store);
72 gint gnc_item_list_num_entries (
GncItemList *item_list);
74 gint gnc_item_list_get_popup_height (
GncItemList *item_list);
78 void gnc_item_list_append (
GncItemList *item_list,
const char *
string);
80 void gnc_item_list_set_sort_column (
GncItemList *item_list, gint column_id);
82 gboolean gnc_item_in_list (
GncItemList *item_list,
const char *
string);
84 void gnc_item_list_select (
GncItemList *item_list,
const char *
string);
86 void gnc_item_list_show_selected (
GncItemList *item_list);
95 int gnc_item_list_autosize (
GncItemList *item_list);
97 void gnc_item_list_set_temp_store (
GncItemList *item_list, GtkListStore *store);
99 gboolean gnc_item_list_using_temp (
GncItemList *item_list);
101 GtkListStore * gnc_item_list_disconnect_store (
GncItemList *item_list);
103 void gnc_item_list_connect_store (
GncItemList *item_list, GtkListStore *store);
char * gnc_item_list_get_selection(GncItemList *item_list)
Retrieve the selected string from the item_list's active GtkListStore.