]> Dogcows Code - chaz/homebank/blob - src/ui-payee.h
import homebank-4.6.3
[chaz/homebank] / src / ui-payee.h
1 /* HomeBank -- Free, easy, personal accounting for everyone.
2 * Copyright (C) 1995-2014 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_PAYEE_GTK_H__
21 #define __HB_PAYEE_GTK_H__
22
23 enum
24 {
25 LST_DEFPAY_TOGGLE,
26 LST_DEFPAY_DATAS,
27 NUM_LST_DEFPAY
28 };
29
30 struct ui_pay_manage_dialog_data
31 {
32 GtkWidget *window;
33
34 GtkWidget *ST_name;
35 GtkWidget *LV_pay;
36
37 GtkWidget *BT_add;
38 GtkWidget *BT_mov;
39 GtkWidget *BT_mod;
40 GtkWidget *BT_rem;
41 GtkWidget *BT_import;
42 GtkWidget *BT_export;
43
44 gint change;
45 };
46
47 struct payPopContext
48 {
49 GtkTreeModel *model;
50 guint except_key;
51 };
52
53
54 gchar *ui_pay_comboboxentry_get_name(GtkComboBox *entry_box);
55 guint32 ui_pay_comboboxentry_get_key(GtkComboBox *entry_box);
56 guint32 ui_pay_comboboxentry_get_key_add_new(GtkComboBox *entry_box);
57 gboolean ui_pay_comboboxentry_set_active(GtkComboBox *entry_box, guint32 key);
58 void ui_pay_comboboxentry_add(GtkComboBox *entry_box, Payee *pay);
59 void ui_pay_comboboxentry_populate(GtkComboBox *entry_box, GHashTable *hash);
60 void ui_pay_comboboxentry_populate_except(GtkComboBox *entry_box, GHashTable *hash, guint except_key);
61 GtkWidget *ui_pay_comboboxentry_new(GtkWidget *label);
62
63 /* = = = = = = = = = = */
64
65 void ui_pay_listview_add(GtkTreeView *treeview, Payee *item);
66 guint32 ui_pay_listview_get_selected_key(GtkTreeView *treeview);
67 void ui_pay_listview_remove_selected(GtkTreeView *treeview);
68 void ui_pay_listview_populate(GtkWidget *view);
69 GtkWidget *ui_pay_listview_new(gboolean withtoggle);
70 GtkWidget *ui_pay_manage_dialog (void);
71
72 #endif
73
This page took 0.040071 seconds and 5 git commands to generate.