]> Dogcows Code - chaz/homebank/blob - src/dsp_account.h
import homebank-5.1.7
[chaz/homebank] / src / dsp_account.h
1 /* HomeBank -- Free, easy, personal accounting for everyone.
2 * Copyright (C) 1995-2018 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_MULTIEDIT,
30 ACTION_ACCOUNT_NONE,
31 ACTION_ACCOUNT_CLEAR,
32 ACTION_ACCOUNT_RECONCILE,
33 ACTION_ACCOUNT_DELETE,
34 ACTION_ACCOUNT_FILTER,
35 ACTION_ACCOUNT_CLOSE,
36 MAX_ACTION_ACCOUNT
37 };
38
39 enum {
40 HID_RANGE,
41 HID_TYPE,
42 HID_STATUS,
43 HID_SEARCH,
44 MAX_HID
45 };
46
47 struct register_panel_data
48 {
49 GtkWidget *window;
50 GtkWidget *TB_bar;
51 GtkWidget *TB_tools;
52
53 GtkWidget *CY_range;
54 GtkWidget *CY_type;
55 GtkWidget *CY_status;
56 // GtkWidget *CY_month, *NB_year;
57 GtkWidget *BT_reset;
58 GtkWidget *TX_selection;
59
60 GtkWidget *ST_search;
61
62 GtkWidget *IM_closed;
63 GtkWidget *LB_name;
64 GtkWidget *CM_minor;
65 GtkWidget *TX_balance[3];
66
67 GPtrArray *gpatxn;
68 GtkWidget *LV_ope;
69
70 gint busy;
71 gchar *wintitle;
72 GtkUIManager *ui;
73 GtkActionGroup *actions;
74
75
76 Transaction *cur_ope;
77
78 guint32 accnum;
79 Account *acc;
80
81 gboolean do_sort;
82
83 /* status counters */
84 gint hidden, total;
85 gdouble totalsum;
86
87 Filter *filter;
88
89 guint timer_tag;
90
91 gulong handler_id[MAX_HID];
92
93 //gint change; /* change shouldbe done directly */
94
95 };
96
97 #define DEFAULT_DELAY 750 /* Default delay in ms */
98
99 GtkWidget *register_panel_window_new(guint32 accnum, Account *acc);
100 void register_panel_window_init(GtkWidget *widget, gpointer user_data);
101
102
103 #endif /* __HOMEBANK_DSPACCOUNT_H__ */
This page took 0.034345 seconds and 4 git commands to generate.