1 /* HomeBank -- Free, easy, personal accounting for everyone.
2 * Copyright (C) 1995-2012 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_CURRENCY_GTK_H__
21 #define __HB_CURRENCY_GTK_H__
38 struct ui_cur_manage_dialog_data
43 // GtkWidget *CY_curr;
44 // GtkWidget *BT_curr;
56 struct ui_cur_edit_dialog_data
67 GtkWidget
*CM_symisprefix
;
68 GtkWidget
*ST_decimalchar
;
69 GtkWidget
*ST_groupingchar
;
70 GtkWidget
*NB_fracdigits
;
75 CUR_SELECT_MODE_NORMAL
,
80 struct ui_cur_select_dialog_data
84 GtkTreeModel
*modelfilter
;
85 GtkTreeModel
*sortmodel
;
98 gchar
*ui_cur_combobox_get_name(GtkComboBox
*entry_box
);
99 guint32
ui_cur_combobox_get_key(GtkComboBox
*entry_box
);
100 guint32
ui_cur_combobox_get_key_add_new(GtkComboBox
*entry_box
);
101 gboolean
ui_cur_combobox_set_active(GtkComboBox
*entry_box
, guint32 key
);
102 void ui_cur_combobox_add(GtkComboBox
*entry_box
, Currency
*cur
);
103 void ui_cur_combobox_populate(GtkComboBox
*entry_box
, GHashTable
*hash
);
104 void ui_cur_combobox_populate_except(GtkComboBox
*entry_box
, GHashTable
*hash
, guint except_key
);
105 GtkWidget
*ui_cur_combobox_new(GtkWidget
*label
);
107 /* = = = = = = = = = = */
109 void ui_cur_listview_add(GtkTreeView
*treeview
, Currency
*item
);
110 guint32
ui_cur_listview_get_selected_key(GtkTreeView
*treeview
);
111 void ui_cur_listview_remove_selected(GtkTreeView
*treeview
);
112 void ui_cur_listview_populate(GtkWidget
*view
);
113 GtkWidget
*ui_cur_listview_new(gboolean withtoggle
);
115 gint
ui_cur_manage_dialog_update_currencies(GtkWindow
*parent
);
117 GtkWidget
*ui_cur_manage_dialog (void);
119 Currency4217
*ui_cur_select_dialog_new(GtkWindow
*parent
, gint select_mode
);
121 void ui_cur_edit_dialog_new(GtkWindow
*parent
, Currency
*cur
);