]> Dogcows Code - chaz/homebank/blob - src/ui-assign.h
Merge branch 'upstream'
[chaz/homebank] / src / ui-assign.h
1 /* HomeBank -- Free, easy, personal rulounting 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_ASSIGN_GTK_H__
21 #define __HB_ASSIGN_GTK_H__
22
23 enum
24 {
25 LST_DEFASG_TOGGLE,
26 LST_DEFASG_DATAS,
27 NUM_LST_DEFASG
28 };
29
30 gchar *ui_asg_comboboxentry_get_name(GtkComboBox *entry_box);
31 guint32 ui_asg_comboboxentry_get_key(GtkComboBox *entry_box);
32 gboolean ui_asg_comboboxentry_set_active(GtkComboBox *entry_box, guint32 key);
33 void ui_asg_comboboxentry_add(GtkComboBox *entry_box, Assign *asg);
34 void ui_asg_comboboxentry_populate(GtkComboBox *entry_box, GHashTable *hash);
35 void ui_asg_comboboxentry_populate_except(GtkComboBox *entry_box, GHashTable *hash, guint except_key);
36 GtkWidget *ui_asg_comboboxentry_new(GtkWidget *label);
37
38 /* = = = = = = = = = = */
39
40 void ui_asg_listview_add(GtkTreeView *treeview, Assign *item);
41 guint32 ui_asg_listview_get_selected_key(GtkTreeView *treeview);
42 void ui_asg_listview_remove_selected(GtkTreeView *treeview);
43 void ui_asg_listview_populate(GtkWidget *view);
44 GtkWidget *ui_asg_listview_new(gboolean withtoggle);
45
46 /* = = = = = = = = = = */
47
48 struct ui_asg_manage_data
49 {
50 GList *tmp_list;
51 gint change;
52 gint action;
53 guint32 lastkey;
54
55 GtkWidget *window;
56
57 GtkWidget *LV_rul;
58 GtkWidget *BT_add, *BT_rem;
59
60 GtkWidget *GR_condition;
61 GtkWidget *CY_field;
62 GtkWidget *ST_text;
63 GtkWidget *CM_exact;
64 GtkWidget *CM_re;
65
66 GtkWidget *GR_assignment;
67 GtkWidget *GR_pay;
68 GtkWidget *RA_pay;
69 GtkWidget *LB_pay;
70 GtkWidget *PO_pay;
71
72 GtkWidget *GR_cat;
73 GtkWidget *RA_cat;
74 GtkWidget *LB_cat;
75 GtkWidget *PO_cat;
76
77 GtkWidget *GR_mod;
78 GtkWidget *RA_mod;
79 GtkWidget *LB_mod;
80 GtkWidget *NU_mod;
81 };
82
83
84 struct rulPopContext
85 {
86 GtkTreeModel *model;
87 guint except_key;
88 };
89
90
91
92 GtkWidget *ui_asg_manage_dialog (void);
93
94
95 #endif
96
This page took 0.039383 seconds and 5 git commands to generate.