34 #ifndef __GNC_TREE_VIEW_OWNER_H
35 #define __GNC_TREE_VIEW_OWNER_H
47 #define GNC_TYPE_TREE_VIEW_OWNER (gnc_tree_view_owner_get_type ())
48 #define GNC_TREE_VIEW_OWNER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_TREE_VIEW_OWNER, GncTreeViewOwner))
49 #define GNC_TREE_VIEW_OWNER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_TREE_VIEW_OWNER, GncTreeViewOwnerClass))
50 #define GNC_IS_TREE_VIEW_OWNER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_TREE_VIEW_OWNER))
51 #define GNC_IS_TREE_VIEW_OWNER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_TREE_VIEW_OWNER))
52 #define GNC_TREE_VIEW_OWNER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_TREE_VIEW_OWNER, GncTreeViewOwnerClass))
53 #define GNC_TREE_VIEW_OWNER_NAME "GncTreeViewOwner"
61 gboolean show_inactive;
80 gboolean show_inactive;
81 gboolean original_show_inactive;
82 gboolean show_zero_total;
83 gboolean original_show_zero_total;
86 #define GNC_OWNER_TREE_NAME_COL "name"
87 #define GNC_OWNER_TREE_TYPE_COL "type"
88 #define GNC_OWNER_TREE_ID_COL "owner-id"
89 #define GNC_OWNER_TREE_CURRENCY_COL "currency"
90 #define GNC_OWNER_TREE_ADDRESS_NAME_COL "address-name"
91 #define GNC_OWNER_TREE_ADDRESS_1_COL "address-1"
92 #define GNC_OWNER_TREE_ADDRESS_2_COL "address-2"
93 #define GNC_OWNER_TREE_ADDRESS_3_COL "address-3"
94 #define GNC_OWNER_TREE_ADDRESS_4_COL "address-4"
95 #define GNC_OWNER_TREE_PHONE_COL "phone"
96 #define GNC_OWNER_TREE_FAX_COL "fax"
97 #define GNC_OWNER_TREE_EMAIL_COL "email"
98 #define GNC_OWNER_TREE_BALANCE_COL "balance"
99 #define GNC_OWNER_TREE_BALANCE_REPORT_COL "balance-report"
100 #define GNC_OWNER_TREE_BALANCE_PERIOD_COL "balance-period"
101 #define GNC_OWNER_TREE_NOTES_COL "notes"
102 #define GNC_OWNER_TREE_ACTIVE_COL "active"
122 GKeyFile *key_file,
const gchar *group_name);
126 const gchar *group_name,
127 GncOwnerType owner_type);
131 GType gnc_tree_view_owner_get_type (
void);
151 typedef gchar * (*GncTreeViewOwnerColumnSource) (
GncOwner *owner,
152 GtkTreeViewColumn *col,
153 GtkCellRenderer *cell);
155 typedef void (*GncTreeViewOwnerColumnTextEdited) (
GncOwner *owner,
156 GtkTreeViewColumn *col,
157 const gchar *new_text);
198 GSourceFunc destroy);
void gnc_tree_view_owner_set_selected_owner(GncTreeViewOwner *view, GncOwner *owner)
GtkTreeView * gnc_tree_view_owner_new(GncOwnerType owner_type)
Business Interface: Object OWNERs.
void gnc_tree_view_owner_set_filter(GncTreeViewOwner *owner_view, gnc_tree_view_owner_filter_func func, gpointer data, GSourceFunc destroy)
void gnc_tree_view_owner_refilter(GncTreeViewOwner *view)
utility functions for the GnuCash UI
common utilities for manipulating a GtkTreeView within gnucash
GncOwner * gnc_tree_view_owner_get_owner_from_iter(GtkTreeModel *model, GtkTreeIter *iter)
void gppot_filter_response_cb(GtkWidget *dialog, gint response, OwnerFilterDialog *fd)
gboolean(* gnc_tree_view_owner_filter_func)(GncOwner *owner, gpointer data)
Functions for adding plugins to a GnuCash window.
void gppot_filter_show_inactive_toggled_cb(GtkToggleButton *togglebutton, OwnerFilterDialog *fd)
void gppot_filter_show_zero_toggled_cb(GtkToggleButton *togglebutton, OwnerFilterDialog *fd)
GncOwner * gnc_tree_view_owner_get_selected_owner(GncTreeViewOwner *view)
GncOwner * gnc_tree_view_owner_get_owner_from_path(GncTreeViewOwner *view, GtkTreePath *path)
gboolean gnc_plugin_page_owner_tree_filter_owners(GncOwner *owner, gpointer user_data)