1 /* HomeBank -- Free, easy, personal accounting for everyone.
2 * Copyright (C) 1995-2014 Maxime DOYEN
4 * This file is part of HomeBank.
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.
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.
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/>.
20 #ifndef __HB_WIDGETS_GTK_H__
21 #define __HB_WIDGETS_GTK_H__
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
);
39 gint
radio_get_active (GtkContainer
*container
);
40 void radio_set_active (GtkContainer
*container
, gint active
);
43 gimp_label_set_attributes (GtkLabel
*label
,
46 void hb_widget_visible(GtkWidget
*widget
, gboolean visible
);
47 void ui_gtk_entry_set_text(GtkWidget
*widget
, gchar
*text
);
49 guint
make_popaccount_populate(GtkComboBox
*combobox
, GList
*srclist
);
50 GtkWidget
*make_popaccount(GtkWidget
*label
);
52 guint
make_poppayee_populate(GtkComboBox
*combobox
, GList
*srclist
);
53 GtkWidget
*make_poppayee(GtkWidget
*label
);
55 guint
make_poparchive_populate(GtkComboBox
*combobox
, GList
*srclist
);
56 GtkWidget
*make_poparchive(GtkWidget
*label
);
58 guint
make_popcategory_populate(GtkComboBox
*combobox
, GList
*srclist
);
59 GtkWidget
*make_popcategory(GtkWidget
*label
);
61 void load_paymode_icons(void);
62 void free_paymode_icons(void);
63 void load_nainex_icons(void);
64 void free_nainex_icons(void);
66 GtkWidget
*make_paymode(GtkWidget
*label
);
67 GtkWidget
*make_nainex(GtkWidget
*label
);