]> Dogcows Code - chaz/homebank/blob - src/dsp_account.h
import homebank-5.1.3
[chaz/homebank] / src / dsp_account.h
1 /* HomeBank -- Free, easy, personal accounting for everyone.
2 * Copyright (C) 1995-2017 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 *LB_name;
82 GtkWidget *CM_minor;
83 GtkWidget *TX_balance[3];
84
85 GPtrArray *gpatxn;
86 GtkWidget *LV_ope;
87
88 gint busy;
89 gchar *wintitle;
90 GtkUIManager *ui;
91 GtkActionGroup *actions;
92
93
94 Transaction *cur_ope;
95
96 guint32 accnum;
97 Account *acc;
98
99 gboolean do_sort;
100
101 /* status counters */
102 gint hidden, total;
103 gdouble totalsum;
104
105 Filter *filter;
106
107 guint timer_tag;
108
109 gulong handler_id[MAX_HID];
110
111 //gint change; /* change shouldbe done directly */
112
113 };
114
115 #define DEFAULT_DELAY 750 /* Default delay in ms */
116
117 GtkWidget *register_panel_window_new(guint32 accnum, Account *acc);
118 void register_panel_window_init(GtkWidget *widget, gpointer user_data);
119
120
121 #endif /* __HOMEBANK_DSPACCOUNT_H__ */
This page took 0.035296 seconds and 5 git commands to generate.