GnuCash Tree Model
[GUI]


Files

file  gnc-tree-model-account-types.h
 GtkTreeModel implementation to display account types in a GtkTreeView.
file  gnc-tree-model-account.h
 GtkTreeModel implementation for gnucash account tree.
file  gnc-tree-model-commodity.h
 GtkTreeModel implementation for gnucash commodities.
file  gnc-tree-model-price.h
 GtkTreeModel implementation for gnucash price database.
file  gnc-tree-model.h
 GtkTreeModel implementation for a generic gnucash tree.
file  gnc-tree-view-account.h
 GtkTreeView implementation for gnucash account tree.
file  gnc-tree-view-commodity.h
 GtkTreeView implementation for gnucash commodity tree.
file  gnc-tree-view-price.h
 GtkTreeView implementation for gnucash price tree.

Data Structures

struct  GncTreeModelAccountTypes
struct  GncTreeModelAccountTypesClass
struct  GncTreeModelAccount
struct  GncTreeModelAccountClass
struct  GncTreeModelCommodity
struct  GncTreeModelCommodityClass
struct  GncTreeModelPrice
struct  GncTreeModelPriceClass
struct  GncTreeModel
struct  GncTreeModelClass
struct  AccountViewInfo_s
struct  GncTreeViewAccount
struct  GncTreeViewAccountClass
struct  AccountFilterDialog
struct  GncTreeViewCommodity
struct  GncTreeViewCommodityClass
struct  GncTreeViewPrice
struct  GncTreeViewPriceClass

Account Tree View Configuration

typedef gchar *(*) GncTreeViewAccountColumnSource (Account *account, GtkTreeViewColumn *col, GtkCellRenderer *cell)
typedef void(*) GncTreeViewAccountColumnTextEdited (Account *account, GtkTreeViewColumn *col, const gchar *new_text)
GtkTreeViewColumn * gnc_tree_view_account_add_custom_column (GncTreeViewAccount *view, const gchar *column_title, GncTreeViewAccountColumnSource source_cb, GncTreeViewAccountColumnTextEdited edited_cb)
void gnc_tree_view_account_set_name_edited (GncTreeViewAccount *view, GncTreeViewAccountColumnTextEdited edited_cb)
void gnc_tree_view_account_name_edited_cb (Account *account, GtkTreeViewColumn *col, const gchar *new_name)
void gnc_tree_view_account_set_code_edited (GncTreeViewAccount *view, GncTreeViewAccountColumnTextEdited edited_cb)
void gnc_tree_view_account_code_edited_cb (Account *account, GtkTreeViewColumn *col, const gchar *new_code)
void gnc_tree_view_account_set_description_edited (GncTreeViewAccount *view, GncTreeViewAccountColumnTextEdited edited_cb)
void gnc_tree_view_account_description_edited_cb (Account *account, GtkTreeViewColumn *col, const gchar *new_desc)
void gnc_tree_view_account_set_notes_edited (GncTreeViewAccount *view, GncTreeViewAccountColumnTextEdited edited_cb)
void gnc_tree_view_account_notes_edited_cb (Account *account, GtkTreeViewColumn *col, const gchar *new_notes)
GtkTreeViewColumn * gnc_tree_view_account_add_kvp_column (GncTreeViewAccount *view, const gchar *column_title, const gchar *kvp_key)

Account Tree View Filtering

typedef gboolean(*) gnc_tree_view_account_filter_func (Account *account, gpointer data)
void gnc_tree_view_account_get_view_info (GncTreeViewAccount *account_view, AccountViewInfo *avi)
void gnc_tree_view_account_set_view_info (GncTreeViewAccount *account_view, AccountViewInfo *avi)
void gnc_tree_view_account_set_filter (GncTreeViewAccount *account_view, gnc_tree_view_account_filter_func func, gpointer data, GtkDestroyNotify destroy)
gboolean gnc_tree_view_account_filter_by_type_selection (Account *acct, gpointer data)
void gnc_tree_view_account_refilter (GncTreeViewAccount *view)

Commodity Tree View Filtering

typedef gboolean(*) gnc_tree_view_commodity_ns_filter_func (gnc_commodity_namespace *, gpointer data)
typedef gboolean(*) gnc_tree_view_commodity_cm_filter_func (gnc_commodity *, gpointer data)
void gnc_tree_view_commodity_set_filter (GncTreeViewCommodity *view, gnc_tree_view_commodity_ns_filter_func ns_func, gnc_tree_view_commodity_cm_filter_func cm_func, gpointer data, GtkDestroyNotify destroy)
void gnc_tree_view_commodity_refilter (GncTreeViewCommodity *view)

