]> Dogcows Code - chaz/homebank/blob - src/ui-payee.h
Merge branch 'upstream'
[chaz/homebank] / src / ui-payee.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_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 #define LST_DEFPAY_SORT_NAME 1
31 #define LST_DEFPAY_SORT_USED 2
32 #define LST_DEFPAY_SORT_DEFCAT 3
33
34 struct ui_pay_manage_dialog_data
35 {
36 GtkWidget *window;
37
38 GtkWidget *ST_search;
39 GtkWidget *BT_search;
40 GtkWidget *ST_name;
41 GtkWidget *LV_pay;
42
43 GtkWidget *BT_add;
44 GtkWidget *BT_edit;
45 GtkWidget *BT_merge;
46 GtkWidget *BT_delete;
47
48 gint change;
49 };
50
51
52 struct payPopContext
53 {
54 GtkTreeModel *model;
55 guint except_key;
56 };
57
58
59
60 /* = = = = = = = = = = */
61
62 GtkWidget *ui_pay_entry_popover_get_entry(GtkBox *box);
63 Payee *ui_pay_entry_popover_get(GtkBox *box);
64 guint32 ui_pay_entry_popover_get_key_add_new(GtkBox *box);
65 guint32 ui_pay_entry_popover_get_key(GtkBox *box);
66 void ui_pay_entry_popover_set_active(GtkBox *box, guint32 key);
67 GtkWidget *ui_pay_entry_popover_new(GtkWidget *label);
68
69
70 /* = = = = = = = = = = */
71
72 guint32 ui_pay_comboboxentry_get_key(GtkComboBox *entry_box);
73 guint32 ui_pay_comboboxentry_get_key_add_new(GtkComboBox *entry_box);
74 Payee *ui_pay_comboboxentry_get(GtkComboBox *entry_box);
75 gboolean ui_pay_comboboxentry_set_active(GtkComboBox *entry_box, guint32 key);
76 void ui_pay_comboboxentry_populate(GtkComboBox *entry_box, GHashTable *hash);
77 GtkWidget *ui_pay_comboboxentry_new(GtkWidget *label);
78
79 /* = = = = = = = = = = */
80
81 void ui_pay_listview_add(GtkTreeView *treeview, Payee *item);
82 guint32 ui_pay_listview_get_selected_key(GtkTreeView *treeview);
83 void ui_pay_listview_remove_selected(GtkTreeView *treeview);
84 void ui_pay_listview_populate(GtkWidget *treeview, gchar *needle);
85 GtkWidget *ui_pay_listview_new(gboolean withtoggle, gboolean withcount);
86
87 GtkWidget *ui_pay_manage_dialog (void);
88
89 #endif
90
This page took 0.033138 seconds and 4 git commands to generate.