23 #ifndef GNUCASH_ITEM_LIST_H
24 #define GNUCASH_ITEM_LIST_H
26 #include <libgnomecanvas/libgnomecanvas.h>
28 #define GNC_TYPE_ITEM_LIST (gnc_item_list_get_type ())
29 #define GNC_ITEM_LIST(o) (G_TYPE_CHECK_INSTANCE_CAST((o), GNC_TYPE_ITEM_LIST, GncItemList))
30 #define GNC_ITEM_LIST_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GNC_TYPE_ITEM_LIST, GncItemListClass))
31 #define IS_GNC_ITEM_LIST(o) (G_TYPE_CHECK_INSTANCE_TYPE((o), GNC_TYPE_ITEM_LIST))
35 GnomeCanvasWidget canvas_widget;
37 GtkTreeView *tree_view;
38 GtkListStore *list_store;
44 GnomeCanvasWidgetClass parent_class;
61 GType gnc_item_list_get_type (
void);
63 GnomeCanvasItem *gnc_item_list_new (GnomeCanvasGroup *parent, GtkListStore *shared_store);
65 gint gnc_item_list_num_entries (
GncItemList *item_list);
69 void gnc_item_list_append (
GncItemList *item_list,
const char *
string);
71 void gnc_item_list_set_sort_enabled(
GncItemList *item_list, gboolean enabled);
73 gboolean gnc_item_in_list (
GncItemList *item_list,
const char *
string);
75 void gnc_item_list_select (
GncItemList *item_list,
const char *
string);
77 void gnc_item_list_show_selected (
GncItemList *item_list);
79 int gnc_item_list_autosize (
GncItemList *item_list);