From 6488f2a4027c5782627a60d37d374e80108ed12d Mon Sep 17 00:00:00 2001 From: Derek Atkins Date: Fri, 29 Nov 2002 16:07:17 +0000 Subject: [PATCH] * src/gnome-utils/dialog-exchange.h -- header for the exchange-rate dialog git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7568 57a11ea4-9604-0410-9ed3-97b8803252fd --- ChangeLog | 3 ++ src/gnome-utils/dialog-exchange.h | 46 +++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 src/gnome-utils/dialog-exchange.h diff --git a/ChangeLog b/ChangeLog index 9444d5c6bf..b461d994f7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2002-11-29 Derek Atkins + * src/gnome-utils/dialog-exchange.h -- header for the exchange-rate dialog + 2002-11-28 Christian Stimming * src/import-export/gnc-gen-transaction.c: Use add_threshold diff --git a/src/gnome-utils/dialog-exchange.h b/src/gnome-utils/dialog-exchange.h new file mode 100644 index 0000000000..eda9159a4f --- /dev/null +++ b/src/gnome-utils/dialog-exchange.h @@ -0,0 +1,46 @@ +/******************************************************************** + * dialog-exchange.h -- Dialog to enter exchange rates * + * * + * Copyright (C) 2002 Derek Atkins * + * * + * This program is free software; you can redistribute it and/or * + * modify it under the terms of the GNU General Public License as * + * published by the Free Software Foundation; either version 2 of * + * the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License* + * along with this program; if not, contact: * + * * + * Free Software Foundation Voice: +1-617-542-5942 * + * 59 Temple Place - Suite 330 Fax: +1-617-542-2652 * + * Boston, MA 02111-1307, USA gnu@gnu.org * + ********************************************************************/ + +#ifndef GNC_DIALOG_EXCHANGE_H +#define GNC_DIALOG_EXCHANGE_H + +#include "gnc-pricedb.h" +#include "gnc-commodity.h" +#include "gnc-numeric.h" +#include "date.h" + +typedef struct _exchange_window ExchangeDialog; + +void gnc_ui_exchange_dialog_destroy (ExchangeDialog * w); + +/* Create a dialog to enter an exchange rate. Looks in the pricedb + * for entries; stores entries in the pricedb. + */ +ExchangeDialog * +gnc_ui_exchange_dialog_full (GNCPriceDB * pricedb, + gnc_numeric amount, + gnc_commodity * from, + gnc_commodity * to, + Timespec date); + +#endif /* GNC_DIALOG_EXCHANGE_H */