GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
dialog-commodity.h
Go to the documentation of this file.
1 /********************************************************************
2  * dialog-commodity.h -- "select" and "new" commodity windows *
3  * (GnuCash) *
4  * Copyright (C) 2000 Bill Gribble <[email protected]> *
5  * Copyright (c) 2006 David Hampton <[email protected]> *
6  * *
7  * This program is free software; you can redistribute it and/or *
8  * modify it under the terms of the GNU General Public License as *
9  * published by the Free Software Foundation; either version 2 of *
10  * the License, or (at your option) any later version. *
11  * *
12  * This program is distributed in the hope that it will be useful, *
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15  * GNU General Public License for more details. *
16  * *
17  * You should have received a copy of the GNU General Public License*
18  * along with this program; if not, contact: *
19  * *
20  * Free Software Foundation Voice: +1-617-542-5942 *
21  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
22  * Boston, MA 02110-1301, USA [email protected] *
23  ********************************************************************/
24 
34 #ifndef GNC_DIALOG_COMMODITY_H
35 #define GNC_DIALOG_COMMODITY_H
36 
37 #include <gtk/gtk.h>
38 #include "gnc-commodity.h"
39 
46 typedef enum
47 {
55 
56 typedef void (* gnc_commodity_help_callback)(void);
57 
64 void gnc_ui_commodity_set_help_callback (gnc_commodity_help_callback cb);
65 
66 
108  GtkWidget * parent,
110  const char * user_message,
111  const char * cusip,
112  const char * fullname,
113  const char * mnemonic);
114 
115 
135  GtkWidget * parent,
136  dialog_commodity_mode mode);
170 gnc_ui_new_commodity_modal_full(const char * name_space,
171  GtkWidget * parent,
172  const char * cusip,
173  const char * fullname,
174  const char * mnemonic,
175  const char * user_symbol,
176  int fraction);
177 
190 gnc_ui_new_commodity_modal(const char * default_namespace,
191  GtkWidget * parent);
192 
207 gboolean
209  GtkWidget * parent);
231 void gnc_ui_update_namespace_picker(GtkWidget *cbwe,
232  const gchar *sel,
233  dialog_commodity_mode mode);
234 
244 gchar *gnc_ui_namespace_picker_ns (GtkWidget *cbwe);
245 
257 void gnc_ui_update_commodity_picker(GtkWidget *cbwe,
258  const gchar *name_space,
259  const gchar *sel);
262 #endif
263 
gchar * gnc_ui_namespace_picker_ns(GtkWidget *cbwe)
void gnc_ui_commodity_set_help_callback(gnc_commodity_help_callback cb)
gnc_commodity * gnc_ui_new_commodity_modal(const char *default_namespace, GtkWidget *parent)
gboolean gnc_ui_edit_commodity_modal(gnc_commodity *commodity, GtkWidget *parent)
gnc_commodity * gnc_ui_new_commodity_modal_full(const char *name_space, GtkWidget *parent, const char *cusip, const char *fullname, const char *mnemonic, const char *user_symbol, int fraction)
gnc_commodity * gnc_ui_select_commodity_modal_full(gnc_commodity *orig_sel, GtkWidget *parent, dialog_commodity_mode mode, const char *user_message, const char *cusip, const char *fullname, const char *mnemonic)
void gnc_ui_update_commodity_picker(GtkWidget *cbwe, const gchar *name_space, const gchar *init_string)
dialog_commodity_mode
gnc_commodity * gnc_ui_select_commodity_modal(gnc_commodity *orig_sel, GtkWidget *parent, dialog_commodity_mode mode)
void gnc_ui_update_namespace_picker(GtkWidget *cbwe, const gchar *sel, dialog_commodity_mode mode)
Commodity handling public routines.