Price Tree View Filtering

typedef gboolean(*) gnc_tree_view_price_ns_filter_func (gnc_commodity_namespace *, gpointer data)
typedef gboolean(*) gnc_tree_view_price_cm_filter_func (gnc_commodity *, gpointer data)
typedef gboolean(*) gnc_tree_view_price_pc_filter_func (GNCPrice *, gpointer data)
void gnc_tree_view_price_set_filter (GncTreeViewPrice *view, gnc_tree_view_price_ns_filter_func ns_func, gnc_tree_view_price_cm_filter_func cm_func, gnc_tree_view_price_pc_filter_func pc_func, gpointer data, GtkDestroyNotify destroy)
void gnc_tree_view_price_refilter (GncTreeViewPrice *view)

Account Tree Model Constructors

GtkTreeModel * gnc_tree_model_account_new (Account *root)

Account Tree Model Get/Set Functions

Accountgnc_tree_model_account_get_account (GncTreeModelAccount *model, GtkTreeIter *iter)
gboolean gnc_tree_model_account_get_iter_from_account (GncTreeModelAccount *model, Account *account, GtkTreeIter *iter)
GtkTreePath * gnc_tree_model_account_get_path_from_account (GncTreeModelAccount *model, Account *account)

Account Tree Model Constructors

GtkTreeModel * gnc_tree_model_commodity_new (QofBook *book, gnc_commodity_table *ct)

Commodity Tree Model Filter Helper Functions

gboolean gnc_tree_model_commodity_iter_is_namespace (GncTreeModelCommodity *model, GtkTreeIter *iter)
gboolean gnc_tree_model_commodity_iter_is_commodity (GncTreeModelCommodity *model, GtkTreeIter *iter)
gnc_commodity_namespacegnc_tree_model_commodity_get_namespace (GncTreeModelCommodity *model, GtkTreeIter *iter)
gnc_commoditygnc_tree_model_commodity_get_commodity (GncTreeModelCommodity *model, GtkTreeIter *iter)

Commodity Tree Model Lookup Functions

gboolean gnc_tree_model_commodity_get_iter_from_namespace (GncTreeModelCommodity *model, gnc_commodity_namespace *namespace, GtkTreeIter *iter)
gboolean gnc_tree_model_commodity_get_iter_from_commodity (GncTreeModelCommodity *model, gnc_commodity *commodity, GtkTreeIter *iter)
GtkTreePath * gnc_tree_model_commodity_get_path_from_namespace (GncTreeModelCommodity *model, gnc_commodity_namespace *namespace)
GtkTreePath * gnc_tree_model_commodity_get_path_from_commodity (GncTreeModelCommodity *model, gnc_commodity *commodity)

Account Tree Model Constructors

GtkTreeModel * gnc_tree_model_price_new (QofBook *book, GNCPriceDB *price_db)

Price Tree Model Filter Helper Functions

gboolean gnc_tree_model_price_iter_is_namespace (GncTreeModelPrice *model, GtkTreeIter *iter)
gboolean gnc_tree_model_price_iter_is_commodity (GncTreeModelPrice *model, GtkTreeIter *iter)
gboolean gnc_tree_model_price_iter_is_price (GncTreeModelPrice *model, GtkTreeIter *iter)
gnc_commodity_namespacegnc_tree_model_price_get_namespace (GncTreeModelPrice *model, GtkTreeIter *iter)
gnc_commoditygnc_tree_model_price_get_commodity (GncTreeModelPrice *model, GtkTreeIter *iter)
GNCPricegnc_tree_model_price_get_price (GncTreeModelPrice *model, GtkTreeIter *iter)

Commodity Tree Model Lookup Functions

gboolean gnc_tree_model_price_get_iter_from_namespace (GncTreeModelPrice *model, gnc_commodity_namespace *namespace, GtkTreeIter *iter)
gboolean gnc_tree_model_price_get_iter_from_commodity (GncTreeModelPrice *model, gnc_commodity *commodity, GtkTreeIter *iter)
gboolean gnc_tree_model_price_get_iter_from_price (GncTreeModelPrice *model, GNCPrice *price, GtkTreeIter *iter)
GtkTreePath * gnc_tree_model_price_get_path_from_namespace (GncTreeModelPrice *model, gnc_commodity_namespace *namespace)
GtkTreePath * gnc_tree_model_price_get_path_from_commodity (GncTreeModelPrice *model, gnc_commodity *commodity)
GtkTreePath * gnc_tree_model_price_get_path_from_price (GncTreeModelPrice *model, GNCPrice *price)

