GnuCash  5.6-150-g038405b370+
gnc-currency-edit.h
Go to the documentation of this file.
1 /*
2  * gnc-currency-edit.h -- Currency editor widget
3  *
4  * Copyright (C) 2000 Free Software Foundation
5  * All rights reserved.
6  *
7  * Dave Peticolas <dave@krondo.com>
8  *
9  * GnuCash is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU Library General Public License as
11  * published by the Free Software Foundation; either version 2 of
12  * the License, or (at your option) any later version.
13  *
14  * Gnucash is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  * Library General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, contact:
21  *
22  * Free Software Foundation Voice: +1-617-542-5942
23  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652
24  * Boston, MA 02110-1301, USA gnu@gnu.org
25  *
26  */
27 
55 #ifndef GNC_CURRENCY_EDIT_H
56 #define GNC_CURRENCY_EDIT_H
57 
58 #include "gnc-commodity.h"
59 
60 #ifdef __cplusplus
61 extern "C" {
62 #endif
63 
67 #define GNC_TYPE_CURRENCY_EDIT (gnc_currency_edit_get_type())
68 G_DECLARE_FINAL_TYPE (GNCCurrencyEdit, gnc_currency_edit, GNC, CURRENCY_EDIT, GtkComboBox)
69 
70 
75 GtkWidget *gnc_currency_edit_new (void);
89 void gnc_currency_edit_set_currency (GNCCurrencyEdit *gce,
90  const gnc_commodity *currency);
91 
92 
100 gnc_commodity *gnc_currency_edit_get_currency (GNCCurrencyEdit *gce);
101 
102 
110 void gnc_currency_edit_clear_display (GNCCurrencyEdit *gce);
111 
114 #ifdef __cplusplus
115 }
116 #endif
117 
118 #endif
119 
void gnc_currency_edit_set_currency(GNCCurrencyEdit *gce, const gnc_commodity *currency)
Set the widget to display a certain currency name.
void gnc_currency_edit_clear_display(GNCCurrencyEdit *gce)
Clear the displayed currency of the widget.
gnc_commodity * gnc_currency_edit_get_currency(GNCCurrencyEdit *gce)
Retrieve the displayed currency of the widget.
GtkWidget * gnc_currency_edit_new(void)
Create a new GNCCurrencyEdit widget which can be used to provide an easy way to enter ISO currency co...
Commodity handling public routines.