]> Dogcows Code - chaz/homebank/blob - src/ui-assign.h
import homebank-4.6.3
[chaz/homebank] / src / ui-assign.h
1 /* HomeBank -- Free, easy, personal rulounting 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_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 *CY_field;
61 GtkWidget *ST_text;
62 GtkWidget *CM_exact;
63
64 GtkWidget *CM_pay, *PO_pay;
65 GtkWidget *CM_cat, *PO_cat;
66
67
68 };
69
70
71 struct rulPopContext
72 {
73 GtkTreeModel *model;
74 guint except_key;
75 };
76
77
78
79 GtkWidget *ui_asg_manage_dialog (void);
80
81
82 #endif
83
This page took 0.039604 seconds and 5 git commands to generate.