X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fhomebank;a=blobdiff_plain;f=src%2Fhub-spending.h;fp=src%2Fhub-spending.h;h=3df241a787d51346bfee0971b63e5dd792f89c79;hp=0000000000000000000000000000000000000000;hb=a6c6b0df5492c2160ed97e3a376bdb2fe7c5ebc4;hpb=cd13d9691c46c2b2d6d459e9e6a76bed1c21b7a6 diff --git a/src/hub-spending.h b/src/hub-spending.h new file mode 100644 index 0000000..3df241a --- /dev/null +++ b/src/hub-spending.h @@ -0,0 +1,53 @@ +/* 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 \ No newline at end of file