Account Tree View Constructors

GtkTreeView * gnc_tree_view_account_new_with_root (Account *root, gboolean show_root)
GtkTreeView * gnc_tree_view_account_new (gboolean show_root)

Account Tree View Get/Set Functions

gint gnc_tree_view_account_count_children (GncTreeViewAccount *view, Account *account)
Accountgnc_tree_view_account_get_account_from_path (GncTreeViewAccount *view, GtkTreePath *path)
Accountgnc_tree_view_account_get_account_from_iter (GtkTreeModel *model, GtkTreeIter *iter)
Accountgnc_tree_view_account_get_cursor_account (GncTreeViewAccount *view)
Accountgnc_tree_view_account_get_selected_account (GncTreeViewAccount *view)
void gnc_tree_view_account_set_selected_account (GncTreeViewAccount *view, Account *account)
GList * gnc_tree_view_account_get_selected_accounts (GncTreeViewAccount *view)
void gnc_tree_view_account_set_selected_accounts (GncTreeViewAccount *view, GList *account_list, gboolean show_last)
void gnc_tree_view_account_select_subaccounts (GncTreeViewAccount *view, Account *account)
void gnc_tree_view_account_expand_to_account (GncTreeViewAccount *view, Account *account)

Commodity Tree View Constructors

GtkTreeView * gnc_tree_view_commodity_new (QofBook *book, const gchar *first_property_name,...)

Commodity Tree View Configuration

void gnc_tree_view_commodity_configure_columns (GncTreeViewCommodity *view, GSList *column_names)

Commodity Tree View Get/Set Functions

gint gnc_tree_view_commodity_count_children (GncTreeViewCommodity *view, gnc_commodity *commodity)
gnc_commoditygnc_tree_view_commodity_get_commodity_from_column (GtkTreeViewColumn *column, GtkTreeModel *f_model, GtkTreeIter *f_iter)
gnc_commoditygnc_tree_view_commodity_get_commodity_from_path (GncTreeViewCommodity *view, GtkTreePath *path)
gnc_commoditygnc_tree_view_commodity_get_cursor_commodity (GncTreeViewCommodity *view)
gnc_commoditygnc_tree_view_commodity_get_selected_commodity (GncTreeViewCommodity *view)
void gnc_tree_view_commodity_set_selected_commodity (GncTreeViewCommodity *view, gnc_commodity *commodity)
GList * gnc_tree_view_commodity_get_selected_commodities (GncTreeViewCommodity *view)
void gnc_tree_view_commodity_set_selected_commodities (GncTreeViewCommodity *view, GList *commodity_list, gboolean show_last)
void gnc_tree_view_commodity_select_subcommodities (GncTreeViewCommodity *view, gnc_commodity *commodity)

Price Tree View Constructors

GtkTreeView * gnc_tree_view_price_new (QofBook *book, const gchar *first_property_name,...)

Price Tree View Configuration

void gnc_tree_view_price_configure_columns (GncTreeViewPrice *price_view, GSList *column_names)

Price Tree View Get/Set Functions

gint gnc_tree_view_price_count_children (GncTreeViewPrice *view, GNCPrice *price)
GNCPricegnc_tree_view_price_get_price_from_column (GtkTreeViewColumn *column, GtkTreeModel *f_model, GtkTreeIter *f_iter)
GNCPricegnc_tree_view_price_get_price_from_path (GncTreeViewPrice *view, GtkTreePath *path)
GNCPricegnc_tree_view_price_get_cursor_price (GncTreeViewPrice *view)
GNCPricegnc_tree_view_price_get_selected_price (GncTreeViewPrice *view)
void gnc_tree_view_price_set_selected_price (GncTreeViewPrice *view, GNCPrice *price)
GList * gnc_tree_view_price_get_selected_prices (GncTreeViewPrice *view)
void gnc_tree_view_price_set_selected_prices (GncTreeViewPrice *view, GList *price_list, gboolean show_last)

Defines

