]> Dogcows Code - chaz/homebank/blob - src/ui-split.h
import homebank-5.2.6
[chaz/homebank] / src / ui-split.h
1 /* HomeBank -- Free, easy, personal accounting for everyone.
2 * Copyright (C) 1995-2019 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
27 struct ui_split_dialog_data
28 {
29 GtkWidget *dialog;
30
31 GtkWidget *LV_split;
32 GtkWidget *PO_cat;
33 GtkWidget *ST_amount;
34 GtkWidget *ST_memo;
35 GtkWidget *BT_edit;
36 GtkWidget *BT_rem;
37 GtkWidget *BT_remall;
38 GtkWidget *BT_add;
39 GtkWidget *BT_apply;
40 GtkWidget *BT_cancel;
41
42 GtkWidget *IM_edit;
43 GtkWidget *LB_sumsplit;
44 GtkWidget *LB_remain;
45 GtkWidget *LB_txnamount;
46
47 //Transaction *ope;
48 GPtrArray *src_splits;
49 GPtrArray *tmp_splits;
50
51 gdouble amount;
52 gdouble sumsplit;
53 gdouble remsplit;
54
55 gboolean isedited;
56 gint nbsplit;
57 gint activeline;
58
59 gulong hid_cat;
60 gulong hid_amt;
61
62 };
63
64
65 void ui_split_dialog_line_sensitive(guint line, gboolean sensitive, gpointer user_data);
66 void ui_split_dialog_compute(GtkWidget *widget, gpointer user_data);
67 void ui_split_dialog_inactiveline(GtkWidget *widget, gpointer user_data);
68 void ui_split_dialog_activeline(GtkWidget *widget, gpointer user_data);
69 void ui_split_dialog_get(struct ui_split_dialog_data *data);
70 void ui_split_dialog_set(struct ui_split_dialog_data *data);
71 GtkWidget *ui_split_dialog (GtkWidget *parent, GPtrArray **src_splits, gdouble amount, void (update_callbackFunction(GtkWidget*, gdouble)));
72
73 #endif
This page took 0.030975 seconds and 4 git commands to generate.