|
GnuCash 2.4.99
|
00001 /* 00002 * gnc-sx-list-tree-model-adapter.h 00003 * 00004 * Copyright (C) 2006 Josh Sled <jsled@asynchronous.org> 00005 * 00006 * This program is free software; you can redistribute it and/or 00007 * modify it under the terms of version 2 and/or version 3 of the GNU General Public 00008 * License as published by the Free Software Foundation. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, contact: 00017 * 00018 * Free Software Foundation Voice: +1-617-542-5942 00019 * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 00020 * Boston, MA 02110-1301, USA gnu@gnu.org 00021 */ 00022 00023 #ifndef _GNC_SX_LIST_TREE_MODEL_ADAPTER_H 00024 #define _GNC_SX_LIST_TREE_MODEL_ADAPTER_H 00025 00026 #include "config.h" 00027 #include <glib.h> 00028 #include <glib-object.h> 00029 #include <gtk/gtk.h> 00030 #include "gnc-sx-instance-model.h" 00031 00032 G_BEGIN_DECLS 00033 00034 #define GNC_TYPE_SX_LIST_TREE_MODEL_ADAPTER (gnc_sx_list_tree_model_adapter_get_type ()) 00035 #define GNC_SX_LIST_TREE_MODEL_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_SX_LIST_TREE_MODEL_ADAPTER, GncSxListTreeModelAdapter)) 00036 #define GNC_SX_LIST_TREE_MODEL_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_SX_LIST_TREE_MODEL_ADAPTER, GncSxListTreeModelAdapterClass)) 00037 #define GNC_IS_SX_LIST_TREE_MODEL_ADAPTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_SX_LIST_TREE_MODEL_ADAPTER)) 00038 #define GNC_IS_SX_LIST_TREE_MODEL_ADAPTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_SX_LIST_TREE_MODEL_ADAPTER)) 00039 #define GNC_SX_LIST_TREE_MODEL_ADAPTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_SX_LIST_TREE_MODEL_ADAPTER, GncSxListTreeModelAdapterClass)) 00040 00041 typedef struct _GncSxListTreeModelAdapter GncSxListTreeModelAdapter; 00042 typedef struct _GncSxListTreeModelAdapterClass GncSxListTreeModelAdapterClass; 00043 00044 // model columns 00045 enum 00046 { 00047 SXLTMA_COL_NAME = 0, 00048 SXLTMA_COL_ENABLED, 00049 SXLTMA_COL_FREQUENCY, 00050 SXLTMA_COL_LAST_OCCUR, 00051 SXLTMA_COL_NEXT_OCCUR 00052 }; 00053 00054 GType gnc_sx_list_tree_model_adapter_get_type(void); 00055 GncSxListTreeModelAdapter* gnc_sx_list_tree_model_adapter_new(GncSxInstanceModel *instances); 00056 00057 GncSxInstances* gnc_sx_list_tree_model_adapter_get_sx_instances(GncSxListTreeModelAdapter *model, GtkTreeIter *iter); 00058 00059 G_END_DECLS 00060 00061 #endif // _GNC_SX_LIST_TREE_MODEL_ADAPTER_H
1.7.4