#define GNC_TYPE_TREE_MODEL_ACCOUNT_TYPES   (gnc_tree_model_account_types_get_type ())
#define GNC_TREE_MODEL_ACCOUNT_TYPES(o)   (G_TYPE_CHECK_INSTANCE_CAST ((o), GNC_TYPE_TREE_MODEL_ACCOUNT_TYPES, GncTreeModelAccountTypes))
#define GNC_TREE_MODEL_ACCOUNT_TYPES_CLASS(k)   (G_TYPE_CHECK_CLASS_CAST ((k), GNC_TYPE_TREE_MODEL_ACCOUNT_TYPES, GncTreeModelAccountTypesClass))
#define GNC_IS_TREE_MODEL_ACCOUNT_TYPES(o)   (G_TYPE_CHECK_INSTANCE_TYPE ((o), GNC_TYPE_TREE_MODEL_ACCOUNT_TYPES))
#define GNC_IS_TREE_MODEL_ACCOUNT_TYPES_CLASS(k)   (G_TYPE_CHECK_CLASS_TYPE ((k), GNC_TYPE_TREE_MODEL_ACCOUNT_TYPES))
#define GNC_TREE_MODEL_ACCOUNT_TYPES_GET_CLASS(o)   (G_TYPE_INSTANCE_GET_CLASS ((o), GNC_TYPE_TREE_MODEL_ACCOUNT_TYPES, GncTreeModelAccountTypesClass))
#define GNC_TYPE_TREE_MODEL_ACCOUNT   (gnc_tree_model_account_get_type ())
#define GNC_TREE_MODEL_ACCOUNT(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_TREE_MODEL_ACCOUNT, GncTreeModelAccount))
#define GNC_TREE_MODEL_ACCOUNT_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_TREE_MODEL_ACCOUNT, GncTreeModelAccountClass))
#define GNC_IS_TREE_MODEL_ACCOUNT(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_TREE_MODEL_ACCOUNT))
#define GNC_IS_TREE_MODEL_ACCOUNT_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_TREE_MODEL_ACCOUNT))
#define GNC_TREE_MODEL_ACCOUNT_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_TREE_MODEL_ACCOUNT, GncTreeModelAccountClass))
#define GNC_TREE_MODEL_ACCOUNT_NAME   "GncTreeModelAccount"
#define GNC_TYPE_TREE_MODEL_COMMODITY   (gnc_tree_model_commodity_get_type ())
#define GNC_TREE_MODEL_COMMODITY(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_TREE_MODEL_COMMODITY, GncTreeModelCommodity))
#define GNC_TREE_MODEL_COMMODITY_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_TREE_MODEL_COMMODITY, GncTreeModelCommodityClass))
#define GNC_IS_TREE_MODEL_COMMODITY(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_TREE_MODEL_COMMODITY))
#define GNC_IS_TREE_MODEL_COMMODITY_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_TREE_MODEL_COMMODITY))
#define GNC_TREE_MODEL_COMMODITY_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_TREE_MODEL_COMMODITY, GncTreeModelCommodityClass))
#define GNC_TREE_MODEL_COMMODITY_NAME   "GncTreeModelCommodity"
#define GNC_TYPE_TREE_MODEL_PRICE   (gnc_tree_model_price_get_type ())
#define GNC_TREE_MODEL_PRICE(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_TREE_MODEL_PRICE, GncTreeModelPrice))
#define GNC_TREE_MODEL_PRICE_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_TREE_MODEL_PRICE, GncTreeModelPriceClass))
#define GNC_IS_TREE_MODEL_PRICE(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_TREE_MODEL_PRICE))
#define GNC_IS_TREE_MODEL_PRICE_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_TREE_MODEL_PRICE))
#define GNC_TREE_MODEL_PRICE_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_TREE_MODEL_PRICE, GncTreeModelPriceClass))
#define GNC_TREE_MODEL_PRICE_NAME   "GncTreeModelPrice"
#define GNC_TYPE_TREE_MODEL   (gnc_tree_model_get_type ())
#define GNC_TREE_MODEL(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_TREE_MODEL, GncTreeModel))
#define GNC_TREE_MODEL_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_TREE_MODEL, GncTreeModelClass))
#define GNC_IS_TREE_MODEL(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_TREE_MODEL))
#define GNC_IS_TREE_MODEL_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_TREE_MODEL))
#define GNC_TREE_MODEL_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_TREE_MODEL, GncTreeModelClass))
#define GNC_TREE_MODEL_NAME   "GncTreeModel"
#define GNC_TYPE_TREE_VIEW_ACCOUNT   (gnc_tree_view_account_get_type ())
#define GNC_TREE_VIEW_ACCOUNT(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_TREE_VIEW_ACCOUNT, GncTreeViewAccount))
#define GNC_TREE_VIEW_ACCOUNT_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_TREE_VIEW_ACCOUNT, GncTreeViewAccountClass))
#define GNC_IS_TREE_VIEW_ACCOUNT(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_TREE_VIEW_ACCOUNT))
#define GNC_IS_TREE_VIEW_ACCOUNT_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_TREE_VIEW_ACCOUNT))
#define GNC_TREE_VIEW_ACCOUNT_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_TREE_VIEW_ACCOUNT, GncTreeViewAccountClass))
#define GNC_TREE_VIEW_ACCOUNT_NAME   "GncTreeViewAccount"
#define GNC_TYPE_TREE_VIEW_COMMODITY   (gnc_tree_view_commodity_get_type ())
#define GNC_TREE_VIEW_COMMODITY(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_TREE_VIEW_COMMODITY, GncTreeViewCommodity))
#define GNC_TREE_VIEW_COMMODITY_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_TREE_VIEW_COMMODITY, GncTreeViewCommodityClass))
#define GNC_IS_TREE_VIEW_COMMODITY(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_TREE_VIEW_COMMODITY))
#define GNC_IS_TREE_VIEW_COMMODITY_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_TREE_VIEW_COMMODITY))
#define GNC_TREE_VIEW_COMMODITY_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_TREE_VIEW_COMMODITY, GncTreeViewCommodityClass))
#define GNC_TYPE_TREE_VIEW_PRICE   (gnc_tree_view_price_get_type ())
#define GNC_TREE_VIEW_PRICE(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_TREE_VIEW_PRICE, GncTreeViewPrice))
#define GNC_TREE_VIEW_PRICE_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_TREE_VIEW_PRICE, GncTreeViewPriceClass))
#define GNC_IS_TREE_VIEW_PRICE(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_TREE_VIEW_PRICE))
#define GNC_IS_TREE_VIEW_PRICE_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_TREE_VIEW_PRICE))
#define GNC_TREE_VIEW_PRICE_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_TREE_VIEW_PRICE, GncTreeViewPriceClass))

