add gitignore
[chaz/homebank] / src / dsp_account.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 __HB_DSPACCOUNT_H__
21 #define __HB_DSPACCOUNT_H__
22
23
24 enum
25 {
26 ACTION_ACCOUNT_ADD,
27 ACTION_ACCOUNT_INHERIT,
28 ACTION_ACCOUNT_EDIT,
29 ACTION_ACCOUNT_RECONCILE,
30 ACTION_ACCOUNT_REMOVE,
31 ACTION_ACCOUNT_FILTER,
32 ACTION_ACCOUNT_CLOSE,
33 MAX_ACTION_ACCOUNT
34 };
35
36 enum {
37 HID_RANGE,
38 HID_TYPE,
39 HID_STATUS,
40 HID_SEARCH,
41 MAX_HID
42 };
43
44 struct register_panel_data
45 {
46 GtkWidget *window;
47 GtkWidget *TB_bar;
48 GtkWidget *TB_tools;
49
50 GtkWidget *CY_range;
51 GtkWidget *CY_type;
52 GtkWidget *CY_status;
53 // GtkWidget *CY_month, *NB_year;
54 GtkWidget *BT_reset;
55 GtkWidget *TX_selection;
56
57 GtkWidget *ST_search;
58
59 GtkWidget *CM_minor;
60 GtkWidget *TX_balance[3];
61
62 GPtrArray *gpatxn;
63 GtkWidget *LV_ope;
64
65 gint busy;
66 gchar *wintitle;
67 GtkUIManager *ui;
68 GtkActionGroup *actions;
69
70
71 Transaction *cur_ope;
72
73 guint32 accnum;
74 Account *acc;
75
76 gboolean do_sort;
77
78 /* status counters */
79 gint hidden, total;
80 gdouble totalsum;
81
82 Filter *filter;
83
84 guint timer_tag;
85
86 gulong handler_id[MAX_HID];
87
88 //gint change; /* change shouldbe done directly */
89
90 };
91
92 #define DEFAULT_DELAY 750 /* Default delay in ms */
93
94 GtkWidget *register_panel_window_new(guint32 accnum, Account *acc);
95 void register_panel_window_init(GtkWidget *widget, gpointer user_data);
96
97
98 #endif /* __HOMEBANK_DSPACCOUNT_H__ */
This page took 0.03979 seconds and 4 git commands to generate.