]> Dogcows Code - chaz/homebank/blob - src/dsp_account.h
c9a089c7efa15bee8ab13f06e2a99fdb99039dd7
[chaz/homebank] / src / dsp_account.h
1 /* HomeBank -- Free, easy, personal accounting for everyone.
2 * Copyright (C) 1995-2016 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
25 struct ui_multipleedit_dialog_data
26 {
27 GtkWidget *window;
28
29 GtkWidget *CM_date, *PO_date;
30 GtkWidget *LB_mode, *CM_mode, *NU_mode;
31 GtkWidget *CM_info, *ST_info;
32 GtkWidget *LB_acc, *CM_acc, *PO_acc;
33 GtkWidget *CM_pay, *PO_pay;
34 GtkWidget *CM_cat, *PO_cat;
35 GtkWidget *CM_tags, *ST_tags;
36 GtkWidget *CM_memo, *ST_memo;
37
38 GtkTreeView *treeview;
39 gboolean has_xfer;
40 };
41
42
43 enum
44 {
45 ACTION_ACCOUNT_ADD,
46 ACTION_ACCOUNT_INHERIT,
47 ACTION_ACCOUNT_EDIT,
48 ACTION_ACCOUNT_MULTIEDIT,
49 ACTION_ACCOUNT_NONE,
50 ACTION_ACCOUNT_CLEAR,
51 ACTION_ACCOUNT_RECONCILE,
52 ACTION_ACCOUNT_DELETE,
53 ACTION_ACCOUNT_FILTER,
54 ACTION_ACCOUNT_CLOSE,
55 MAX_ACTION_ACCOUNT
56 };
57
58 enum {
59 HID_RANGE,
60 HID_TYPE,
61 HID_STATUS,
62 HID_SEARCH,
63 MAX_HID
64 };
65
66 struct register_panel_data
67 {
68 GtkWidget *window;
69 GtkWidget *TB_bar;
70 GtkWidget *TB_tools;
71
72 GtkWidget *CY_range;
73 GtkWidget *CY_type;
74 GtkWidget *CY_status;
75 // GtkWidget *CY_month, *NB_year;
76 GtkWidget *BT_reset;
77 GtkWidget *TX_selection;
78
79 GtkWidget *ST_search;
80
81 GtkWidget *CM_minor;
82 GtkWidget *TX_balance[3];
83
84 GPtrArray *gpatxn;
85 GtkWidget *LV_ope;
86
87 gint busy;
88 gchar *wintitle;
89 GtkUIManager *ui;
90 GtkActionGroup *actions;
91
92
93 Transaction *cur_ope;
94
95 guint32 accnum;
96 Account *acc;
97
98 gboolean do_sort;
99
100 /* status counters */
101 gint hidden, total;
102 gdouble totalsum;
103
104 Filter *filter;
105
106 guint timer_tag;
107
108 gulong handler_id[MAX_HID];
109
110 //gint change; /* change shouldbe done directly */
111
112 };
113
114 #define DEFAULT_DELAY 750 /* Default delay in ms */
115
116 GtkWidget *register_panel_window_new(guint32 accnum, Account *acc);
117 void register_panel_window_init(GtkWidget *widget, gpointer user_data);
118
119
120 #endif /* __HOMEBANK_DSPACCOUNT_H__ */
This page took 0.033204 seconds and 4 git commands to generate.