GnuCash  4.12+
Data Structures | Enumerations | Functions
dialog-commodity.c File Reference

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

#include <config.h>
#include <gtk/gtk.h>
#include <glib/gi18n.h>
#include <stdio.h>
#include "dialog-commodity.h"
#include "dialog-utils.h"
#include "gnc-engine.h"
#include "gnc-gtk-utils.h"
#include "gnc-gui-query.h"
#include "gnc-ui-util.h"
#include "gnc-ui.h"

Go to the source code of this file.

Data Structures

struct  SelectCommodityWindow
 
struct  CommodityWindow
 

Enumerations

enum  { SOURCE_COL_NAME = 0, SOURCE_COL_FQ_SUPPORTED, NUM_SOURCE_COLS }
 

Functions

void gnc_ui_select_commodity_new_cb (GtkButton *button, gpointer user_data)
 This function is called whenever the user clicks on the "New" button in the commodity picker. More...
 
void gnc_ui_select_commodity_changed_cb (GtkComboBox *cbwe, gpointer user_data)
 This function is called whenever the commodity combo box is changed. More...
 
void gnc_ui_select_commodity_namespace_changed_cb (GtkComboBox *cbwe, gpointer user_data)
 This function is called whenever the commodity namespace combo box is changed. More...
 
void gnc_ui_commodity_changed_cb (GtkWidget *dummy, gpointer user_data)
 
void gnc_ui_commodity_quote_info_cb (GtkWidget *w, gpointer data)
 
gboolean gnc_ui_commodity_dialog_to_object (CommodityWindow *w)
 
void gnc_ui_update_namespace_picker (GtkWidget *cbwe, const char *init_string, dialog_commodity_mode mode)
 
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. More...
 
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. More...
 
Auxiliary Dialog Functions
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. More...
 
gchar * gnc_ui_namespace_picker_ns (GtkWidget *cbwe)
 Given a combo box, return the currently selected namespaces. More...
 
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. More...
 
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. More...
 
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. More...
 

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
Copyright (c) 2006 David Hampton hampt.nosp@m.on@e.nosp@m.mploy.nosp@m.ees..nosp@m.org

Definition in file dialog-commodity.c.