]> Dogcows Code - chaz/homebank/blob - src/ui-transaction.h
import homebank-5.1.3
[chaz/homebank] / src / ui-transaction.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_TRANSACTION_GTK_H__
21 #define __HB_TRANSACTION_GTK_H__
22
23 #include "ui-split.h"
24
25 enum {
26 HID_AMOUNT,
27 MAX_HID_AMOUNT
28 };
29
30
31 struct deftransaction_data
32 {
33 GtkWidget *window;
34
35 /* popover */
36 GtkWidget *MB_template;
37 GtkTreeModel *model;
38 GtkTreeModelFilter *modelfilter;
39 GtkWidget *LV_arc;
40 GtkWidget *CM_showsched;
41 GtkWidget *ST_search;
42
43 GtkWidget *PO_date;
44 GtkWidget *PO_pay;
45 GtkWidget *ST_word;
46 GtkWidget *ST_amount, *BT_split;
47 GtkWidget *CM_cheque;
48
49 GtkWidget *NU_mode;
50 GtkWidget *ST_info;
51 GtkWidget *PO_grp;
52 GtkWidget *PO_acc;
53 GtkWidget *LB_accto, *PO_accto;
54 GtkWidget *ST_tags;
55 GtkWidget *RA_status;
56
57 GtkWidget *IB_warnsign;
58
59 gint action;
60 gint accnum;
61 gint type;
62 gboolean showtemplate;
63
64 Transaction *ope;
65
66 };
67
68 enum
69 {
70 LST_DSPTPL_DATAS,
71 LST_DSPTPL_NAME,
72 NUM_LST_DSPTPL
73 };
74
75
76 GtkWidget *create_deftransaction_window (GtkWindow *parent, gint type, gboolean postmode);
77 void deftransaction_set_amount(GtkWidget *widget, gdouble amount);
78 gint deftransaction_external_edit(GtkWindow *parent, Transaction *old_txn, Transaction *new_txn);
79 void deftransaction_set_transaction(GtkWidget *widget, Transaction *ope);
80 void deftransaction_get (GtkWidget *widget, gpointer user_data);
81 void deftransaction_add (GtkWidget *widget, gpointer user_data);
82 void deftransaction_dispose(GtkWidget *widget, gpointer user_data);
83 void deftransaction_set_amount_from_split(GtkWidget *widget, gdouble amount);
84
85 #endif
This page took 0.034943 seconds and 4 git commands to generate.