X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Frep-budget.h;fp=src%2Frep-budget.h;h=2944846f8753ba3071ece8b8d406840321459486;hb=a6c6b0df5492c2160ed97e3a376bdb2fe7c5ebc4;hp=0000000000000000000000000000000000000000;hpb=cd13d9691c46c2b2d6d459e9e6a76bed1c21b7a6;p=chaz%2Fhomebank diff --git a/src/rep-budget.h b/src/rep-budget.h new file mode 100644 index 0000000..2944846 --- /dev/null +++ b/src/rep-budget.h @@ -0,0 +1,102 @@ +/* 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 __HOMEBANK_REPBUDGET_H__ +#define __HOMEBANK_REPBUDGET_H__ + +enum { + HID_REPBUDGET_MINDATE, + HID_REPBUDGET_MAXDATE, + HID_REPBUDGET_RANGE, + MAX_REPBUDGET_HID +}; + + +/* list stat */ +enum +{ + LST_BUDGET_POS, + LST_BUDGET_KEY, + LST_BUDGET_NAME, + LST_BUDGET_SPENT, + LST_BUDGET_BUDGET, + LST_BUDGET_RESULT, + LST_BUDGET_STATUS, + NUM_LST_BUDGET +}; + +struct repbudget_data +{ + GQueue *txn_queue; + Filter *filter; + + gdouble total_spent; + gdouble total_budget; + + gboolean detail; + gboolean legend; + + + GtkWidget *window; + + GtkUIManager *ui; + + GtkWidget *TB_bar; + + GtkWidget *TX_info; + GtkWidget *TX_daterange; + GtkWidget *CM_onlyout; + GtkWidget *CM_minor; + GtkWidget *CY_for; + GtkWidget *CY_kind; + + GtkWidget *LV_report; + + GtkWidget *PO_mindate, *PO_maxdate; + + GtkWidget *CY_range; + GtkWidget *GR_result; + + GtkWidget *TX_total[3]; + + GtkWidget *RE_stack; + + GtkWidget *GR_detail; + GtkWidget *LV_detail; + + GtkWidget *BT_export; + GtkWidget *MI_detailtoclip; + GtkWidget *MI_detailtocsv; + + gulong handler_id[MAX_REPBUDGET_HID]; +}; + + + +enum +{ + BUDG_CATEGORY, + BUDG_SUBCATEGORY, +}; + + +GtkWidget *repbudget_window_new(void); + + +#endif