|
GnuCash 2.4.99
|
00001 /* 00002 * gnc-plugin_page-owner-tree.h -- 00003 * 00004 * Copyright (C) 2011 Geert Janssens <geert@kobaltwit.be> 00005 * 00006 * This program is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU General Public License as 00008 * published by the Free Software Foundation; either version 2 of 00009 * the License, or (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, contact: 00018 * 00019 * Free Software Foundation Voice: +1-617-542-5942 00020 * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 00021 * Boston, MA 02110-1301, USA gnu@gnu.org 00022 */ 00023 00034 #ifndef __GNC_PLUGIN_PAGE_OWNER_TREE_H 00035 #define __GNC_PLUGIN_PAGE_OWNER_TREE_H 00036 00037 #include <gtk/gtk.h> 00038 00039 #include "gnc-plugin-page.h" 00040 #include "gncOwner.h" 00041 00042 G_BEGIN_DECLS 00043 00044 /* type macros */ 00045 #define GNC_TYPE_PLUGIN_PAGE_OWNER_TREE (gnc_plugin_page_owner_tree_get_type ()) 00046 #define GNC_PLUGIN_PAGE_OWNER_TREE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_PLUGIN_PAGE_OWNER_TREE, GncPluginPageOwnerTree)) 00047 #define GNC_PLUGIN_PAGE_OWNER_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_PLUGIN_PAGE_OWNER_TREE, GncPluginPageOwnerTreeClass)) 00048 #define GNC_IS_PLUGIN_PAGE_OWNER_TREE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_PLUGIN_PAGE_OWNER_TREE)) 00049 #define GNC_IS_PLUGIN_PAGE_OWNER_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_PLUGIN_PAGE_OWNER_TREE)) 00050 #define GNC_PLUGIN_PAGE_OWNER_TREE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_PLUGIN_PAGE_OWNER_TREE, GncPluginPageOwnerTreeClass)) 00051 00052 #define GNC_PLUGIN_PAGE_OWNER_TREE_NAME "GncPluginPageOwnerTree" 00053 00054 /* typedefs & structures */ 00055 typedef struct 00056 { 00057 GncPluginPage gnc_plugin_page; 00058 } GncPluginPageOwnerTree; 00059 00060 typedef struct 00061 { 00062 GncPluginPageClass gnc_plugin_page; 00063 00064 /* callbacks */ 00065 void (*owner_selected) (GncPluginPage *page, 00066 GncOwner *owner); 00067 00068 } GncPluginPageOwnerTreeClass; 00069 00070 /* function prototypes */ 00071 00076 GType gnc_plugin_page_owner_tree_get_type (void); 00077 00078 00086 GncPluginPage *gnc_plugin_page_owner_tree_new (GncOwnerType owner_type); 00087 00088 00097 GncOwner * gnc_plugin_page_owner_tree_get_current_owner (GncPluginPageOwnerTree *page); 00098 00099 G_END_DECLS 00100 00101 #endif /* __GNC_PLUGIN_PAGE_OWNER_TREE_H */ 00102
1.7.4