GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
gnc-budget-view.h
Go to the documentation of this file.
1 /* Copyright (C) 2013 Phil Longstaff <[email protected]>
2  *
3  * gnc-budget-view.h --
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License as
7  * published by the Free Software Foundation; either version 2 of
8  * the License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, contact:
17  *
18  * Free Software Foundation Voice: +1-617-542-5942
19  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652
20  * Boston, MA 02110-1301, USA [email protected]
21  */
22 
29 #ifndef __GNC_BUDGET_VIEW_H
30 #define __GNC_BUDGET_VIEW_H
31 
32 #include <gtk/gtk.h>
33 
34 #if 0
35 #include "gnc-plugin-page.h"
36 #endif
37 #include "gnc-budget.h"
38 #include "gnc-tree-view-account.h"
39 
40 G_BEGIN_DECLS
41 
42 /* type macros */
43 #define GNC_TYPE_BUDGET_VIEW (gnc_budget_view_get_type ())
44 #define GNC_BUDGET_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_BUDGET_VIEW, GncBudgetView))
45 #define GNC_BUDGET_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_BUDGET_VIEW, GncBudgetViewClass))
46 #define GNC_IS_BUDGET_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_BUDGET_VIEW))
47 #define GNC_IS_BUDGET_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_BUDGET_VIEW))
48 #define GNC_BUDGET_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_BUDGET_VIEW, GncBudgetViewClass))
49 
50 #define GNC_BUDGET_VIEW_NAME "GncBudgetView"
51 
52 /* typedefs & structures */
53 typedef struct _GncBudgetView GncBudgetView;
55 
56 /* function prototypes */
57 GType gnc_budget_view_get_type (void);
58 
64 void gnc_budget_view_save(GncBudgetView* view, GKeyFile *key_file, const gchar* group_name);
65 void gnc_budget_view_refresh(GncBudgetView* view);
66 void gnc_budget_view_delete_budget(GncBudgetView* view);
67 gboolean gnc_budget_view_restore(GncBudgetView* view, GKeyFile *key_file, const gchar* group_name);
68 GtkTreeSelection* gnc_budget_view_get_selection(GncBudgetView* view);
69 Account* gnc_budget_view_get_account_from_path(GncBudgetView* view, GtkTreePath* path);
70 GList* gnc_budget_view_get_selected_accounts(GncBudgetView* view);
71 
72 G_END_DECLS
73 
74 #endif /* __GNC_BUDGET_VIEW_H */
75 
GncBudgetView * gnc_budget_view_new(GncBudget *budget, AccountFilterDialog *fd)
GnuCash Budgets.
GtkTreeView implementation for gnucash account tree.
Functions for adding plugins to a GnuCash window.