mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
2001-06-15 Dave Peticolas <dave@krondo.com>
* src/gnome/dialog-fincalc.c: use libglade * src/gnome/dialog-commodity.c: use libglade git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4695 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
0f784ccfb2
commit
6160096b83
@ -1,5 +1,9 @@
|
||||
2001-06-15 Dave Peticolas <dave@krondo.com>
|
||||
|
||||
* src/gnome/dialog-fincalc.c: use libglade
|
||||
|
||||
* src/gnome/dialog-commodity.c: use libglade
|
||||
|
||||
* src/gnome/dialog-account.c: use libglade
|
||||
|
||||
* src/gnome/dialog-userpass.c: fix bloop
|
||||
|
@ -30,8 +30,12 @@ src/gnome/glade-gnc-dialogs.c
|
||||
src/gnome/glade-support.c
|
||||
src/gnome/glade/account_strings.c
|
||||
src/gnome/glade/commodity_strings.c
|
||||
src/gnome/glade/fincalc_strings.c
|
||||
src/gnome/glade/help_strings.c
|
||||
src/gnome/glade/price_strings.c
|
||||
src/gnome/glade/progress_strings.c
|
||||
src/gnome/glade/qif_strings.c
|
||||
src/gnome/glade/register_strings.c
|
||||
src/gnome/glade/report_strings.c
|
||||
src/gnome/glade/stocks_strings.c
|
||||
src/gnome/glade/tax_strings.c
|
||||
|
@ -28,8 +28,7 @@
|
||||
|
||||
#include "FileDialog.h"
|
||||
#include "dialog-commodity.h"
|
||||
#include "glade-gnc-dialogs.h"
|
||||
#include "glade-cb-gnc-dialogs.h"
|
||||
#include "dialog-utils.h"
|
||||
#include "gnc-engine-util.h"
|
||||
#include "gnc-ui.h"
|
||||
#include "messages.h"
|
||||
@ -71,6 +70,17 @@ gnc_ui_commodity_create(const char * selected_namespace,
|
||||
gnc_commodity_callback callback,
|
||||
void * callback_data);
|
||||
|
||||
static void gnc_ui_select_commodity_ok_cb(GtkButton * button,
|
||||
gpointer user_data);
|
||||
static void gnc_ui_select_commodity_new_cb(GtkButton * button,
|
||||
gpointer user_data);
|
||||
static void gnc_ui_select_commodity_cancel_cb(GtkButton * button,
|
||||
gpointer user_data);
|
||||
static void gnc_ui_select_commodity_namespace_changed_cb(GtkEditable * entry,
|
||||
gpointer user_data);
|
||||
static void gnc_ui_commodity_ok_cb(GtkButton * button, gpointer user_data);
|
||||
static void gnc_ui_commodity_cancel_cb(GtkButton * button, gpointer user_data);
|
||||
static void gnc_ui_commodity_help_cb(GtkButton * button, gpointer user_data);
|
||||
|
||||
static void
|
||||
select_modal_callback(const gnc_commodity * arg, void * data) {
|
||||
@ -121,15 +131,31 @@ gnc_ui_select_commodity_create(const gnc_commodity * orig_sel,
|
||||
gnc_commodity_callback callback,
|
||||
void * callback_data) {
|
||||
SelectCommodityWindow * retval = g_new0(SelectCommodityWindow, 1);
|
||||
GladeXML *xml;
|
||||
char * namespace;
|
||||
|
||||
retval->dialog = create_Commodity_Selector_Dialog();
|
||||
retval->namespace_combo =
|
||||
gtk_object_get_data(GTK_OBJECT(retval->dialog), "namespace_combo");
|
||||
retval->commodity_combo =
|
||||
gtk_object_get_data(GTK_OBJECT(retval->dialog), "commodity_combo");
|
||||
retval->commodity_entry =
|
||||
gtk_object_get_data(GTK_OBJECT(retval->dialog), "commodity_entry");
|
||||
xml = gnc_glade_xml_new ("commodity.glade", "Commodity Selector Dialog");
|
||||
|
||||
glade_xml_signal_connect_data
|
||||
(xml, "gnc_ui_select_commodity_ok_cb",
|
||||
GTK_SIGNAL_FUNC (gnc_ui_select_commodity_ok_cb), retval);
|
||||
|
||||
glade_xml_signal_connect_data
|
||||
(xml, "gnc_ui_select_commodity_new_cb",
|
||||
GTK_SIGNAL_FUNC (gnc_ui_select_commodity_new_cb), retval);
|
||||
|
||||
glade_xml_signal_connect_data
|
||||
(xml, "gnc_ui_select_commodity_cancel_cb",
|
||||
GTK_SIGNAL_FUNC (gnc_ui_select_commodity_cancel_cb), retval);
|
||||
|
||||
glade_xml_signal_connect_data
|
||||
(xml, "gnc_ui_select_commodity_namespace_changed_cb",
|
||||
GTK_SIGNAL_FUNC (gnc_ui_select_commodity_namespace_changed_cb), retval);
|
||||
|
||||
retval->dialog = glade_xml_get_widget (xml, "Commodity Selector Dialog");
|
||||
retval->namespace_combo = glade_xml_get_widget (xml, "namespace_combo");
|
||||
retval->commodity_combo = glade_xml_get_widget (xml, "commodity_combo");
|
||||
retval->commodity_entry = glade_xml_get_widget (xml, "commodity_entry");
|
||||
|
||||
retval->callback = callback;
|
||||
retval->callback_data = callback_data;
|
||||
@ -137,9 +163,6 @@ gnc_ui_select_commodity_create(const gnc_commodity * orig_sel,
|
||||
gtk_signal_connect (GTK_OBJECT(retval->dialog), "close",
|
||||
GTK_SIGNAL_FUNC(select_commodity_close), retval);
|
||||
|
||||
gtk_object_set_data(GTK_OBJECT(retval->dialog), "select_commodity_struct",
|
||||
retval);
|
||||
|
||||
/* build the menus of namespaces and commodities */
|
||||
namespace =
|
||||
gnc_ui_update_namespace_picker(retval->namespace_combo,
|
||||
@ -216,12 +239,10 @@ gnc_ui_select_commodity_destroy(SelectCommodityWindow * w) {
|
||||
* gnc_ui_select_commodity_ok_cb()
|
||||
********************************************************************/
|
||||
|
||||
void
|
||||
static void
|
||||
gnc_ui_select_commodity_ok_cb(GtkButton * button,
|
||||
gpointer user_data) {
|
||||
GtkWidget * dialog = GTK_WIDGET(user_data);
|
||||
SelectCommodityWindow * w =
|
||||
gtk_object_get_data(GTK_OBJECT(dialog), "select_commodity_struct");
|
||||
SelectCommodityWindow * w = user_data;
|
||||
|
||||
const char * namespace;
|
||||
char * fullname;
|
||||
@ -249,17 +270,15 @@ gnc_ui_select_commodity_ok_cb(GtkButton * button,
|
||||
* gnc_ui_select_commodity_new_cb()
|
||||
********************************************************************/
|
||||
|
||||
void
|
||||
static void
|
||||
gnc_ui_select_commodity_new_cb(GtkButton * button,
|
||||
gpointer user_data) {
|
||||
GtkWidget * dialog = GTK_WIDGET(user_data);
|
||||
SelectCommodityWindow * w =
|
||||
gtk_object_get_data(GTK_OBJECT(dialog), "select_commodity_struct");
|
||||
SelectCommodityWindow * w = user_data;
|
||||
|
||||
const char * namespace = gnc_ui_namespace_picker_ns (w->namespace_combo);
|
||||
|
||||
const gnc_commodity * new_commodity =
|
||||
gnc_ui_new_commodity_modal(namespace, dialog);
|
||||
gnc_ui_new_commodity_modal(namespace, w->dialog);
|
||||
|
||||
if(new_commodity) {
|
||||
char *namespace;
|
||||
@ -281,12 +300,10 @@ gnc_ui_select_commodity_new_cb(GtkButton * button,
|
||||
* gnc_ui_select_commodity_cancel_cb()
|
||||
********************************************************************/
|
||||
|
||||
void
|
||||
static void
|
||||
gnc_ui_select_commodity_cancel_cb(GtkButton * button,
|
||||
gpointer user_data) {
|
||||
GtkWidget * dialog = GTK_WIDGET(user_data);
|
||||
SelectCommodityWindow * w =
|
||||
gtk_object_get_data(GTK_OBJECT(dialog), "select_commodity_struct");
|
||||
SelectCommodityWindow * w = user_data;
|
||||
|
||||
if (w->callback)
|
||||
(w->callback)(NULL, w->callback_data);
|
||||
@ -298,12 +315,10 @@ gnc_ui_select_commodity_cancel_cb(GtkButton * button,
|
||||
* gnc_ui_select_commodity_namespace_changed_cb()
|
||||
********************************************************************/
|
||||
|
||||
void
|
||||
static void
|
||||
gnc_ui_select_commodity_namespace_changed_cb(GtkEditable * entry,
|
||||
gpointer user_data) {
|
||||
GtkWidget * dialog = GTK_WIDGET(user_data);
|
||||
SelectCommodityWindow * w =
|
||||
gtk_object_get_data(GTK_OBJECT(dialog), "select_commodity_struct");
|
||||
SelectCommodityWindow * w = user_data;
|
||||
const char * namespace = gnc_ui_namespace_picker_ns (w->namespace_combo);
|
||||
|
||||
gnc_ui_update_commodity_picker(w->commodity_combo, namespace, NULL);
|
||||
@ -427,29 +442,37 @@ gnc_ui_new_commodity_create(const char * selected_namespace,
|
||||
gnc_commodity_callback callback,
|
||||
void * callback_data) {
|
||||
CommodityWindow * retval = g_new0(CommodityWindow, 1);
|
||||
GladeXML *xml;
|
||||
char *namespace;
|
||||
|
||||
retval->dialog = create_Commodity_Dialog();
|
||||
xml = gnc_glade_xml_new ("commodity.glade", "Commodity Dialog");
|
||||
|
||||
glade_xml_signal_connect_data
|
||||
(xml, "gnc_ui_commodity_ok_cb",
|
||||
GTK_SIGNAL_FUNC (gnc_ui_commodity_ok_cb), retval);
|
||||
|
||||
glade_xml_signal_connect_data
|
||||
(xml, "gnc_ui_commodity_cancel_cb",
|
||||
GTK_SIGNAL_FUNC (gnc_ui_commodity_cancel_cb), retval);
|
||||
|
||||
glade_xml_signal_connect_data
|
||||
(xml, "gnc_ui_commodity_help_cb",
|
||||
GTK_SIGNAL_FUNC (gnc_ui_commodity_help_cb), retval);
|
||||
|
||||
retval->dialog = glade_xml_get_widget (xml, "Commodity Dialog");
|
||||
|
||||
retval->edit_commodity = NULL;
|
||||
|
||||
retval->fullname_entry =
|
||||
gtk_object_get_data(GTK_OBJECT(retval->dialog), "fullname_entry");
|
||||
retval->mnemonic_entry =
|
||||
gtk_object_get_data(GTK_OBJECT(retval->dialog), "mnemonic_entry");
|
||||
retval->namespace_combo =
|
||||
gtk_object_get_data(GTK_OBJECT(retval->dialog), "namespace_combo");
|
||||
retval->code_entry =
|
||||
gtk_object_get_data(GTK_OBJECT(retval->dialog), "code_entry");
|
||||
retval->fraction_spinbutton =
|
||||
gtk_object_get_data(GTK_OBJECT(retval->dialog), "fraction_spinbutton");
|
||||
retval->fullname_entry = glade_xml_get_widget (xml, "fullname_entry");
|
||||
retval->mnemonic_entry = glade_xml_get_widget (xml, "mnemonic_entry");
|
||||
retval->namespace_combo = glade_xml_get_widget (xml, "namespace_combo");
|
||||
retval->code_entry = glade_xml_get_widget (xml, "code_entry");
|
||||
retval->fraction_spinbutton = glade_xml_get_widget (xml,
|
||||
"fraction_spinbutton");
|
||||
|
||||
retval->callback = callback;
|
||||
retval->callback_data = callback_data;
|
||||
|
||||
gtk_object_set_data(GTK_OBJECT(retval->dialog), "commodity_struct",
|
||||
(gpointer)retval);
|
||||
|
||||
gtk_signal_connect (GTK_OBJECT(retval->dialog), "close",
|
||||
GTK_SIGNAL_FUNC(commodity_close), retval);
|
||||
|
||||
@ -568,12 +591,10 @@ gnc_ui_commodity_destroy(CommodityWindow * w) {
|
||||
* gnc_ui_commodity_ok_cb()
|
||||
********************************************************************/
|
||||
|
||||
void
|
||||
static void
|
||||
gnc_ui_commodity_ok_cb(GtkButton * button,
|
||||
gpointer user_data) {
|
||||
GtkWidget * dialog = GTK_WIDGET(user_data);
|
||||
CommodityWindow * w =
|
||||
gtk_object_get_data(GTK_OBJECT(dialog), "commodity_struct");
|
||||
CommodityWindow * w = user_data;
|
||||
|
||||
const char * fullname = gtk_entry_get_text(GTK_ENTRY(w->fullname_entry));
|
||||
const char * namespace = gnc_ui_namespace_picker_ns (w->namespace_combo);
|
||||
@ -586,7 +607,7 @@ gnc_ui_commodity_ok_cb(GtkButton * button,
|
||||
|
||||
if (safe_strcmp (namespace, GNC_COMMODITY_NS_ISO) == 0)
|
||||
{
|
||||
gnc_warning_dialog_parented(dialog,
|
||||
gnc_warning_dialog_parented(w->dialog,
|
||||
_("You may not create a new national "
|
||||
"currency."));
|
||||
return;
|
||||
@ -600,7 +621,7 @@ gnc_ui_commodity_ok_cb(GtkButton * button,
|
||||
|
||||
if ((!w->edit_commodity && c) ||
|
||||
(w->edit_commodity && c && (c != w->edit_commodity))) {
|
||||
gnc_warning_dialog_parented (dialog,
|
||||
gnc_warning_dialog_parented (w->dialog,
|
||||
_("That commodity already exists."));
|
||||
return;
|
||||
}
|
||||
@ -633,7 +654,7 @@ gnc_ui_commodity_ok_cb(GtkButton * button,
|
||||
gnc_ui_commodity_destroy(w);
|
||||
}
|
||||
else {
|
||||
gnc_warning_dialog_parented(dialog,
|
||||
gnc_warning_dialog_parented(w->dialog,
|
||||
_("You must enter a non-empty \"Full name\", "
|
||||
"\"Symbol/abbreviation\",\n"
|
||||
"and \"Type\" for the commodity."));
|
||||
@ -645,11 +666,9 @@ gnc_ui_commodity_ok_cb(GtkButton * button,
|
||||
* gnc_ui_commodity_help_cb()
|
||||
********************************************************************/
|
||||
|
||||
void
|
||||
static void
|
||||
gnc_ui_commodity_help_cb(GtkButton * button,
|
||||
gpointer user_data) {
|
||||
/* GtkWidget * dialog = GTK_WIDGET(user_data); */
|
||||
|
||||
helpWindow(NULL, _("Help"), HH_COMMODITY);
|
||||
}
|
||||
|
||||
@ -658,12 +677,10 @@ gnc_ui_commodity_help_cb(GtkButton * button,
|
||||
* gnc_ui_commodity_cancel_cb()
|
||||
********************************************************************/
|
||||
|
||||
void
|
||||
static void
|
||||
gnc_ui_commodity_cancel_cb(GtkButton * button,
|
||||
gpointer user_data) {
|
||||
GtkWidget * dialog = GTK_WIDGET(user_data);
|
||||
CommodityWindow * w =
|
||||
gtk_object_get_data(GTK_OBJECT(dialog), "commodity_struct");
|
||||
CommodityWindow * w = user_data;
|
||||
|
||||
if (w->callback) {
|
||||
(w->callback)(NULL, w->callback_data);
|
||||
|
@ -1,6 +1,6 @@
|
||||
/********************************************************************\
|
||||
* dialog-fincalc.c : dialog for a financial calculator *
|
||||
* Copyright (C) 2000 Dave Peticolas <peticola@cs.ucdavis.edu> *
|
||||
* Copyright (C) 2000 Dave Peticolas <dave@krondo.com> *
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or *
|
||||
* modify it under the terms of the GNU General Public License as *
|
||||
@ -30,8 +30,6 @@
|
||||
#include "dialog-utils.h"
|
||||
#include "finproto.h"
|
||||
#include "finvar.h"
|
||||
#include "glade-gnc-dialogs.h"
|
||||
#include "glade-support.h"
|
||||
#include "global-options.h"
|
||||
#include "gnc-amount-edit.h"
|
||||
#include "gnc-commodity.h"
|
||||
@ -517,12 +515,15 @@ gnc_ui_fincalc_dialog_create(void)
|
||||
GtkWidget *menu;
|
||||
GtkWidget *hbox;
|
||||
GtkWidget *edit;
|
||||
GladeXML *xml;
|
||||
|
||||
commodity = gnc_default_currency ();
|
||||
|
||||
fcd = g_new0(FinCalcDialog, 1);
|
||||
|
||||
fcd->dialog = create_Financial_Calculator_Dialog();
|
||||
xml = gnc_glade_xml_new ("fincalc.glade", "Financial Calculator Dialog");
|
||||
|
||||
fcd->dialog = glade_xml_get_widget (xml, "Financial Calculator Dialog");
|
||||
fcdo = GTK_OBJECT(fcd->dialog);
|
||||
|
||||
gnc_register_gui_component (DIALOG_FINCALC_CM_CLASS,
|
||||
@ -540,7 +541,7 @@ gnc_ui_fincalc_dialog_create(void)
|
||||
fcd->amounts[PAYMENT_PERIODS] = edit;
|
||||
gtk_widget_show (edit);
|
||||
|
||||
hbox = lookup_widget (fcd->dialog, "payment_periods_hbox");
|
||||
hbox = glade_xml_get_widget (xml, "payment_periods_hbox");
|
||||
gtk_box_pack_start (GTK_BOX (hbox), edit, TRUE, TRUE, 0);
|
||||
|
||||
entry = GNC_AMOUNT_EDIT (edit)->amount_entry;
|
||||
@ -556,7 +557,7 @@ gnc_ui_fincalc_dialog_create(void)
|
||||
fcd->amounts[INTEREST_RATE] = edit;
|
||||
gtk_widget_show (edit);
|
||||
|
||||
hbox = lookup_widget (fcd->dialog, "interest_rate_hbox");
|
||||
hbox = glade_xml_get_widget (xml, "interest_rate_hbox");
|
||||
gtk_box_pack_start (GTK_BOX (hbox), edit, TRUE, TRUE, 0);
|
||||
|
||||
entry = GNC_AMOUNT_EDIT (edit)->amount_entry;
|
||||
@ -574,7 +575,7 @@ gnc_ui_fincalc_dialog_create(void)
|
||||
fcd->amounts[PRESENT_VALUE] = edit;
|
||||
gtk_widget_show (edit);
|
||||
|
||||
hbox = lookup_widget (fcd->dialog, "present_value_hbox");
|
||||
hbox = glade_xml_get_widget (xml, "present_value_hbox");
|
||||
gtk_box_pack_start (GTK_BOX (hbox), edit, TRUE, TRUE, 0);
|
||||
|
||||
entry = GNC_AMOUNT_EDIT (edit)->amount_entry;
|
||||
@ -590,7 +591,7 @@ gnc_ui_fincalc_dialog_create(void)
|
||||
fcd->amounts[PERIODIC_PAYMENT] = edit;
|
||||
gtk_widget_show (edit);
|
||||
|
||||
hbox = lookup_widget (fcd->dialog, "periodic_payment_hbox");
|
||||
hbox = glade_xml_get_widget (xml, "periodic_payment_hbox");
|
||||
gtk_box_pack_start (GTK_BOX (hbox), edit, TRUE, TRUE, 0);
|
||||
|
||||
entry = GNC_AMOUNT_EDIT (edit)->amount_entry;
|
||||
@ -606,7 +607,7 @@ gnc_ui_fincalc_dialog_create(void)
|
||||
fcd->amounts[FUTURE_VALUE] = edit;
|
||||
gtk_widget_show (edit);
|
||||
|
||||
hbox = lookup_widget (fcd->dialog, "future_value_hbox");
|
||||
hbox = glade_xml_get_widget (xml, "future_value_hbox");
|
||||
gtk_box_pack_start (GTK_BOX (hbox), edit, TRUE, TRUE, 0);
|
||||
|
||||
entry = GNC_AMOUNT_EDIT (edit)->amount_entry;
|
||||
@ -614,85 +615,84 @@ gnc_ui_fincalc_dialog_create(void)
|
||||
GTK_SIGNAL_FUNC(fincalc_entry_changed), fcd);
|
||||
|
||||
|
||||
button = lookup_widget (fcd->dialog, "payment_periods_calc_button");
|
||||
button = glade_xml_get_widget (xml, "payment_periods_calc_button");
|
||||
fcd->calc_buttons = g_list_prepend(fcd->calc_buttons, button);
|
||||
gtk_signal_connect(GTK_OBJECT(button), "clicked",
|
||||
GTK_SIGNAL_FUNC(calc_payment_periods), fcd);
|
||||
|
||||
button = lookup_widget (fcd->dialog, "interest_rate_calc_button");
|
||||
button = glade_xml_get_widget (xml, "interest_rate_calc_button");
|
||||
fcd->calc_buttons = g_list_prepend(fcd->calc_buttons, button);
|
||||
gtk_signal_connect(GTK_OBJECT(button), "clicked",
|
||||
GTK_SIGNAL_FUNC(calc_interest_rate), fcd);
|
||||
|
||||
button = lookup_widget (fcd->dialog, "present_value_calc_button");
|
||||
button = glade_xml_get_widget (xml, "present_value_calc_button");
|
||||
fcd->calc_buttons = g_list_prepend(fcd->calc_buttons, button);
|
||||
gtk_signal_connect(GTK_OBJECT(button), "clicked",
|
||||
GTK_SIGNAL_FUNC(calc_present_value), fcd);
|
||||
|
||||
button = lookup_widget (fcd->dialog, "periodic_payment_calc_button");
|
||||
button = glade_xml_get_widget (xml, "periodic_payment_calc_button");
|
||||
fcd->calc_buttons = g_list_prepend(fcd->calc_buttons, button);
|
||||
gtk_signal_connect(GTK_OBJECT(button), "clicked",
|
||||
GTK_SIGNAL_FUNC(calc_periodic_payment), fcd);
|
||||
|
||||
button = lookup_widget (fcd->dialog, "future_value_calc_button");
|
||||
button = glade_xml_get_widget (xml, "future_value_calc_button");
|
||||
fcd->calc_buttons = g_list_prepend(fcd->calc_buttons, button);
|
||||
gtk_signal_connect(GTK_OBJECT(button), "clicked",
|
||||
GTK_SIGNAL_FUNC(calc_future_value), fcd);
|
||||
|
||||
button = lookup_widget (fcd->dialog, "payment_periods_clear_button");
|
||||
button = glade_xml_get_widget (xml, "payment_periods_clear_button");
|
||||
gtk_signal_connect(GTK_OBJECT(button), "clicked",
|
||||
GTK_SIGNAL_FUNC(fincalc_amount_clear_clicked),
|
||||
fcd->amounts[PAYMENT_PERIODS]);
|
||||
|
||||
button = lookup_widget (fcd->dialog, "interest_rate_clear_button");
|
||||
button = glade_xml_get_widget (xml, "interest_rate_clear_button");
|
||||
gtk_signal_connect(GTK_OBJECT(button), "clicked",
|
||||
GTK_SIGNAL_FUNC(fincalc_amount_clear_clicked),
|
||||
fcd->amounts[INTEREST_RATE]);
|
||||
|
||||
button = lookup_widget (fcd->dialog, "present_value_clear_button");
|
||||
button = glade_xml_get_widget (xml, "present_value_clear_button");
|
||||
gtk_signal_connect(GTK_OBJECT(button), "clicked",
|
||||
GTK_SIGNAL_FUNC(fincalc_amount_clear_clicked),
|
||||
fcd->amounts[PRESENT_VALUE]);
|
||||
|
||||
button = lookup_widget (fcd->dialog, "periodic_payment_clear_button");
|
||||
button = glade_xml_get_widget (xml, "periodic_payment_clear_button");
|
||||
gtk_signal_connect(GTK_OBJECT(button), "clicked",
|
||||
GTK_SIGNAL_FUNC(fincalc_amount_clear_clicked),
|
||||
fcd->amounts[PERIODIC_PAYMENT]);
|
||||
|
||||
button = lookup_widget (fcd->dialog, "future_value_clear_button");
|
||||
button = glade_xml_get_widget (xml, "future_value_clear_button");
|
||||
gtk_signal_connect(GTK_OBJECT(button), "clicked",
|
||||
GTK_SIGNAL_FUNC(fincalc_amount_clear_clicked),
|
||||
fcd->amounts[FUTURE_VALUE]);
|
||||
|
||||
menu = lookup_widget (fcd->dialog, "compounding_menu");
|
||||
menu = glade_xml_get_widget (xml, "compounding_menu");
|
||||
fcd->compounding_menu = menu;
|
||||
gnc_option_menu_init(menu);
|
||||
menu = gtk_option_menu_get_menu(GTK_OPTION_MENU(menu));
|
||||
gtk_container_forall(GTK_CONTAINER(menu), connect_fincalc_menu_item, fcd);
|
||||
|
||||
menu = lookup_widget (fcd->dialog, "payment_menu");
|
||||
menu = glade_xml_get_widget (xml, "payment_menu");
|
||||
fcd->payment_menu = menu;
|
||||
gnc_option_menu_init(menu);
|
||||
menu = gtk_option_menu_get_menu(GTK_OPTION_MENU(menu));
|
||||
gtk_container_forall(GTK_CONTAINER(menu), connect_fincalc_menu_item, fcd);
|
||||
|
||||
button = lookup_widget (fcd->dialog, "period_payment_radio");
|
||||
button = glade_xml_get_widget (xml, "period_payment_radio");
|
||||
fcd->end_of_period_radio = button;
|
||||
gtk_signal_connect(GTK_OBJECT(button), "toggled",
|
||||
GTK_SIGNAL_FUNC(fincalc_radio_toggled), fcd);
|
||||
|
||||
button = lookup_widget (fcd->dialog, "discrete_compounding_radio");
|
||||
button = glade_xml_get_widget (xml, "discrete_compounding_radio");
|
||||
fcd->discrete_compounding_radio = button;
|
||||
gtk_signal_connect(GTK_OBJECT(button), "toggled",
|
||||
GTK_SIGNAL_FUNC(fincalc_compounding_radio_toggled), fcd);
|
||||
|
||||
button = lookup_widget (fcd->dialog, "close_button");
|
||||
button = glade_xml_get_widget (xml, "close_button");
|
||||
gtk_signal_connect(GTK_OBJECT(button), "clicked",
|
||||
GTK_SIGNAL_FUNC(close_button_clicked), fcd);
|
||||
fcd->payment_total_label = lookup_widget (fcd->dialog,
|
||||
"payment_total_label");
|
||||
fcd->payment_total_label = glade_xml_get_widget (xml, "payment_total_label");
|
||||
|
||||
button = lookup_widget (fcd->dialog, "schedule_button");
|
||||
button = glade_xml_get_widget (xml, "schedule_button");
|
||||
gtk_widget_hide (button);
|
||||
|
||||
init_fi(fcd);
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -6,7 +6,3 @@ GtkWidget* create_QIF_Import_Account_Picker (void);
|
||||
GtkWidget* create_Print_Check_Dialog (void);
|
||||
GtkWidget* create_Find_Transactions (void);
|
||||
GtkWidget* create_Budget_Dialog (void);
|
||||
GtkWidget* create_Financial_Calculator_Dialog (void);
|
||||
GtkWidget* create_Amortization_Schedule_Dialog (void);
|
||||
GtkWidget* create_Commodity_Selector_Dialog (void);
|
||||
GtkWidget* create_Commodity_Dialog (void);
|
||||
|
@ -2,6 +2,7 @@ gladedir = $(GNC_GLADE_DIR)
|
||||
glade_DATA = \
|
||||
account.glade \
|
||||
commodity.glade \
|
||||
fincalc.glade \
|
||||
help.glade \
|
||||
price.glade \
|
||||
progress.glade \
|
||||
@ -16,6 +17,7 @@ glade_DATA = \
|
||||
STRING_FILES = \
|
||||
account_strings.c \
|
||||
commodity_strings.c \
|
||||
fincalc_strings.c \
|
||||
help_strings.c \
|
||||
price_strings.c \
|
||||
progress_strings.c \
|
||||
|
@ -18,6 +18,561 @@
|
||||
<translatable_strings_file>commodity_strings.c</translatable_strings_file>
|
||||
</project>
|
||||
|
||||
<widget>
|
||||
<class>GnomeDialog</class>
|
||||
<name>Commodity Selector Dialog</name>
|
||||
<title>Select currency/security </title>
|
||||
<type>GTK_WINDOW_TOPLEVEL</type>
|
||||
<position>GTK_WIN_POS_NONE</position>
|
||||
<modal>False</modal>
|
||||
<allow_shrink>True</allow_shrink>
|
||||
<allow_grow>True</allow_grow>
|
||||
<auto_shrink>False</auto_shrink>
|
||||
<auto_close>False</auto_close>
|
||||
<hide_on_close>False</hide_on_close>
|
||||
|
||||
<widget>
|
||||
<class>GtkVBox</class>
|
||||
<child_name>GnomeDialog:vbox</child_name>
|
||||
<name>dialog-vbox12</name>
|
||||
<homogeneous>False</homogeneous>
|
||||
<spacing>8</spacing>
|
||||
<child>
|
||||
<padding>4</padding>
|
||||
<expand>True</expand>
|
||||
<fill>True</fill>
|
||||
</child>
|
||||
|
||||
<widget>
|
||||
<class>GtkHButtonBox</class>
|
||||
<child_name>GnomeDialog:action_area</child_name>
|
||||
<name>dialog-action_area12</name>
|
||||
<layout_style>GTK_BUTTONBOX_SPREAD</layout_style>
|
||||
<spacing>8</spacing>
|
||||
<child_min_width>85</child_min_width>
|
||||
<child_min_height>27</child_min_height>
|
||||
<child_ipad_x>7</child_ipad_x>
|
||||
<child_ipad_y>0</child_ipad_y>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>False</expand>
|
||||
<fill>True</fill>
|
||||
<pack>GTK_PACK_END</pack>
|
||||
</child>
|
||||
|
||||
<widget>
|
||||
<class>GtkButton</class>
|
||||
<name>button63</name>
|
||||
<can_default>True</can_default>
|
||||
<can_focus>True</can_focus>
|
||||
<signal>
|
||||
<name>clicked</name>
|
||||
<handler>gnc_ui_select_commodity_ok_cb</handler>
|
||||
<data>Commodity_Selector_Dialog</data>
|
||||
<last_modification_time>Tue, 08 Aug 2000 16:55:03 GMT</last_modification_time>
|
||||
</signal>
|
||||
<stock_button>GNOME_STOCK_BUTTON_OK</stock_button>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkButton</class>
|
||||
<name>button64</name>
|
||||
<can_default>True</can_default>
|
||||
<can_focus>True</can_focus>
|
||||
<signal>
|
||||
<name>clicked</name>
|
||||
<handler>gnc_ui_select_commodity_new_cb</handler>
|
||||
<data>Commodity_Selector_Dialog</data>
|
||||
<last_modification_time>Tue, 08 Aug 2000 16:55:32 GMT</last_modification_time>
|
||||
</signal>
|
||||
<label>New...</label>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkButton</class>
|
||||
<name>button65</name>
|
||||
<can_default>True</can_default>
|
||||
<can_focus>True</can_focus>
|
||||
<signal>
|
||||
<name>clicked</name>
|
||||
<handler>gnc_ui_select_commodity_cancel_cb</handler>
|
||||
<data>Commodity_Selector_Dialog</data>
|
||||
<last_modification_time>Tue, 08 Aug 2000 16:56:01 GMT</last_modification_time>
|
||||
</signal>
|
||||
<stock_button>GNOME_STOCK_BUTTON_CANCEL</stock_button>
|
||||
</widget>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkHBox</class>
|
||||
<name>hbox62</name>
|
||||
<border_width>5</border_width>
|
||||
<homogeneous>False</homogeneous>
|
||||
<spacing>0</spacing>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>True</expand>
|
||||
<fill>True</fill>
|
||||
</child>
|
||||
|
||||
<widget>
|
||||
<class>GtkVBox</class>
|
||||
<name>vbox75</name>
|
||||
<homogeneous>True</homogeneous>
|
||||
<spacing>0</spacing>
|
||||
<child>
|
||||
<padding>4</padding>
|
||||
<expand>True</expand>
|
||||
<fill>True</fill>
|
||||
</child>
|
||||
|
||||
<widget>
|
||||
<class>GtkLabel</class>
|
||||
<name>label807</name>
|
||||
<label>Type:</label>
|
||||
<justify>GTK_JUSTIFY_CENTER</justify>
|
||||
<wrap>False</wrap>
|
||||
<xalign>1</xalign>
|
||||
<yalign>0.5</yalign>
|
||||
<xpad>0</xpad>
|
||||
<ypad>0</ypad>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkLabel</class>
|
||||
<name>label808</name>
|
||||
<label>Currency/security:</label>
|
||||
<justify>GTK_JUSTIFY_CENTER</justify>
|
||||
<wrap>False</wrap>
|
||||
<xalign>1</xalign>
|
||||
<yalign>0.5</yalign>
|
||||
<xpad>0</xpad>
|
||||
<ypad>0</ypad>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
</widget>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkVBox</class>
|
||||
<name>vbox76</name>
|
||||
<homogeneous>True</homogeneous>
|
||||
<spacing>0</spacing>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>True</expand>
|
||||
<fill>True</fill>
|
||||
</child>
|
||||
|
||||
<widget>
|
||||
<class>GtkCombo</class>
|
||||
<name>namespace_combo</name>
|
||||
<value_in_list>True</value_in_list>
|
||||
<ok_if_empty>False</ok_if_empty>
|
||||
<case_sensitive>False</case_sensitive>
|
||||
<use_arrows>True</use_arrows>
|
||||
<use_arrows_always>False</use_arrows_always>
|
||||
<items></items>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
|
||||
<widget>
|
||||
<class>GtkEntry</class>
|
||||
<child_name>GtkCombo:entry</child_name>
|
||||
<name>namespace_entry</name>
|
||||
<can_focus>True</can_focus>
|
||||
<signal>
|
||||
<name>changed</name>
|
||||
<handler>gnc_ui_select_commodity_namespace_changed_cb</handler>
|
||||
<data>Commodity_Selector_Dialog</data>
|
||||
<last_modification_time>Thu, 10 Aug 2000 18:02:04 GMT</last_modification_time>
|
||||
</signal>
|
||||
<editable>False</editable>
|
||||
<text_visible>True</text_visible>
|
||||
<text_max_length>0</text_max_length>
|
||||
<text></text>
|
||||
</widget>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkCombo</class>
|
||||
<name>commodity_combo</name>
|
||||
<value_in_list>True</value_in_list>
|
||||
<ok_if_empty>False</ok_if_empty>
|
||||
<case_sensitive>False</case_sensitive>
|
||||
<use_arrows>True</use_arrows>
|
||||
<use_arrows_always>False</use_arrows_always>
|
||||
<items></items>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
|
||||
<widget>
|
||||
<class>GtkEntry</class>
|
||||
<child_name>GtkCombo:entry</child_name>
|
||||
<name>commodity_entry</name>
|
||||
<can_focus>True</can_focus>
|
||||
<editable>False</editable>
|
||||
<text_visible>True</text_visible>
|
||||
<text_max_length>0</text_max_length>
|
||||
<text></text>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GnomeDialog</class>
|
||||
<name>Commodity Dialog</name>
|
||||
<title>New Currency/Security</title>
|
||||
<type>GTK_WINDOW_TOPLEVEL</type>
|
||||
<position>GTK_WIN_POS_NONE</position>
|
||||
<modal>False</modal>
|
||||
<allow_shrink>True</allow_shrink>
|
||||
<allow_grow>True</allow_grow>
|
||||
<auto_shrink>False</auto_shrink>
|
||||
<auto_close>False</auto_close>
|
||||
<hide_on_close>False</hide_on_close>
|
||||
|
||||
<widget>
|
||||
<class>GtkVBox</class>
|
||||
<child_name>GnomeDialog:vbox</child_name>
|
||||
<name>dialog-vbox13</name>
|
||||
<homogeneous>False</homogeneous>
|
||||
<spacing>8</spacing>
|
||||
<child>
|
||||
<padding>4</padding>
|
||||
<expand>True</expand>
|
||||
<fill>True</fill>
|
||||
</child>
|
||||
|
||||
<widget>
|
||||
<class>GtkHButtonBox</class>
|
||||
<child_name>GnomeDialog:action_area</child_name>
|
||||
<name>dialog-action_area13</name>
|
||||
<layout_style>GTK_BUTTONBOX_SPREAD</layout_style>
|
||||
<spacing>8</spacing>
|
||||
<child_min_width>85</child_min_width>
|
||||
<child_min_height>27</child_min_height>
|
||||
<child_ipad_x>7</child_ipad_x>
|
||||
<child_ipad_y>0</child_ipad_y>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>False</expand>
|
||||
<fill>True</fill>
|
||||
<pack>GTK_PACK_END</pack>
|
||||
</child>
|
||||
|
||||
<widget>
|
||||
<class>GtkButton</class>
|
||||
<name>button66</name>
|
||||
<can_default>True</can_default>
|
||||
<can_focus>True</can_focus>
|
||||
<signal>
|
||||
<name>clicked</name>
|
||||
<handler>gnc_ui_commodity_ok_cb</handler>
|
||||
<data>Commodity_Dialog</data>
|
||||
<last_modification_time>Wed, 11 Apr 2001 09:03:12 GMT</last_modification_time>
|
||||
</signal>
|
||||
<stock_button>GNOME_STOCK_BUTTON_OK</stock_button>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkButton</class>
|
||||
<name>button67</name>
|
||||
<can_default>True</can_default>
|
||||
<can_focus>True</can_focus>
|
||||
<signal>
|
||||
<name>clicked</name>
|
||||
<handler>gnc_ui_commodity_cancel_cb</handler>
|
||||
<data>Commodity_Dialog</data>
|
||||
<last_modification_time>Wed, 11 Apr 2001 09:03:18 GMT</last_modification_time>
|
||||
</signal>
|
||||
<stock_button>GNOME_STOCK_BUTTON_CANCEL</stock_button>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkButton</class>
|
||||
<name>button68</name>
|
||||
<can_default>True</can_default>
|
||||
<can_focus>True</can_focus>
|
||||
<signal>
|
||||
<name>clicked</name>
|
||||
<handler>gnc_ui_commodity_help_cb</handler>
|
||||
<data>Commodity_Dialog</data>
|
||||
<last_modification_time>Wed, 11 Apr 2001 09:03:24 GMT</last_modification_time>
|
||||
</signal>
|
||||
<stock_button>GNOME_STOCK_BUTTON_HELP</stock_button>
|
||||
</widget>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkHBox</class>
|
||||
<name>hbox63</name>
|
||||
<homogeneous>False</homogeneous>
|
||||
<spacing>0</spacing>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>True</expand>
|
||||
<fill>True</fill>
|
||||
</child>
|
||||
|
||||
<widget>
|
||||
<class>GtkVBox</class>
|
||||
<name>vbox77</name>
|
||||
<homogeneous>True</homogeneous>
|
||||
<spacing>0</spacing>
|
||||
<child>
|
||||
<padding>2</padding>
|
||||
<expand>True</expand>
|
||||
<fill>True</fill>
|
||||
</child>
|
||||
|
||||
<widget>
|
||||
<class>GtkLabel</class>
|
||||
<name>label809</name>
|
||||
<label>Full name:</label>
|
||||
<justify>GTK_JUSTIFY_CENTER</justify>
|
||||
<wrap>False</wrap>
|
||||
<xalign>1</xalign>
|
||||
<yalign>0.5</yalign>
|
||||
<xpad>0</xpad>
|
||||
<ypad>0</ypad>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkLabel</class>
|
||||
<name>label810</name>
|
||||
<label>Symbol/abbreviation:</label>
|
||||
<justify>GTK_JUSTIFY_CENTER</justify>
|
||||
<wrap>False</wrap>
|
||||
<xalign>1</xalign>
|
||||
<yalign>0.5</yalign>
|
||||
<xpad>0</xpad>
|
||||
<ypad>0</ypad>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkLabel</class>
|
||||
<name>label812</name>
|
||||
<label>Type:</label>
|
||||
<justify>GTK_JUSTIFY_CENTER</justify>
|
||||
<wrap>False</wrap>
|
||||
<xalign>1</xalign>
|
||||
<yalign>0.5</yalign>
|
||||
<xpad>0</xpad>
|
||||
<ypad>0</ypad>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkLabel</class>
|
||||
<name>label811</name>
|
||||
<label>CUSIP or other code:</label>
|
||||
<justify>GTK_JUSTIFY_CENTER</justify>
|
||||
<wrap>False</wrap>
|
||||
<xalign>1</xalign>
|
||||
<yalign>0.5</yalign>
|
||||
<xpad>0</xpad>
|
||||
<ypad>0</ypad>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkLabel</class>
|
||||
<name>label813</name>
|
||||
<label>Fraction traded:</label>
|
||||
<justify>GTK_JUSTIFY_CENTER</justify>
|
||||
<wrap>False</wrap>
|
||||
<xalign>1</xalign>
|
||||
<yalign>0.5</yalign>
|
||||
<xpad>0</xpad>
|
||||
<ypad>0</ypad>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
</widget>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkVBox</class>
|
||||
<name>vbox78</name>
|
||||
<homogeneous>True</homogeneous>
|
||||
<spacing>0</spacing>
|
||||
<child>
|
||||
<padding>2</padding>
|
||||
<expand>True</expand>
|
||||
<fill>True</fill>
|
||||
</child>
|
||||
|
||||
<widget>
|
||||
<class>GtkEntry</class>
|
||||
<name>fullname_entry</name>
|
||||
<tooltip>Enter the full name of the commodity. Example: US Dollars</tooltip>
|
||||
<can_focus>True</can_focus>
|
||||
<editable>True</editable>
|
||||
<text_visible>True</text_visible>
|
||||
<text_max_length>0</text_max_length>
|
||||
<text></text>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkEntry</class>
|
||||
<name>mnemonic_entry</name>
|
||||
<tooltip>Enter the ticker symbol or currency code for the commodity. Example: USD</tooltip>
|
||||
<can_focus>True</can_focus>
|
||||
<editable>True</editable>
|
||||
<text_visible>True</text_visible>
|
||||
<text_max_length>0</text_max_length>
|
||||
<text></text>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkCombo</class>
|
||||
<name>namespace_combo</name>
|
||||
<value_in_list>False</value_in_list>
|
||||
<ok_if_empty>True</ok_if_empty>
|
||||
<case_sensitive>False</case_sensitive>
|
||||
<use_arrows>True</use_arrows>
|
||||
<use_arrows_always>False</use_arrows_always>
|
||||
<items></items>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
|
||||
<widget>
|
||||
<class>GtkEntry</class>
|
||||
<child_name>GtkCombo:entry</child_name>
|
||||
<name>namespace_entry</name>
|
||||
<tooltip>Enter the type of commodity. For stocks, this is often an exchange on which the stock is traded. You can choose an existing type from the list or enter a new type with the keyboard.</tooltip>
|
||||
<can_focus>True</can_focus>
|
||||
<editable>True</editable>
|
||||
<text_visible>True</text_visible>
|
||||
<text_max_length>0</text_max_length>
|
||||
<text></text>
|
||||
</widget>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkEntry</class>
|
||||
<name>code_entry</name>
|
||||
<tooltip>Enter a unique code used to identify the commodity. Or, you may safely leave this field blank.</tooltip>
|
||||
<can_focus>True</can_focus>
|
||||
<editable>True</editable>
|
||||
<text_visible>True</text_visible>
|
||||
<text_max_length>0</text_max_length>
|
||||
<text></text>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkHBox</class>
|
||||
<name>hbox64</name>
|
||||
<homogeneous>False</homogeneous>
|
||||
<spacing>0</spacing>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
|
||||
<widget>
|
||||
<class>GtkLabel</class>
|
||||
<name>label814</name>
|
||||
<label>1 /</label>
|
||||
<justify>GTK_JUSTIFY_CENTER</justify>
|
||||
<wrap>False</wrap>
|
||||
<xalign>0.5</xalign>
|
||||
<yalign>0.5</yalign>
|
||||
<xpad>0</xpad>
|
||||
<ypad>0</ypad>
|
||||
<child>
|
||||
<padding>4</padding>
|
||||
<expand>False</expand>
|
||||
<fill>False</fill>
|
||||
</child>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkSpinButton</class>
|
||||
<name>fraction_spinbutton</name>
|
||||
<tooltip>Enter the smallest fraction of the commodity which can be traded. For stocks which can only be traded in whole numbers, enter 1.</tooltip>
|
||||
<can_focus>True</can_focus>
|
||||
<climb_rate>1</climb_rate>
|
||||
<digits>0</digits>
|
||||
<numeric>False</numeric>
|
||||
<update_policy>GTK_UPDATE_ALWAYS</update_policy>
|
||||
<snap>False</snap>
|
||||
<wrap>False</wrap>
|
||||
<value>10000</value>
|
||||
<lower>1</lower>
|
||||
<upper>1e+08</upper>
|
||||
<step>1</step>
|
||||
<page>100</page>
|
||||
<page_size>100</page_size>
|
||||
<child>
|
||||
<padding>0</padding>
|
||||
<expand>True</expand>
|
||||
<fill>True</fill>
|
||||
</child>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
|
||||
<widget>
|
||||
<class>GtkWindow</class>
|
||||
<name>New Commodity Format Druid</name>
|
||||
|
@ -4,6 +4,22 @@
|
||||
* DO NOT compile it as part of your application.
|
||||
*/
|
||||
|
||||
gchar *s = N_("Select currency/security ");
|
||||
gchar *s = N_("New...");
|
||||
gchar *s = N_("Type:");
|
||||
gchar *s = N_("Currency/security:");
|
||||
gchar *s = N_("New Currency/Security");
|
||||
gchar *s = N_("Full name:");
|
||||
gchar *s = N_("Symbol/abbreviation:");
|
||||
gchar *s = N_("Type:");
|
||||
gchar *s = N_("CUSIP or other code:");
|
||||
gchar *s = N_("Fraction traded:");
|
||||
gchar *s = N_("Enter the full name of the commodity. Example: US Dollars");
|
||||
gchar *s = N_("Enter the ticker symbol or currency code for the commodity. Example: USD");
|
||||
gchar *s = N_("Enter the type of commodity. For stocks, this is often an exchange on which the stock is traded. You can choose an existing type from the list or enter a new type with the keyboard.");
|
||||
gchar *s = N_("Enter a unique code used to identify the commodity. Or, you may safely leave this field blank.");
|
||||
gchar *s = N_("1 /");
|
||||
gchar *s = N_("Enter the smallest fraction of the commodity which can be traded. For stocks which can only be traded in whole numbers, enter 1.");
|
||||
gchar *s = N_("Import currency and stock information");
|
||||
gchar *s = N_("Import currency and stock information ");
|
||||
gchar *s = N_("The file you are loading is from an older version of GnuCash. \n"
|
||||
|
1058
src/gnome/glade/fincalc.glade
Normal file
1058
src/gnome/glade/fincalc.glade
Normal file
File diff suppressed because it is too large
Load Diff
89
src/gnome/glade/fincalc_strings.c
Normal file
89
src/gnome/glade/fincalc_strings.c
Normal file
@ -0,0 +1,89 @@
|
||||
/*
|
||||
* Translatable strings file generated by Glade.
|
||||
* Add this file to your project's POTFILES.in.
|
||||
* DO NOT compile it as part of your application.
|
||||
*/
|
||||
|
||||
gchar *s = N_("Financial Calculator");
|
||||
gchar *s = N_("Schedule");
|
||||
gchar *s = N_("Payment Periods");
|
||||
gchar *s = N_("Clear the entry");
|
||||
gchar *s = N_("Clear");
|
||||
gchar *s = N_("Calculate");
|
||||
gchar *s = N_("Interest Rate");
|
||||
gchar *s = N_("Clear the entry");
|
||||
gchar *s = N_("Clear");
|
||||
gchar *s = N_("Calculate");
|
||||
gchar *s = N_("Present Value");
|
||||
gchar *s = N_("Clear the entry");
|
||||
gchar *s = N_("Clear");
|
||||
gchar *s = N_("Calculate");
|
||||
gchar *s = N_("Periodic Payment");
|
||||
gchar *s = N_("Clear the entry");
|
||||
gchar *s = N_("Clear");
|
||||
gchar *s = N_("Calculate");
|
||||
gchar *s = N_("Future Value");
|
||||
gchar *s = N_("Clear the entry");
|
||||
gchar *s = N_("Clear");
|
||||
gchar *s = N_("Calculate");
|
||||
gchar *s = N_("Compounding:");
|
||||
gchar *s = N_("Payments:");
|
||||
gchar *s = N_("Annual\n"
|
||||
"Semi-annual\n"
|
||||
"Tri-annual\n"
|
||||
"Quarterly\n"
|
||||
"Bi-monthly\n"
|
||||
"Monthly\n"
|
||||
"Semi-monthly\n"
|
||||
"Bi-weekly\n"
|
||||
"Weekly\n"
|
||||
"Daily (360)\n"
|
||||
"Daily (365)\n"
|
||||
"");
|
||||
gchar *s = N_("Annual\n"
|
||||
"Semi-annual\n"
|
||||
"Tri-annual\n"
|
||||
"Quarterly\n"
|
||||
"Bi-monthly\n"
|
||||
"Monthly\n"
|
||||
"Semi-monthly\n"
|
||||
"Bi-weekly\n"
|
||||
"Weekly\n"
|
||||
"Daily (360)\n"
|
||||
"Daily (365)\n"
|
||||
"");
|
||||
gchar *s = N_("End of Period Payments");
|
||||
gchar *s = N_("Beginning of Period Payments");
|
||||
gchar *s = N_("Discrete Compounding");
|
||||
gchar *s = N_("Continuous Compounding");
|
||||
gchar *s = N_("Payment Total:");
|
||||
gchar *s = N_("total");
|
||||
gchar *s = N_("Account Information");
|
||||
gchar *s = N_("Effective Date:");
|
||||
gchar *s = N_("Initial Payment:");
|
||||
gchar *s = N_("Compounding:");
|
||||
gchar *s = N_("Payments:");
|
||||
gchar *s = N_("Annual\n"
|
||||
"Semi-annual\n"
|
||||
"Tri-annual\n"
|
||||
"Quarterly\n"
|
||||
"Bi-monthly\n"
|
||||
"Monthly\n"
|
||||
"Semi-monthly\n"
|
||||
"Bi-weekly\n"
|
||||
"Weekly\n"
|
||||
"Daily (360)\n"
|
||||
"Daily (365)\n"
|
||||
"");
|
||||
gchar *s = N_("Annual\n"
|
||||
"Semi-annual\n"
|
||||
"Tri-annual\n"
|
||||
"Quarterly\n"
|
||||
"Bi-monthly\n"
|
||||
"Monthly\n"
|
||||
"Semi-monthly\n"
|
||||
"Bi-weekly\n"
|
||||
"Weekly\n"
|
||||
"Daily (360)\n"
|
||||
"Daily (365)\n"
|
||||
"");
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user