GnuCash 2.4.99
gnc-plugin-page-account-tree.h
Go to the documentation of this file.
00001 /*
00002  * gnc-plugin_page-account-tree.h --
00003  *
00004  * Copyright (C) 2003 Jan Arne Petersen <jpetersen@uni-bonn.de>
00005  * Copyright (C) 2003 David Hampton <hampton@employees.org>
00006  *
00007  * This program is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU General Public License as
00009  * published by the Free Software Foundation; either version 2 of
00010  * the License, or (at your option) any later version.
00011  *
00012  * This program is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU General Public License
00018  * along with this program; if not, contact:
00019  *
00020  * Free Software Foundation           Voice:  +1-617-542-5942
00021  * 51 Franklin Street, Fifth Floor    Fax:    +1-617-542-2652
00022  * Boston, MA  02110-1301,  USA       gnu@gnu.org
00023  */
00024 
00035 #ifndef __GNC_PLUGIN_PAGE_ACCOUNT_TREE_H
00036 #define __GNC_PLUGIN_PAGE_ACCOUNT_TREE_H
00037 
00038 #include <gtk/gtk.h>
00039 
00040 #include "gnc-plugin-page.h"
00041 #include "Account.h"
00042 
00043 G_BEGIN_DECLS
00044 
00045 /* type macros */
00046 #define GNC_TYPE_PLUGIN_PAGE_ACCOUNT_TREE            (gnc_plugin_page_account_tree_get_type ())
00047 #define GNC_PLUGIN_PAGE_ACCOUNT_TREE(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_PLUGIN_PAGE_ACCOUNT_TREE, GncPluginPageAccountTree))
00048 #define GNC_PLUGIN_PAGE_ACCOUNT_TREE_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_PLUGIN_PAGE_ACCOUNT_TREE, GncPluginPageAccountTreeClass))
00049 #define GNC_IS_PLUGIN_PAGE_ACCOUNT_TREE(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_PLUGIN_PAGE_ACCOUNT_TREE))
00050 #define GNC_IS_PLUGIN_PAGE_ACCOUNT_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_PLUGIN_PAGE_ACCOUNT_TREE))
00051 #define GNC_PLUGIN_PAGE_ACCOUNT_TREE_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_PLUGIN_PAGE_ACCOUNT_TREE, GncPluginPageAccountTreeClass))
00052 
00053 #define GNC_PLUGIN_PAGE_ACCOUNT_TREE_NAME "GncPluginPageAccountTree"
00054 
00055 /* typedefs & structures */
00056 typedef struct
00057 {
00058     GncPluginPage gnc_plugin_page;
00059 } GncPluginPageAccountTree;
00060 
00061 typedef struct
00062 {
00063     GncPluginPageClass gnc_plugin_page;
00064 
00065     /* callbacks */
00066     void (*account_selected) (GncPluginPage      *page,
00067                               Account    *account);
00068 
00069 } GncPluginPageAccountTreeClass;
00070 
00071 /* function prototypes */
00072 
00077 GType gnc_plugin_page_account_tree_get_type (void);
00078 
00079 
00084 GncPluginPage *gnc_plugin_page_account_tree_new  (void);
00085 
00086 
00095 Account * gnc_plugin_page_account_tree_get_current_account (GncPluginPageAccountTree *page);
00096 
00097 G_END_DECLS
00098 
00099 #endif /* __GNC_PLUGIN_PAGE_ACCOUNT_TREE_H */
00100 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines