]> Dogcows Code - chaz/homebank/blob - src/rep_stats.h
Merge branch 'upstream'
[chaz/homebank] / src / rep_stats.h
1 /* HomeBank -- Free, easy, personal accounting for everyone.
2 * Copyright (C) 1995-2018 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 __HOMEBANK_REPDIST_H__
21 #define __HOMEBANK_REPDIST_H__
22
23 enum {
24 HID_REPDIST_MINDATE,
25 HID_REPDIST_MAXDATE,
26 HID_REPDIST_RANGE,
27 HID_REPDIST_VIEW,
28 MAX_REPDIST_HID
29 };
30
31
32 enum
33 {
34 LST_REPDIST_POS,
35 LST_REPDIST_KEY,
36 LST_REPDIST_NAME,
37 LST_REPDIST_EXPENSE,
38 LST_REPDIST_EXPRATE,
39 LST_REPDIST_INCOME,
40 LST_REPDIST_INCRATE,
41 LST_REPDIST_BALANCE,
42 LST_REPDIST_BALRATE,
43 NUM_LST_REPDIST
44 };
45
46 enum
47 {
48 BY_REPDIST_CATEGORY,
49 BY_REPDIST_SUBCATEGORY,
50 BY_REPDIST_PAYEE,
51 BY_REPDIST_TAG,
52 BY_REPDIST_MONTH,
53 BY_REPDIST_YEAR,
54 };
55
56 struct ui_repdist_data
57 {
58 GQueue *txn_queue;
59 Filter *filter;
60
61 gboolean detail;
62 gboolean legend;
63 gboolean rate;
64 gdouble total_expense;
65 gdouble total_income;
66 gdouble total_balance;
67
68 GtkWidget *window;
69
70 GtkUIManager *ui;
71 GtkActionGroup *actions;
72
73 GtkWidget *TB_bar;
74
75 GtkWidget *TX_info;
76 GtkWidget *CM_minor;
77 GtkWidget *CY_by;
78 GtkWidget *CY_view;
79 GtkWidget *RG_zoomx, *LB_zoomx;
80 GtkWidget *LV_report;
81 GtkWidget *CM_byamount;
82
83 GtkWidget *PO_mindate, *PO_maxdate;
84
85 GtkWidget *CY_range;
86 GtkWidget *GR_result;
87
88 GtkWidget *TX_daterange;
89 GtkWidget *TX_total[3];
90
91 GtkWidget *RE_chart;
92
93 GtkWidget *GR_detail;
94 GtkWidget *LV_detail;
95
96 GtkWidget *BT_export;
97 GtkWidget *MI_detailtoclip;
98 GtkWidget *MI_detailtocsv;
99
100 gulong handler_id[MAX_REPDIST_HID];
101
102 };
103
104
105
106 GtkWidget *ui_repdist_window_new(void);
107
108 #endif
This page took 0.038766 seconds and 5 git commands to generate.