|
GnuCash 2.4.99
|
00001 /* 00002 * gnc-currency-edit.h -- Currency editor widget 00003 * 00004 * Copyright (C) 2000 Free Software Foundation 00005 * All rights reserved. 00006 * 00007 * Dave Peticolas <dave@krondo.com> 00008 * 00009 * GnuCash is free software; you can redistribute it and/or modify 00010 * it under the terms of the GNU Library General Public License as 00011 * published by the Free Software Foundation; either version 2 of 00012 * the License, or (at your option) any later version. 00013 * 00014 * Gnucash is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00017 * Library General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU General Public License 00020 * along with this program; if not, contact: 00021 * 00022 * Free Software Foundation Voice: +1-617-542-5942 00023 * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 00024 * Boston, MA 02110-1301, USA gnu@gnu.org 00025 * 00026 */ 00027 00055 #ifndef GNC_CURRENCY_EDIT_H 00056 #define GNC_CURRENCY_EDIT_H 00057 00058 #include "gnc-commodity.h" 00059 00063 #define GNC_TYPE_CURRENCY_EDIT (gnc_currency_edit_get_type()) 00064 #define GNC_CURRENCY_EDIT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GNC_TYPE_CURRENCY_EDIT, GNCCurrencyEdit)) 00065 #define GNC_CURRENCY_EDIT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GNC_TYPE_CURRENCY_EDIT, GNCCurrencyEditClass)) 00066 #define GNC_IS_CURRENCY_EDIT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GNC_TYPE_CURRENCY_EDIT)) 00067 00068 typedef struct 00069 { 00070 GtkComboBoxEntry combobox; 00071 } GNCCurrencyEdit; 00072 00073 typedef struct 00074 { 00075 GtkComboBoxEntryClass combobox; 00076 } GNCCurrencyEditClass; 00077 00082 GType gnc_currency_edit_get_type (void); 00083 00084 00090 GtkWidget *gnc_currency_edit_new (void); 00104 void gnc_currency_edit_set_currency (GNCCurrencyEdit *gce, 00105 const gnc_commodity *currency); 00106 00107 00115 gnc_commodity *gnc_currency_edit_get_currency (GNCCurrencyEdit *gce); 00116 00119 #endif 00120
1.7.4