]> Dogcows Code - chaz/homebank/blob - src/rep_balance.h
Merge branch 'upstream'
[chaz/homebank] / src / rep_balance.h
1 /* HomeBank -- Free, easy, personal accounting for everyone.
2 * Copyright (C) 1995-2016 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_REPBALANCE_H__
21 #define __HOMEBANK_REPBALANCE_H__
22
23 enum {
24 HID_REPBALANCE_MINDATE,
25 HID_REPBALANCE_MAXDATE,
26 HID_REPBALANCE_RANGE,
27 MAX_REPBALANCE_HID
28 };
29
30
31 /* list stat */
32 enum
33 {
34 LST_OVER_OVER,
35 LST_OVER_DATE,
36 LST_OVER_DATESTR,
37 LST_OVER_EXPENSE,
38 LST_OVER_INCOME,
39 LST_OVER_BALANCE,
40 NUM_LST_OVER
41 };
42
43 struct repbalance_data
44 {
45 GList *ope_list;
46 Filter *filter;
47
48 guint32 accnum;
49 gdouble minimum;
50
51 gboolean detail;
52
53 gdouble *tmp_income;
54 gdouble *tmp_expense;
55 guint n_result;
56 guint nbbalance, nbope;
57
58
59 GtkWidget *window;
60
61 GtkUIManager *ui;
62 GtkActionGroup *actions;
63
64 GtkWidget *TB_bar;
65
66 GtkWidget *TX_info;
67 GtkWidget *TX_daterange;
68 GtkWidget *CM_minor;
69 GtkWidget *LV_report;
70 GtkWidget *PO_acc;
71 GtkWidget *CM_selectall;
72 GtkWidget *CM_eachday;
73 GtkWidget *RG_zoomx, *LB_zoomx;
74
75 GtkWidget *PO_mindate, *PO_maxdate;
76
77 GtkWidget *CY_range;
78 GtkWidget *GR_result;
79
80 GtkWidget *RE_line;
81
82 GtkWidget *GR_detail;
83 GtkWidget *LV_detail;
84
85
86 gulong handler_id[MAX_REPBALANCE_HID];
87
88
89 };
90
91
92 GtkWidget *repbalance_window_new(gint32 accnum);
93
94
95 #endif
This page took 0.037329 seconds and 4 git commands to generate.