]> Dogcows Code - chaz/homebank/blob - src/ui-split.h
Merge branch 'master' into ext-perl
[chaz/homebank] / src / ui-split.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_SPLIT_GTK_H__
21 #define __HB_SPLIT_GTK_H__
22
23 #include "ui-transaction.h"
24 #include "hb-split.h"
25
26 enum {
27 TXN_SPLIT_NEW,
28 TXN_SPLIT_AMOUNT
29 };
30
31
32 struct ui_split_dialog_data
33 {
34 GtkWidget *dialog;
35 GtkWidget *BT_rem[TXN_MAX_SPLIT];
36 GtkWidget *BT_add[TXN_MAX_SPLIT];
37 GtkWidget *PO_cat[TXN_MAX_SPLIT];
38 GtkWidget *ST_amount[TXN_MAX_SPLIT];
39 GtkWidget *ST_memo[TXN_MAX_SPLIT];
40
41 GtkWidget *LB_sumsplit;
42 GtkWidget *LB_remain;
43 GtkWidget *LB_txnamount;
44
45 //Transaction *ope;
46 Split **splits;
47
48 gdouble amount;
49 gdouble sumsplit;
50 gdouble remsplit;
51
52 gint nbsplit;
53 gint splittype;
54 gint activeline;
55
56 gulong handler_id[TXN_MAX_SPLIT];
57 };
58
59
60 void ui_split_dialog_line_sensitive(guint line, gboolean sensitive, gpointer user_data);
61 void ui_split_dialog_compute(GtkWidget *widget, gpointer user_data);
62 void ui_split_dialog_inactiveline(GtkWidget *widget, gpointer user_data);
63 void ui_split_dialog_activeline(GtkWidget *widget, gpointer user_data);
64 void ui_split_dialog_get(struct ui_split_dialog_data *data);
65 void ui_split_dialog_set(struct ui_split_dialog_data *data);
66 GtkWidget *ui_split_dialog (GtkWidget *parent, Split *ope_splits[], gdouble amount, void (update_callbackFunction(GtkWidget*, gdouble)));
67
68 #endif
This page took 0.03808 seconds and 5 git commands to generate.