GnuCash
5.6-150-g038405b370+
|
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-owner.h |
GtkTreeModel implementation for gnucash owner tree. | |
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-owner.h |
GtkTreeView implementation for gnucash owner tree. | |
file | gnc-tree-view-price.h |
GtkTreeView implementation for gnucash price tree. | |
Data Structures | |
struct | _GncTreeModelClass |
The class data structure for a generic tree model. More... | |
struct | AccountViewInfo |
struct | AccountFilterDialog |
struct | OwnerViewInfo |
struct | OwnerFilterDialog |
Functions | |
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) |
GNCAccountType | gnc_tree_model_account_types_get_active_combo (GtkComboBox *combo) |
void | gnc_tree_model_account_types_set_selection (GtkTreeSelection *sel, guint32 selected) |
void | gnc_tree_model_account_types_set_active_combo (GtkComboBox *combo, guint32 selected) |
GtkTreeModel * | gnc_tree_model_account_types_new (guint32 selected) |
void | gnc_tree_model_account_clear_cache (GncTreeModelAccount *model) |
Clear the tree model account cached values. More... | |
void | account_filter_dialog_create (AccountFilterDialog *fd, GncPluginPage *page) |
gboolean | gnc_plugin_page_account_tree_filter_accounts (Account *account, gpointer user_data) |
This function tells the account tree view whether or not to filter out a particular account. More... | |
void | gppat_filter_show_hidden_toggled_cb (GtkToggleButton *togglebutton, AccountFilterDialog *fd) |
The "show hidden" button in the Filter dialog changed state. More... | |
void | gppat_filter_show_zero_toggled_cb (GtkToggleButton *togglebutton, AccountFilterDialog *fd) |
The "show zero totals" button in the Filter dialog changed state. More... | |
void | gppat_filter_show_unused_toggled_cb (GtkToggleButton *togglebutton, AccountFilterDialog *fd) |
The "show unused" button in the Filter dialog changed state. More... | |
void | gppat_filter_clear_all_cb (GtkWidget *button, AccountFilterDialog *fd) |
The "clear all account types" button in the Filter dialog was clicked. More... | |
void | gppat_filter_select_all_cb (GtkWidget *button, AccountFilterDialog *fd) |
The "select all account types" button in the Filter dialog was clicked. More... | |
void | gppat_filter_select_default_cb (GtkWidget *button, AccountFilterDialog *fd) |
The "select default account types" button in the Filter dialog was clicked. More... | |
void | gppat_filter_response_cb (GtkWidget *dialog, gint response, AccountFilterDialog *fd) |
The Filter dialog was closed. More... | |
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) |
void | gnc_tree_view_account_save_filter (GncTreeViewAccount *tree_view, AccountFilterDialog *fd, GKeyFile *key_file, const gchar *group_name) |
void | gnc_tree_view_account_restore_filter (GncTreeViewAccount *view, AccountFilterDialog *fd, GKeyFile *key_file, const gchar *group_name) |
GType | gnc_tree_view_account_get_type (void) |
void | owner_filter_dialog_create (OwnerFilterDialog *fd, GncPluginPage *page) |
gboolean | gnc_plugin_page_owner_tree_filter_owners (GncOwner *owner, gpointer user_data) |
This function tells the owner tree view whether or not to filter out a particular owner. More... | |
void | gppot_filter_show_inactive_toggled_cb (GtkToggleButton *togglebutton, OwnerFilterDialog *fd) |
The "only show active" button in the Filter dialog changed state. More... | |
void | gppot_filter_show_zero_toggled_cb (GtkToggleButton *togglebutton, OwnerFilterDialog *fd) |
The "show zero totals" button in the Filter dialog changed state. More... | |
void | gppot_filter_response_cb (GtkWidget *dialog, gint response, OwnerFilterDialog *fd) |
The Filter dialog was closed. More... | |
void | gnc_tree_view_owner_save (GncTreeViewOwner *tree_view, OwnerFilterDialog *fd, GKeyFile *key_file, const gchar *group_name) |
void | gnc_tree_view_owner_restore (GncTreeViewOwner *view, OwnerFilterDialog *fd, GKeyFile *key_file, const gchar *group_name, GncOwnerType owner_type) |
Account Tree Model Constructors | |
GtkTreeModel * | gnc_tree_model_account_new (Account *root) |
Create a new GtkTreeModel for manipulating gnucash accounts. More... | |
Account Tree Model Get/Set Functions | |
Account * | gnc_tree_model_account_get_account (GncTreeModelAccount *model, GtkTreeIter *iter) |
Convert a model/iter pair to a gnucash account. More... | |
gboolean | gnc_tree_model_account_get_iter_from_account (GncTreeModelAccount *model, Account *account, GtkTreeIter *iter) |
Convert a model/account pair into a gtk_tree_model_iter. More... | |
GtkTreePath * | gnc_tree_model_account_get_path_from_account (GncTreeModelAccount *model, Account *account) |
Convert a model/account pair into a gtk_tree_model_path. More... | |
Account Tree Model Constructors | |
GtkTreeModel * | gnc_tree_model_commodity_new (QofBook *book, gnc_commodity_table *ct) |
Create a new GtkTreeModel for manipulating gnucash commodities. More... | |
Commodity Tree Model Filter Helper Functions | |
gboolean | gnc_tree_model_commodity_iter_is_namespace (GncTreeModelCommodity *model, GtkTreeIter *iter) |
Determine whether or not the specified GtkTreeIter points to a commodity namespace. More... | |
gboolean | gnc_tree_model_commodity_iter_is_commodity (GncTreeModelCommodity *model, GtkTreeIter *iter) |
Determine whether or not the specified GtkTreeIter points to a commodity. More... | |
gnc_commodity_namespace * | gnc_tree_model_commodity_get_namespace (GncTreeModelCommodity *model, GtkTreeIter *iter) |
Convert a model/iter pair to a gnucash commodity namespace. More... | |
gnc_commodity * | gnc_tree_model_commodity_get_commodity (GncTreeModelCommodity *model, GtkTreeIter *iter) |
Convert a model/iter pair to a gnucash commodity. More... | |
Commodity Tree Model Lookup Functions | |
gboolean | gnc_tree_model_commodity_get_iter_from_namespace (GncTreeModelCommodity *model, gnc_commodity_namespace *name_space, GtkTreeIter *iter) |
Convert a commodity namespace pointer into a GtkTreeIter. More... | |
gboolean | gnc_tree_model_commodity_get_iter_from_commodity (GncTreeModelCommodity *model, gnc_commodity *commodity, GtkTreeIter *iter) |
Convert a commodity pointer into a GtkTreeIter. More... | |
GtkTreePath * | gnc_tree_model_commodity_get_path_from_commodity (GncTreeModelCommodity *model, gnc_commodity *commodity) |
Convert a commodity pointer into a GtkTreePath. More... | |
Owner Tree Model Constructors | |
GtkTreeModel * | gnc_tree_model_owner_new (GncOwnerType owner_type) |
Create a new GtkTreeModel for manipulating gnucash owners. More... | |
Owner Tree Model Get/Set Functions | |
GncOwner * | gnc_tree_model_owner_get_owner (GncTreeModelOwner *model, GtkTreeIter *iter) |
Convert a model/iter pair to a gnucash owner. More... | |
gboolean | gnc_tree_model_owner_get_iter_from_owner (GncTreeModelOwner *model, GncOwner *owner, GtkTreeIter *iter) |
Convert a model/owner pair into a gtk_tree_model_iter. More... | |
GtkTreePath * | gnc_tree_model_owner_get_path_from_owner (GncTreeModelOwner *model, GncOwner *owner) |
Convert a model/owner pair into a gtk_tree_model_path. More... | |
Account Tree Model Constructors | |
GtkTreeModel * | gnc_tree_model_price_new (QofBook *book, GNCPriceDB *price_db) |
Create a new GtkTreeModel for manipulating gnucash commodity prices. More... | |
Price Tree Model Filter Helper Functions | |
gboolean | gnc_tree_model_price_iter_is_namespace (GncTreeModelPrice *model, GtkTreeIter *iter) |
Determine whether or not the specified GtkTreeIter points to a "commodity namespace". More... | |
gboolean | gnc_tree_model_price_iter_is_commodity (GncTreeModelPrice *model, GtkTreeIter *iter) |
Determine whether or not the specified GtkTreeIter points to a commodity. More... | |
gboolean | gnc_tree_model_price_iter_is_price (GncTreeModelPrice *model, GtkTreeIter *iter) |
Determine whether or not the specified GtkTreeIter points to a price. More... | |
gnc_commodity_namespace * | gnc_tree_model_price_get_namespace (GncTreeModelPrice *model, GtkTreeIter *iter) |
Convert a model/iter pair to a gnucash commodity namespace. More... | |
gnc_commodity * | gnc_tree_model_price_get_commodity (GncTreeModelPrice *model, GtkTreeIter *iter) |
Convert a model/iter pair to a gnucash commodity. More... | |
GNCPrice * | gnc_tree_model_price_get_price (GncTreeModelPrice *model, GtkTreeIter *iter) |
Convert a model/iter pair to a gnucash price. More... | |
Commodity Tree Model Lookup Functions | |
gboolean | gnc_tree_model_price_get_iter_from_namespace (GncTreeModelPrice *model, gnc_commodity_namespace *name_space, GtkTreeIter *iter) |
Convert a commodity namespace pointer into a GtkTreeIter. More... | |
gboolean | gnc_tree_model_price_get_iter_from_commodity (GncTreeModelPrice *model, gnc_commodity *commodity, GtkTreeIter *iter) |
Convert a commodity pointer into a GtkTreeIter. More... | |
gboolean | gnc_tree_model_price_get_iter_from_price (GncTreeModelPrice *model, GNCPrice *price, GtkTreeIter *iter) |
Convert a price pointer into a GtkTreeIter. More... | |
GtkTreePath * | gnc_tree_model_price_get_path_from_price (GncTreeModelPrice *model, GNCPrice *price) |
Convert a price pointer into a GtkTreePath. More... | |
Account Tree View Constructors | |
GtkTreeView * | gnc_tree_view_account_new_with_root (Account *root, gboolean show_root) |
Create a new account tree view. More... | |
GtkTreeView * | gnc_tree_view_account_new (gboolean show_root) |
Create a new account tree view. More... | |
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) |
Add a new custom column to the set of columns in an account tree view. More... | |
GtkTreeViewColumn * | gnc_tree_view_account_add_custom_column_renderer (GncTreeViewAccount *account_view, const gchar *column_title, GncTreeViewAccountColumnSource col_source_cb, GncTreeViewAccountColumnTextEdited col_edited_cb, GtkCellRenderer *renderer) |
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_property_column (GncTreeViewAccount *view, const gchar *column_title, const gchar *propname) |
Add a new column to the set of columns in an account tree view. More... | |
Account Tree View Filtering | |
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. More... | |
void | gnc_tree_view_account_get_view_info (GncTreeViewAccount *account_view, AccountViewInfo *avi) |
Given pointers to an account tree and old style filter block, this function will copy the current configuration of the account tree widget into the data block. More... | |
void | gnc_tree_view_account_set_view_info (GncTreeViewAccount *account_view, AccountViewInfo *avi) |
Given pointers to an account tree and old style filter block, this function will applies the settings specified to the current configuration of the account tree widget. More... | |
void | gnc_tree_view_account_set_filter (GncTreeViewAccount *account_view, gnc_tree_view_account_filter_func func, gpointer data, GSourceFunc destroy) |
This function attaches a filter function to the given account tree. More... | |
gboolean | gnc_tree_view_account_filter_by_view_info (Account *acct, gpointer data) |
void | gnc_tree_view_account_refilter (GncTreeViewAccount *view) |
This function forces the account tree filter to be evaluated. More... | |
Account Tree View Get/Set Functions | |
gint | gnc_tree_view_account_count_children (GncTreeViewAccount *view, Account *account) |
This function determines if an account in the account tree view has any visible children. More... | |
void | gnc_tree_view_account_clear_model_cache (GncTreeViewAccount *view) |
This function clears the tree model account cache so the values will be updated/refreshed. More... | |
Account * | gnc_tree_view_account_get_account_from_path (GncTreeViewAccount *view, GtkTreePath *path) |
This function returns the account associated with the specified path. More... | |
Account * | gnc_tree_view_account_get_account_from_iter (GtkTreeModel *model, GtkTreeIter *iter) |
This function returns the account associated with the specified iter. More... | |
Account * | gnc_tree_view_account_get_cursor_account (GncTreeViewAccount *view) |
This function returns the account in the account tree view at the current location of the cursor. More... | |
Account * | gnc_tree_view_account_get_selected_account (GncTreeViewAccount *view) |
This function returns the account associated with the selected item in the account tree view. More... | |
void | gnc_tree_view_account_set_selected_account (GncTreeViewAccount *view, Account *account) |
This function selects an account in the account tree view. More... | |
GList * | gnc_tree_view_account_get_selected_accounts (GncTreeViewAccount *view) |
This function returns a list of the accounts associated with the selected items in the account tree view. More... | |
void | gnc_tree_view_account_set_selected_accounts (GncTreeViewAccount *view, GList *account_list, gboolean show_last) |
This function selects a set of accounts in the account tree view. More... | |
void | gnc_tree_view_account_select_subaccounts (GncTreeViewAccount *view, Account *account) |
This function selects all sub-accounts of an account in the account tree view. More... | |
void | gnc_tree_view_account_expand_to_account (GncTreeViewAccount *view, Account *account) |
This function forces the account tree expand whatever levels are necessary to make the specified account visible. More... | |
void | gnc_tree_view_account_column_add_color (GncTreeViewAccount *view, GtkTreeViewColumn *col) |
Add the account color background data function to the GncTreeViewAccount column to show or not the column background in the account color. | |
void | gnc_tree_view_account_set_editing_started_cb (GncTreeViewAccount *view, GFunc editing_started_cb, gpointer editing_cb_data) |
Setup the callback for when the user starts editing the account tree so actions can be disabled like the delete menu option as required. | |
void | gnc_tree_view_account_set_editing_finished_cb (GncTreeViewAccount *view, GFunc editing_finished_cb, gpointer editing_cb_data) |
Setup the callback for when the user finishes editing the account tree so actions can be enabled like the delete menu option as required. | |
Commodity Tree View Constructors | |
GtkTreeView * | gnc_tree_view_commodity_new (QofBook *book, const gchar *first_property_name,...) |
Create a new commodity tree view. More... | |
Commodity Tree View Configuration | |
void | gnc_tree_view_commodity_configure_columns (GncTreeViewCommodity *view, GSList *column_names) |
Configure (by name) the set of visible columns in an commodity tree view. More... | |
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, GDestroyNotify destroy) |
This function attaches a filter function to the given commodity tree. More... | |
void | gnc_tree_view_commodity_refilter (GncTreeViewCommodity *view) |
This function forces the commodity tree filter to be evaluated. More... | |
Commodity Tree View Get/Set Functions | |
gnc_commodity * | gnc_tree_view_commodity_get_cursor_commodity (GncTreeViewCommodity *view) |
This function returns the commodity in the commodity tree view at the current location of the cursor. More... | |
gnc_commodity * | gnc_tree_view_commodity_get_selected_commodity (GncTreeViewCommodity *view) |
This function returns the commodity associated with the selected item in the commodity tree view. More... | |
void | gnc_tree_view_commodity_select_commodity (GncTreeViewCommodity *view, gnc_commodity *commodity) |
Select the commodity in the associated commodity tree view. More... | |
void | gnc_tree_view_commodity_select_subcommodities (GncTreeViewCommodity *view, gnc_commodity *commodity) |
This function selects all sub-commodities of an commodity in the commodity tree view. More... | |
Owner Tree View Constructor | |
GtkTreeView * | gnc_tree_view_owner_new (GncOwnerType owner_type) |
Create a new owner tree view for one type of owners. More... | |
Owner Tree View Configuration | |
typedef gchar *(* | GncTreeViewOwnerColumnSource) (GncOwner *owner, GtkTreeViewColumn *col, GtkCellRenderer *cell) |
typedef void(* | GncTreeViewOwnerColumnTextEdited) (GncOwner *owner, GtkTreeViewColumn *col, const gchar *new_text) |
Owner Tree View Filtering | |
typedef gboolean(* | gnc_tree_view_owner_filter_func) (GncOwner *owner, gpointer data) |
This is the description of a filter function used by the owner tree. More... | |
void | gnc_tree_view_owner_set_filter (GncTreeViewOwner *owner_view, gnc_tree_view_owner_filter_func func, gpointer data, GSourceFunc destroy) |
This function attaches a filter function to the given owner tree. More... | |
void | gnc_tree_view_owner_refilter (GncTreeViewOwner *view) |
This function forces the owner tree filter to be evaluated. More... | |
Owner Tree View Get/Set Functions | |
GncOwner * | gnc_tree_view_owner_get_owner_from_path (GncTreeViewOwner *view, GtkTreePath *path) |
This function returns the owner associated with the specified path. More... | |
GncOwner * | gnc_tree_view_owner_get_owner_from_iter (GtkTreeModel *model, GtkTreeIter *iter) |
This function returns the owner associated with the specified iter. More... | |
GncOwner * | gnc_tree_view_owner_get_selected_owner (GncTreeViewOwner *view) |
This function returns the owner associated with the selected item in the owner tree view. More... | |
void | gnc_tree_view_owner_set_selected_owner (GncTreeViewOwner *view, GncOwner *owner) |
This function selects an owner in the owner tree view. More... | |
Price Tree View Constructors | |
GtkTreeView * | gnc_tree_view_price_new (QofBook *book, const gchar *first_property_name,...) |
Create a new price tree view. More... | |
Price Tree View Filtering | |
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. More... | |
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, GDestroyNotify destroy) |
Price Tree View Get/Set Functions | |
GNCPrice * | gnc_tree_view_price_get_cursor_price (GncTreeViewPrice *view) |
This function returns the price in the price tree view at the current location of the cursor. More... | |
GNCPrice * | gnc_tree_view_price_get_selected_price (GncTreeViewPrice *view) |
This function returns the price associated with the selected item in the price tree view. More... | |
void | gnc_tree_view_price_set_selected_price (GncTreeViewPrice *view, GNCPrice *price) |
This function selects an price in the price tree view. More... | |
GList * | gnc_tree_view_price_get_selected_prices (GncTreeViewPrice *view) |
This function returns a list of the prices associated with the selected items in the price tree view. More... | |
GList * | gnc_tree_view_price_get_selected_commodities (GncTreeViewPrice *view) |
This function returns a list of commodities associated with the selected rows that are not prices but are the parent rows for prices in the price tree view. More... | |
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.
account | The account to be tested. |
data | The data provided when the filter function was added. |
Definition at line 266 of file gnc-tree-view-account.h.
typedef gboolean(* gnc_tree_view_owner_filter_func) (GncOwner *owner, gpointer data) |
This is the description of a filter function used by the owner tree.
owner | The owner to be tested. |
data | The data provided when the filter function was added. |
Definition at line 155 of file gnc-tree-view-owner.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 will be displayed.
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 116 of file gnc-tree-view-price.h.
gboolean gnc_plugin_page_account_tree_filter_accounts | ( | Account * | account, |
gpointer | user_data | ||
) |
This function tells the account tree view whether or not to filter out a particular account.
Accounts may be filtered if the user has decided not to display that particular account type, or if the user has requested that accounts with a zero total not be shown.
account | The account that was toggled. |
user_data | A pointer to the AccountFilterDialog struct. |
Definition at line 2012 of file gnc-tree-view-account.c.
gboolean gnc_plugin_page_owner_tree_filter_owners | ( | GncOwner * | owner, |
gpointer | user_data | ||
) |
This function tells the owner tree view whether or not to filter out a particular owner.
Owners may be filtered if the user has decided not to display inactive owners, or if the user has requested that owners with a zero total not be shown.
owner | The owner that is being evaluated. |
user_data | A pointer to the OwnerFilterDialog struct. |
Definition at line 1025 of file gnc-tree-view-owner.c.
void gnc_tree_model_account_clear_cache | ( | GncTreeModelAccount * | model | ) |
Clear the tree model account cached values.
model | A pointer to the account tree model. |
Definition at line 573 of file gnc-tree-model-account.c.
Account* gnc_tree_model_account_get_account | ( | GncTreeModelAccount * | model, |
GtkTreeIter * | iter | ||
) |
Convert a model/iter pair to a gnucash account.
This routine should only be called from an account tree view filter function. The model and iter values will be provided as part of the call to the filter.
model | A pointer to the account tree model. |
iter | A gtk_tree_iter corresponding to a single account in the model. |
Definition at line 1241 of file gnc-tree-model-account.c.
gboolean gnc_tree_model_account_get_iter_from_account | ( | GncTreeModelAccount * | model, |
Account * | account, | ||
GtkTreeIter * | iter | ||
) |
Convert a model/account pair into a gtk_tree_model_iter.
This routine should only be called from the file gnc-tree-view-account.c.
Definition at line 1258 of file gnc-tree-model-account.c.
GtkTreePath* gnc_tree_model_account_get_path_from_account | ( | GncTreeModelAccount * | model, |
Account * | account | ||
) |
Convert a model/account pair into a gtk_tree_model_path.
This routine should only be called from the file gnc-tree-view-account.c.
Definition at line 1301 of file gnc-tree-model-account.c.
GtkTreeModel* gnc_tree_model_account_new | ( | Account * | root | ) |
Create a new GtkTreeModel for manipulating gnucash accounts.
root | The account group to put at the top level of the tree hierarchy. |
Definition at line 255 of file gnc-tree-model-account.c.
gnc_commodity* gnc_tree_model_commodity_get_commodity | ( | GncTreeModelCommodity * | model, |
GtkTreeIter * | iter | ||
) |
Convert a model/iter pair to a gnucash commodity.
This routine should only be called from a commodity tree view filter function. The model and iter values will be provided as part of the call to the filter.
model | A pointer to the commodity tree model. |
iter | A GtkTreeIter corresponding to a single commodity in the model. |
Definition at line 237 of file gnc-tree-model-commodity.c.
gboolean gnc_tree_model_commodity_get_iter_from_commodity | ( | GncTreeModelCommodity * | model, |
gnc_commodity * | commodity, | ||
GtkTreeIter * | iter | ||
) |
Convert a commodity pointer into a GtkTreeIter.
model | A pointer to the commodity tree model. |
commodity | A pointer to the gnucash commodity. |
iter | A pointer to a GtkTreeIter. This iter will be filled in to point where the commodity appears in the commodity tree. |
Definition at line 908 of file gnc-tree-model-commodity.c.
gboolean gnc_tree_model_commodity_get_iter_from_namespace | ( | GncTreeModelCommodity * | model, |
gnc_commodity_namespace * | name_space, | ||
GtkTreeIter * | iter | ||
) |
Convert a commodity namespace pointer into a GtkTreeIter.
model | A pointer to the commodity tree model. |
namespace | A pointer to the gnucash commodity namespace. |
iter | A pointer to a GtkTreeIter. This iter will be filled in to point where the namespace appears in the commodity tree. |
Definition at line 994 of file gnc-tree-model-commodity.c.
gnc_commodity_namespace* gnc_tree_model_commodity_get_namespace | ( | GncTreeModelCommodity * | model, |
GtkTreeIter * | iter | ||
) |
Convert a model/iter pair to a gnucash commodity namespace.
This routine should only be called from a commodity tree view filter function. The model and iter values will be provided as part of the call to the filter.
model | A pointer to the commodity tree model. |
iter | A GtkTreeIter corresponding to a single namespace in the model. |
Definition at line 223 of file gnc-tree-model-commodity.c.
GtkTreePath* gnc_tree_model_commodity_get_path_from_commodity | ( | GncTreeModelCommodity * | model, |
gnc_commodity * | commodity | ||
) |
Convert a commodity pointer into a GtkTreePath.
model | A pointer to the commodity tree model. |
commodity | A pointer to the gnucash commodity. |
Definition at line 958 of file gnc-tree-model-commodity.c.
gboolean gnc_tree_model_commodity_iter_is_commodity | ( | GncTreeModelCommodity * | model, |
GtkTreeIter * | iter | ||
) |
Determine whether or not the specified GtkTreeIter points to a commodity.
This routine should only be called from a commodity tree view filter function. The model and iter values will be provided as part of the call to the filter.
model | A pointer to the commodity tree model. |
iter | A GtkTreeIter corresponding to a single item in the model. |
Definition at line 211 of file gnc-tree-model-commodity.c.
gboolean gnc_tree_model_commodity_iter_is_namespace | ( | GncTreeModelCommodity * | model, |
GtkTreeIter * | iter | ||
) |
Determine whether or not the specified GtkTreeIter points to a commodity namespace.
This routine should only be called from a commodity tree view filter function. The model and iter values will be provided as part of the call to the filter.
model | A pointer to the commodity tree model. |
iter | A GtkTreeIter corresponding to a single item in the model. |
Definition at line 199 of file gnc-tree-model-commodity.c.
GtkTreeModel* gnc_tree_model_commodity_new | ( | QofBook * | book, |
gnc_commodity_table * | ct | ||
) |
Create a new GtkTreeModel for manipulating gnucash commodities.
book | The book that holds these commodities. |
ct | A pointer to the commodity table to use for this tree. All namespaces and commodities in this tree will be included. |
Definition at line 168 of file gnc-tree-model-commodity.c.
gboolean gnc_tree_model_owner_get_iter_from_owner | ( | GncTreeModelOwner * | model, |
GncOwner * | owner, | ||
GtkTreeIter * | iter | ||
) |
Convert a model/owner pair into a gtk_tree_model_iter.
This routine should only be called from the file gnc-tree-view-owner.c.
Definition at line 797 of file gnc-tree-model-owner.c.
GncOwner* gnc_tree_model_owner_get_owner | ( | GncTreeModelOwner * | model, |
GtkTreeIter * | iter | ||
) |
Convert a model/iter pair to a gnucash owner.
This routine should only be called from an owner tree view filter function. The model and iter values will be provided as part of the call to the filter.
model | A pointer to the owner tree model. |
iter | A gtk_tree_iter corresponding to a single owner in the model. |
Definition at line 780 of file gnc-tree-model-owner.c.
GtkTreePath* gnc_tree_model_owner_get_path_from_owner | ( | GncTreeModelOwner * | model, |
GncOwner * | owner | ||
) |
Convert a model/owner pair into a gtk_tree_model_path.
This routine should only be called from the file gnc-tree-view-owner.c.
Definition at line 833 of file gnc-tree-model-owner.c.
GtkTreeModel* gnc_tree_model_owner_new | ( | GncOwnerType | owner_type | ) |
Create a new GtkTreeModel for manipulating gnucash owners.
root | The owner group to put at the top level of the tree hierarchy. |
Definition at line 224 of file gnc-tree-model-owner.c.
gnc_commodity* gnc_tree_model_price_get_commodity | ( | GncTreeModelPrice * | model, |
GtkTreeIter * | iter | ||
) |
Convert a model/iter pair to a gnucash commodity.
This routine should only be called from a commodity tree view filter function. The model and iter values will be provided as part of the call to the filter.
model | A pointer to the commodity tree model. |
iter | A GtkTreeIter corresponding to a single commodity in the model. |
Definition at line 282 of file gnc-tree-model-price.c.
gboolean gnc_tree_model_price_get_iter_from_commodity | ( | GncTreeModelPrice * | model, |
gnc_commodity * | commodity, | ||
GtkTreeIter * | iter | ||
) |
Convert a commodity pointer into a GtkTreeIter.
model | A pointer to the price tree model. |
commodity | A pointer to the gnucash commodity. |
iter | A pointer to a GtkTreeIter. This iter will be filled in to point where the commodity appears in the price tree. |
Definition at line 1197 of file gnc-tree-model-price.c.
gboolean gnc_tree_model_price_get_iter_from_namespace | ( | GncTreeModelPrice * | model, |
gnc_commodity_namespace * | name_space, | ||
GtkTreeIter * | iter | ||
) |
Convert a commodity namespace pointer into a GtkTreeIter.
model | A pointer to the price tree model. |
namespace | A pointer to the gnucash commodity namespace. |
iter | A pointer to a GtkTreeIter. This iter will be filled in to point where the namespace appears in the price tree. |
Definition at line 1246 of file gnc-tree-model-price.c.
gboolean gnc_tree_model_price_get_iter_from_price | ( | GncTreeModelPrice * | model, |
GNCPrice * | price, | ||
GtkTreeIter * | iter | ||
) |
Convert a price pointer into a GtkTreeIter.
model | A pointer to the price tree model. |
price | A pointer to the gnucash price. |
iter | A pointer to a GtkTreeIter. This iter will be filled in to point where the price appears in the price tree. |
Definition at line 1111 of file gnc-tree-model-price.c.
gnc_commodity_namespace* gnc_tree_model_price_get_namespace | ( | GncTreeModelPrice * | model, |
GtkTreeIter * | iter | ||
) |
Convert a model/iter pair to a gnucash commodity namespace.
This routine should only be called from a commodity tree view filter function. The model and iter values will be provided as part of the call to the filter.
model | A pointer to the commodity tree model. |
iter | A GtkTreeIter corresponding to a single namespace in the model. |
Definition at line 268 of file gnc-tree-model-price.c.
GtkTreePath* gnc_tree_model_price_get_path_from_price | ( | GncTreeModelPrice * | model, |
GNCPrice * | price | ||
) |
Convert a price pointer into a GtkTreePath.
model | A pointer to the price tree model. |
price | A pointer to the commodity price. |
Definition at line 1161 of file gnc-tree-model-price.c.
GNCPrice* gnc_tree_model_price_get_price | ( | GncTreeModelPrice * | model, |
GtkTreeIter * | iter | ||
) |
Convert a model/iter pair to a gnucash price.
This routine should only be called from a price tree view filter function. The model and iter values will be provided as part of the call to the filter.
model | A pointer to the price tree model. |
iter | A GtkTreeIter corresponding to a single price in the model. |
Definition at line 296 of file gnc-tree-model-price.c.
gboolean gnc_tree_model_price_iter_is_commodity | ( | GncTreeModelPrice * | model, |
GtkTreeIter * | iter | ||
) |
Determine whether or not the specified GtkTreeIter points to a commodity.
This routine should only be called from a price tree view filter function. The model and iter values will be provided as part of the call to the filter.
model | A pointer to the price tree model. |
iter | A GtkTreeIter corresponding to a single item in the model. |
Definition at line 244 of file gnc-tree-model-price.c.
gboolean gnc_tree_model_price_iter_is_namespace | ( | GncTreeModelPrice * | model, |
GtkTreeIter * | iter | ||
) |
Determine whether or not the specified GtkTreeIter points to a "commodity namespace".
This routine should only be called from a price tree view filter function. The model and iter values will be provided as part of the call to the filter.
model | A pointer to the price tree model. |
iter | A GtkTreeIter corresponding to a single item in the model. |
Definition at line 232 of file gnc-tree-model-price.c.
gboolean gnc_tree_model_price_iter_is_price | ( | GncTreeModelPrice * | model, |
GtkTreeIter * | iter | ||
) |
Determine whether or not the specified GtkTreeIter points to a price.
This routine should only be called from a price tree view filter function. The model and iter values will be provided as part of the call to the filter.
model | A pointer to the price tree model. |
iter | A GtkTreeIter corresponding to a single item in the model. |
Definition at line 256 of file gnc-tree-model-price.c.
GtkTreeModel* gnc_tree_model_price_new | ( | QofBook * | book, |
GNCPriceDB * | price_db | ||
) |
Create a new GtkTreeModel for manipulating gnucash commodity prices.
book | The book that holds these prices. |
price_db | A pointer to the price database for this tree. All namespaces and commodities in the book, and all prices in this tree will be included. |
Definition at line 200 of file gnc-tree-model-price.c.
GtkTreeViewColumn* gnc_tree_view_account_add_custom_column | ( | GncTreeViewAccount * | view, |
const gchar * | column_title, | ||
GncTreeViewAccountColumnSource | source_cb, | ||
GncTreeViewAccountColumnTextEdited | edited_cb | ||
) |
Add a new custom column to the set of columns in an account tree view.
This column will be visible as soon as it is added and will query the provided functions to determine what data to display. The TreeView will own the resulting TreeViewColumn, but caller may set any additional properties they wish.
view | A pointer to an account tree view. |
column_title | The title for this new column. |
source_cb | A callback function that is expected to provide the data to be displayed. |
edited_cb | A callback function that will be called if the user edits the displayed data. |
Definition at line 1950 of file gnc-tree-view-account.c.
GtkTreeViewColumn* gnc_tree_view_account_add_property_column | ( | GncTreeViewAccount * | view, |
const gchar * | column_title, | ||
const gchar * | propname | ||
) |
Add a new column to the set of columns in an account tree view.
This column will be visible as soon as it is added and will display the contents of the specified account property
view | A pointer to an account tree view. |
column_title | The title for this new column. |
propname | The g_object_property name of the desired value. This must be a string property. |
Definition at line 1851 of file gnc-tree-view-account.c.
void gnc_tree_view_account_clear_model_cache | ( | GncTreeViewAccount * | view | ) |
This function clears the tree model account cache so the values will be updated/refreshed.
view | A pointer to an account tree view. |
Definition at line 1173 of file gnc-tree-view-account.c.
gint gnc_tree_view_account_count_children | ( | GncTreeViewAccount * | view, |
Account * | account | ||
) |
This function determines if an account in the account tree view has any visible children.
view | A pointer to an account tree view. |
account | A pointer to the account to check. |
Definition at line 1144 of file gnc-tree-view-account.c.
void gnc_tree_view_account_expand_to_account | ( | GncTreeViewAccount * | view, |
Account * | account | ||
) |
This function forces the account tree expand whatever levels are necessary to make the specified account visible.
view | A pointer to an account tree view. |
account | A pointer to the account to show. |
Definition at line 1717 of file gnc-tree-view-account.c.
Account* gnc_tree_view_account_get_account_from_iter | ( | GtkTreeModel * | model, |
GtkTreeIter * | iter | ||
) |
This function returns the account associated with the specified iter.
This function is useful in selection callbacks on an account tree widget.
model | The model provided to the callback function. |
iter | The iter provided to the callback function. |
Definition at line 1356 of file gnc-tree-view-account.c.
Account* gnc_tree_view_account_get_account_from_path | ( | GncTreeViewAccount * | view, |
GtkTreePath * | path | ||
) |
This function returns the account associated with the specified path.
This function is useful in selection callbacks on an account tree widget.
view | A pointer to an account tree view. |
path | A path specifying a node in the account tree. |
Definition at line 1310 of file gnc-tree-view-account.c.
Account* gnc_tree_view_account_get_cursor_account | ( | GncTreeViewAccount * | view | ) |
This function returns the account in the account tree view at the current location of the cursor.
(The outline frame. Usually is selected and therefore filled in, but not always.)
view | A pointer to an account tree view. |
Definition at line 1740 of file gnc-tree-view-account.c.
Account* gnc_tree_view_account_get_selected_account | ( | GncTreeViewAccount * | view | ) |
This function returns the account associated with the selected item in the account tree view.
view | A pointer to an account tree view. |
Definition at line 1387 of file gnc-tree-view-account.c.
GList* gnc_tree_view_account_get_selected_accounts | ( | GncTreeViewAccount * | view | ) |
This function returns a list of the accounts associated with the selected items in the account tree view.
view | A pointer to an account tree view. |
Definition at line 1545 of file gnc-tree-view-account.c.
void gnc_tree_view_account_get_view_info | ( | GncTreeViewAccount * | account_view, |
AccountViewInfo * | avi | ||
) |
Given pointers to an account tree and old style filter block, this function will copy the current configuration of the account tree widget into the data block.
This may be used in conjunction with the gnc_tree_view_account_set_view_info function to modify the filters on an existing account tree.
account_view | A pointer to an account tree view. |
avi | A pointer to an old style filter block to fill in. |
Definition at line 1193 of file gnc-tree-view-account.c.
GtkTreeView* gnc_tree_view_account_new | ( | gboolean | show_root | ) |
Create a new account tree view.
This view may or may not show a pseudo top-level account. The gnucash engine does not have a single top level account (it has a list of top level accounts), but this code provides one so that it can be used with all parts of the gnucash gui. The first level of accounts in the created tree will be the top level of accounts in the current book.
show_root | Show the pseudo top-level account in this view. |
Definition at line 1049 of file gnc-tree-view-account.c.
GtkTreeView* gnc_tree_view_account_new_with_root | ( | Account * | root, |
gboolean | show_root | ||
) |
Create a new account tree view.
This view may or may not show a pseudo top-level account. The gnucash engine does not have a single top level account (it has a list of top level accounts), but this code provides one so that it can be used with all parts of the gnucash gui.
root | The account to use as the first level of the created tree. |
show_root | Show the pseudo top-level account in this view. |
Definition at line 744 of file gnc-tree-view-account.c.
void gnc_tree_view_account_refilter | ( | GncTreeViewAccount * | view | ) |
This function forces the account tree filter to be evaluated.
It may be necessary to call this function if the initial state of the view is incorrect. This appears to only be necessary if the filter affects one of the top level accounts in gnucash.
view | A pointer to an account tree view. |
Definition at line 1276 of file gnc-tree-view-account.c.
void gnc_tree_view_account_select_subaccounts | ( | GncTreeViewAccount * | view, |
Account * | account | ||
) |
This function selects all sub-accounts of an account in the account tree view.
All other accounts will be unselected.
view | A pointer to an account tree view. |
account | A pointer to the account whose children should be selected. |
Definition at line 1645 of file gnc-tree-view-account.c.
void gnc_tree_view_account_set_filter | ( | GncTreeViewAccount * | account_view, |
gnc_tree_view_account_filter_func | func, | ||
gpointer | data, | ||
GSourceFunc | destroy | ||
) |
This function attaches a filter function to the given account tree.
This function will be called for each account that the view thinks should possibly show. The filter may perform any actions necessary on the account to decide whether it should be shown or not. (I.E. Check type, placeholder status, etc.) If the filter returns TRUE then the account will be displayed.
account_view | A pointer to an account tree view. |
func | A filtration function that is called on individual elements in the tree. If this function returns TRUE, the account 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 1250 of file gnc-tree-view-account.c.
void gnc_tree_view_account_set_selected_account | ( | GncTreeViewAccount * | view, |
Account * | account | ||
) |
This function selects an account in the account tree view.
All other accounts will be unselected. In addition, this function collapses the entire tree and then expands only the path to the selected account, making the item easy to find. In general, this routine only need be called when initially putting up a window containing an account tree view widget.
view | A pointer to an account tree view. |
account | A pointer to the account to select. |
Definition at line 1427 of file gnc-tree-view-account.c.
void gnc_tree_view_account_set_selected_accounts | ( | GncTreeViewAccount * | view, |
GList * | account_list, | ||
gboolean | show_last | ||
) |
This function selects a set of accounts in the account tree view.
All other accounts will be unselected. In addition, this function collapses the entire tree and then expands only the path to the selected accounts, making them easy to find. In general, this routine only need be called when initially putting up a window containing an account tree view widget.
view | A pointer to an account tree view. |
account_list | A list of accounts to select. |
show_last | Force the window to scroll to the last account selected. |
Definition at line 1565 of file gnc-tree-view-account.c.
void gnc_tree_view_account_set_view_info | ( | GncTreeViewAccount * | account_view, |
AccountViewInfo * | avi | ||
) |
Given pointers to an account tree and old style filter block, this function will applies the settings specified to the current configuration of the account tree widget.
This may be used in conjunction with the gnc_tree_view_account_get_view_info function to modify the filters on an existing account tree.
account_view | A pointer to an account tree view. |
avi | A pointer to an old style filter block to apply to the view. |
Definition at line 1207 of file gnc-tree-view-account.c.
void gnc_tree_view_commodity_configure_columns | ( | GncTreeViewCommodity * | view, |
GSList * | column_names | ||
) |
Configure (by name) the set of visible columns in an commodity tree view.
By default, only the commodity name column is show. The available list of columns can be found in the file gnc-tree-view-commodity.c
view | A pointer to an commodity tree view. |
column_names | A list of column names to make visible. |
gnc_commodity* gnc_tree_view_commodity_get_cursor_commodity | ( | GncTreeViewCommodity * | view | ) |
This function returns the commodity in the commodity tree view at the current location of the cursor.
(The outline frame. Usually is selected and therefore filled in, but not always.)
view | A pointer to an commodity tree view. |
gnc_commodity* gnc_tree_view_commodity_get_selected_commodity | ( | GncTreeViewCommodity * | view | ) |
This function returns the commodity associated with the selected item in the commodity tree view.
view | A pointer to an commodity tree view. |
Definition at line 614 of file gnc-tree-view-commodity.c.
GtkTreeView* gnc_tree_view_commodity_new | ( | QofBook * | book, |
const gchar * | first_property_name, | ||
... | |||
) |
Create a new commodity tree view.
This view may or may not show a pseudo top-level commodity. The gnucash engine does not have a single top level commodity (it has a list of top level commodities), but this code provides one so that it can be used with all parts of the gnucash gui.
book | The book containing the commodities to show. |
first_property_name | Pairs of property name/value settings for the newly created object. Terminate the properties with a single NULL argument. |
Definition at line 311 of file gnc-tree-view-commodity.c.
void gnc_tree_view_commodity_refilter | ( | GncTreeViewCommodity * | view | ) |
This function forces the commodity tree filter to be evaluated.
It may be necessary to call this function if the initial state of the view is incorrect. This appears to only be necessary if the filter affects one of the top level commodities in gnucash.
view | A pointer to an commodity tree view. |
Definition at line 591 of file gnc-tree-view-commodity.c.
void gnc_tree_view_commodity_select_commodity | ( | GncTreeViewCommodity * | view, |
gnc_commodity * | commodity | ||
) |
Select the commodity in the associated commodity tree view.
view | A pointer to an commodity tree view. |
commodity | The commodity to select. |
Definition at line 651 of file gnc-tree-view-commodity.c.
void gnc_tree_view_commodity_select_subcommodities | ( | GncTreeViewCommodity * | view, |
gnc_commodity * | commodity | ||
) |
This function selects all sub-commodities of an commodity in the commodity tree view.
All other commodities will be unselected.
view | A pointer to an commodity tree view. |
commodity | A pointer to the commodity whose children should be selected. |
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, | ||
GDestroyNotify | destroy | ||
) |
This function attaches a filter function to the given commodity tree.
This function will be called for each commodity that the view thinks should possibly show. The filter may perform any actions necessary on the commodity to decide whether it should be shown or not. (I.E. Check type, placeholder status, etc.) If the filter returns TRUE then the commodity will be displayed.
view | A pointer to an commodity tree view. |
ns_func | A filtration function that is called on individual tree elements that represent a namespace. If this function returns TRUE, the namespace (and commodities under it) will be displayed. |
cm_func | A filtration function that is called on individual tree elements that represent a commodity. If this function returns TRUE, the commodity 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 543 of file gnc-tree-view-commodity.c.
GncOwner* gnc_tree_view_owner_get_owner_from_iter | ( | GtkTreeModel * | model, |
GtkTreeIter * | iter | ||
) |
This function returns the owner associated with the specified iter.
This function is useful in selection callbacks on an owner tree widget.
model | The model provided to the callback function. |
iter | The iter provided to the callback function. |
Definition at line 699 of file gnc-tree-view-owner.c.
GncOwner* gnc_tree_view_owner_get_owner_from_path | ( | GncTreeViewOwner * | view, |
GtkTreePath * | path | ||
) |
This function returns the owner associated with the specified path.
This function is useful in selection callbacks on an owner tree widget.
view | A pointer to an owner tree view. |
path | A path specifying a node in the owner tree. |
Definition at line 653 of file gnc-tree-view-owner.c.
GncOwner* gnc_tree_view_owner_get_selected_owner | ( | GncTreeViewOwner * | view | ) |
This function returns the owner associated with the selected item in the owner tree view.
view | A pointer to an owner tree view. |
Definition at line 730 of file gnc-tree-view-owner.c.
GtkTreeView* gnc_tree_view_owner_new | ( | GncOwnerType | owner_type | ) |
Create a new owner tree view for one type of owners.
owner_type | The type of owners to use in the view. |
Definition at line 319 of file gnc-tree-view-owner.c.
void gnc_tree_view_owner_refilter | ( | GncTreeViewOwner * | view | ) |
This function forces the owner tree filter to be evaluated.
It may be necessary to call this function if the initial state of the view is incorrect. This appears to only be necessary if the filter affects one of the top level owners in gnucash.
view | A pointer to an owner tree view. |
Definition at line 633 of file gnc-tree-view-owner.c.
void gnc_tree_view_owner_set_filter | ( | GncTreeViewOwner * | owner_view, |
gnc_tree_view_owner_filter_func | func, | ||
gpointer | data, | ||
GSourceFunc | destroy | ||
) |
This function attaches a filter function to the given owner tree.
This function will be called for each owner that the view thinks should possibly show. The filter may perform any actions necessary on the owner to decide whether it should be shown or not. (I.E. Check type, placeholder status, etc.) If the filter returns TRUE then the owner will be displayed.
owner_view | A pointer to an owner tree view. |
func | A filtration function that is called on individual elements in the tree. If this function returns TRUE, the owner 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 607 of file gnc-tree-view-owner.c.
void gnc_tree_view_owner_set_selected_owner | ( | GncTreeViewOwner * | view, |
GncOwner * | owner | ||
) |
This function selects an owner in the owner tree view.
All other owners will be unselected. In addition, this function collapses the entire tree and then expands only the path to the selected owner, making the item easy to find. In general, this routine only need be called when initially putting up a window containing an owner tree view widget.
view | A pointer to an owner tree view. |
owner | A pointer to the owner to select. |
Definition at line 770 of file gnc-tree-view-owner.c.
GNCPrice* gnc_tree_view_price_get_cursor_price | ( | GncTreeViewPrice * | view | ) |
This function returns the price in the price tree view at the current location of the cursor.
(The outline frame. Usually is selected and therefore filled in, but not always.)
view | A pointer to an price tree view. |
GList* gnc_tree_view_price_get_selected_commodities | ( | GncTreeViewPrice * | view | ) |
This function returns a list of commodities associated with the selected rows that are not prices but are the parent rows for prices in the price tree view.
view | A pointer to an price tree view. |
Definition at line 810 of file gnc-tree-view-price.c.
GNCPrice* gnc_tree_view_price_get_selected_price | ( | GncTreeViewPrice * | view | ) |
This function returns the price associated with the selected item in the price tree view.
view | A pointer to an price tree view. |
Definition at line 628 of file gnc-tree-view-price.c.
GList* gnc_tree_view_price_get_selected_prices | ( | GncTreeViewPrice * | view | ) |
This function returns a list of the prices associated with the selected items in the price tree view.
view | A pointer to an price tree view. |
Definition at line 766 of file gnc-tree-view-price.c.
GtkTreeView* gnc_tree_view_price_new | ( | QofBook * | book, |
const gchar * | first_property_name, | ||
... | |||
) |
Create a new price tree view.
This view may or may not show a pseudo top-level price. The gnucash engine does not have a single top level price (it has a list of top level prices), but this code provides one so that it can be used with all parts of the gnucash gui.
book | The book containing the prices to show. |
first_property_name | Pairs of property name/value settings for the newly created object. Terminate the properties with a single NULL argument. |
Definition at line 350 of file gnc-tree-view-price.c.
void gnc_tree_view_price_set_selected_price | ( | GncTreeViewPrice * | view, |
GNCPrice * | price | ||
) |
This function selects an price in the price tree view.
All other prices will be unselected. In addition, this function collapses the entire tree and then expands only the path to the selected price, making the item easy to find. In general, this routine only need be called when initially putting up a window containing an price tree view widget.
view | A pointer to an price tree view. |
price | A pointer to the price to select. |
Definition at line 664 of file gnc-tree-view-price.c.
void gppat_filter_clear_all_cb | ( | GtkWidget * | button, |
AccountFilterDialog * | fd | ||
) |
The "clear all account types" button in the Filter dialog was clicked.
Clear all account types shown, and update the visible page.
button | The button that was clicked. |
fd | A pointer to the account filter dialog struct. |
Definition at line 2130 of file gnc-tree-view-account.c.
void gppat_filter_response_cb | ( | GtkWidget * | dialog, |
gint | response, | ||
AccountFilterDialog * | fd | ||
) |
The Filter dialog was closed.
Check to see if this was done via the OK button. If so, make the changes permanent. If not, revert any changes.
dialog | A pointer to the "Filter By" dialog. |
response | The response code from closing the dialog. |
fd | A pointer to the account filter dialog struct. |
Definition at line 2244 of file gnc-tree-view-account.c.
void gppat_filter_select_all_cb | ( | GtkWidget * | button, |
AccountFilterDialog * | fd | ||
) |
The "select all account types" button in the Filter dialog was clicked.
Make all account types visible, and update the page.
button | The button that was clicked. |
fd | A pointer to the account filter dialog struct. |
Definition at line 2149 of file gnc-tree-view-account.c.
void gppat_filter_select_default_cb | ( | GtkWidget * | button, |
AccountFilterDialog * | fd | ||
) |
The "select default account types" button in the Filter dialog was clicked.
Set all account types to their default visibility (which happens to be visible for all of them), and update the page.
button | The button that was clicked. |
fd | A pointer to the account filter dialog struct. |
Definition at line 2169 of file gnc-tree-view-account.c.
void gppat_filter_show_hidden_toggled_cb | ( | GtkToggleButton * | button, |
AccountFilterDialog * | fd | ||
) |
The "show hidden" button in the Filter dialog changed state.
Update the page to reflect these changes.
button | The GtkCheckButton that was toggled. |
fd | A pointer to the account filter dialog struct. |
Definition at line 2072 of file gnc-tree-view-account.c.
void gppat_filter_show_unused_toggled_cb | ( | GtkToggleButton * | button, |
AccountFilterDialog * | fd | ||
) |
The "show unused" button in the Filter dialog changed state.
Update the page to reflect these changes.
button | The GtkCheckButton that was toggled. |
fd | A pointer to the account filter dialog struct. |
Definition at line 2110 of file gnc-tree-view-account.c.
void gppat_filter_show_zero_toggled_cb | ( | GtkToggleButton * | button, |
AccountFilterDialog * | fd | ||
) |
The "show zero totals" button in the Filter dialog changed state.
Update the page to reflect these changes.
button | The GtkCheckButton that was toggled. |
fd | A pointer to the account filter dialog struct. |
Definition at line 2091 of file gnc-tree-view-account.c.
void gppot_filter_response_cb | ( | GtkWidget * | dialog, |
gint | response, | ||
OwnerFilterDialog * | fd | ||
) |
The Filter dialog was closed.
Check to see if this was done via the OK button. If so, make the changes permanent. If not, revert any changes.
dialog | A pointer to the "Filter By" dialog. |
response | The response code from closing the dialog. |
fd | A pointer to the owner filter dialog struct. |
Definition at line 1098 of file gnc-tree-view-owner.c.
void gppot_filter_show_inactive_toggled_cb | ( | GtkToggleButton * | button, |
OwnerFilterDialog * | fd | ||
) |
The "only show active" button in the Filter dialog changed state.
Update the page to reflect these changes.
button | The GtkCheckButton that was toggled. |
fd | A pointer to the owner filter dialog struct. |
Definition at line 1059 of file gnc-tree-view-owner.c.
void gppot_filter_show_zero_toggled_cb | ( | GtkToggleButton * | button, |
OwnerFilterDialog * | fd | ||
) |
The "show zero totals" button in the Filter dialog changed state.
Update the page to reflect these changes.
button | The GtkCheckButton that was toggled. |
fd | A pointer to the owner filter dialog struct. |
Definition at line 1077 of file gnc-tree-view-owner.c.