Typedefs

typedef AccountViewInfo_s AccountViewInfo

Enumerations

enum  GncTreeModelAccountTypesColumn { GNC_TREE_MODEL_ACCOUNT_TYPES_COL_TYPE, GNC_TREE_MODEL_ACCOUNT_TYPES_COL_NAME, GNC_TREE_MODEL_ACCOUNT_TYPES_COL_SELECTED, GNC_TREE_MODEL_ACCOUNT_TYPES_NUM_COLUMNS }
enum  GncTreeModelAccountColumn {
  GNC_TREE_MODEL_ACCOUNT_COL_NAME, GNC_TREE_MODEL_ACCOUNT_COL_TYPE, GNC_TREE_MODEL_ACCOUNT_COL_COMMODITY, GNC_TREE_MODEL_ACCOUNT_COL_CODE,
  GNC_TREE_MODEL_ACCOUNT_COL_DESCRIPTION, GNC_TREE_MODEL_ACCOUNT_COL_LASTNUM, GNC_TREE_MODEL_ACCOUNT_COL_PRESENT, GNC_TREE_MODEL_ACCOUNT_COL_PRESENT_REPORT,
  GNC_TREE_MODEL_ACCOUNT_COL_BALANCE, GNC_TREE_MODEL_ACCOUNT_COL_BALANCE_REPORT, GNC_TREE_MODEL_ACCOUNT_COL_BALANCE_PERIOD, GNC_TREE_MODEL_ACCOUNT_COL_CLEARED,
  GNC_TREE_MODEL_ACCOUNT_COL_CLEARED_REPORT, GNC_TREE_MODEL_ACCOUNT_COL_RECONCILED, GNC_TREE_MODEL_ACCOUNT_COL_RECONCILED_REPORT, GNC_TREE_MODEL_ACCOUNT_COL_FUTURE_MIN,
  GNC_TREE_MODEL_ACCOUNT_COL_FUTURE_MIN_REPORT, GNC_TREE_MODEL_ACCOUNT_COL_TOTAL, GNC_TREE_MODEL_ACCOUNT_COL_TOTAL_REPORT, GNC_TREE_MODEL_ACCOUNT_COL_TOTAL_PERIOD,
  GNC_TREE_MODEL_ACCOUNT_COL_NOTES, GNC_TREE_MODEL_ACCOUNT_COL_TAX_INFO, GNC_TREE_MODEL_ACCOUNT_COL_PLACEHOLDER, GNC_TREE_MODEL_ACCOUNT_COL_LAST_VISIBLE = GNC_TREE_MODEL_ACCOUNT_COL_PLACEHOLDER,
  GNC_TREE_MODEL_ACCOUNT_COL_COLOR_PRESENT, GNC_TREE_MODEL_ACCOUNT_COL_COLOR_BALANCE, GNC_TREE_MODEL_ACCOUNT_COL_COLOR_BALANCE_PERIOD, GNC_TREE_MODEL_ACCOUNT_COL_COLOR_CLEARED,
  GNC_TREE_MODEL_ACCOUNT_COL_COLOR_RECONCILED, GNC_TREE_MODEL_ACCOUNT_COL_COLOR_FUTURE_MIN, GNC_TREE_MODEL_ACCOUNT_COL_COLOR_TOTAL, GNC_TREE_MODEL_ACCOUNT_COL_COLOR_TOTAL_PERIOD,
  GNC_TREE_MODEL_ACCOUNT_NUM_COLUMNS
}
enum  GncTreeModelCommodityColumn {
  GNC_TREE_MODEL_COMMODITY_COL_NAMESPACE, GNC_TREE_MODEL_COMMODITY_COL_MNEMONIC, GNC_TREE_MODEL_COMMODITY_COL_FULLNAME, GNC_TREE_MODEL_COMMODITY_COL_PRINTNAME,
  GNC_TREE_MODEL_COMMODITY_COL_UNIQUE_NAME, GNC_TREE_MODEL_COMMODITY_COL_CUSIP, GNC_TREE_MODEL_COMMODITY_COL_FRACTION, GNC_TREE_MODEL_COMMODITY_COL_QUOTE_FLAG,
  GNC_TREE_MODEL_COMMODITY_COL_QUOTE_SOURCE, GNC_TREE_MODEL_COMMODITY_COL_QUOTE_TZ, GNC_TREE_MODEL_COMMODITY_COL_LAST_VISIBLE = GNC_TREE_MODEL_COMMODITY_COL_QUOTE_TZ, GNC_TREE_MODEL_COMMODITY_COL_VISIBILITY,
  GNC_TREE_MODEL_COMMODITY_NUM_COLUMNS
}
enum  GncTreeModelPriceColumn {
  GNC_TREE_MODEL_PRICE_COL_COMMODITY, GNC_TREE_MODEL_PRICE_COL_CURRENCY, GNC_TREE_MODEL_PRICE_COL_DATE, GNC_TREE_MODEL_PRICE_COL_SOURCE,
  GNC_TREE_MODEL_PRICE_COL_TYPE, GNC_TREE_MODEL_PRICE_COL_VALUE, GNC_TREE_MODEL_PRICE_COL_LAST_VISIBLE = GNC_TREE_MODEL_PRICE_COL_VALUE, GNC_TREE_MODEL_PRICE_COL_VISIBILITY,
  GNC_TREE_MODEL_PRICE_NUM_COLUMNS
}

