dialog-commodity.h

Go to the documentation of this file.
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   DIAG_COMM_CURRENCY,     
00049   DIAG_COMM_NON_CURRENCY, 
00051   DIAG_COMM_ALL,          
00053 } dialog_commodity_mode;
00054 
00055 typedef void (* gnc_commodity_help_callback)(void);
00056 
00063 void gnc_ui_commodity_set_help_callback (gnc_commodity_help_callback cb);
00064 
00065 
00105 gnc_commodity * 
00106 gnc_ui_select_commodity_modal_full(gnc_commodity * orig_sel, 
00107                                    GtkWidget * parent,
00108                                    dialog_commodity_mode mode,
00109                                    const char * user_message,
00110                                    const char * cusip,
00111                                    const char * fullname,
00112                                    const char * mnemonic);
00113 
00114 
00132 gnc_commodity * 
00133 gnc_ui_select_commodity_modal(gnc_commodity * orig_sel, 
00134                               GtkWidget * parent,
00135                               dialog_commodity_mode mode);
00169 gnc_commodity * 
00170 gnc_ui_new_commodity_modal_full(const char * namespace, 
00171                                 GtkWidget * parent,
00172                                 const char * cusip,
00173                                 const char * fullname,
00174                                 const char * mnemonic,
00175                                 int fraction);
00176 
00188 gnc_commodity * 
00189 gnc_ui_new_commodity_modal(const char * default_namespace, 
00190                            GtkWidget * parent);
00191 
00206 gboolean
00207 gnc_ui_edit_commodity_modal(gnc_commodity *commodity,
00208                             GtkWidget * parent);
00230 void gnc_ui_update_namespace_picker(GtkWidget *cbe,
00231                                     const gchar *sel,
00232                                     dialog_commodity_mode mode);
00233 
00243 gchar *gnc_ui_namespace_picker_ns (GtkWidget *cbe);
00244 
00256 void gnc_ui_update_commodity_picker(GtkWidget *cbe,
00257                                     const gchar *namespace,
00258                                     const gchar *sel);
00261 #endif
00262 

Generated on Fri Jul 25 05:05:13 2008 for GnuCash by  doxygen 1.5.2