|
GnuCash 2.4.99
|
00001 /* 00002 * Copyright (C) 2005, Chris Shoemaker <c.shoemaker@cox.net> 00003 * 00004 * This program is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU General Public License as 00006 * published by the Free Software Foundation; either version 2 of 00007 * the License, or (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program; if not, contact: 00016 * 00017 * Free Software Foundation Voice: +1-617-542-5942 00018 * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 00019 * Boston, MA 02110-1301, USA gnu@gnu.org 00020 */ 00021 00032 #ifndef __GNC_TREE_MODEL_BUDGET_H__ 00033 #define __GNC_TREE_MODEL_BUDGET_H__ 00034 00035 #include "gnc-budget.h" 00036 00037 /* The budget list columns. */ 00038 enum 00039 { 00040 BUDGET_GUID_COLUMN, 00041 BUDGET_NAME_COLUMN, 00042 BUDGET_DESCRIPTION_COLUMN, 00043 BUDGET_LIST_NUM_COLS 00044 }; 00045 00046 GtkTreeModel * gnc_tree_model_budget_new(QofBook *book); 00047 00048 void gnc_tree_view_budget_set_model(GtkTreeView *tv, GtkTreeModel *tm); 00049 00050 GncBudget *gnc_tree_model_budget_get_budget(GtkTreeModel *tm, 00051 GtkTreeIter *iter); 00052 00053 gboolean gnc_tree_model_budget_get_iter_for_budget(GtkTreeModel *tm, 00054 GtkTreeIter *iter, 00055 GncBudget *bgt); 00057 #endif // __GNC_TREE_MODEL_BUDGET_H__
1.7.4