24 #ifndef GNC_QUERY_VIEW_H
25 #define GNC_QUERY_VIEW_H
35 #define GNC_TYPE_QUERY_VIEW (gnc_query_view_get_type ())
36 #define GNC_QUERY_VIEW(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_QUERY_VIEW, GNCQueryView)
37 #define GNC_QUERY_VIEW_CLASS(klass) G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_QUERY_VIEW, GNCQueryViewClass)
38 #define GNC_IS_QUERY_VIEW(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_QUERY_VIEW)
39 #define GNC_IS_QUERY_VIEW_CLASS(klass) G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_QUERY_VIEW)
53 gpointer selected_entry;
54 GList *selected_entry_list;
64 gboolean numeric_inv_sort;
73 GtkTreeViewClass view_class;
77 void (*column_toggled) (
GNCQueryView *qview, gpointer item);
81 void (*row_selected) (
GNCQueryView *qview, gpointer item);
85 void (*double_click_entry) (
GNCQueryView *qview, gpointer entry);
92 GType gnc_query_view_get_type (
void);
99 GtkWidget * gnc_query_view_new (GList *param_list, Query *query);
101 void gnc_query_view_construct (
GNCQueryView *qview, GList *param_list, Query *query);
103 void gnc_query_view_reset_query (
GNCQueryView *view, Query *query);
105 void gnc_query_view_set_numerics (
GNCQueryView *qview, gboolean abs, gboolean inv_sort);
107 gint gnc_query_view_get_num_entries (
GNCQueryView *qview);
109 gpointer gnc_query_view_get_selected_entry (
GNCQueryView *qview);
111 GList * gnc_query_view_get_selected_entry_list (
GNCQueryView *qview);
117 gboolean gnc_query_view_item_in_view (
GNCQueryView *qview, gpointer item);
119 void gnc_query_sort_order (
GNCQueryView *qview, gint column, GtkSortType order);