GnuCash 2.4.99
gnc-tree-model.h
Go to the documentation of this file.
00001 /*
00002  * gnc-tree-model.h -- base implementation for a tree model in
00003  *                     Gnucash.  This only implements the object, not
00004  *                     the model interface.
00005  *
00006  * Copyright (C) 2005 David Hampton <hampton@employees.org>
00007  *
00008  * This program is free software; you can redistribute it and/or
00009  * modify it under the terms of the GNU General Public License as
00010  * published by the Free Software Foundation; either version 2 of
00011  * the License, or (at your option) any later version.
00012  *
00013  * This program is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016  * GNU General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU General Public License
00019  * along with this program; if not, contact:
00020  *
00021  * Free Software Foundation           Voice:  +1-617-542-5942
00022  * 51 Franklin Street, Fifth Floor    Fax:    +1-617-542-2652
00023  * Boston, MA  02110-1301,  USA       gnu@gnu.org
00024  */
00025 
00035 #ifndef __GNC_TREE_MODEL_H
00036 #define __GNC_TREE_MODEL_H
00037 
00038 #include <gtk/gtk.h>
00039 
00040 G_BEGIN_DECLS
00041 
00042 /* type macros */
00043 #define GNC_TYPE_TREE_MODEL            (gnc_tree_model_get_type ())
00044 #define GNC_TREE_MODEL(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_TREE_MODEL, GncTreeModel))
00045 #define GNC_TREE_MODEL_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_TREE_MODEL, GncTreeModelClass))
00046 #define GNC_IS_TREE_MODEL(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_TREE_MODEL))
00047 #define GNC_IS_TREE_MODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_TREE_MODEL))
00048 #define GNC_TREE_MODEL_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_TREE_MODEL, GncTreeModelClass))
00049 #define GNC_TREE_MODEL_NAME            "GncTreeModel"
00050 
00051 /* typedefs & structures */
00052 
00054 typedef struct
00055 {
00056     GObject g_object;           
00057 } GncTreeModel;
00058 
00059 
00061 typedef struct
00062 {
00063     GObjectClass g_object;      
00064 } GncTreeModelClass;
00065 
00066 
00067 
00072 GType gnc_tree_model_get_type (void);
00073 
00074 
00075 G_END_DECLS
00076 
00077 #endif /* __GNC_TREE_MODEL_H */
00078 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines