add gitignore
[chaz/homebank] / src / rep_time.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_REPTIME_H__
21 #define __HOMEBANK_REPTIME_H__
22
23 enum
24 {
25 LST_REPTIME_POS,
26 LST_REPTIME_KEY,
27 LST_REPTIME_TITLE,
28 LST_REPTIME_AMOUNT,
29 NUM_LST_REPTIME
30 };
31
32 /* for choose options */
33 enum
34 {
35 FOR_REPTIME_ACCOUNT,
36 FOR_REPTIME_CATEGORY,
37 FOR_REPTIME_PAYEE,
38 NUM_FOR_REPTIME
39 };
40
41
42 /* view by choose options */
43 enum
44 {
45 GROUPBY_REPTIME_DAY,
46 GROUPBY_REPTIME_WEEK,
47 GROUPBY_REPTIME_MONTH,
48 GROUPBY_REPTIME_QUARTER,
49 GROUPBY_REPTIME_YEAR,
50 };
51
52
53 enum {
54 HID_REPTIME_MINDATE,
55 HID_REPTIME_MAXDATE,
56 HID_REPTIME_RANGE,
57 HID_REPTIME_VIEW,
58 MAX_REPTIME_HID
59 };
60
61 struct ui_reptime_data
62 {
63 GtkWidget *window;
64
65 gint busy;
66
67 GtkUIManager *ui;
68 GtkActionGroup *actions;
69
70 GtkWidget *TB_bar;
71
72 GtkWidget *TX_info;
73 GtkWidget *TX_daterange;
74 GtkWidget *CY_for;
75 GtkWidget *CY_view;
76 GtkWidget *RG_zoomx;
77 GtkWidget *CM_minor;
78 GtkWidget *CM_cumul;
79 GtkWidget *LV_report;
80
81
82 GtkWidget *GR_select;
83 GtkWidget *CM_all;
84 GtkWidget *PO_acc;
85 GtkWidget *PO_cat;
86 GtkWidget *PO_pay;
87
88 GtkWidget *PO_mindate, *PO_maxdate;
89
90 GtkWidget *CY_range;
91 GtkWidget *GR_result;
92
93 GtkWidget *RE_line;
94
95 GtkWidget *GR_detail;
96 GtkWidget *LV_detail;
97
98 gboolean detail;
99
100 gint charttype;
101 gulong handler_id[MAX_REPTIME_HID];
102
103 Filter *filter;
104 };
105
106
107
108
109 GtkWidget *ui_reptime_window_new(guint32 accnum);
110
111 #endif
This page took 0.039089 seconds and 4 git commands to generate.