|
GnuCash 2.4.99
|
00001 /******************************************************************** 00002 * dialog-commodity.h -- "select" and "new" commodity windows * 00003 * (GnuCash) * 00004 * Copyright (C) 2000 Bill Gribble <grib@billgribble.com> * 00005 * Copyright (c) 2006 David Hampton <hampton@employees.org> * 00006 * * 00007 * This program is free software; you can redistribute it and/or * 00008 * modify it under the terms of the GNU General Public License as * 00009 * published by the Free Software Foundation; either version 2 of * 00010 * the License, or (at your option) any later version. * 00011 * * 00012 * This program is distributed in the hope that it will be useful, * 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00015 * GNU General Public License for more details. * 00016 * * 00017 * You should have received a copy of the GNU General Public License* 00018 * along with this program; if not, contact: * 00019 * * 00020 * Free Software Foundation Voice: +1-617-542-5942 * 00021 * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 * 00022 * Boston, MA 02110-1301, USA gnu@gnu.org * 00023 ********************************************************************/ 00024 00034 #ifndef GNC_DIALOG_COMMODITY_H 00035 #define GNC_DIALOG_COMMODITY_H 00036 00037 #include <gtk/gtk.h> 00038 #include "gnc-commodity.h" 00039 00046 typedef enum 00047 { 00048 DIAG_COMM_CURRENCY, 00050 DIAG_COMM_NON_CURRENCY, 00052 DIAG_COMM_ALL, 00054 } dialog_commodity_mode; 00055 00056 typedef void (* gnc_commodity_help_callback)(void); 00057 00064 void gnc_ui_commodity_set_help_callback (gnc_commodity_help_callback cb); 00065 00066 00106 gnc_commodity * 00107 gnc_ui_select_commodity_modal_full(gnc_commodity * orig_sel, 00108 GtkWidget * parent, 00109 dialog_commodity_mode mode, 00110 const char * user_message, 00111 const char * cusip, 00112 const char * fullname, 00113 const char * mnemonic); 00114 00115 00133 gnc_commodity * 00134 gnc_ui_select_commodity_modal(gnc_commodity * orig_sel, 00135 GtkWidget * parent, 00136 dialog_commodity_mode mode); 00166 gnc_commodity * 00167 gnc_ui_new_commodity_modal_full(const char * namespace, 00168 GtkWidget * parent, 00169 const char * cusip, 00170 const char * fullname, 00171 const char * mnemonic, 00172 int fraction); 00173 00185 gnc_commodity * 00186 gnc_ui_new_commodity_modal(const char * default_namespace, 00187 GtkWidget * parent); 00188 00203 gboolean 00204 gnc_ui_edit_commodity_modal(gnc_commodity *commodity, 00205 GtkWidget * parent); 00227 void gnc_ui_update_namespace_picker(GtkWidget *cbe, 00228 const gchar *sel, 00229 dialog_commodity_mode mode); 00230 00240 gchar *gnc_ui_namespace_picker_ns (GtkWidget *cbe); 00241 00253 void gnc_ui_update_commodity_picker(GtkWidget *cbe, 00254 const gchar *namespace, 00255 const gchar *sel); 00258 #endif 00259
1.7.4