|
GnuCash 2.4.99
|
00001 /* 00002 * gnc-plugin-budget.h -- 00003 * 00004 * Copyright (C) 2005 Chris Shoemaker <c.shoemaker@cox.net> 00005 * 00006 * Based on gnc-plugin-account.h, by: 00007 * Jan Arne Petersen <jpetersen@uni-bonn.de> 00008 * 00009 * This program is free software; you can redistribute it and/or 00010 * modify it under the terms of the GNU General Public License as 00011 * published by the Free Software Foundation; either version 2 of 00012 * the License, or (at your option) any later version. 00013 * 00014 * This program is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 * GNU General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU General Public License 00020 * along with this program; if not, contact: 00021 * 00022 * Free Software Foundation Voice: +1-617-542-5942 00023 * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 00024 * Boston, MA 02110-1301, USA gnu@gnu.org 00025 */ 00026 00027 #ifndef __GNC_PLUGIN_BUDGET_H 00028 #define __GNC_PLUGIN_BUDGET_H 00029 00030 #include <gtk/gtk.h> 00031 #include "gnc-plugin.h" 00032 #include "gnc-budget.h" 00033 00034 G_BEGIN_DECLS 00035 00036 /* type macros */ 00037 #define GNC_TYPE_PLUGIN_BUDGET (gnc_plugin_budget_get_type ()) 00038 #define GNC_PLUGIN_BUDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_PLUGIN_BUDGET, GncPluginBudget)) 00039 #define GNC_PLUGIN_BUDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_PLUGIN_BUDGET, GncPluginBudgetClass)) 00040 #define GNC_IS_PLUGIN_BUDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_PLUGIN_BUDGET)) 00041 #define GNC_IS_PLUGIN_BUDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_PLUGIN_BUDGET)) 00042 #define GNC_PLUGIN_BUDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_PLUGIN_BUDGET, GncPluginBudgetClass)) 00043 00044 #define GNC_PLUGIN_BUDGET_NAME "gnc-plugin-budget" 00045 00046 /* typedefs & structures */ 00047 typedef struct 00048 { 00049 GncPlugin gnc_plugin; 00050 } GncPluginBudget; 00051 00052 typedef struct 00053 { 00054 GncPluginClass gnc_plugin; 00055 } GncPluginBudgetClass; 00056 00057 /* function prototypes */ 00058 GType gnc_plugin_budget_get_type(void); 00059 GncPlugin *gnc_plugin_budget_new(void); 00060 00061 /* Launch the budget list dialog.*/ 00062 GncBudget * gnc_budget_gui_select_budget(QofBook *book); 00063 00064 00065 G_END_DECLS 00066 00067 #endif /* __GNC_PLUGIN_BUDGET_H */
1.7.4