]> Dogcows Code - chaz/homebank/blob - src/rep_stats.h
import homebank-4.6.3
[chaz/homebank] / src / rep_stats.h
1 /* HomeBank -- Free, easy, personal accounting for everyone.
2 * Copyright (C) 1995-2014 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 GtkWidget *window;
59
60 gint busy;
61
62 GtkUIManager *ui;
63 GtkActionGroup *actions;
64
65 GtkWidget *TB_bar;
66
67 GtkWidget *TX_info;
68 GtkWidget *CM_minor;
69 GtkWidget *CY_by;
70 GtkWidget *CY_view;
71 GtkWidget *RG_zoomx;
72 GtkWidget *LV_report;
73 GtkWidget *CM_byamount;
74
75 GtkWidget *PO_mindate, *PO_maxdate;
76
77 GtkWidget *CY_range;
78 GtkWidget *GR_result;
79
80 GtkWidget *TX_daterange;
81 GtkWidget *TX_total[3];
82
83 GtkWidget *RE_chart;
84
85 GtkWidget *GR_detail;
86 GtkWidget *LV_detail;
87
88 gdouble total_expense;
89 gdouble total_income;
90 gdouble total_balance;
91
92 gboolean detail;
93 gboolean legend;
94 gboolean rate;
95
96 gulong handler_id[MAX_REPDIST_HID];
97
98 Filter *filter;
99
100 };
101
102
103
104 GtkWidget *ui_repdist_window_new(void);
105
106 #endif
This page took 0.035378 seconds and 4 git commands to generate.