]> Dogcows Code - chaz/homebank/blob - src/ui-category.h
add gitignore
[chaz/homebank] / src / ui-category.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_CATEGORY_GTK_H__
21 #define __HB_CATEGORY_GTK_H__
22
23 enum
24 {
25 LST_DEFCAT_TOGGLE,
26 LST_DEFCAT_DATAS,
27 LST_DEFCAT_NAME,
28 NUM_LST_DEFCAT
29 };
30
31 gchar *ui_cat_comboboxentry_get_name(GtkComboBox *entry_box);
32 guint32 ui_cat_comboboxentry_get_key(GtkComboBox *entry_box);
33 guint32 ui_cat_comboboxentry_get_key_add_new(GtkComboBox *entry_box);
34 gboolean ui_cat_comboboxentry_set_active(GtkComboBox *entry_box, guint32 key);
35 void ui_cat_comboboxentry_add(GtkComboBox *entry_box, Category *pay);
36 void ui_cat_comboboxentry_populate(GtkComboBox *entry_box, GHashTable *hash);
37 void ui_cat_comboboxentry_populate_except(GtkComboBox *entry_box, GHashTable *hash, guint except_key);
38 GtkWidget *ui_cat_comboboxentry_new(GtkWidget *label);
39
40 /* = = = = = = = = = = */
41
42 void ui_cat_listview_add(GtkTreeView *treeview, Category *item, GtkTreeIter *parent);
43 Category *ui_cat_listview_get_selected(GtkTreeView *treeview);
44 Category *ui_cat_listview_get_selected_parent(GtkTreeView *treeview, GtkTreeIter *parent);
45 gboolean ui_cat_listview_remove (GtkTreeModel *liststore, guint32 key);
46 void ui_cat_listview_remove_selected(GtkTreeView *treeview);
47 void ui_cat_listview_populate(GtkWidget *view);
48 GtkWidget *ui_cat_listview_new(gboolean withtoggle);
49
50 /* = = = = = = = = = = */
51
52 struct ui_cat_manage_dialog_data
53 {
54 GList *tmp_list;
55 gint change;
56
57 GtkWidget *window;
58
59 GtkWidget *LV_cat;
60 GtkWidget *ST_name1, *ST_name2;
61
62 GtkWidget *BT_add1, *BT_add2;
63
64 GtkWidget *CM_type;
65
66 GtkWidget *BT_mov;
67 GtkWidget *BT_mod;
68 GtkWidget *BT_rem;
69
70 GtkWidget *BT_import, *BT_export;
71
72 GtkWidget *LA_category;
73
74 };
75
76 struct catPopContext
77 {
78 GtkTreeModel *model;
79 guint except_key;
80 };
81
82 GtkWidget *ui_cat_manage_dialog (void);
83
84 #endif
85
This page took 0.033062 seconds and 4 git commands to generate.