]> Dogcows Code - chaz/homebank/blob - src/dsp-account.h
Merge branch 'upstream'
[chaz/homebank] / src / dsp-account.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 __HB_DSPACCOUNT_H__
21 #define __HB_DSPACCOUNT_H__
22
23
24 /* official GTK_RESPONSE are negative */
25 #define HB_RESPONSE_REFRESH 1
26
27
28 enum
29 {
30 ACTION_ACCOUNT_ADD,
31 ACTION_ACCOUNT_INHERIT,
32 ACTION_ACCOUNT_EDIT,
33 ACTION_ACCOUNT_MULTIEDIT,
34 ACTION_ACCOUNT_NONE,
35 ACTION_ACCOUNT_CLEAR,
36 ACTION_ACCOUNT_RECONCILE,
37 ACTION_ACCOUNT_DELETE,
38 ACTION_ACCOUNT_FILTER,
39 ACTION_ACCOUNT_CLOSE,
40 MAX_ACTION_ACCOUNT
41 };
42
43 enum {
44 HID_RANGE,
45 HID_TYPE,
46 HID_STATUS,
47 HID_SEARCH,
48 MAX_HID
49 };
50
51 struct register_panel_data
52 {
53 GtkWidget *window;
54
55 GtkWidget *IB_duplicate;
56 GtkWidget *LB_duplicate;
57 GtkWidget *NB_txn_daygap;
58
59 GtkWidget *TB_bar;
60 GtkWidget *TB_tools;
61
62 GtkWidget *CY_range;
63 GtkWidget *CM_future;
64 GtkWidget *CY_type;
65 GtkWidget *CY_status;
66 // GtkWidget *CY_month, *NB_year;
67 GtkWidget *BT_reset;
68 GtkWidget *TX_selection;
69
70 GtkWidget *ST_search;
71
72 GtkWidget *IM_closed;
73 GtkWidget *LB_name;
74 GtkWidget *CM_minor;
75 GtkWidget *TX_balance[3];
76
77 GPtrArray *gpatxn;
78 GtkWidget *LV_ope;
79
80 gint busy;
81 gchar *wintitle;
82 GtkUIManager *ui;
83 GtkActionGroup *actions;
84
85
86 Account *acc;
87
88 Transaction *cur_ope;
89
90 gboolean showall;
91 gboolean do_sort;
92
93 /* status counters */
94 gint hidden, total, similar;
95 gdouble totalsum;
96
97 Filter *filter;
98
99 guint timer_tag;
100
101 gulong handler_id[MAX_HID];
102
103 //gint change; /* change shouldbe done directly */
104
105 };
106
107 #define DEFAULT_DELAY 750 /* Default delay in ms */
108
109 GtkWidget *register_panel_window_new(Account *acc);
110 void register_panel_window_init(GtkWidget *widget, gpointer user_data);
111
112
113 #endif /* __HOMEBANK_DSPACCOUNT_H__ */
This page took 0.034768 seconds and 4 git commands to generate.