Functions

GType gnc_tree_model_account_types_get_type (void)
GtkTreeModel * gnc_tree_model_account_types_valid (void)
GtkTreeModel * gnc_tree_model_account_types_filter_using_mask (guint32 types)
void gnc_tree_model_account_types_set_mask (GtkTreeModel *f_model, guint32 types)
guint32 gnc_tree_model_account_types_get_mask (GtkTreeModel *f_model)
guint32 gnc_tree_model_account_types_get_selection (GtkTreeSelection *sel)
GNCAccountType gnc_tree_model_account_types_get_selection_single (GtkTreeSelection *sel)
void gnc_tree_model_account_types_set_selection (GtkTreeSelection *sel, guint32 selected)
GtkTreeModel * gnc_tree_model_account_types_new (guint32 selected)
guint32 gnc_tree_model_account_types_get_selected (GncTreeModelAccountTypes *model)
void gnc_tree_model_account_types_set_selected (GncTreeModelAccountTypes *model, guint32 selected)
GType gnc_tree_model_account_get_type (void)
GType gnc_tree_model_commodity_get_type (void)
GType gnc_tree_model_price_get_type (void)
GType gnc_tree_model_get_type (void)
void account_filter_dialog_create (AccountFilterDialog *fd, GncPluginPage *page)
gboolean gnc_plugin_page_account_tree_filter_accounts (Account *account, gpointer user_data)
void gppat_filter_show_hidden_toggled_cb (GtkToggleButton *togglebutton, AccountFilterDialog *fd)
void gppat_filter_show_zero_toggled_cb (GtkToggleButton *togglebutton, AccountFilterDialog *fd)
void gppat_filter_clear_all_cb (GtkWidget *button, AccountFilterDialog *fd)
void gppat_filter_select_all_cb (GtkWidget *button, AccountFilterDialog *fd)
void gppat_filter_select_default_cb (GtkWidget *button, AccountFilterDialog *fd)
void gppat_filter_response_cb (GtkWidget *dialog, gint response, AccountFilterDialog *fd)
void gnc_tree_view_account_save (GncTreeViewAccount *tree_view, AccountFilterDialog *fd, GKeyFile *key_file, const gchar *group_name)
void gnc_tree_view_account_restore (GncTreeViewAccount *view, AccountFilterDialog *fd, GKeyFile *key_file, const gchar *group_name)
GType gnc_tree_view_account_get_type (void)
GType gnc_tree_view_commodity_get_type (void)
GType gnc_tree_view_price_get_type (void)


