GnuCash c935c2f+
Loading...
Searching...
No Matches
Enumerations
dialog-commodity.h File Reference

"select" and "new" commodity windows More...

#include <gtk/gtk.h>
#include "gnc-commodity.h"

Go to the source code of this file.

Enumerations

enum  dialog_commodity_mode { DIAG_COMM_CURRENCY , DIAG_COMM_NON_CURRENCY , DIAG_COMM_NON_CURRENCY_SELECT , DIAG_COMM_ALL }
 The dialog commodity types are used to determine what commodity namespaces the currency dialog will present to a user. More...
 

Functions

Commodity Selection
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)
 Ask the user to select a commodity from the existing set of commodities.
 
gnc_commodity * gnc_ui_select_commodity_modal (gnc_commodity *orig_sel, GtkWidget *parent, dialog_commodity_mode mode)
 Ask the user to select a commodity from the existing set of commodities.
 
Commodity Creation or Modification
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)
 Ask the user to provide the information necessary to create a new commodity.
 
gnc_commodity * gnc_ui_new_commodity_modal (const char *default_namespace, GtkWidget *parent)
 Ask the user to provide the information necessary to create a new commodity.
 
gboolean gnc_ui_edit_commodity_modal (gnc_commodity *commodity, GtkWidget *parent)
 Given an existing commodity, uses the gnc_ui_build_commodity_dialog() routine to build a basic edit dialog, then fills in the price quote information at the bottom of the dialog.
 
Auxiliary Dialog Functions
void gnc_ui_update_namespace_picker (GtkWidget *cbwe, const gchar *sel, dialog_commodity_mode mode)
 Given a combo box, fill in the known commodity namespaces and then select one.
 
gchar * gnc_ui_namespace_picker_ns (GtkWidget *cbwe)
 Given a combo box, return the currently selected namespaces.
 
void gnc_ui_update_commodity_picker (GtkWidget *cbwe, const gchar *name_space, const gchar *sel)
 Given a combo box, fill in all the known commodities for the specified namespace, and then select one.
 

Detailed Description

"select" and "new" commodity windows

Author
Copyright (C) 2000 Bill Gribble grib@.nosp@m.bill.nosp@m.gribb.nosp@m.le.c.nosp@m.om

Definition in file dialog-commodity.h.