add gitignore
[chaz/homebank] / src / ui-widgets.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_WIDGETS_GTK_H__
21 #define __HB_WIDGETS_GTK_H__
22
23
24 GtkWidget *make_label(char *str, gfloat xalign, gfloat yalign);
25 GtkWidget *make_text(gfloat xalign);
26 GtkWidget *make_string(GtkWidget *label);
27 GtkWidget *make_memo_entry(GtkWidget *label);
28 GtkWidget *make_string_maxlength(GtkWidget *label, guint max_length);
29 GtkWidget *make_amount(GtkWidget *label);
30 GtkWidget *make_euro(GtkWidget *label);
31 GtkWidget *make_numeric(GtkWidget *label, gdouble min, gdouble max);
32 GtkWidget *make_scale(GtkWidget *label);
33 GtkWidget *make_long(GtkWidget *label);
34 GtkWidget *make_year(GtkWidget *label);
35 GtkWidget *make_cycle(GtkWidget *label, gchar **items);
36 GtkWidget *make_daterange(GtkWidget *label, gboolean custom);
37 GtkWidget *make_radio(GtkWidget *label, gchar **items, GtkOrientation orientation);
38
39 gint radio_get_active (GtkContainer *container);
40 void radio_set_active (GtkContainer *container, gint active);
41
42 void
43 gimp_label_set_attributes (GtkLabel *label,
44 ...);
45
46 void hb_widget_visible(GtkWidget *widget, gboolean visible);
47 void ui_gtk_entry_set_text(GtkWidget *widget, gchar *text);
48
49 guint make_popaccount_populate(GtkComboBox *combobox, GList *srclist);
50 GtkWidget *make_popaccount(GtkWidget *label);
51
52 guint make_poppayee_populate(GtkComboBox *combobox, GList *srclist);
53 GtkWidget *make_poppayee(GtkWidget *label);
54
55 guint make_poparchive_populate(GtkComboBox *combobox, GList *srclist);
56 GtkWidget *make_poparchive(GtkWidget *label);
57
58 guint make_popcategory_populate(GtkComboBox *combobox, GList *srclist);
59 GtkWidget *make_popcategory(GtkWidget *label);
60
61 void load_paymode_icons(void);
62 void free_paymode_icons(void);
63 void load_nainex_icons(void);
64 void free_nainex_icons(void);
65
66 GtkWidget *make_paymode(GtkWidget *label);
67 GtkWidget *make_nainex(GtkWidget *label);
68
69 #endif
This page took 0.040027 seconds and 4 git commands to generate.