From dfa31ff6e46150cd5f5c6e9f5b94682a90c72e45 Mon Sep 17 00:00:00 2001 From: Phil Longstaff Date: Wed, 29 Apr 2009 00:25:33 +0000 Subject: [PATCH] =?UTF-8?q?Apply=20patch=20by=20Herbert=20Thoma:=20Bug=205?= =?UTF-8?q?80281=20=E2=80=93=20Entering=20multiple=20prices=20with=20price?= =?UTF-8?q?=20editor=20is=20tedious?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Expands the price editor dialog to allow a series of prices to be edited more easily. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18062 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/gnome/dialog-price-editor.c | 147 ++- src/gnome/glade/price.glade | 1639 +++++++++++++------------------ 2 files changed, 784 insertions(+), 1002 deletions(-) diff --git a/src/gnome/dialog-price-editor.c b/src/gnome/dialog-price-editor.c index 3436d45732..d1754ae0ba 100644 --- a/src/gnome/dialog-price-editor.c +++ b/src/gnome/dialog-price-editor.c @@ -3,6 +3,7 @@ * Copyright (C) 2001 Gnumatic, Inc. * * Author: Dave Peticolas * * Copyright (c) 2006 David Hampton * + * Copyright (c) 2009 Herbert Thoma * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License as * @@ -29,8 +30,10 @@ #include #include "dialog-utils.h" +#include "gnc-gtk-utils.h" #include "gnc-amount-edit.h" #include "gnc-commodity-edit.h" +#include "dialog-commodity.h" #include "gnc-general-select.h" #include "gnc-component-manager.h" #include "gnc-currency-edit.h" @@ -58,13 +61,18 @@ typedef struct QofBook *book; GNCPriceDB *price_db; - GtkWidget * commodity_edit; + GtkWidget * namespace_cbe; + GtkWidget * commodity_cbe; GtkWidget * currency_edit; GtkWidget * date_edit; GtkWidget * source_entry; GtkWidget * type_combobox; GtkWidget * price_edit; + GtkWidget * cancel_button; + GtkWidget * apply_button; + GtkWidget * ok_button; + GNCPrice *price; gboolean changed; gboolean new; @@ -73,12 +81,16 @@ typedef struct void pedit_dialog_response_cb (GtkDialog *dialog, gint response, gpointer data); void pedit_data_changed_cb (GtkWidget *w, gpointer data); +void pedit_commodity_ns_changed_cb (GtkComboBoxEntry *cbe, gpointer data); +void pedit_commodity_changed_cb (GtkComboBoxEntry *cbe, gpointer data); static void gnc_prices_set_changed (PriceEditDialog *pedit_dialog, gboolean changed) { pedit_dialog->changed = changed; + + gtk_widget_set_sensitive (pedit_dialog->apply_button, changed); } static int @@ -115,24 +127,33 @@ type_index_to_string (int index) static void price_to_gui (PriceEditDialog *pedit_dialog) { - gnc_commodity *commodity; - gnc_commodity *currency; + gnc_commodity *commodity = NULL; + gnc_commodity *currency = NULL; + const gchar *namespace, *fullname; const char *source; const char *type; gnc_numeric value; Timespec date; - commodity = gnc_price_get_commodity (pedit_dialog->price); - if (commodity) - { + if (pedit_dialog->price) { + commodity = gnc_price_get_commodity (pedit_dialog->price); + } + + if (commodity) { + namespace = gnc_commodity_get_namespace(commodity); + fullname = gnc_commodity_get_printname(commodity); + gnc_ui_update_namespace_picker(pedit_dialog->namespace_cbe, + namespace, DIAG_COMM_NON_CURRENCY); + gnc_ui_update_commodity_picker(pedit_dialog->commodity_cbe, + namespace, fullname); + currency = gnc_price_get_currency (pedit_dialog->price); date = gnc_price_get_time (pedit_dialog->price); source = gnc_price_get_source (pedit_dialog->price); type = gnc_price_get_typestr (pedit_dialog->price); value = gnc_price_get_value (pedit_dialog->price); } - else - { + else { currency = gnc_default_currency (); date.tv_sec = time (NULL); date.tv_nsec = 0; @@ -141,13 +162,11 @@ price_to_gui (PriceEditDialog *pedit_dialog) value = gnc_numeric_zero (); } - if (commodity) - gnc_general_select_set_selected - (GNC_GENERAL_SELECT (pedit_dialog->commodity_edit), commodity); - if (currency) + if (currency) { gnc_currency_edit_set_currency (GNC_CURRENCY_EDIT (pedit_dialog->currency_edit), currency); + } gnc_date_edit_set_time (GNC_DATE_EDIT (pedit_dialog->date_edit), date.tv_sec); @@ -155,6 +174,7 @@ price_to_gui (PriceEditDialog *pedit_dialog) gtk_combo_box_set_active (GTK_COMBO_BOX(pedit_dialog->type_combobox), type_string_to_index (type)); + gnc_amount_edit_set_amount (GNC_AMOUNT_EDIT (pedit_dialog->price_edit), value); } @@ -163,6 +183,7 @@ gui_to_price (PriceEditDialog *pedit_dialog) { gnc_commodity *commodity; gnc_commodity *currency; + gchar *namespace, *fullname; const char *source; const char *type; gnc_numeric value; @@ -171,8 +192,9 @@ gui_to_price (PriceEditDialog *pedit_dialog) if (!pedit_dialog->price) return NULL; - commodity = gnc_general_select_get_selected - (GNC_GENERAL_SELECT (pedit_dialog->commodity_edit)); + namespace = gnc_ui_namespace_picker_ns (pedit_dialog->namespace_cbe); + fullname = gtk_combo_box_get_active_text(GTK_COMBO_BOX(pedit_dialog->commodity_cbe)); + commodity = gnc_commodity_table_find_full(gnc_get_current_commodities(), namespace, fullname); if (!commodity) return _("You must select a commodity."); @@ -204,6 +226,9 @@ gui_to_price (PriceEditDialog *pedit_dialog) gnc_price_set_value (pedit_dialog->price, value); gnc_price_commit_edit (pedit_dialog->price); + g_free(namespace); + g_free(fullname); + return NULL; } @@ -229,39 +254,66 @@ void pedit_dialog_response_cb (GtkDialog *dialog, gint response, gpointer data) { PriceEditDialog *pedit_dialog = data; + GNCPrice *new_price = NULL; const char *error_str; - if (response == GTK_RESPONSE_OK) { + if ((response == GTK_RESPONSE_OK) || (response == GTK_RESPONSE_APPLY)) { error_str = gui_to_price (pedit_dialog); if (error_str) { gnc_warning_dialog (pedit_dialog->dialog, "%s", error_str); return; } - pedit_dialog->changed = FALSE; - if (TRUE == pedit_dialog->new) + gnc_prices_set_changed (pedit_dialog, FALSE); + if (TRUE == pedit_dialog->new) { gnc_pricedb_add_price (pedit_dialog->price_db, pedit_dialog->price); - + } + gnc_gui_refresh_all (); } - gnc_save_window_size(GCONF_SECTION, GTK_WINDOW(pedit_dialog->dialog)); - gtk_widget_destroy (GTK_WIDGET (pedit_dialog->dialog)); - pedit_dialog_destroy_cb (NULL, pedit_dialog); + if(response == GTK_RESPONSE_APPLY) { + new_price = gnc_price_clone (pedit_dialog->price, pedit_dialog->book); + pedit_dialog->new = TRUE; + + gnc_price_unref (pedit_dialog->price); + pedit_dialog->price = new_price; + } + else { + gnc_save_window_size(GCONF_SECTION, GTK_WINDOW(pedit_dialog->dialog)); + gtk_widget_destroy (GTK_WIDGET (pedit_dialog->dialog)); + pedit_dialog_destroy_cb (NULL, pedit_dialog); + } } -static void -commodity_changed_cb (GNCGeneralSelect *gsl, gpointer data) +void +pedit_commodity_ns_changed_cb (GtkComboBoxEntry *cbe, gpointer data) +{ + PriceEditDialog *pedit_dialog = data; + gchar *namespace; + + gnc_prices_set_changed (pedit_dialog, TRUE); + + namespace = gnc_ui_namespace_picker_ns (pedit_dialog->namespace_cbe); + gnc_ui_update_commodity_picker (pedit_dialog->commodity_cbe, namespace, NULL); + + g_free(namespace); +} + +void +pedit_commodity_changed_cb (GtkComboBoxEntry *cbe, gpointer data) { gnc_commodity *commodity = NULL; gnc_commodity *currency = NULL; + gchar *namespace, *fullname; GList *price_list; PriceEditDialog *pedit_dialog = data; gnc_prices_set_changed (pedit_dialog, TRUE); - commodity = gnc_general_select_get_selected - (GNC_GENERAL_SELECT (pedit_dialog->commodity_edit)); + namespace = gnc_ui_namespace_picker_ns (pedit_dialog->namespace_cbe); + fullname = gtk_combo_box_get_active_text(GTK_COMBO_BOX(pedit_dialog->commodity_cbe)); + commodity = gnc_commodity_table_find_full(gnc_get_current_commodities(), namespace, fullname); if(commodity) { @@ -283,6 +335,9 @@ commodity_changed_cb (GNCGeneralSelect *gsl, gpointer data) (GNC_CURRENCY_EDIT (pedit_dialog->currency_edit), gnc_default_currency()); } } + + g_free(namespace); + g_free(fullname); } void @@ -305,6 +360,7 @@ gnc_price_pedit_dialog_create (GtkWidget *parent, GtkWidget *box; GtkWidget *w; GtkWidget *label; + gchar *namespace; xml = gnc_glade_xml_new ("price.glade", "Price Dialog"); @@ -319,19 +375,19 @@ gnc_price_pedit_dialog_create (GtkWidget *parent, if (parent != NULL) gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (parent)); - box = glade_xml_get_widget (xml, "commodity_box"); - w = gnc_general_select_new (GNC_GENERAL_SELECT_TYPE_SELECT, - gnc_commodity_edit_get_string, - gnc_commodity_edit_new_select, - NULL); - pedit_dialog->commodity_edit = w; - gtk_box_pack_start (GTK_BOX (box), w, TRUE, TRUE, 0); - gtk_widget_show (w); - g_signal_connect (G_OBJECT (w), "changed", - G_CALLBACK (commodity_changed_cb), pedit_dialog); - label = glade_xml_get_widget (xml, "commodity_label"); - gnc_general_select_make_mnemonic_target (GNC_GENERAL_SELECT(w), label); + w = glade_xml_get_widget (xml, "namespace_cbe"); + pedit_dialog->namespace_cbe = w; + gtk_combo_box_remove_text(GTK_COMBO_BOX(pedit_dialog->namespace_cbe), 0); + gnc_cbe_require_list_item(GTK_COMBO_BOX_ENTRY(pedit_dialog->namespace_cbe)); + gnc_ui_update_namespace_picker(w, NULL, DIAG_COMM_NON_CURRENCY); + w = glade_xml_get_widget (xml, "commodity_cbe"); + pedit_dialog->commodity_cbe = w; + gtk_combo_box_remove_text(GTK_COMBO_BOX(pedit_dialog->commodity_cbe), 0); + gnc_cbe_require_list_item(GTK_COMBO_BOX_ENTRY(pedit_dialog->commodity_cbe)); + namespace = gnc_ui_namespace_picker_ns(pedit_dialog->namespace_cbe); + gnc_ui_update_commodity_picker(pedit_dialog->commodity_cbe, namespace, NULL); + g_free(namespace); box = glade_xml_get_widget (xml, "currency_box"); w = gnc_currency_edit_new (); @@ -381,6 +437,16 @@ gnc_price_pedit_dialog_create (GtkWidget *parent, g_signal_connect (G_OBJECT (entry), "changed", G_CALLBACK (pedit_data_changed_cb), pedit_dialog); + w = glade_xml_get_widget (xml, "cancel_button"); + pedit_dialog->cancel_button = w; + + w = glade_xml_get_widget (xml, "apply_button"); + pedit_dialog->apply_button = w; + gnc_prices_set_changed (pedit_dialog, FALSE); + + w = glade_xml_get_widget (xml, "ok_button"); + pedit_dialog->ok_button = w; + glade_xml_signal_autoconnect_full( xml, gnc_glade_autoconnect_full_func, pedit_dialog ); @@ -420,7 +486,7 @@ show_handler (const char *class, gint component_id, /********************************************************************\ * gnc_price_edit_dialog * * opens up a window to edit price information * - * * + * * * Args: parent - the parent of the window to be created * * Return: nothing * \********************************************************************/ @@ -462,18 +528,19 @@ gnc_price_edit_dialog (GtkWidget * parent, pedit_dialog->price = price; price_to_gui(pedit_dialog); + gnc_prices_set_changed (pedit_dialog, FALSE); component_id = gnc_register_gui_component (DIALOG_PRICE_EDIT_CM_CLASS, refresh_handler, close_handler, pedit_dialog); gnc_gui_component_set_session (component_id, pedit_dialog->session); - gtk_widget_grab_focus (pedit_dialog->commodity_edit); + gtk_widget_grab_focus (pedit_dialog->commodity_cbe); gtk_widget_show (pedit_dialog->dialog); } /********************************************************************\ * gnc_price_edit_by_guid * * opens up a window to edit price information * - * * + * * * Args: parent - the parent of the window to be created * * Return: nothing * \********************************************************************/ diff --git a/src/gnome/glade/price.glade b/src/gnome/glade/price.glade index 519ecbe19d..478c49334c 100644 --- a/src/gnome/glade/price.glade +++ b/src/gnome/glade/price.glade @@ -1,968 +1,683 @@ - - - + + + - - - 6 - Price Editor - GTK_WINDOW_TOPLEVEL - GTK_WIN_POS_NONE - False - 400 - 400 - True - False - True - False - False - GDK_WINDOW_TYPE_HINT_NORMAL - GDK_GRAVITY_NORTH_WEST - True - True - - - - - - - True - False - 6 - - - - True - GTK_BUTTONBOX_END - - - - True - True - True - gtk-close - True - GTK_RELIEF_NORMAL - True - -7 - - - - - 0 - False - True - GTK_PACK_END - - - - - - True - False - 0 - - - - 3 - True - GTK_POLICY_AUTOMATIC - GTK_POLICY_AUTOMATIC - GTK_SHADOW_IN - GTK_CORNER_TOP_LEFT - - - - - - - 0 - True - True - - - - - - 5 - True - GTK_BUTTONBOX_SPREAD - 0 - - - - True - Add a new price. - True - True - gtk-add - True - GTK_RELIEF_NORMAL - True - - - - - - - True - False - Remove the current price - True - True - gtk-remove - True - GTK_RELIEF_NORMAL - True - - - - - - - True - False - Edit the current price. - True - True - GTK_RELIEF_NORMAL - True - - - - - True - 0.5 - 0.5 - 0 - 0 - 0 - 0 - 0 - 0 - - - - True - False - 2 - - - - True - gtk-properties - 4 - 0.5 - 0.5 - 0 - 0 - - - 0 - False - False - - - - - - True - _Edit - True - False - GTK_JUSTIFY_LEFT - False - False - 0.5 - 0.5 - 0 - 0 - PANGO_ELLIPSIZE_NONE - -1 - False - 0 - - - 0 - False - False - - - - - - - - - - - - True - Remove prices older than a user-entered date - True - True - GTK_RELIEF_NORMAL - True - - - - - True - 0.5 - 0.5 - 0 - 0 - 0 - 0 - 0 - 0 - - - - True - False - 2 - - - - True - gtk-remove - 4 - 0.5 - 0.5 - 0 - 0 - - - 0 - False - False - - - - - - True - Remove _Old - True - False - GTK_JUSTIFY_LEFT - False - False - 0.5 - 0.5 - 0 - 0 - PANGO_ELLIPSIZE_NONE - -1 - False - 0 - - - 0 - False - False - - - - - - - - - - - - True - Get new online quotes for stock accounts. - True - True - GTK_RELIEF_NORMAL - True - - - - - True - 0.5 - 0.5 - 0 - 0 - 0 - 0 - 0 - 0 - - - - True - False - 2 - - - - True - gtk-execute - 4 - 0.5 - 0.5 - 0 - 0 - - - 0 - False - False - - - - - - True - Get _Quotes - True - False - GTK_JUSTIFY_LEFT - False - False - 0.5 - 0.5 - 0 - 0 - PANGO_ELLIPSIZE_NONE - -1 - False - 0 - - - 0 - False - False - - - - - - - - - - - 0 - False - False - - - - - 0 - True - True - - - - - - - - 6 - Price Editor - GTK_WINDOW_TOPLEVEL - GTK_WIN_POS_NONE - True - False - False - True - False - False - GDK_WINDOW_TYPE_HINT_DIALOG - GDK_GRAVITY_NORTH_WEST - True - True - - - - - True - False - 6 - - - - True - GTK_BUTTONBOX_END - - - - True - True - True - gtk-cancel - True - GTK_RELIEF_NORMAL - True - -6 - - - - - - True - True - True - True - gtk-ok - True - GTK_RELIEF_NORMAL - True - -5 - - - - - 0 - False - True - GTK_PACK_END - - - - - - True - 6 - 2 - False - 6 - 12 - - - - True - _Security: - True - False - GTK_JUSTIFY_CENTER - False - False - 0 - 0.5 - 0 - 0 - PANGO_ELLIPSIZE_NONE - -1 - False - 0 - - - 0 - 1 - 0 - 1 - fill - - - - - - - True - Cu_rrency: - True - False - GTK_JUSTIFY_CENTER - False - False - 0 - 0.5 - 0 - 0 - PANGO_ELLIPSIZE_NONE - -1 - False - 0 - - - 0 - 1 - 1 - 2 - fill - - - - - - - True - _Date: - True - False - GTK_JUSTIFY_CENTER - False - False - 0 - 0.5 - 0 - 0 - PANGO_ELLIPSIZE_NONE - -1 - False - 0 - - - 0 - 1 - 2 - 3 - fill - - - - - - - S_ource: - True - False - GTK_JUSTIFY_CENTER - False - False - 0 - 0.5 - 0 - 0 - source_entry - PANGO_ELLIPSIZE_NONE - -1 - False - 0 - - - 0 - 1 - 3 - 4 - fill - - - - - - - True - _Type: - True - False - GTK_JUSTIFY_CENTER - False - False - 0 - 0.5 - 0 - 0 - type_combobox - PANGO_ELLIPSIZE_NONE - -1 - False - 0 - - - 0 - 1 - 4 - 5 - fill - - - - - - - True - _Price: - True - False - GTK_JUSTIFY_CENTER - False - False - 0 - 0.5 - 0 - 0 - PANGO_ELLIPSIZE_NONE - -1 - False - 0 - - - 0 - 1 - 5 - 6 - fill - - - - - - - True - False - 0 - - - - - - - 1 - 2 - 0 - 1 - fill - - - - - - True - False - 0 - - - - - - - 1 - 2 - 1 - 2 - fill - fill - - - - - - True - False - 0 - - - - - - - 1 - 2 - 2 - 3 - fill - fill - - - - - - True - False - True - 0 - - True - * - False - - - - 1 - 2 - 3 - 4 - - - - - - - True - False - 0 - - - - - - - 1 - 2 - 5 - 6 - fill - fill - - - - - - True - Bid + + 6 + Price Editor + 400 + 400 + GDK_WINDOW_TYPE_HINT_NORMAL + + + + + + True + 6 + + + True + + + True + False + 3 + GTK_POLICY_AUTOMATIC + GTK_POLICY_AUTOMATIC + GTK_SHADOW_IN + + + + + + + + True + 5 + GTK_BUTTONBOX_SPREAD + + + True + True + True + Add a new price. + gtk-add + True + 0 + + + + + + True + False + True + True + Remove the current price + gtk-remove + True + 0 + + + + 1 + + + + + True + False + True + True + Edit the current price. + 0 + + + + True + 0 + 0 + + + True + 2 + + + True + gtk-properties + + + False + False + + + + + True + _Edit + True + + + False + False + 1 + + + + + + + + + 2 + + + + + True + True + True + Remove prices older than a user-entered date + 0 + + + + True + 0 + 0 + + + True + 2 + + + True + gtk-remove + + + False + False + + + + + True + Remove _Old + True + + + False + False + 1 + + + + + + + + + 3 + + + + + True + True + True + Get new online quotes for stock accounts. + 0 + + + + True + 0 + 0 + + + True + 2 + + + True + gtk-execute + + + False + False + + + + + True + Get _Quotes + True + + + False + False + 1 + + + + + + + + + 4 + + + + + False + False + 1 + + + + + 2 + + + + + True + GTK_BUTTONBOX_END + + + True + True + True + gtk-close + True + -7 + + + + + False + GTK_PACK_END + + + + + + + 6 + Price Editor + False + True + GDK_WINDOW_TYPE_HINT_DIALOG + + + + True + 6 + + + True + 7 + 2 + 12 + 6 + + + True + Dummy security entry + False + True + True + + + + 1 + 2 + 1 + 2 + + + + + True + Dummy namespace entry + False + True + True + + + + 1 + 2 + + + + + True + 0 + _Namespace: + True + GTK_JUSTIFY_CENTER + namespace_cbe + + + GTK_FILL + + + + + + True + 0 + _Security: + True + GTK_JUSTIFY_CENTER + commodity_cbe + + + 1 + 2 + GTK_FILL + + + + + + True + 0 + Cu_rrency: + True + GTK_JUSTIFY_CENTER + + + 2 + 3 + GTK_FILL + + + + + + True + 0 + _Date: + True + GTK_JUSTIFY_CENTER + + + 3 + 4 + GTK_FILL + + + + + + 0 + S_ource: + True + GTK_JUSTIFY_CENTER + source_entry + + + 4 + 5 + GTK_FILL + + + + + + True + 0 + _Type: + True + GTK_JUSTIFY_CENTER + type_combobox + + + 5 + 6 + GTK_FILL + + + + + + True + 0 + _Price: + True + GTK_JUSTIFY_CENTER + + + 6 + 7 + GTK_FILL + + + + + + True + + + + + + 1 + 2 + 2 + 3 + GTK_FILL + GTK_FILL + + + + + True + + + + + + 1 + 2 + 3 + 4 + GTK_FILL + GTK_FILL + + + + + True + False + * + + + + 1 + 2 + 4 + 5 + + + + + + True + + + + + + 1 + 2 + 6 + 7 + GTK_FILL + GTK_FILL + + + + + True + Bid Ask Last Net Asset Value Unknown - False - True - - - - 1 - 2 - 4 - 5 - fill - fill - - - - - 0 - True - True - - - - - - - - 6 - True - - GTK_WINDOW_TOPLEVEL - GTK_WIN_POS_NONE - False - False - False - True - False - False - GDK_WINDOW_TYPE_HINT_DIALOG - GDK_GRAVITY_NORTH_WEST - True - True - - - - True - False - 6 - - - - True - GTK_BUTTONBOX_END - - - - True - True - True - gtk-cancel - True - GTK_RELIEF_NORMAL - True - -6 - - - - - - True - True - True - gtk-ok - True - GTK_RELIEF_NORMAL - True - -5 - - - - - 0 - False - True - GTK_PACK_END - - - - - - True - 5 - 2 - False - 6 - 12 - - - - True - Delete all stock prices based upon the critera below: - False - False - GTK_JUSTIFY_LEFT - True - False - 0.5 - 0.5 - 0 - 0 - PANGO_ELLIPSIZE_NONE - -1 - False - 0 - - - 0 - 2 - 0 - 1 - fill - - - - - - - True - If activated, delete manually entered stock prices dated earlier than the specified date. Otherwise only stock prices added by Finance::Quote will be deleted. - True - Delete _manually entered prices - True - GTK_RELIEF_NORMAL - True - False - False - True - - - 0 - 2 - 3 - 4 - fill - - - - - - - True - If activated, delete all prices before the specified date. Otherwise the last stock price dated before the date will be kept and all earlier quotes deleted. - True - Delete _last price for a stock - True - GTK_RELIEF_NORMAL - True - False - False - True - - - 0 - 2 - 4 - 5 - fill - - - - - - - True - - False - False - GTK_JUSTIFY_LEFT - False - False - 0 - 0.5 - 0 - 0 - PANGO_ELLIPSIZE_NONE - -1 - False - 0 - - - 0 - 2 - 1 - 2 - fill - - - - - - - True - _Date: - True - False - GTK_JUSTIFY_LEFT - False - False - 0 - 0.5 - 0 - 0 - PANGO_ELLIPSIZE_NONE - -1 - False - 0 - - - 0 - 1 - 2 - 3 - - - - - - - - True - gnc_date_edit_new_glade - 0 - 0 - Fri, 25 Nov 2005 22:13:25 GMT - - - 1 - 2 - 2 - 3 - fill - - - - - 0 - True - True - - - - - - + + + + 1 + 2 + 5 + 6 + GTK_FILL + GTK_FILL + + + + + 2 + + + + + True + GTK_BUTTONBOX_END + + + True + True + True + gtk-cancel + True + -6 + + + + + True + True + True + gtk-apply + True + -10 + + + 1 + + + + + True + True + True + True + gtk-ok + True + -5 + + + 2 + + + + + False + GTK_PACK_END + + + + + + + True + 6 + False + GDK_WINDOW_TYPE_HINT_DIALOG + + + True + 6 + + + True + 5 + 2 + 12 + 6 + + + True + Delete all stock prices based upon the critera below: + True + + + 2 + GTK_FILL + + + + + + True + True + If activated, delete manually entered stock prices dated earlier than the specified date. Otherwise only stock prices added by Finance::Quote will be deleted. + Delete _manually entered prices + True + 0 + True + + + 2 + 3 + 4 + GTK_FILL + + + + + + True + True + If activated, delete all prices before the specified date. Otherwise the last stock price dated before the date will be kept and all earlier quotes deleted. + Delete _last price for a stock + True + 0 + True + + + 2 + 4 + 5 + GTK_FILL + + + + + + True + 0 + + + 2 + 1 + 2 + GTK_FILL + + + + + + True + 0 + _Date: + True + + + 2 + 3 + + + + + + + True + gnc_date_edit_new_glade + + + 1 + 2 + 2 + 3 + GTK_FILL + + + + + 2 + + + + + True + GTK_BUTTONBOX_END + + + True + True + True + gtk-cancel + True + -6 + + + + + True + True + True + gtk-ok + True + -5 + + + 1 + + + + + False + GTK_PACK_END + + + + +