GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
gnc-tree-model.h
Go to the documentation of this file.
1 /*
2  * gnc-tree-model.h -- base implementation for a tree model in
3  * Gnucash. This only implements the object, not
4  * the model interface.
5  *
6  * Copyright (C) 2005 David Hampton <[email protected]>
7  *
8  * This program is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License as
10  * published by the Free Software Foundation; either version 2 of
11  * the License, or (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, contact:
20  *
21  * Free Software Foundation Voice: +1-617-542-5942
22  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652
23  * Boston, MA 02110-1301, USA [email protected]
24  */
25 
35 #ifndef __GNC_TREE_MODEL_H
36 #define __GNC_TREE_MODEL_H
37 
38 #include <gtk/gtk.h>
39 
40 G_BEGIN_DECLS
41 
42 /* type macros */
43 #define GNC_TYPE_TREE_MODEL (gnc_tree_model_get_type ())
44 #define GNC_TREE_MODEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_TREE_MODEL, GncTreeModel))
45 #define GNC_TREE_MODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_TREE_MODEL, GncTreeModelClass))
46 #define GNC_IS_TREE_MODEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_TREE_MODEL))
47 #define GNC_IS_TREE_MODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_TREE_MODEL))
48 #define GNC_TREE_MODEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_TREE_MODEL, GncTreeModelClass))
49 #define GNC_TREE_MODEL_NAME "GncTreeModel"
50 
51 /* typedefs & structures */
52 
54 typedef struct
55 {
56  GObject g_object;
57 } GncTreeModel;
58 
59 
61 typedef struct
62 {
63  GObjectClass g_object;
65 
66 
67 
72 GType gnc_tree_model_get_type (void);
73 
74 
75 G_END_DECLS
76 
77 #endif /* __GNC_TREE_MODEL_H */
78 
GType gnc_tree_model_get_type(void)
GObject g_object
GObjectClass g_object