1 /* HomeBank -- Free, easy, personal accounting for everyone. 2 * Copyright (C) 1995-2021 Maxime DOYEN 3 * 4 * This file is part of HomeBank. 5 * 6 * HomeBank is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or 9 * (at your option) any later version. 10 * 11 * HomeBank is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program. If not, see <http://www.gnu.org/licenses/>. 18 */ 19 20 #ifndef __LIST_ACCOUNT__H__ 21 #define __LIST_ACCOUNT__H__ 22 23 24 enum 25 { 26 DSPACC_GROUP_BY_TYPE, 27 DSPACC_GROUP_BY_BANK, 28 DSPACC_GROUP_BY_GROUP 29 }; 30 31 32 /* lst acc datatype */ 33 enum 34 { 35 DSPACC_TYPE_NORMAL, 36 DSPACC_TYPE_HEADER, 37 DSPACC_TYPE_SUBTOTAL, 38 DSPACC_TYPE_TOTAL 39 }; 40 41 42 /* list display account */ 43 enum 44 { 45 LST_DSPACC_DATATYPE, 46 LST_DSPACC_POS, 47 LST_DSPACC_DATAS, 48 NUM_LST_DSPACC 49 }; 50 51 enum 52 { 53 COL_DSPACC_STATUS, 54 COL_DSPACC_ACCOUNTS, 55 COL_DSPACC_RECON, 56 COL_DSPACC_CLEAR, 57 COL_DSPACC_TODAY, 58 COL_DSPACC_FUTURE, 59 NUM_LST_COL_DSPACC 60 }; 61 62 63 struct lst_accview_data 64 { 65 GtkWidget *treeview; 66 GtkWidget *menu; 67 }; 68 69 70 gboolean list_account_level1_expanded(GtkTreeView *treeview, gchar *name); 71 72 GtkWidget *lst_accview_new(void); 73 74 75 #endif 76