GnuCash  4.12-68-g5dc52459a1+
gnc-plugin-page-account-tree.h
Go to the documentation of this file.
1 /*
2  * gnc-plugin-page-account-tree.h --
3  *
4  * Copyright (C) 2003 Jan Arne Petersen <jpetersen@uni-bonn.de>
5  * Copyright (C) 2003 David Hampton <hampton@employees.org>
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License as
9  * published by the Free Software Foundation; either version 2 of
10  * the License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, contact:
19  *
20  * Free Software Foundation Voice: +1-617-542-5942
21  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652
22  * Boston, MA 02110-1301, USA gnu@gnu.org
23  */
24 
35 #ifndef __GNC_PLUGIN_PAGE_ACCOUNT_TREE_H
36 #define __GNC_PLUGIN_PAGE_ACCOUNT_TREE_H
37 
38 #include <gtk/gtk.h>
39 
40 #include "gnc-plugin-page.h"
41 #include "Account.h"
42 
43 G_BEGIN_DECLS
44 
45 /* type macros */
46 #define GNC_TYPE_PLUGIN_PAGE_ACCOUNT_TREE (gnc_plugin_page_account_tree_get_type ())
47 #define GNC_PLUGIN_PAGE_ACCOUNT_TREE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_PLUGIN_PAGE_ACCOUNT_TREE, GncPluginPageAccountTree))
48 #define GNC_PLUGIN_PAGE_ACCOUNT_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_PLUGIN_PAGE_ACCOUNT_TREE, GncPluginPageAccountTreeClass))
49 #define GNC_IS_PLUGIN_PAGE_ACCOUNT_TREE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_PLUGIN_PAGE_ACCOUNT_TREE))
50 #define GNC_IS_PLUGIN_PAGE_ACCOUNT_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_PLUGIN_PAGE_ACCOUNT_TREE))
51 #define GNC_PLUGIN_PAGE_ACCOUNT_TREE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_PLUGIN_PAGE_ACCOUNT_TREE, GncPluginPageAccountTreeClass))
52 
53 #define GNC_PLUGIN_PAGE_ACCOUNT_TREE_NAME "GncPluginPageAccountTree"
54 
55 /* typedefs & structures */
56 typedef struct
57 {
58  GncPluginPage gnc_plugin_page;
60 
61 typedef struct
62 {
63  GncPluginPageClass gnc_plugin_page;
64 
65  /* callbacks */
66  void (*account_selected) (GncPluginPage *page,
67  Account *account);
68 
70 
71 /* function prototypes */
72 
78 
79 
85 
86 
96 
97 
105 void gnc_plugin_page_account_tree_open (Account *account, GtkWindow *win);
106 
107 G_END_DECLS
108 
109 #endif /* __GNC_PLUGIN_PAGE_ACCOUNT_TREE_H */
110 
Account * gnc_plugin_page_account_tree_get_current_account(GncPluginPageAccountTree *page)
Given a pointer to an account tree plugin page, return the selected account (if any).
The instance data structure for a content plugin.
void gnc_plugin_page_account_tree_open(Account *account, GtkWindow *win)
Given a pointer to an account, the account tree will open and the account will be selected (if any)...
GncPluginPage * gnc_plugin_page_account_tree_new(void)
Create a new "account tree" plugin page.
Account handling public routines.
The class data structure for a content plugin.
GType gnc_plugin_page_account_tree_get_type(void)
Retrieve the type number for an "account tree" plugin page.
Functions for adding plugins to a GnuCash window.