Typedef Documentation

typedef gboolean(*) gnc_tree_view_account_filter_func(Account *account, gpointer data)

This is the description of a filter function used by the account tree.

Parameters:
account The account to be tested.
data The data provided when the filter function was added.
Returns:
TRUE if the account should be displayed.

Definition at line 261 of file gnc-tree-view-account.h.

typedef gboolean(*) gnc_tree_view_price_ns_filter_func(gnc_commodity_namespace *, gpointer data)

This function attaches a filter function to the given price tree. This function will be called for each price that the view thinks should possibly show. The filter may perform any actions necessary on the price to decide whether it should be shown or not. (I.E. Check type, placeholder status, etc.) If the filter returns TRUE then the price wil be displayed.

Parameters:
price_view A pointer to an price tree view.
func A filtration function that is called on individual elements in the tree. If this function returns TRUE, the price will be displayed.
data A data block passed into each instance of the function.
destroy A function to destroy the data block. This function will be called when the filter is destroyed. may be NULL.

Definition at line 149 of file gnc-tree-view-price.h.


Enumeration Type Documentation

enum GncTreeModelAccountColumn

Enumerator:
GNC_TREE_MODEL_ACCOUNT_COL_NAME 
GNC_TREE_MODEL_ACCOUNT_COL_TYPE 
GNC_TREE_MODEL_ACCOUNT_COL_COMMODITY 
GNC_TREE_MODEL_ACCOUNT_COL_CODE 
GNC_TREE_MODEL_ACCOUNT_COL_DESCRIPTION 
GNC_TREE_MODEL_ACCOUNT_COL_LASTNUM 
GNC_TREE_MODEL_ACCOUNT_COL_PRESENT 
GNC_TREE_MODEL_ACCOUNT_COL_PRESENT_REPORT 
GNC_TREE_MODEL_ACCOUNT_COL_BALANCE 
GNC_TREE_MODEL_ACCOUNT_COL_BALANCE_REPORT 
GNC_TREE_MODEL_ACCOUNT_COL_BALANCE_PERIOD 
GNC_TREE_MODEL_ACCOUNT_COL_CLEARED 
GNC_TREE_MODEL_ACCOUNT_COL_CLEARED_REPORT 
GNC_TREE_MODEL_ACCOUNT_COL_RECONCILED 
GNC_TREE_MODEL_ACCOUNT_COL_RECONCILED_REPORT 
GNC_TREE_MODEL_ACCOUNT_COL_FUTURE_MIN 
GNC_TREE_MODEL_ACCOUNT_COL_FUTURE_MIN_REPORT 
GNC_TREE_MODEL_ACCOUNT_COL_TOTAL 
GNC_TREE_MODEL_ACCOUNT_COL_TOTAL_REPORT 
GNC_TREE_MODEL_ACCOUNT_COL_TOTAL_PERIOD 
GNC_TREE_MODEL_ACCOUNT_COL_NOTES 
GNC_TREE_MODEL_ACCOUNT_COL_TAX_INFO 
GNC_TREE_MODEL_ACCOUNT_COL_PLACEHOLDER 
GNC_TREE_MODEL_ACCOUNT_COL_LAST_VISIBLE 
GNC_TREE_MODEL_ACCOUNT_COL_COLOR_PRESENT 
GNC_TREE_MODEL_ACCOUNT_COL_COLOR_BALANCE 
GNC_TREE_MODEL_ACCOUNT_COL_COLOR_BALANCE_PERIOD 
GNC_TREE_MODEL_ACCOUNT_COL_COLOR_CLEARED 
GNC_TREE_MODEL_ACCOUNT_COL_COLOR_RECONCILED 
GNC_TREE_MODEL_ACCOUNT_COL_COLOR_FUTURE_MIN 
GNC_TREE_MODEL_ACCOUNT_COL_COLOR_TOTAL 
GNC_TREE_MODEL_ACCOUNT_COL_COLOR_TOTAL_PERIOD 
GNC_TREE_MODEL_ACCOUNT_NUM_COLUMNS 

Definition at line 56 of file gnc-tree-model-account.h.

