|
GnuCash
2.6.99
|
Files | |
| file | gnc-budget.h |
| GnuCash Budgets. | |
| file | gnc-budget-view.h |
| file | gnc-plugin-page-budget.h |
| file | gnc-tree-model-budget.h |
| provides some utilities for working with the list of budgets in a book. | |
Data Structures | |
| struct | GncPluginPageBudget |
| struct | GncPluginPageBudgetClass |
Macros | |
| #define | GNC_TYPE_BUDGET (gnc_budget_get_type ()) |
| #define | GNC_BUDGET(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GNC_TYPE_BUDGET, GncBudget)) |
| #define | GNC_BUDGET_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GNC_TYPE_BUDGET, GncBudgetClass)) |
| #define | GNC_IS_BUDGET(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GNC_TYPE_BUDGET)) |
| #define | GNC_IS_BUDGET_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GNC_TYPE_BUDGET)) |
| #define | GNC_BUDGET_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GNC_TYPE_BUDGET, GncBudgetClass)) |
| #define | GNC_BUDGET_MAX_NUM_PERIODS_DIGITS 3 |
| #define | gnc_budget_return_guid(X) (X ? *(qof_entity_get_guid(QOF_INSTANCE(X))) : *(guid_null())) |
| #define | gnc_budget_lookup_direct(g, b) gnc_budget_lookup(&(g),(b)) |
| #define | GNC_TYPE_BUDGET_VIEW (gnc_budget_view_get_type ()) |
| #define | GNC_BUDGET_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_BUDGET_VIEW, GncBudgetView)) |
| #define | GNC_BUDGET_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_BUDGET_VIEW, GncBudgetViewClass)) |
| #define | GNC_IS_BUDGET_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_BUDGET_VIEW)) |
| #define | GNC_IS_BUDGET_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_BUDGET_VIEW)) |
| #define | GNC_BUDGET_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_BUDGET_VIEW, GncBudgetViewClass)) |
| #define | GNC_BUDGET_VIEW_NAME "GncBudgetView" |
| #define | GNC_TYPE_PLUGIN_PAGE_BUDGET (gnc_plugin_page_budget_get_type ()) |
| #define | GNC_PLUGIN_PAGE_BUDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_PLUGIN_PAGE_BUDGET, GncPluginPageBudget)) |
| #define | GNC_PLUGIN_PAGE_BUDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_PLUGIN_PAGE_BUDGET, GncPluginPageBudgetClass)) |
| #define | GNC_IS_PLUGIN_PAGE_BUDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_PLUGIN_PAGE_BUDGET)) |
| #define | GNC_IS_PLUGIN_PAGE_BUDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_PLUGIN_PAGE_BUDGET)) |
| #define | GNC_PLUGIN_PAGE_BUDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_PLUGIN_PAGE_BUDGET, GncPluginPageBudgetClass)) |
| #define | GNC_PLUGIN_PAGE_BUDGET_NAME "GncPluginPageBudget" |
Typedefs | |
| typedef struct budget_s | GncBudget |
| typedef struct _GncBudgetClass | GncBudgetClass |
| typedef struct _GncBudgetView | GncBudgetView |
| typedef struct _GncBudgetViewClass | GncBudgetViewClass |
Enumerations | |
| enum | { BUDGET_GUID_COLUMN, BUDGET_NAME_COLUMN, BUDGET_DESCRIPTION_COLUMN, BUDGET_LIST_NUM_COLS } |
Functions | |
| GType | gnc_budget_get_type (void) |
| gboolean | gnc_budget_register (void) |
| GncBudget * | gnc_budget_new (QofBook *book) |
| void | gnc_budget_destroy (GncBudget *budget) |
| void | gnc_budget_begin_edit (GncBudget *bgt) |
| void | gnc_budget_commit_edit (GncBudget *bgt) |
| GncBudget * | gnc_budget_clone (const GncBudget *budget) |
| const GncGUID * | gnc_budget_get_guid (const GncBudget *budget) |
| void | gnc_budget_set_name (GncBudget *budget, const gchar *name) |
| const gchar * | gnc_budget_get_name (const GncBudget *budget) |
| void | gnc_budget_set_description (GncBudget *budget, const gchar *description) |
| const gchar * | gnc_budget_get_description (const GncBudget *budget) |
| void | gnc_budget_set_num_periods (GncBudget *budget, guint num_periods) |
| guint | gnc_budget_get_num_periods (const GncBudget *budget) |
| void | gnc_budget_set_recurrence (GncBudget *budget, const Recurrence *r) |
| const Recurrence * | gnc_budget_get_recurrence (const GncBudget *budget) |
| Timespec | gnc_budget_get_period_start_date (const GncBudget *budget, guint period_num) |
| Timespec | gnc_budget_get_period_end_date (const GncBudget *budget, guint period_num) |
| void | gnc_budget_set_account_period_value (GncBudget *budget, const Account *account, guint period_num, gnc_numeric val) |
| void | gnc_budget_unset_account_period_value (GncBudget *budget, const Account *account, guint period_num) |
| gboolean | gnc_budget_is_account_period_value_set (const GncBudget *budget, const Account *account, guint period_num) |
| gnc_numeric | gnc_budget_get_account_period_value (const GncBudget *budget, const Account *account, guint period_num) |
| gnc_numeric | gnc_budget_get_account_period_actual_value (const GncBudget *budget, Account *account, guint period_num) |
| GncBudget * | gnc_budget_get_default (QofBook *book) |
| GncBudget * | gnc_budget_lookup (const GncGUID *guid, const QofBook *book) |
| GType | gnc_budget_view_get_type (void) |
| GncBudgetView * | gnc_budget_view_new (GncBudget *budget, AccountFilterDialog *fd) |
| void | gnc_budget_view_save (GncBudgetView *view, GKeyFile *key_file, const gchar *group_name) |
| void | gnc_budget_view_refresh (GncBudgetView *view) |
| void | gnc_budget_view_delete_budget (GncBudgetView *view) |
| gboolean | gnc_budget_view_restore (GncBudgetView *view, GKeyFile *key_file, const gchar *group_name) |
| GtkTreeSelection * | gnc_budget_view_get_selection (GncBudgetView *view) |
| Account * | gnc_budget_view_get_account_from_path (GncBudgetView *view, GtkTreePath *path) |
| GList * | gnc_budget_view_get_selected_accounts (GncBudgetView *view) |
| GType | gnc_plugin_page_budget_get_type (void) |
| GncPluginPage * | gnc_plugin_page_budget_new (GncBudget *budget) |
| void | gnc_budget_gui_delete_budget (GncBudget *budget) |
| GtkTreeModel * | gnc_tree_model_budget_new (QofBook *book) |
| void | gnc_tree_view_budget_set_model (GtkTreeView *tv, GtkTreeModel *tm) |
| GncBudget * | gnc_tree_model_budget_get_budget (GtkTreeModel *tm, GtkTreeIter *iter) |
| gboolean | gnc_tree_model_budget_get_iter_for_budget (GtkTreeModel *tm, GtkTreeIter *iter, GncBudget *bgt) |
The budget data.
Definition at line 70 of file gnc-budget.h.
| anonymous enum |
Definition at line 38 of file gnc-tree-model-budget.h.
Clones a budget creating a copy
Definition at line 340 of file gnc-budget.c.
| void gnc_budget_destroy | ( | GncBudget * | budget | ) |
Deletes the given budget object.
Definition at line 306 of file gnc-budget.c.
Get the ending date of the Budget period
Definition at line 595 of file gnc-budget.c.
Get the starting date of the Budget period
Definition at line 584 of file gnc-budget.c.
Creates and initializes a Budget.
Definition at line 289 of file gnc-budget.c.
| void gnc_budget_set_description | ( | GncBudget * | budget, |
| const gchar * | description | ||
| ) |
Set/Get the description of the Budget
Definition at line 396 of file gnc-budget.c.
| void gnc_budget_set_name | ( | GncBudget * | budget, |
| const gchar * | name | ||
| ) |
Set/Get the name of the Budget
Definition at line 371 of file gnc-budget.c.
| void gnc_budget_set_num_periods | ( | GncBudget * | budget, |
| guint | num_periods | ||
| ) |
Set/Get the number of periods in the Budget
Definition at line 452 of file gnc-budget.c.
| GncBudgetView* gnc_budget_view_new | ( | GncBudget * | budget, |
| AccountFilterDialog * | fd | ||
| ) |
Create a new "budget" display widget.
Definition at line 144 of file gnc-budget-view.c.
| GncPluginPage* gnc_plugin_page_budget_new | ( | GncBudget * | budget | ) |
Create a new "budget" plugin page.
Definition at line 243 of file gnc-plugin-page-budget.c.
1.8.6