34 #ifndef __GNC_TREE_VIEW_ACCOUNT_H
35 #define __GNC_TREE_VIEW_ACCOUNT_H
46 #define GNC_TYPE_TREE_VIEW_ACCOUNT (gnc_tree_view_account_get_type ())
47 #define GNC_TREE_VIEW_ACCOUNT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_TREE_VIEW_ACCOUNT, GncTreeViewAccount))
48 #define GNC_TREE_VIEW_ACCOUNT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_TREE_VIEW_ACCOUNT, GncTreeViewAccountClass))
49 #define GNC_IS_TREE_VIEW_ACCOUNT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_TREE_VIEW_ACCOUNT))
50 #define GNC_IS_TREE_VIEW_ACCOUNT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_TREE_VIEW_ACCOUNT))
51 #define GNC_TREE_VIEW_ACCOUNT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_TREE_VIEW_ACCOUNT, GncTreeViewAccountClass))
52 #define GNC_TREE_VIEW_ACCOUNT_NAME "GncTreeViewAccount"
81 guint32 visible_types;
82 guint32 original_visible_types;
84 gboolean original_show_hidden;
85 gboolean show_zero_total;
86 gboolean original_show_zero_total;
88 gboolean original_show_unused;
114 GKeyFile *key_file,
const gchar *group_name);
118 const gchar *group_name);
122 GType gnc_tree_view_account_get_type (
void);
162 typedef gchar * (*GncTreeViewAccountColumnSource) (
Account *account,
163 GtkTreeViewColumn *col,
164 GtkCellRenderer *cell);
166 typedef void (*GncTreeViewAccountColumnTextEdited) (
Account *account,
167 GtkTreeViewColumn *col,
168 const gchar *new_text);
189 GncTreeViewAccountColumnSource source_cb,
190 GncTreeViewAccountColumnTextEdited edited_cb);
193 GncTreeViewAccountColumnTextEdited edited_cb);
194 void gnc_tree_view_account_name_edited_cb(
Account *account, GtkTreeViewColumn *col,
const gchar *new_name);
197 GncTreeViewAccountColumnTextEdited edited_cb);
198 void gnc_tree_view_account_code_edited_cb(
Account *account, GtkTreeViewColumn *col,
const gchar *new_code);
201 GncTreeViewAccountColumnTextEdited edited_cb);
202 void gnc_tree_view_account_description_edited_cb(
Account *account, GtkTreeViewColumn *col,
const gchar *new_desc);
205 GncTreeViewAccountColumnTextEdited edited_cb);
206 void gnc_tree_view_account_notes_edited_cb(
Account *account, GtkTreeViewColumn *col,
const gchar *new_notes);
221 const gchar *column_title,
222 const gchar *propname);
291 GSourceFunc destroy);
301 gboolean gnc_tree_view_account_filter_by_view_info(
void gnc_tree_view_account_get_view_info(GncTreeViewAccount *account_view, AccountViewInfo *avi)
GtkTreeViewColumn * gnc_tree_view_account_add_property_column(GncTreeViewAccount *view, const gchar *column_title, const gchar *propname)
GList * gnc_tree_view_account_get_selected_accounts(GncTreeViewAccount *view)
Account * gnc_tree_view_account_get_cursor_account(GncTreeViewAccount *view)
utility functions for the GnuCash UI
void gppat_filter_response_cb(GtkWidget *dialog, gint response, AccountFilterDialog *fd)
common utilities for manipulating a GtkTreeView within gnucash
void gppat_filter_select_all_cb(GtkWidget *button, AccountFilterDialog *fd)
gboolean(* gnc_tree_view_account_filter_func)(Account *account, gpointer data)
void gnc_tree_view_account_expand_to_account(GncTreeViewAccount *view, Account *account)
void gnc_tree_view_account_set_view_info(GncTreeViewAccount *account_view, AccountViewInfo *avi)
void gppat_filter_clear_all_cb(GtkWidget *button, AccountFilterDialog *fd)
void gnc_tree_view_account_set_selected_accounts(GncTreeViewAccount *view, GList *account_list, gboolean show_last)
void gppat_filter_show_hidden_toggled_cb(GtkToggleButton *togglebutton, AccountFilterDialog *fd)
void gnc_tree_view_account_set_filter(GncTreeViewAccount *account_view, gnc_tree_view_account_filter_func func, gpointer data, GSourceFunc destroy)
void gnc_tree_view_account_select_subaccounts(GncTreeViewAccount *view, Account *account)
void gnc_tree_view_account_refilter(GncTreeViewAccount *view)
GtkTreeViewColumn * gnc_tree_view_account_add_custom_column(GncTreeViewAccount *view, const gchar *column_title, GncTreeViewAccountColumnSource source_cb, GncTreeViewAccountColumnTextEdited edited_cb)
GtkTreeView * gnc_tree_view_account_new_with_root(Account *root, gboolean show_root)
GtkTreeView * gnc_tree_view_account_new(gboolean show_root)
gboolean gnc_plugin_page_account_tree_filter_accounts(Account *account, gpointer user_data)
Functions for adding plugins to a GnuCash window.
Account * gnc_tree_view_account_get_account_from_iter(GtkTreeModel *model, GtkTreeIter *iter)
Account * gnc_tree_view_account_get_account_from_path(GncTreeViewAccount *view, GtkTreePath *path)
void gnc_tree_view_account_set_selected_account(GncTreeViewAccount *view, Account *account)
void gppat_filter_show_unused_toggled_cb(GtkToggleButton *togglebutton, AccountFilterDialog *fd)
gint gnc_tree_view_account_count_children(GncTreeViewAccount *view, Account *account)
Account * gnc_tree_view_account_get_selected_account(GncTreeViewAccount *view)
void gppat_filter_select_default_cb(GtkWidget *button, AccountFilterDialog *fd)
void gppat_filter_show_zero_toggled_cb(GtkToggleButton *togglebutton, AccountFilterDialog *fd)