GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
gnc-plugin-budget.h
1 /*
2  * gnc-plugin-budget.h --
3  *
4  * Copyright (C) 2005 Chris Shoemaker <[email protected]>
5  *
6  * Based on gnc-plugin-account.h, by:
7  * Jan Arne Petersen <[email protected]>
8  *
9  * This program is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU General Public License as
11  * published by the Free Software Foundation; either version 2 of
12  * the License, or (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, contact:
21  *
22  * Free Software Foundation Voice: +1-617-542-5942
23  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652
24  * Boston, MA 02110-1301, USA [email protected]
25  */
26 
27 #ifndef __GNC_PLUGIN_BUDGET_H
28 #define __GNC_PLUGIN_BUDGET_H
29 
30 #include <gtk/gtk.h>
31 #include "gnc-plugin.h"
32 #include "gnc-budget.h"
33 
34 G_BEGIN_DECLS
35 
36 /* type macros */
37 #define GNC_TYPE_PLUGIN_BUDGET (gnc_plugin_budget_get_type ())
38 #define GNC_PLUGIN_BUDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_PLUGIN_BUDGET, GncPluginBudget))
39 #define GNC_PLUGIN_BUDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_PLUGIN_BUDGET, GncPluginBudgetClass))
40 #define GNC_IS_PLUGIN_BUDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_PLUGIN_BUDGET))
41 #define GNC_IS_PLUGIN_BUDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_PLUGIN_BUDGET))
42 #define GNC_PLUGIN_BUDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_PLUGIN_BUDGET, GncPluginBudgetClass))
43 
44 #define GNC_PLUGIN_BUDGET_NAME "gnc-plugin-budget"
45 
46 /* typedefs & structures */
47 typedef struct
48 {
49  GncPlugin gnc_plugin;
51 
52 typedef struct
53 {
54  GncPluginClass gnc_plugin;
56 
57 /* function prototypes */
58 GType gnc_plugin_budget_get_type(void);
59 GncPlugin *gnc_plugin_budget_new(void);
60 
61 /* Launch the budget list dialog.*/
62 GncBudget * gnc_budget_gui_select_budget(QofBook *book);
63 
64 
65 G_END_DECLS
66 
67 #endif /* __GNC_PLUGIN_BUDGET_H */
GnuCash Budgets.
Functions for adding plugins to a GnuCash window.