/* HomeBank -- Free, easy, personal accounting for everyone. * Copyright (C) 1995-2019 Maxime DOYEN * * This file is part of HomeBank. * * HomeBank is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * HomeBank is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #ifndef __HUB_SPENDING_H__ #define __HUB_SPENDING_H__ struct tmptop { guint32 key; gdouble value; }; #define MAX_TOPSPENDING 10 /* list top spending */ enum { LST_TOPSPEND_ID, //fake for pie LST_TOPSPEND_KEY, //fake for pie LST_TOPSPEND_NAME, LST_TOPSPEND_AMOUNT, LST_TOPSPEND_RATE, NUM_LST_TOPSPEND }; void ui_hub_spending_update(GtkWidget *widget, gpointer user_data); void ui_hub_spending_populate(GtkWidget *widget, gpointer user_data); GtkWidget *ui_hub_spending_create(struct hbfile_data *data); #endif