00056              {
00057         GNC_TREE_MODEL_ACCOUNT_COL_NAME,
00058         GNC_TREE_MODEL_ACCOUNT_COL_TYPE,
00059         GNC_TREE_MODEL_ACCOUNT_COL_COMMODITY,   
00060         GNC_TREE_MODEL_ACCOUNT_COL_CODE,
00061         GNC_TREE_MODEL_ACCOUNT_COL_DESCRIPTION,
00062         GNC_TREE_MODEL_ACCOUNT_COL_LASTNUM,
00063         GNC_TREE_MODEL_ACCOUNT_COL_PRESENT,
00064         GNC_TREE_MODEL_ACCOUNT_COL_PRESENT_REPORT,
00065         GNC_TREE_MODEL_ACCOUNT_COL_BALANCE,
00066         GNC_TREE_MODEL_ACCOUNT_COL_BALANCE_REPORT,
00067         GNC_TREE_MODEL_ACCOUNT_COL_BALANCE_PERIOD,
00068         GNC_TREE_MODEL_ACCOUNT_COL_CLEARED,
00069         GNC_TREE_MODEL_ACCOUNT_COL_CLEARED_REPORT,
00070         GNC_TREE_MODEL_ACCOUNT_COL_RECONCILED,
00071         GNC_TREE_MODEL_ACCOUNT_COL_RECONCILED_REPORT,
00072         GNC_TREE_MODEL_ACCOUNT_COL_FUTURE_MIN,
00073         GNC_TREE_MODEL_ACCOUNT_COL_FUTURE_MIN_REPORT,
00074         GNC_TREE_MODEL_ACCOUNT_COL_TOTAL,
00075         GNC_TREE_MODEL_ACCOUNT_COL_TOTAL_REPORT,
00076         GNC_TREE_MODEL_ACCOUNT_COL_TOTAL_PERIOD,
00077         GNC_TREE_MODEL_ACCOUNT_COL_NOTES,
00078         GNC_TREE_MODEL_ACCOUNT_COL_TAX_INFO,
00079         GNC_TREE_MODEL_ACCOUNT_COL_PLACEHOLDER,
00080 
00081         GNC_TREE_MODEL_ACCOUNT_COL_LAST_VISIBLE = GNC_TREE_MODEL_ACCOUNT_COL_PLACEHOLDER,
00082 
00083         /* internal hidden columns */
00084         GNC_TREE_MODEL_ACCOUNT_COL_COLOR_PRESENT,
00085         GNC_TREE_MODEL_ACCOUNT_COL_COLOR_BALANCE,
00086         GNC_TREE_MODEL_ACCOUNT_COL_COLOR_BALANCE_PERIOD,
00087         GNC_TREE_MODEL_ACCOUNT_COL_COLOR_CLEARED,
00088         GNC_TREE_MODEL_ACCOUNT_COL_COLOR_RECONCILED,
00089         GNC_TREE_MODEL_ACCOUNT_COL_COLOR_FUTURE_MIN,
00090         GNC_TREE_MODEL_ACCOUNT_COL_COLOR_TOTAL,
00091         GNC_TREE_MODEL_ACCOUNT_COL_COLOR_TOTAL_PERIOD,
00092 
00093         GNC_TREE_MODEL_ACCOUNT_NUM_COLUMNS
00094 } GncTreeModelAccountColumn;

enum GncTreeModelAccountTypesColumn

Enumerator:
GNC_TREE_MODEL_ACCOUNT_TYPES_COL_TYPE 
GNC_TREE_MODEL_ACCOUNT_TYPES_COL_NAME 
GNC_TREE_MODEL_ACCOUNT_TYPES_COL_SELECTED 
GNC_TREE_MODEL_ACCOUNT_TYPES_NUM_COLUMNS 

Definition at line 53 of file gnc-tree-model-account-types.h.

enum GncTreeModelCommodityColumn

Enumerator:
GNC_TREE_MODEL_COMMODITY_COL_NAMESPACE 
GNC_TREE_MODEL_COMMODITY_COL_MNEMONIC 
GNC_TREE_MODEL_COMMODITY_COL_FULLNAME 
GNC_TREE_MODEL_COMMODITY_COL_PRINTNAME 
GNC_TREE_MODEL_COMMODITY_COL_UNIQUE_NAME 
GNC_TREE_MODEL_COMMODITY_COL_CUSIP 
GNC_TREE_MODEL_COMMODITY_COL_FRACTION 
GNC_TREE_MODEL_COMMODITY_COL_QUOTE_FLAG 
GNC_TREE_MODEL_COMMODITY_COL_QUOTE_SOURCE