]> Dogcows Code - chaz/homebank/blob - src/rep-stats.h
add editorconfig file
[chaz/homebank] / src / rep-stats.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_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, //keep for compatibility with chart
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 //test
47 enum {
48 LST_REPDIST2_POS,
49 LST_REPDIST2_TYPE,
50 LST_REPDIST2_ROW,
51 LST_REPDIST2_LABEL,
52 NUM_LST_REPDIST2
53 };
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_src;
78 GtkWidget *CY_type;
79 GtkWidget *RG_zoomx, *LB_zoomx;
80 GtkWidget *LV_report;
81
82 GtkWidget *CM_byamount;
83
84 GtkWidget *PO_mindate, *PO_maxdate;
85
86 GtkWidget *CY_range;
87 GtkWidget *GR_result;
88
89 GtkWidget *TX_daterange;
90 GtkWidget *TX_total[3];
91
92 GtkWidget *RE_chart;
93
94 GtkWidget *GR_detail;
95 GtkWidget *LV_detail;
96
97 GtkWidget *BT_export;
98 GtkWidget *MI_detailtoclip;
99 GtkWidget *MI_detailtocsv;
100
101 gulong handler_id[MAX_REPDIST_HID];
102
103 };
104
105
106
107 GtkWidget *ui_repdist_window_new(void);
108
109 #endif
This page took 0.032764 seconds and 4 git commands to generate.