1 /** 2 * @addtogroup GUI 3 * @{ 4 * @file gnc-tree-view-sx-list.h 5 * @brief GncTreeView implementation for Scheduled Transaction List. 6 * @author Copyright (C) 2007 Joshua Sled <jsled@asynchronous.org> 7 **/ 8 /******************************************************************** 9 * This program is free software; you can redistribute it and/or * 10 * modify it under the terms of version 2 and/or version 3 of the GNU General Public * 11 * License as published by the Free Software Foundation. * 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 gnu@gnu.org * 24 * * 25 *******************************************************************/ 26 27 28 #ifndef __GNC_TREE_VIEW_SX_LIST_H 29 #define __GNC_TREE_VIEW_SX_LIST_H 30 31 #include <gtk/gtk.h> 32 #include "gnc-tree-view.h" 33 34 #include "SchedXaction.h" 35 #include "gnc-sx-instance-model.h" 36 #include "gnc-ui-util.h" 37 38 G_BEGIN_DECLS 39 40 #define GNC_TYPE_TREE_VIEW_SX_LIST (gnc_tree_view_sx_list_get_type ()) 41 #define GNC_TREE_VIEW_SX_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_TREE_VIEW_SX_LIST, GncTreeViewSxList)) 42 #define GNC_TREE_VIEW_SX_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_TREE_VIEW_SX_LIST, GncTreeViewSxListClass)) 43 #define GNC_IS_TREE_VIEW_SX_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_TREE_VIEW_SX_LIST)) 44 #define GNC_IS_TREE_VIEW_SX_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_TREE_VIEW_SX_LIST)) 45 #define GNC_TREE_VIEW_SX_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_TREE_VIEW_SX_LIST, GncTreeViewSxListClass)) 46 47 typedef struct 48 { 49 GncTreeView gnc_tree_view; 50 } GncTreeViewSxList; 51 52 typedef struct 53 { 54 GncTreeViewClass gnc_tree_view; 55 } GncTreeViewSxListClass; 56 57 GType gnc_tree_view_sx_list_get_type(void); 58 59 GtkTreeView* gnc_tree_view_sx_list_new(GncSxInstanceModel *sx_instances); 60 61 SchedXaction* gnc_tree_view_sx_list_get_sx_from_path(GncTreeViewSxList *view, GtkTreePath *path); 62 63 /** @} */ 64 65 G_END_DECLS 66 67 #endif /* __GNC_TREE_VIEW_SX_LIST_H */ 68