GnuCash  4.12-71-gadd45021a8+
gnc-plugin-page-budget.h
Go to the documentation of this file.
1 /* Copyright (C) 2005 Chris Shoemaker <c.shoemaker@cox.net>
2  *
3  * gnc-plugin-page-budget.h --
4  * (based on gnc-plugin-page-account-tree.h)
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License as
8  * published by the Free Software Foundation; either version 2 of
9  * the License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, contact:
18  *
19  * Free Software Foundation Voice: +1-617-542-5942
20  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652
21  * Boston, MA 02110-1301, USA gnu@gnu.org
22  */
23 
30 #ifndef __GNC_PLUGIN_PAGE_BUDGET_H
31 #define __GNC_PLUGIN_PAGE_BUDGET_H
32 
33 #include <gtk/gtk.h>
34 
35 #include "gnc-plugin-page.h"
36 #include "gnc-budget.h"
37 
38 G_BEGIN_DECLS
39 
40 /* type macros */
41 #define GNC_TYPE_PLUGIN_PAGE_BUDGET (gnc_plugin_page_budget_get_type ())
42 #define GNC_PLUGIN_PAGE_BUDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_PLUGIN_PAGE_BUDGET, GncPluginPageBudget))
43 #define GNC_PLUGIN_PAGE_BUDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_PLUGIN_PAGE_BUDGET, GncPluginPageBudgetClass))
44 #define GNC_IS_PLUGIN_PAGE_BUDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_PLUGIN_PAGE_BUDGET))
45 #define GNC_IS_PLUGIN_PAGE_BUDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_PLUGIN_PAGE_BUDGET))
46 #define GNC_PLUGIN_PAGE_BUDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_PLUGIN_PAGE_BUDGET, GncPluginPageBudgetClass))
47 
48 #define GNC_PLUGIN_PAGE_BUDGET_NAME "GncPluginPageBudget"
49 
50 /* typedefs & structures */
51 typedef struct
52 {
53  GncPluginPage gnc_plugin_page;
55 
56 typedef struct
57 {
58  GncPluginPageClass gnc_plugin_page;
60 
61 /* function prototypes */
62 GType gnc_plugin_page_budget_get_type (void);
63 
64 
69 GncPluginPage *gnc_plugin_page_budget_new (GncBudget *budget);
70 
71 void gnc_budget_gui_delete_budget (GncBudget *budget);
72 
73 G_END_DECLS
74 
75 #endif /* __GNC_PLUGIN_PAGE_BUDGET_H */
76 
The instance data structure for a content plugin.
GnuCash Budgets.
GncPluginPage * gnc_plugin_page_budget_new(GncBudget *budget)
Create a new "budget" plugin page.
The class data structure for a content plugin.
Functions for adding plugins to a GnuCash window.