]> Dogcows Code - chaz/homebank/blob - src/rep-budget.h
import homebank-5.2.4
[chaz/homebank] / src / rep-budget.h
1 /* HomeBank -- Free, easy, personal accounting for everyone.
2 * Copyright (C) 1995-2019 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_REPBUDGET_H__
21 #define __HOMEBANK_REPBUDGET_H__
22
23 enum {
24 HID_REPBUDGET_MINDATE,
25 HID_REPBUDGET_MAXDATE,
26 HID_REPBUDGET_RANGE,
27 MAX_REPBUDGET_HID
28 };
29
30
31 /* list stat */
32 enum
33 {
34 LST_BUDGET_POS,
35 LST_BUDGET_KEY,
36 LST_BUDGET_NAME,
37 LST_BUDGET_SPENT,
38 LST_BUDGET_BUDGET,
39 LST_BUDGET_RESULT,
40 LST_BUDGET_STATUS,
41 NUM_LST_BUDGET
42 };
43
44 struct repbudget_data
45 {
46 GQueue *txn_queue;
47 Filter *filter;
48
49 gdouble total_spent;
50 gdouble total_budget;
51
52 gboolean detail;
53 gboolean legend;
54
55
56 GtkWidget *window;
57
58 GtkUIManager *ui;
59
60 GtkWidget *TB_bar;
61
62 GtkWidget *TX_info;
63 GtkWidget *TX_daterange;
64 GtkWidget *CM_onlyout;
65 GtkWidget *CM_minor;
66 GtkWidget *CY_for;
67 GtkWidget *CY_kind;
68
69 GtkWidget *LV_report;
70
71 GtkWidget *PO_mindate, *PO_maxdate;
72
73 GtkWidget *CY_range;
74 GtkWidget *GR_result;
75
76 GtkWidget *TX_total[3];
77
78 GtkWidget *RE_stack;
79
80 GtkWidget *GR_detail;
81 GtkWidget *LV_detail;
82
83 GtkWidget *BT_export;
84 GtkWidget *MI_detailtoclip;
85 GtkWidget *MI_detailtocsv;
86
87 gulong handler_id[MAX_REPBUDGET_HID];
88 };
89
90
91
92 enum
93 {
94 BUDG_CATEGORY,
95 BUDG_SUBCATEGORY,
96 };
97
98
99 GtkWidget *repbudget_window_new(void);
100
101
102 #endif
This page took 0.033507 seconds and 4 git commands to generate.