GnuCash
2.6.99
|
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 | GncTreeModelAccountTypes |
struct | GncTreeModelAccountTypesClass |
struct | GncTreeModelAccount |
struct | GncTreeModelAccountClass |
struct | GncTreeModelCommodity |
struct | GncTreeModelCommodityClass |
struct | GncTreeModelOwner |
struct | GncTreeModelOwnerClass |
struct | GncTreeModelPrice |
struct | GncTreeModelPriceClass |
struct | GncTreeModel |
struct | GncTreeModelClass |
struct | AccountViewInfo_s |
struct | GncTreeViewAccount |
struct | GncTreeViewAccountClass |
struct | AccountFilterDialog |
struct | GncTreeViewCommodity |
struct | GncTreeViewCommodityClass |
struct | OwnerViewInfo_s |
struct | GncTreeViewOwner |
struct | GncTreeViewOwnerClass |
struct | OwnerFilterDialog |
struct | GncTreeViewPrice |
struct | GncTreeViewPriceClass |
Macros | |
#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_OWNER (gnc_tree_model_owner_get_type ()) |
#define | GNC_TREE_MODEL_OWNER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_TREE_MODEL_OWNER, GncTreeModelOwner)) |
#define | GNC_TREE_MODEL_OWNER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_TREE_MODEL_OWNER, GncTreeModelOwnerClass)) |
#define | GNC_IS_TREE_MODEL_OWNER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_TREE_MODEL_OWNER)) |
#define | GNC_IS_TREE_MODEL_OWNER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_TREE_MODEL_OWNER)) |
#define | GNC_TREE_MODEL_OWNER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_TREE_MODEL_OWNER, GncTreeModelOwnerClass)) |
#define | GNC_TREE_MODEL_OWNER_NAME "GncTreeModelOwner" |
#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_OWNER (gnc_tree_view_owner_get_type ()) |
#define | GNC_TREE_VIEW_OWNER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_TREE_VIEW_OWNER, GncTreeViewOwner)) |
#define | GNC_TREE_VIEW_OWNER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_TREE_VIEW_OWNER, GncTreeViewOwnerClass)) |
#define | GNC_IS_TREE_VIEW_OWNER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_TREE_VIEW_OWNER)) |
#define | GNC_IS_TREE_VIEW_OWNER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_TREE_VIEW_OWNER)) |
#define | GNC_TREE_VIEW_OWNER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_TREE_VIEW_OWNER, GncTreeViewOwnerClass)) |
#define | GNC_TREE_VIEW_OWNER_NAME "GncTreeViewOwner" |
#define | GNC_OWNER_TREE_NAME_COL "name" |
#define | GNC_OWNER_TREE_TYPE_COL "type" |
#define | GNC_OWNER_TREE_ID_COL "owner-id" |
#define | GNC_OWNER_TREE_CURRENCY_COL "currency" |
#define | GNC_OWNER_TREE_ADDRESS_NAME_COL "address-name" |
#define | GNC_OWNER_TREE_ADDRESS_1_COL "address-1" |
#define | GNC_OWNER_TREE_ADDRESS_2_COL "address-2" |
#define | GNC_OWNER_TREE_ADDRESS_3_COL "address-3" |
#define | GNC_OWNER_TREE_ADDRESS_4_COL "address-4" |
#define | GNC_OWNER_TREE_PHONE_COL "phone" |
#define | GNC_OWNER_TREE_FAX_COL "fax" |
#define | GNC_OWNER_TREE_EMAIL_COL "email" |
#define | GNC_OWNER_TREE_BALANCE_COL "balance" |
#define | GNC_OWNER_TREE_BALANCE_REPORT_COL "balance-report" |
#define | GNC_OWNER_TREE_BALANCE_PERIOD_COL "balance-period" |
#define | GNC_OWNER_TREE_NOTES_COL "notes" |
#define | GNC_OWNER_TREE_ACTIVE_COL "active" |
#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 struct AccountViewInfo_s | AccountViewInfo |
typedef struct OwnerViewInfo_s | OwnerViewInfo |
Functions | |
GType | gnc_tree_model_account_types_get_type (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) |
GType | gnc_tree_model_account_get_type (void) |
GType | gnc_tree_model_commodity_get_type (void) |
GType | gnc_tree_model_owner_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_show_unused_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) |
void | owner_filter_dialog_create (OwnerFilterDialog *fd, GncPluginPage *page) |
gboolean | gnc_plugin_page_owner_tree_filter_owners (GncOwner *owner, gpointer user_data) |
void | gppot_filter_show_inactive_toggled_cb (GtkToggleButton *togglebutton, OwnerFilterDialog *fd) |
void | gppot_filter_show_zero_toggled_cb (GtkToggleButton *togglebutton, OwnerFilterDialog *fd) |
void | gppot_filter_response_cb (GtkWidget *dialog, gint response, OwnerFilterDialog *fd) |
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) |
GType | gnc_tree_view_owner_get_type (void) |
GType | gnc_tree_view_price_get_type (void) |
Variables | |
gboolean | OwnerViewInfo_s::show_inactive |
GncTreeView | GncTreeViewOwner::gnc_tree_view |
int | GncTreeViewOwner::stamp |
GncTreeViewClass | GncTreeViewOwnerClass::gnc_tree_view |
GtkWidget * | OwnerFilterDialog::dialog |
GncTreeViewOwner * | OwnerFilterDialog::tree_view |
gboolean | OwnerFilterDialog::show_inactive |
gboolean | OwnerFilterDialog::original_show_inactive |
gboolean | OwnerFilterDialog::show_zero_total |
gboolean | OwnerFilterDialog::original_show_zero_total |
Account Tree Model Constructors | |
GtkTreeModel * | gnc_tree_model_account_new (Account *root) |
Account Tree Model Get/Set Functions | |
Account * | gnc_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_namespace * | gnc_tree_model_commodity_get_namespace (GncTreeModelCommodity *model, GtkTreeIter *iter) |
gnc_commodity * | gnc_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 *name_space, 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_commodity (GncTreeModelCommodity *model, gnc_commodity *commodity) |
Owner Tree Model Constructors | |
GtkTreeModel * | gnc_tree_model_owner_new (GncOwnerType owner_type) |
Owner Tree Model Get/Set Functions | |
GncOwner * | gnc_tree_model_owner_get_owner (GncTreeModelOwner *model, GtkTreeIter *iter) |
gboolean | gnc_tree_model_owner_get_iter_from_owner (GncTreeModelOwner *model, GncOwner *owner, GtkTreeIter *iter) |
GtkTreePath * | gnc_tree_model_owner_get_path_from_owner (GncTreeModelOwner *model, GncOwner *owner) |
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_namespace * | gnc_tree_model_price_get_namespace (GncTreeModelPrice *model, GtkTreeIter *iter) |
gnc_commodity * | gnc_tree_model_price_get_commodity (GncTreeModelPrice *model, GtkTreeIter *iter) |
GNCPrice * | gnc_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 *name_space, 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_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 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_property_column (GncTreeViewAccount *view, const gchar *column_title, const gchar *propname) |
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, GSourceFunc destroy) |
gboolean | gnc_tree_view_account_filter_by_view_info (Account *acct, gpointer data) |
void | gnc_tree_view_account_refilter (GncTreeViewAccount *view) |
Account Tree View Get/Set Functions | |
gint | gnc_tree_view_account_count_children (GncTreeViewAccount *view, Account *account) |
Account * | gnc_tree_view_account_get_account_from_path (GncTreeViewAccount *view, GtkTreePath *path) |
Account * | gnc_tree_view_account_get_account_from_iter (GtkTreeModel *model, GtkTreeIter *iter) |
Account * | gnc_tree_view_account_get_cursor_account (GncTreeViewAccount *view) |
Account * | gnc_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 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) |
void | gnc_tree_view_commodity_refilter (GncTreeViewCommodity *view) |
Commodity Tree View Get/Set Functions | |
gnc_commodity * | gnc_tree_view_commodity_get_cursor_commodity (GncTreeViewCommodity *view) |
gnc_commodity * | gnc_tree_view_commodity_get_selected_commodity (GncTreeViewCommodity *view) |
void | gnc_tree_view_commodity_select_subcommodities (GncTreeViewCommodity *view, gnc_commodity *commodity) |
Owner Tree View Constructor | |
GtkTreeView * | gnc_tree_view_owner_new (GncOwnerType owner_type) |
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) |
void | gnc_tree_view_owner_set_filter (GncTreeViewOwner *owner_view, gnc_tree_view_owner_filter_func func, gpointer data, GSourceFunc destroy) |
void | gnc_tree_view_owner_refilter (GncTreeViewOwner *view) |
Owner Tree View Get/Set Functions | |
GncOwner * | gnc_tree_view_owner_get_owner_from_path (GncTreeViewOwner *view, GtkTreePath *path) |
GncOwner * | gnc_tree_view_owner_get_owner_from_iter (GtkTreeModel *model, GtkTreeIter *iter) |
GncOwner * | gnc_tree_view_owner_get_selected_owner (GncTreeViewOwner *view) |
void | gnc_tree_view_owner_set_selected_owner (GncTreeViewOwner *view, GncOwner *owner) |
Price Tree View Constructors | |
GtkTreeView * | gnc_tree_view_price_new (QofBook *book, const gchar *first_property_name,...) |
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, GDestroyNotify destroy) |
Price Tree View Get/Set Functions | |
GNCPrice * | gnc_tree_view_price_get_cursor_price (GncTreeViewPrice *view) |
GNCPrice * | gnc_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) |
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 173 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 wil 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 138 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 1904 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 1056 of file gnc-tree-view-owner.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 1130 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 1147 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 1192 of file gnc-tree-model-account.c.
GType gnc_tree_model_account_get_type | ( | void | ) |
Get the type of an account tree plugin.
Definition at line 137 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 273 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 287 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 969 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 1054 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 273 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 1018 of file gnc-tree-model-commodity.c.
GType gnc_tree_model_commodity_get_type | ( | void | ) |
Get the type of a commodity tree plugin.
Definition at line 110 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 261 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 249 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 215 of file gnc-tree-model-commodity.c.
GType gnc_tree_model_get_type | ( | void | ) |
Get the type of a generic tree model plugin.
Definition at line 61 of file gnc-tree-model.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 878 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 861 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 917 of file gnc-tree-model-owner.c.
GType gnc_tree_model_owner_get_type | ( | void | ) |
Get the type of an owner tree plugin.
Definition at line 136 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 274 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 335 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 1269 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 1317 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 1181 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 321 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 1233 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 349 of file gnc-tree-model-price.c.
GType gnc_tree_model_price_get_type | ( | void | ) |
Get the type of a price tree plugin.
Definition at line 141 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 297 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 285 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 309 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 252 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 1859 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 1763 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 1040 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 1630 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 1270 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 1224 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 1653 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 1301 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 1459 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 1078 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 945 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 673 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 1190 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 1558 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 1161 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 entitre 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 1341 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 entitre 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 1478 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 1106 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 avalible 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 645 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 350 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 622 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 wil 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 584 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 726 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 680 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 757 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 362 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 660 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 631 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 entitre 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 797 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. |
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 657 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 795 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 389 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 entitre 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 693 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 2011 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 2125 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 2030 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 2050 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 1953 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 1991 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 1972 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 1129 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 1090 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 1108 of file gnc-tree-view-owner.c.