import homebank-4.6.3
[chaz/homebank] / src / rep_vehicle.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_REPVEHICLE_H__
21 #define __HOMEBANK_REPVEHICLE_H__
22
23 enum {
24 HID_REPVEHICLE_MINDATE,
25 HID_REPVEHICLE_MAXDATE,
26 HID_REPVEHICLE_RANGE,
27 HID_REPVEHICLE_VEHICLE,
28 MAX_REPVEHICLE_HID
29 };
30
31 enum {
32 CAR_RES_METER = 1,
33 CAR_RES_FUEL,
34 CAR_RES_FUELCOST,
35 CAR_RES_OTHERCOST,
36 CAR_RES_TOTALCOST,
37 MAX_CAR_RES
38 };
39
40
41 struct repvehicle_data
42 {
43 GtkWidget *window;
44
45 //GtkWidget *TX_info;
46 GtkWidget *CM_minor;
47 GtkWidget *LV_report;
48 GtkWidget *PO_cat;
49
50 GtkWidget *PO_mindate, *PO_maxdate;
51
52 GtkWidget *CY_range;
53 GtkWidget *GR_result;
54
55 GtkWidget *LA_avera[MAX_CAR_RES];
56 GtkWidget *LA_total[MAX_CAR_RES];
57
58 GList *vehicle_list;
59
60 guint total_dist;
61 gdouble total_fuel;
62 gdouble total_fuelcost;
63 gdouble total_misccost;
64
65
66 Filter *filter;
67
68 gulong handler_id[MAX_REPVEHICLE_HID];
69 };
70
71 //extern gchar *CYA_FLT_SELECT[];
72
73 /* list stat */
74 enum
75 {
76 LST_CAR_DATE,
77 LST_CAR_WORDING,
78 LST_CAR_METER,
79 LST_CAR_FUEL,
80 LST_CAR_PRICE,
81 LST_CAR_AMOUNT,
82 LST_CAR_DIST,
83 LST_CAR_100KM,
84 LST_CAR_DISTBYVOL,
85 LST_CAR_PARTIAL,
86 NUM_LST_CAR
87 };
88
89
90
91
92 GtkWidget *repcost_window_new(void);
93
94 #endif
This page took 0.043721 seconds and 5 git commands to generate.