import homebank-5.1.7
[chaz/homebank] / src / ui-widgets.h
1 /* HomeBank -- Free, easy, personal accounting for everyone.
2 * Copyright (C) 1995-2018 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(gchar *str, gfloat xalign, gfloat yalign);
25 GtkWidget *make_clicklabel(gchar *id, gchar *str);
26 GtkWidget *make_label_group(gchar *str);
27 GtkWidget *make_label_widget(gchar *str);
28 GtkWidget *make_text(gfloat xalign);
29 GtkWidget *make_search(GtkWidget *label);
30 GtkWidget *make_string(GtkWidget *label);
31 GtkWidget *make_image_button(gchar *icon_name, gchar *tooltip_text);
32
33 GtkWidget *make_memo_entry(GtkWidget *label);
34 GtkWidget *make_string_maxlength(GtkWidget *label, guint max_length);
35 GtkWidget *make_amount(GtkWidget *label);
36 GtkWidget *make_exchange_rate(GtkWidget *label);
37 GtkWidget *make_numeric(GtkWidget *label, gdouble min, gdouble max);
38 GtkWidget *make_scale(GtkWidget *label);
39 GtkWidget *make_long(GtkWidget *label);
40 GtkWidget *make_year(GtkWidget *label);
41 GtkWidget *make_cycle(GtkWidget *label, gchar **items);
42 GtkWidget *make_daterange(GtkWidget *label, gboolean custom);
43
44
45 void ui_label_set_integer(GtkLabel *label, gint value);
46
47 GtkWidget *make_radio(gchar **items, gboolean buttonstyle, GtkOrientation orientation);
48 GtkWidget *radio_get_nth_widget (GtkContainer *container, gint nth);
49 gint radio_get_active (GtkContainer *container);
50 void radio_set_active (GtkContainer *container, gint active);
51
52 void
53 gimp_label_set_attributes (GtkLabel *label,
54 ...);
55
56 void hb_widget_visible(GtkWidget *widget, gboolean visible);
57 void ui_gtk_entry_set_text(GtkWidget *widget, gchar *text);
58 void ui_gtk_entry_replace_text(GtkWidget *widget, gchar **storage);
59
60 guint make_popaccount_populate(GtkComboBox *combobox, GList *srclist);
61 GtkWidget *make_popaccount(GtkWidget *label);
62
63 guint make_poppayee_populate(GtkComboBox *combobox, GList *srclist);
64 GtkWidget *make_poppayee(GtkWidget *label);
65
66 guint make_poparchive_populate(GtkComboBox *combobox, GList *srclist);
67 GtkWidget *make_poparchive(GtkWidget *label);
68
69 guint make_popcategory_populate(GtkComboBox *combobox, GList *srclist);
70 GtkWidget *make_popcategory(GtkWidget *label);
71
72
73 gchar *get_paymode_icon_name(gint index);
74 GtkWidget *make_paymode(GtkWidget *label);
75 GtkWidget *make_paymode_nointxfer(GtkWidget *label);
76 GtkWidget *make_nainex(GtkWidget *label);
77
78 #endif
This page took 0.041794 seconds and 4 git commands to generate.