1 /*	HomeBank -- Free, easy, personal accounting for everyone.
2  *	Copyright (C) 1995-2021 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 __UI_TXN_MULTI_H__
21 #define __UI_TXN_MULTI_H__
22 
23 
24 struct ui_multipleedit_dialog_data
25 {
26 	GtkWidget	*dialog;
27 
28 	GtkWidget	*CM_date, *PO_date;
29 	GtkWidget	*CM_amount, *ST_amount;
30 	GtkWidget	*LB_acc, *CM_acc, *PO_acc;
31 	GtkWidget	*LB_mode, *CM_mode, *NU_mode;
32 	GtkWidget	*CM_info, *ST_info;
33 	GtkWidget	*CM_pay, *PO_pay;
34 	GtkWidget	*CM_cat, *PO_cat;
35 	GtkWidget	*CM_memo, *ST_memo;
36 	GtkWidget	*CM_tags, *ST_tags;
37 	GtkWidget	*CM_xfer, *PO_accto;
38 
39 	GtkTreeView	*treeview;
40 	guint32		kacc;
41 	gboolean	has_xfer;
42 };
43 
44 void ui_multipleedit_dialog_prefill( GtkWidget *widget, Transaction *ope, gint column_id );
45 gint ui_multipleedit_dialog_apply( GtkWidget *widget, gboolean *do_sort );
46 GtkWidget *ui_multipleedit_dialog_new(GtkWindow *parent, GtkTreeView *treeview);
47 
48 
49 #endif /* __UI_TXN_MULTI_H__ */
50