2001-06-13 Dave Peticolas <dave@krondo.com>

* src/gnome/glade/stocks.glade: new file for old stock split druid

	* src/gnome/druid-stock-split.c: use libglade


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4666 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Dave Peticolas 2001-06-13 10:49:50 +00:00
parent 2dc53adfed
commit c68c78b815
9 changed files with 777 additions and 1178 deletions

View File

@ -1,5 +1,9 @@
2001-06-13 Dave Peticolas <dave@krondo.com>
* src/gnome/glade/stocks.glade: new file for old stock split druid
* src/gnome/druid-stock-split.c: use libglade
* src/gnome/glade/userpass.glade: new file for old
username/password dialog

View File

@ -31,6 +31,7 @@ src/gnome/glade-support.c
src/gnome/glade/commodity_strings.c
src/gnome/glade/price_strings.c
src/gnome/glade/report_strings.c
src/gnome/glade/stocks_strings.c
src/gnome/glade/userpass_strings.c
src/gnome/gnc-commodity-edit.c
src/gnome/gnc-datedelta.c

View File

@ -30,8 +30,6 @@
#include "account-tree.h"
#include "dialog-utils.h"
#include "druid-utils.h"
#include "glade-gnc-dialogs.h"
#include "glade-support.h"
#include "gnc-amount-edit.h"
#include "gnc-component-manager.h"
#include "gnc-currency-edit.h"
@ -510,10 +508,13 @@ static void
gnc_stock_split_druid_create (StockSplitInfo *info)
{
GtkWidget *page;
GladeXML *xml;
info->window = create_Stock_Split_Druid ();
xml = gnc_glade_xml_new ("stocks.glade", "Stock Split Druid");
info->druid = lookup_widget (info->window, "stock_split_druid");
info->window = glade_xml_get_widget (xml, "Stock Split Druid");
info->druid = glade_xml_get_widget (xml, "stock_split_druid");
gtk_signal_connect (GTK_OBJECT (info->window), "destroy",
GTK_SIGNAL_FUNC (window_destroy_cb), info);
@ -521,14 +522,16 @@ gnc_stock_split_druid_create (StockSplitInfo *info)
gtk_signal_connect (GTK_OBJECT (info->druid), "cancel",
GTK_SIGNAL_FUNC (druid_cancel), info);
gnc_druid_set_title_image (GNOME_DRUID(info->druid), "stock_split_title.png");
gnc_druid_set_watermark_image (GNOME_DRUID(info->druid), "stock_split_watermark.png");
gnc_druid_set_title_image (GNOME_DRUID(info->druid),
"stock_split_title.png");
gnc_druid_set_watermark_image (GNOME_DRUID(info->druid),
"stock_split_watermark.png");
/* account list */
{
GtkCList *clist;
info->account_list = lookup_widget (info->window, "account_clist");
info->account_list = glade_xml_get_widget (xml, "account_clist");
clist = GTK_CLIST (info->account_list);
@ -537,7 +540,7 @@ gnc_stock_split_druid_create (StockSplitInfo *info)
gtk_signal_connect (GTK_OBJECT (clist), "select_row",
GTK_SIGNAL_FUNC (clist_select_row), info);
page = lookup_widget (info->window, "account_page");
page = glade_xml_get_widget (xml, "account_page");
gtk_signal_connect (GTK_OBJECT (page), "next",
GTK_SIGNAL_FUNC (account_next), info);
@ -550,20 +553,19 @@ gnc_stock_split_druid_create (StockSplitInfo *info)
GtkWidget *date;
GtkWidget *ce;
info->description_entry =
lookup_widget (info->window, "description_entry");
info->description_entry = glade_xml_get_widget (xml, "description_entry");
box = lookup_widget (info->window, "date_box");
box = glade_xml_get_widget (xml, "date_box");
date = gnc_date_edit_new(time(NULL), FALSE, FALSE);
gtk_box_pack_start (GTK_BOX (box), date, TRUE, TRUE, 0);
info->date_edit = date;
box = lookup_widget (info->window, "distribution_box");
box = glade_xml_get_widget (xml, "distribution_box");
amount = gnc_amount_edit_new ();
gtk_box_pack_start (GTK_BOX (box), amount, TRUE, TRUE, 0);
info->distribution_edit = amount;
box = lookup_widget (info->window, "price_box");
box = glade_xml_get_widget (xml, "price_box");
amount = gnc_amount_edit_new ();
gnc_amount_edit_set_print_info (GNC_AMOUNT_EDIT (amount),
gnc_default_price_print_info ());
@ -571,12 +573,12 @@ gnc_stock_split_druid_create (StockSplitInfo *info)
gtk_box_pack_start (GTK_BOX (box), amount, TRUE, TRUE, 0);
info->price_edit = amount;
box = lookup_widget (info->window, "price_currency_box");
box = glade_xml_get_widget (xml, "price_currency_box");
ce = gnc_currency_edit_new ();
gtk_box_pack_start (GTK_BOX (box), ce, TRUE, TRUE, 0);
info->price_currency_edit = ce;
page = lookup_widget (info->window, "details_page");
page = glade_xml_get_widget (xml, "details_page");
gtk_signal_connect (GTK_OBJECT (page), "next",
GTK_SIGNAL_FUNC (details_next), info);
@ -591,12 +593,12 @@ gnc_stock_split_druid_create (StockSplitInfo *info)
GtkWidget *amount;
GtkWidget *scroll;
box = lookup_widget (info->window, "cash_box");
box = glade_xml_get_widget (xml, "cash_box");
amount = gnc_amount_edit_new ();
gtk_box_pack_start (GTK_BOX (box), amount, TRUE, TRUE, 0);
info->cash_edit = amount;
info->memo_entry = lookup_widget (info->window, "memo_entry");
info->memo_entry = glade_xml_get_widget (xml, "memo_entry");
/* income tree */
tree = gnc_account_tree_new ();
@ -618,7 +620,7 @@ gnc_stock_split_druid_create (StockSplitInfo *info)
gtk_widget_show (tree);
scroll = lookup_widget (info->window, "income_scroll");
scroll = glade_xml_get_widget (xml, "income_scroll");
gtk_container_add (GTK_CONTAINER (scroll), tree);
@ -643,10 +645,10 @@ gnc_stock_split_druid_create (StockSplitInfo *info)
gtk_widget_show (tree);
scroll = lookup_widget (info->window, "asset_scroll");
scroll = glade_xml_get_widget (xml, "asset_scroll");
gtk_container_add (GTK_CONTAINER (scroll), tree);
page = lookup_widget (info->window, "cash_page");
page = glade_xml_get_widget (xml, "cash_page");
gtk_signal_connect (GTK_OBJECT (page), "prepare",
GTK_SIGNAL_FUNC (cash_prepare), info);
@ -655,7 +657,7 @@ gnc_stock_split_druid_create (StockSplitInfo *info)
GTK_SIGNAL_FUNC (cash_next), info);
}
page = lookup_widget (info->window, "finish_page");
page = glade_xml_get_widget (xml, "finish_page");
gtk_signal_connect (GTK_OBJECT (page), "finish",
GTK_SIGNAL_FUNC (stock_split_finish), info);
@ -669,6 +671,7 @@ refresh_handler (GHashTable *changes, gpointer user_data)
Account *new_account;
GNCIdType id_type;
GtkWidget *page;
GladeXML *xml;
id_type = xaccGUIDType (&info->account);
old_account = xaccAccountLookup (&info->account);
@ -684,7 +687,8 @@ refresh_handler (GHashTable *changes, gpointer user_data)
if (id_type == GNC_ID_NULL || old_account == new_account)
return;
page = lookup_widget (info->window, "account_page");
xml = glade_get_widget_tree (info->window);
page = glade_xml_get_widget (xml, "account_page");
gnome_druid_set_page (GNOME_DRUID (info->druid), GNOME_DRUID_PAGE (page));
}

View File

@ -6391,471 +6391,3 @@ create_HTML_Style_Sheet_Dialog (void)
return HTML_Style_Sheet_Dialog;
}
GtkWidget*
create_Stock_Split_Druid (void)
{
GtkWidget *Stock_Split_Druid;
GtkWidget *stock_split_druid;
GtkWidget *start_page;
GdkColor start_page_bg_color = { 0, 26214, 26214, 39321 };
GdkColor start_page_textbox_color = { 0, 65535, 65535, 65535 };
GdkColor start_page_logo_bg_color = { 0, 26214, 26214, 39321 };
GdkColor start_page_title_color = { 0, 65535, 65535, 65535 };
GtkWidget *account_page;
GdkColor account_page_bg_color = { 0, 26214, 26214, 39321 };
GdkColor account_page_logo_bg_color = { 0, 26214, 26214, 39321 };
GdkColor account_page_title_color = { 0, 65535, 65535, 65535 };
GtkWidget *vbox98;
GtkWidget *label847677;
GtkWidget *alignment1;
GtkWidget *scrolledwindow21;
GtkWidget *account_clist;
GtkWidget *label847678;
GtkWidget *label847679;
GtkWidget *label847680;
GtkWidget *details_page;
GdkColor details_page_bg_color = { 0, 26214, 26214, 39321 };
GdkColor details_page_logo_bg_color = { 0, 26214, 26214, 39321 };
GdkColor details_page_title_color = { 0, 65535, 65535, 65535 };
GtkWidget *druid_vbox32;
GtkWidget *label847681;
GtkWidget *hbox86;
GtkWidget *vbox100;
GtkWidget *label847683;
GtkWidget *label847684;
GtkWidget *label847693;
GtkWidget *vbox101;
GtkWidget *date_box;
GtkWidget *distribution_box;
GtkWidget *description_entry;
GtkWidget *hseparator2;
GtkWidget *label847691;
GtkWidget *hbox93;
GtkWidget *vbox107;
GtkWidget *label847692;
GtkWidget *label847715;
GtkWidget *vbox108;
GtkWidget *price_box;
GtkWidget *price_currency_box;
GtkWidget *cash_page;
GdkColor cash_page_bg_color = { 0, 26214, 26214, 39321 };
GdkColor cash_page_logo_bg_color = { 0, 26214, 26214, 39321 };
GdkColor cash_page_title_color = { 0, 65535, 65535, 65535 };
GtkWidget *druid_vbox33;
GtkWidget *label847687;
GtkWidget *vbox102;
GtkWidget *hbox87;
GtkWidget *vbox103;
GtkWidget *label847688;
GtkWidget *label847689;
GtkWidget *vbox104;
GtkWidget *cash_box;
GtkWidget *memo_entry;
GtkWidget *hbox88;
GtkWidget *frame43;
GtkWidget *income_scroll;
GtkWidget *frame44;
GtkWidget *asset_scroll;
GtkWidget *finish_page;
GdkColor finish_page_bg_color = { 0, 26214, 26214, 39321 };
GdkColor finish_page_textbox_color = { 0, 65535, 65535, 65535 };
GdkColor finish_page_logo_bg_color = { 0, 26214, 26214, 39321 };
GdkColor finish_page_title_color = { 0, 65535, 65535, 65535 };
Stock_Split_Druid = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_object_set_data (GTK_OBJECT (Stock_Split_Druid), "Stock_Split_Druid", Stock_Split_Druid);
gtk_window_set_title (GTK_WINDOW (Stock_Split_Druid), _("Stock Split"));
stock_split_druid = gnome_druid_new ();
gtk_widget_ref (stock_split_druid);
gtk_object_set_data_full (GTK_OBJECT (Stock_Split_Druid), "stock_split_druid", stock_split_druid,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (stock_split_druid);
gtk_container_add (GTK_CONTAINER (Stock_Split_Druid), stock_split_druid);
start_page = gnome_druid_page_start_new ();
gtk_widget_ref (start_page);
gtk_object_set_data_full (GTK_OBJECT (Stock_Split_Druid), "start_page", start_page,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (start_page);
gnome_druid_append_page (GNOME_DRUID (stock_split_druid), GNOME_DRUID_PAGE (start_page));
gnome_druid_set_page (GNOME_DRUID (stock_split_druid), GNOME_DRUID_PAGE (start_page));
gnome_druid_page_start_set_bg_color (GNOME_DRUID_PAGE_START (start_page), &start_page_bg_color);
gnome_druid_page_start_set_textbox_color (GNOME_DRUID_PAGE_START (start_page), &start_page_textbox_color);
gnome_druid_page_start_set_logo_bg_color (GNOME_DRUID_PAGE_START (start_page), &start_page_logo_bg_color);
gnome_druid_page_start_set_title_color (GNOME_DRUID_PAGE_START (start_page), &start_page_title_color);
gnome_druid_page_start_set_text (GNOME_DRUID_PAGE_START (start_page), _("This druid will help you record a stock split or stock merger."));
account_page = gnome_druid_page_standard_new_with_vals ("", NULL);
gtk_widget_ref (account_page);
gtk_object_set_data_full (GTK_OBJECT (Stock_Split_Druid), "account_page", account_page,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show_all (account_page);
gnome_druid_append_page (GNOME_DRUID (stock_split_druid), GNOME_DRUID_PAGE (account_page));
gnome_druid_page_standard_set_bg_color (GNOME_DRUID_PAGE_STANDARD (account_page), &account_page_bg_color);
gnome_druid_page_standard_set_logo_bg_color (GNOME_DRUID_PAGE_STANDARD (account_page), &account_page_logo_bg_color);
gnome_druid_page_standard_set_title_color (GNOME_DRUID_PAGE_STANDARD (account_page), &account_page_title_color);
gnome_druid_page_standard_set_title (GNOME_DRUID_PAGE_STANDARD (account_page), _("Stock Account"));
vbox98 = GNOME_DRUID_PAGE_STANDARD (account_page)->vbox;
gtk_widget_ref (vbox98);
gtk_object_set_data_full (GTK_OBJECT (Stock_Split_Druid), "vbox98", vbox98,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (vbox98);
gtk_container_set_border_width (GTK_CONTAINER (vbox98), 5);
label847677 = gtk_label_new (_("Select the account for which you want to record a stock split or merger."));
gtk_widget_ref (label847677);
gtk_object_set_data_full (GTK_OBJECT (Stock_Split_Druid), "label847677", label847677,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (label847677);
gtk_box_pack_start (GTK_BOX (vbox98), label847677, FALSE, FALSE, 0);
alignment1 = gtk_alignment_new (0.5, 0.5, 1, 1);
gtk_widget_ref (alignment1);
gtk_object_set_data_full (GTK_OBJECT (Stock_Split_Druid), "alignment1", alignment1,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (alignment1);
gtk_box_pack_start (GTK_BOX (vbox98), alignment1, TRUE, TRUE, 0);
scrolledwindow21 = gtk_scrolled_window_new (NULL, NULL);
gtk_widget_ref (scrolledwindow21);
gtk_object_set_data_full (GTK_OBJECT (Stock_Split_Druid), "scrolledwindow21", scrolledwindow21,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (scrolledwindow21);
gtk_container_add (GTK_CONTAINER (alignment1), scrolledwindow21);
gtk_container_set_border_width (GTK_CONTAINER (scrolledwindow21), 10);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow21), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
account_clist = gtk_clist_new (3);
gtk_widget_ref (account_clist);
gtk_object_set_data_full (GTK_OBJECT (Stock_Split_Druid), "account_clist", account_clist,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (account_clist);
gtk_container_add (GTK_CONTAINER (scrolledwindow21), account_clist);
gtk_clist_set_column_width (GTK_CLIST (account_clist), 0, 80);
gtk_clist_set_column_width (GTK_CLIST (account_clist), 1, 80);
gtk_clist_set_column_width (GTK_CLIST (account_clist), 2, 80);
gtk_clist_column_titles_show (GTK_CLIST (account_clist));
label847678 = gtk_label_new (_("Account"));
gtk_widget_ref (label847678);
gtk_object_set_data_full (GTK_OBJECT (Stock_Split_Druid), "label847678", label847678,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (label847678);
gtk_clist_set_column_widget (GTK_CLIST (account_clist), 0, label847678);
label847679 = gtk_label_new (_("Symbol"));
gtk_widget_ref (label847679);
gtk_object_set_data_full (GTK_OBJECT (Stock_Split_Druid), "label847679", label847679,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (label847679);
gtk_clist_set_column_widget (GTK_CLIST (account_clist), 1, label847679);
label847680 = gtk_label_new (_("Shares"));
gtk_widget_ref (label847680);
gtk_object_set_data_full (GTK_OBJECT (Stock_Split_Druid), "label847680", label847680,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (label847680);
gtk_clist_set_column_widget (GTK_CLIST (account_clist), 2, label847680);
details_page = gnome_druid_page_standard_new_with_vals ("", NULL);
gtk_widget_ref (details_page);
gtk_object_set_data_full (GTK_OBJECT (Stock_Split_Druid), "details_page", details_page,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show_all (details_page);
gnome_druid_append_page (GNOME_DRUID (stock_split_druid), GNOME_DRUID_PAGE (details_page));
gnome_druid_page_standard_set_bg_color (GNOME_DRUID_PAGE_STANDARD (details_page), &details_page_bg_color);
gnome_druid_page_standard_set_logo_bg_color (GNOME_DRUID_PAGE_STANDARD (details_page), &details_page_logo_bg_color);
gnome_druid_page_standard_set_title_color (GNOME_DRUID_PAGE_STANDARD (details_page), &details_page_title_color);
gnome_druid_page_standard_set_title (GNOME_DRUID_PAGE_STANDARD (details_page), _("Stock Split Details"));
druid_vbox32 = GNOME_DRUID_PAGE_STANDARD (details_page)->vbox;
gtk_widget_ref (druid_vbox32);
gtk_object_set_data_full (GTK_OBJECT (Stock_Split_Druid), "druid_vbox32", druid_vbox32,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (druid_vbox32);
gtk_container_set_border_width (GTK_CONTAINER (druid_vbox32), 5);
label847681 = gtk_label_new (_("Enter the date and the number of shares you gained or lost from the stock split or merger.\nFor stock mergers (negative splits) use a negative value for the share distribution.\nYou can also enter a description of the transaction, or accept the default one."));
gtk_widget_ref (label847681);
gtk_object_set_data_full (GTK_OBJECT (Stock_Split_Druid), "label847681", label847681,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (label847681);
gtk_box_pack_start (GTK_BOX (druid_vbox32), label847681, FALSE, FALSE, 0);
hbox86 = gtk_hbox_new (FALSE, 4);
gtk_widget_ref (hbox86);
gtk_object_set_data_full (GTK_OBJECT (Stock_Split_Druid), "hbox86", hbox86,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (hbox86);
gtk_box_pack_start (GTK_BOX (druid_vbox32), hbox86, FALSE, FALSE, 0);
gtk_container_set_border_width (GTK_CONTAINER (hbox86), 10);
vbox100 = gtk_vbox_new (TRUE, 4);
gtk_widget_ref (vbox100);
gtk_object_set_data_full (GTK_OBJECT (Stock_Split_Druid), "vbox100", vbox100,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (vbox100);
gtk_box_pack_start (GTK_BOX (hbox86), vbox100, FALSE, FALSE, 0);
gtk_container_set_border_width (GTK_CONTAINER (vbox100), 2);
label847683 = gtk_label_new (_("Date:"));
gtk_widget_ref (label847683);
gtk_object_set_data_full (GTK_OBJECT (Stock_Split_Druid), "label847683", label847683,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (label847683);
gtk_box_pack_start (GTK_BOX (vbox100), label847683, FALSE, FALSE, 0);
gtk_misc_set_alignment (GTK_MISC (label847683), 1, 0.5);
label847684 = gtk_label_new (_("Share Distribution:"));
gtk_widget_ref (label847684);
gtk_object_set_data_full (GTK_OBJECT (Stock_Split_Druid), "label847684", label847684,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (label847684);
gtk_box_pack_start (GTK_BOX (vbox100), label847684, FALSE, FALSE, 0);
gtk_misc_set_alignment (GTK_MISC (label847684), 1, 0.5);
label847693 = gtk_label_new (_("Description:"));
gtk_widget_ref (label847693);
gtk_object_set_data_full (GTK_OBJECT (Stock_Split_Druid), "label847693", label847693,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (label847693);
gtk_box_pack_start (GTK_BOX (vbox100), label847693, FALSE, FALSE, 0);
gtk_misc_set_alignment (GTK_MISC (label847693), 1, 0.5);
vbox101 = gtk_vbox_new (TRUE, 4);
gtk_widget_ref (vbox101);
gtk_object_set_data_full (GTK_OBJECT (Stock_Split_Druid), "vbox101", vbox101,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (vbox101);
gtk_box_pack_start (GTK_BOX (hbox86), vbox101, FALSE, FALSE, 0);
date_box = gtk_hbox_new (FALSE, 0);
gtk_widget_ref (date_box);
gtk_object_set_data_full (GTK_OBJECT (Stock_Split_Druid), "date_box", date_box,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (date_box);
gtk_box_pack_start (GTK_BOX (vbox101), date_box, FALSE, FALSE, 0);
distribution_box = gtk_hbox_new (FALSE, 0);
gtk_widget_ref (distribution_box);
gtk_object_set_data_full (GTK_OBJECT (Stock_Split_Druid), "distribution_box", distribution_box,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (distribution_box);
gtk_box_pack_start (GTK_BOX (vbox101), distribution_box, FALSE, FALSE, 0);
description_entry = gtk_entry_new ();
gtk_widget_ref (description_entry);
gtk_object_set_data_full (GTK_OBJECT (Stock_Split_Druid), "description_entry", description_entry,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (description_entry);
gtk_box_pack_start (GTK_BOX (vbox101), description_entry, FALSE, FALSE, 0);
gtk_entry_set_text (GTK_ENTRY (description_entry), _("Stock Split"));
hseparator2 = gtk_hseparator_new ();
gtk_widget_ref (hseparator2);
gtk_object_set_data_full (GTK_OBJECT (Stock_Split_Druid), "hseparator2", hseparator2,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (hseparator2);
gtk_box_pack_start (GTK_BOX (druid_vbox32), hseparator2, FALSE, FALSE, 5);
label847691 = gtk_label_new (_("If you want to record a stock price for the split, enter it below.\nYou may safely leave it blank."));
gtk_widget_ref (label847691);
gtk_object_set_data_full (GTK_OBJECT (Stock_Split_Druid), "label847691", label847691,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (label847691);
gtk_box_pack_start (GTK_BOX (druid_vbox32), label847691, FALSE, FALSE, 0);
hbox93 = gtk_hbox_new (FALSE, 4);
gtk_widget_ref (hbox93);
gtk_object_set_data_full (GTK_OBJECT (Stock_Split_Druid), "hbox93", hbox93,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (hbox93);
gtk_box_pack_start (GTK_BOX (druid_vbox32), hbox93, FALSE, FALSE, 0);
gtk_container_set_border_width (GTK_CONTAINER (hbox93), 10);
vbox107 = gtk_vbox_new (TRUE, 4);
gtk_widget_ref (vbox107);
gtk_object_set_data_full (GTK_OBJECT (Stock_Split_Druid), "vbox107", vbox107,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (vbox107);
gtk_box_pack_start (GTK_BOX (hbox93), vbox107, FALSE, FALSE, 0);
label847692 = gtk_label_new (_("New Price:"));
gtk_widget_ref (label847692);
gtk_object_set_data_full (GTK_OBJECT (Stock_Split_Druid), "label847692", label847692,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (label847692);
gtk_box_pack_start (GTK_BOX (vbox107), label847692, FALSE, FALSE, 0);
gtk_misc_set_alignment (GTK_MISC (label847692), 1, 0.5);
label847715 = gtk_label_new (_("Currency:"));
gtk_widget_ref (label847715);
gtk_object_set_data_full (GTK_OBJECT (Stock_Split_Druid), "label847715", label847715,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (label847715);
gtk_box_pack_start (GTK_BOX (vbox107), label847715, FALSE, FALSE, 0);
gtk_misc_set_alignment (GTK_MISC (label847715), 1, 0.5);
vbox108 = gtk_vbox_new (TRUE, 4);
gtk_widget_ref (vbox108);
gtk_object_set_data_full (GTK_OBJECT (Stock_Split_Druid), "vbox108", vbox108,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (vbox108);
gtk_box_pack_start (GTK_BOX (hbox93), vbox108, FALSE, FALSE, 0);
price_box = gtk_hbox_new (FALSE, 0);
gtk_widget_ref (price_box);
gtk_object_set_data_full (GTK_OBJECT (Stock_Split_Druid), "price_box", price_box,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (price_box);
gtk_box_pack_start (GTK_BOX (vbox108), price_box, TRUE, TRUE, 0);
price_currency_box = gtk_hbox_new (FALSE, 0);
gtk_widget_ref (price_currency_box);
gtk_object_set_data_full (GTK_OBJECT (Stock_Split_Druid), "price_currency_box", price_currency_box,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (price_currency_box);
gtk_box_pack_start (GTK_BOX (vbox108), price_currency_box, TRUE, TRUE, 0);
cash_page = gnome_druid_page_standard_new_with_vals ("", NULL);
gtk_widget_ref (cash_page);
gtk_object_set_data_full (GTK_OBJECT (Stock_Split_Druid), "cash_page", cash_page,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show_all (cash_page);
gnome_druid_append_page (GNOME_DRUID (stock_split_druid), GNOME_DRUID_PAGE (cash_page));
gnome_druid_page_standard_set_bg_color (GNOME_DRUID_PAGE_STANDARD (cash_page), &cash_page_bg_color);
gnome_druid_page_standard_set_logo_bg_color (GNOME_DRUID_PAGE_STANDARD (cash_page), &cash_page_logo_bg_color);
gnome_druid_page_standard_set_title_color (GNOME_DRUID_PAGE_STANDARD (cash_page), &cash_page_title_color);
gnome_druid_page_standard_set_title (GNOME_DRUID_PAGE_STANDARD (cash_page), _("Cash In Lieu"));
druid_vbox33 = GNOME_DRUID_PAGE_STANDARD (cash_page)->vbox;
gtk_widget_ref (druid_vbox33);
gtk_object_set_data_full (GTK_OBJECT (Stock_Split_Druid), "druid_vbox33", druid_vbox33,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (druid_vbox33);
gtk_container_set_border_width (GTK_CONTAINER (druid_vbox33), 5);
label847687 = gtk_label_new (_("If you received a cash disbursement as a result of the stock split,\nenter the details of that payment here. Otherwise, just click `Next'."));
gtk_widget_ref (label847687);
gtk_object_set_data_full (GTK_OBJECT (Stock_Split_Druid), "label847687", label847687,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (label847687);
gtk_box_pack_start (GTK_BOX (druid_vbox33), label847687, FALSE, FALSE, 0);
gtk_label_set_justify (GTK_LABEL (label847687), GTK_JUSTIFY_LEFT);
vbox102 = gtk_vbox_new (FALSE, 10);
gtk_widget_ref (vbox102);
gtk_object_set_data_full (GTK_OBJECT (Stock_Split_Druid), "vbox102", vbox102,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (vbox102);
gtk_box_pack_start (GTK_BOX (druid_vbox33), vbox102, TRUE, TRUE, 0);
gtk_container_set_border_width (GTK_CONTAINER (vbox102), 5);
hbox87 = gtk_hbox_new (FALSE, 2);
gtk_widget_ref (hbox87);
gtk_object_set_data_full (GTK_OBJECT (Stock_Split_Druid), "hbox87", hbox87,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (hbox87);
gtk_box_pack_start (GTK_BOX (vbox102), hbox87, FALSE, FALSE, 0);
vbox103 = gtk_vbox_new (TRUE, 2);
gtk_widget_ref (vbox103);
gtk_object_set_data_full (GTK_OBJECT (Stock_Split_Druid), "vbox103", vbox103,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (vbox103);
gtk_box_pack_start (GTK_BOX (hbox87), vbox103, FALSE, FALSE, 0);
label847688 = gtk_label_new (_("Cash Amount:"));
gtk_widget_ref (label847688);
gtk_object_set_data_full (GTK_OBJECT (Stock_Split_Druid), "label847688", label847688,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (label847688);
gtk_box_pack_start (GTK_BOX (vbox103), label847688, FALSE, FALSE, 0);
gtk_misc_set_alignment (GTK_MISC (label847688), 1, 0.5);
label847689 = gtk_label_new (_("Memo:"));
gtk_widget_ref (label847689);
gtk_object_set_data_full (GTK_OBJECT (Stock_Split_Druid), "label847689", label847689,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (label847689);
gtk_box_pack_start (GTK_BOX (vbox103), label847689, FALSE, FALSE, 0);
gtk_misc_set_alignment (GTK_MISC (label847689), 1, 0.5);
vbox104 = gtk_vbox_new (TRUE, 2);
gtk_widget_ref (vbox104);
gtk_object_set_data_full (GTK_OBJECT (Stock_Split_Druid), "vbox104", vbox104,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (vbox104);
gtk_box_pack_start (GTK_BOX (hbox87), vbox104, TRUE, TRUE, 0);
cash_box = gtk_hbox_new (FALSE, 0);
gtk_widget_ref (cash_box);
gtk_object_set_data_full (GTK_OBJECT (Stock_Split_Druid), "cash_box", cash_box,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (cash_box);
gtk_box_pack_start (GTK_BOX (vbox104), cash_box, FALSE, FALSE, 0);
memo_entry = gtk_entry_new ();
gtk_widget_ref (memo_entry);
gtk_object_set_data_full (GTK_OBJECT (Stock_Split_Druid), "memo_entry", memo_entry,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (memo_entry);
gtk_box_pack_start (GTK_BOX (vbox104), memo_entry, FALSE, FALSE, 0);
gtk_entry_set_text (GTK_ENTRY (memo_entry), _("Cash In Lieu"));
hbox88 = gtk_hbox_new (TRUE, 2);
gtk_widget_ref (hbox88);
gtk_object_set_data_full (GTK_OBJECT (Stock_Split_Druid), "hbox88", hbox88,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (hbox88);
gtk_box_pack_start (GTK_BOX (vbox102), hbox88, TRUE, TRUE, 0);
frame43 = gtk_frame_new (_("Income Account"));
gtk_widget_ref (frame43);
gtk_object_set_data_full (GTK_OBJECT (Stock_Split_Druid), "frame43", frame43,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (frame43);
gtk_box_pack_start (GTK_BOX (hbox88), frame43, TRUE, TRUE, 0);
income_scroll = gtk_scrolled_window_new (NULL, NULL);
gtk_widget_ref (income_scroll);
gtk_object_set_data_full (GTK_OBJECT (Stock_Split_Druid), "income_scroll", income_scroll,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (income_scroll);
gtk_container_add (GTK_CONTAINER (frame43), income_scroll);
gtk_container_set_border_width (GTK_CONTAINER (income_scroll), 3);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (income_scroll), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
frame44 = gtk_frame_new (_("Asset Account"));
gtk_widget_ref (frame44);
gtk_object_set_data_full (GTK_OBJECT (Stock_Split_Druid), "frame44", frame44,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (frame44);
gtk_box_pack_start (GTK_BOX (hbox88), frame44, TRUE, TRUE, 0);
asset_scroll = gtk_scrolled_window_new (NULL, NULL);
gtk_widget_ref (asset_scroll);
gtk_object_set_data_full (GTK_OBJECT (Stock_Split_Druid), "asset_scroll", asset_scroll,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (asset_scroll);
gtk_container_add (GTK_CONTAINER (frame44), asset_scroll);
gtk_container_set_border_width (GTK_CONTAINER (asset_scroll), 3);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (asset_scroll), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
finish_page = gnome_druid_page_finish_new ();
gtk_widget_ref (finish_page);
gtk_object_set_data_full (GTK_OBJECT (Stock_Split_Druid), "finish_page", finish_page,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (finish_page);
gnome_druid_append_page (GNOME_DRUID (stock_split_druid), GNOME_DRUID_PAGE (finish_page));
gnome_druid_page_finish_set_bg_color (GNOME_DRUID_PAGE_FINISH (finish_page), &finish_page_bg_color);
gnome_druid_page_finish_set_textbox_color (GNOME_DRUID_PAGE_FINISH (finish_page), &finish_page_textbox_color);
gnome_druid_page_finish_set_logo_bg_color (GNOME_DRUID_PAGE_FINISH (finish_page), &finish_page_logo_bg_color);
gnome_druid_page_finish_set_title_color (GNOME_DRUID_PAGE_FINISH (finish_page), &finish_page_title_color);
gnome_druid_page_finish_set_text (GNOME_DRUID_PAGE_FINISH (finish_page), _("If you are finished creating the stock split or merger, press `Finish'.\nYou may also press `Back' to review your choices, or `Cancel' to\nquit without making any changes."));
return Stock_Split_Druid;
}

View File

@ -21,4 +21,3 @@ GtkWidget* create_New_Style_Sheet_Dialog (void);
GtkWidget* create_Tax_Information_Dialog (void);
GtkWidget* create_Duplicate_Transaction_Dialog (void);
GtkWidget* create_HTML_Style_Sheet_Dialog (void);
GtkWidget* create_Stock_Split_Druid (void);

View File

@ -3,12 +3,14 @@ glade_DATA = \
commodity.glade \
price.glade \
report.glade \
stocks.glade \
userpass.glade
STRING_FILES = \
commodity_strings.c \
price_strings.c \
report_strings.c \
stocks.glade \
userpass_strings.c
EXTRA_DIST = $(glade_DATA) $(STRING_FILES)

View File

@ -0,0 +1,708 @@
<?xml version="1.0"?>
<GTK-Interface>
<project>
<name>Glade</name>
<program_name>glade</program_name>
<directory></directory>
<source_directory></source_directory>
<pixmaps_directory></pixmaps_directory>
<language>C</language>
<gnome_support>True</gnome_support>
<gettext_support>True</gettext_support>
<output_main_file>False</output_main_file>
<output_support_files>False</output_support_files>
<output_build_files>False</output_build_files>
<backup_source_files>False</backup_source_files>
<output_translatable_strings>True</output_translatable_strings>
<translatable_strings_file>stocks_strings.c</translatable_strings_file>
</project>
<widget>
<class>GtkWindow</class>
<name>Stock Split Druid</name>
<title>Stock Split</title>
<type>GTK_WINDOW_TOPLEVEL</type>
<position>GTK_WIN_POS_NONE</position>
<modal>False</modal>
<allow_shrink>False</allow_shrink>
<allow_grow>True</allow_grow>
<auto_shrink>False</auto_shrink>
<widget>
<class>GnomeDruid</class>
<name>stock_split_druid</name>
<widget>
<class>GnomeDruidPageStart</class>
<name>start_page</name>
<title></title>
<text>This druid will help you record a stock split or stock merger.</text>
<title_color>255,255,255</title_color>
<text_color>0,0,0</text_color>
<background_color>102,102,153</background_color>
<logo_background_color>102,102,153</logo_background_color>
<textbox_color>255,255,255</textbox_color>
</widget>
<widget>
<class>GnomeDruidPageStandard</class>
<name>account_page</name>
<title>Stock Account</title>
<title_color>255,255,255</title_color>
<background_color>102,102,153</background_color>
<logo_background_color>102,102,153</logo_background_color>
<widget>
<class>GtkVBox</class>
<child_name>GnomeDruidPageStandard:vbox</child_name>
<name>vbox98</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>GtkLabel</class>
<name>label847677</name>
<label>Select the account for which you want to record a stock split or merger.</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>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
</widget>
<widget>
<class>GtkAlignment</class>
<name>alignment1</name>
<xalign>0.5</xalign>
<yalign>0.5</yalign>
<xscale>1</xscale>
<yscale>1</yscale>
<child>
<padding>0</padding>
<expand>True</expand>
<fill>True</fill>
</child>
<widget>
<class>GtkScrolledWindow</class>
<name>scrolledwindow21</name>
<border_width>10</border_width>
<hscrollbar_policy>GTK_POLICY_AUTOMATIC</hscrollbar_policy>
<vscrollbar_policy>GTK_POLICY_AUTOMATIC</vscrollbar_policy>
<hupdate_policy>GTK_UPDATE_CONTINUOUS</hupdate_policy>
<vupdate_policy>GTK_UPDATE_CONTINUOUS</vupdate_policy>
<widget>
<class>GtkCList</class>
<name>account_clist</name>
<can_focus>True</can_focus>
<columns>3</columns>
<column_widths>80,80,80</column_widths>
<selection_mode>GTK_SELECTION_SINGLE</selection_mode>
<show_titles>True</show_titles>
<shadow_type>GTK_SHADOW_IN</shadow_type>
<widget>
<class>GtkLabel</class>
<child_name>CList:title</child_name>
<name>label847678</name>
<label>Account</label>
<justify>GTK_JUSTIFY_CENTER</justify>
<wrap>False</wrap>
<xalign>0.5</xalign>
<yalign>0.5</yalign>
<xpad>0</xpad>
<ypad>0</ypad>
</widget>
<widget>
<class>GtkLabel</class>
<child_name>CList:title</child_name>
<name>label847679</name>
<label>Symbol</label>
<justify>GTK_JUSTIFY_CENTER</justify>
<wrap>False</wrap>
<xalign>0.5</xalign>
<yalign>0.5</yalign>
<xpad>0</xpad>
<ypad>0</ypad>
</widget>
<widget>
<class>GtkLabel</class>
<child_name>CList:title</child_name>
<name>label847680</name>
<label>Shares</label>
<justify>GTK_JUSTIFY_CENTER</justify>
<wrap>False</wrap>
<xalign>0.5</xalign>
<yalign>0.5</yalign>
<xpad>0</xpad>
<ypad>0</ypad>
</widget>
</widget>
</widget>
</widget>
</widget>
</widget>
<widget>
<class>GnomeDruidPageStandard</class>
<name>details_page</name>
<title>Stock Split Details</title>
<title_color>255,255,255</title_color>
<background_color>102,102,153</background_color>
<logo_background_color>102,102,153</logo_background_color>
<widget>
<class>GtkVBox</class>
<child_name>GnomeDruidPageStandard:vbox</child_name>
<name>druid-vbox32</name>
<border_width>5</border_width>
<homogeneous>False</homogeneous>
<spacing>10</spacing>
<child>
<padding>0</padding>
<expand>True</expand>
<fill>True</fill>
</child>
<widget>
<class>GtkLabel</class>
<name>label847681</name>
<label>Enter the date and the number of shares you gained or lost from the stock split or merger.
For stock mergers (negative splits) use a negative value for the share distribution.
You can also enter a description of the transaction, or accept the default one.</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>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
</widget>
<widget>
<class>GtkHBox</class>
<name>hbox86</name>
<border_width>10</border_width>
<homogeneous>False</homogeneous>
<spacing>4</spacing>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
<widget>
<class>GtkVBox</class>
<name>vbox100</name>
<border_width>2</border_width>
<homogeneous>True</homogeneous>
<spacing>4</spacing>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
<widget>
<class>GtkLabel</class>
<name>label847683</name>
<label>Date:</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>label847684</name>
<label>Share Distribution:</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>label847693</name>
<label>Description:</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>vbox101</name>
<homogeneous>True</homogeneous>
<spacing>4</spacing>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
<widget>
<class>GtkHBox</class>
<name>date_box</name>
<homogeneous>False</homogeneous>
<spacing>0</spacing>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
<widget>
<class>Placeholder</class>
</widget>
</widget>
<widget>
<class>GtkHBox</class>
<name>distribution_box</name>
<homogeneous>False</homogeneous>
<spacing>0</spacing>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
<widget>
<class>Placeholder</class>
</widget>
</widget>
<widget>
<class>GtkEntry</class>
<name>description_entry</name>
<can_focus>True</can_focus>
<editable>True</editable>
<text_visible>True</text_visible>
<text_max_length>0</text_max_length>
<text>Stock Split</text>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
</widget>
</widget>
</widget>
<widget>
<class>GtkHSeparator</class>
<name>hseparator2</name>
<child>
<padding>5</padding>
<expand>False</expand>
<fill>False</fill>
</child>
</widget>
<widget>
<class>GtkLabel</class>
<name>label847691</name>
<label>If you want to record a stock price for the split, enter it below.
You may safely leave it blank.</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>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
</widget>
<widget>
<class>GtkHBox</class>
<name>hbox93</name>
<border_width>10</border_width>
<homogeneous>False</homogeneous>
<spacing>4</spacing>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
<widget>
<class>GtkVBox</class>
<name>vbox107</name>
<homogeneous>True</homogeneous>
<spacing>4</spacing>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
<widget>
<class>GtkLabel</class>
<name>label847692</name>
<label>New Price:</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>label847715</name>
<label>Currency:</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>vbox108</name>
<homogeneous>True</homogeneous>
<spacing>4</spacing>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
<widget>
<class>GtkHBox</class>
<name>price_box</name>
<homogeneous>False</homogeneous>
<spacing>0</spacing>
<child>
<padding>0</padding>
<expand>True</expand>
<fill>True</fill>
</child>
<widget>
<class>Placeholder</class>
</widget>
</widget>
<widget>
<class>GtkHBox</class>
<name>price_currency_box</name>
<homogeneous>False</homogeneous>
<spacing>0</spacing>
<child>
<padding>0</padding>
<expand>True</expand>
<fill>True</fill>
</child>
<widget>
<class>Placeholder</class>
</widget>
</widget>
</widget>
</widget>
</widget>
</widget>
<widget>
<class>GnomeDruidPageStandard</class>
<name>cash_page</name>
<title>Cash In Lieu</title>
<title_color>255,255,255</title_color>
<background_color>102,102,153</background_color>
<logo_background_color>102,102,153</logo_background_color>
<widget>
<class>GtkVBox</class>
<child_name>GnomeDruidPageStandard:vbox</child_name>
<name>druid-vbox33</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>GtkLabel</class>
<name>label847687</name>
<label>If you received a cash disbursement as a result of the stock split,
enter the details of that payment here. Otherwise, just click `Next'.</label>
<justify>GTK_JUSTIFY_LEFT</justify>
<wrap>False</wrap>
<xalign>0.5</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>GtkVBox</class>
<name>vbox102</name>
<border_width>5</border_width>
<homogeneous>False</homogeneous>
<spacing>10</spacing>
<child>
<padding>0</padding>
<expand>True</expand>
<fill>True</fill>
</child>
<widget>
<class>GtkHBox</class>
<name>hbox87</name>
<homogeneous>False</homogeneous>
<spacing>2</spacing>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
<widget>
<class>GtkVBox</class>
<name>vbox103</name>
<homogeneous>True</homogeneous>
<spacing>2</spacing>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
<widget>
<class>GtkLabel</class>
<name>label847688</name>
<label>Cash Amount:</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>label847689</name>
<label>Memo:</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>vbox104</name>
<homogeneous>True</homogeneous>
<spacing>2</spacing>
<child>
<padding>0</padding>
<expand>True</expand>
<fill>True</fill>
</child>
<widget>
<class>GtkHBox</class>
<name>cash_box</name>
<homogeneous>False</homogeneous>
<spacing>0</spacing>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
<widget>
<class>Placeholder</class>
</widget>
</widget>
<widget>
<class>GtkEntry</class>
<name>memo_entry</name>
<can_focus>True</can_focus>
<editable>True</editable>
<text_visible>True</text_visible>
<text_max_length>0</text_max_length>
<text>Cash In Lieu</text>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
</widget>
</widget>
</widget>
<widget>
<class>GtkHBox</class>
<name>hbox88</name>
<homogeneous>True</homogeneous>
<spacing>2</spacing>
<child>
<padding>0</padding>
<expand>True</expand>
<fill>True</fill>
</child>
<widget>
<class>GtkFrame</class>
<name>frame43</name>
<label>Income Account</label>
<label_xalign>0</label_xalign>
<shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
<child>
<padding>0</padding>
<expand>True</expand>
<fill>True</fill>
</child>
<widget>
<class>GtkScrolledWindow</class>
<name>income_scroll</name>
<border_width>3</border_width>
<hscrollbar_policy>GTK_POLICY_AUTOMATIC</hscrollbar_policy>
<vscrollbar_policy>GTK_POLICY_AUTOMATIC</vscrollbar_policy>
<hupdate_policy>GTK_UPDATE_CONTINUOUS</hupdate_policy>
<vupdate_policy>GTK_UPDATE_CONTINUOUS</vupdate_policy>
<widget>
<class>Placeholder</class>
</widget>
</widget>
</widget>
<widget>
<class>GtkFrame</class>
<name>frame44</name>
<label>Asset Account</label>
<label_xalign>0</label_xalign>
<shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
<child>
<padding>0</padding>
<expand>True</expand>
<fill>True</fill>
</child>
<widget>
<class>GtkScrolledWindow</class>
<name>asset_scroll</name>
<border_width>3</border_width>
<hscrollbar_policy>GTK_POLICY_AUTOMATIC</hscrollbar_policy>
<vscrollbar_policy>GTK_POLICY_AUTOMATIC</vscrollbar_policy>
<hupdate_policy>GTK_UPDATE_CONTINUOUS</hupdate_policy>
<vupdate_policy>GTK_UPDATE_CONTINUOUS</vupdate_policy>
<widget>
<class>Placeholder</class>
</widget>
</widget>
</widget>
</widget>
</widget>
</widget>
</widget>
<widget>
<class>GnomeDruidPageFinish</class>
<name>finish_page</name>
<title></title>
<text>If you are finished creating the stock split or merger, press `Finish'.
You may also press `Back' to review your choices, or `Cancel' to
quit without making any changes.</text>
<background_color>102,102,153</background_color>
<logo_background_color>102,102,153</logo_background_color>
<textbox_color>255,255,255</textbox_color>
<text_color>0,0,0</text_color>
<title_color>255,255,255</title_color>
</widget>
</widget>
</widget>
</GTK-Interface>

View File

@ -0,0 +1,36 @@
/*
* 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_("Stock Split");
gchar *s = N_("This druid will help you record a stock split or stock merger.");
gchar *s = N_("Stock Account");
gchar *s = N_("Select the account for which you want to record a stock split or merger.");
gchar *s = N_("Account");
gchar *s = N_("Symbol");
gchar *s = N_("Shares");
gchar *s = N_("Stock Split Details");
gchar *s = N_("Enter the date and the number of shares you gained or lost from the stock split or merger.\n"
"For stock mergers (negative splits) use a negative value for the share distribution.\n"
"You can also enter a description of the transaction, or accept the default one.");
gchar *s = N_("Date:");
gchar *s = N_("Share Distribution:");
gchar *s = N_("Description:");
gchar *s = N_("Stock Split");
gchar *s = N_("If you want to record a stock price for the split, enter it below.\n"
"You may safely leave it blank.");
gchar *s = N_("New Price:");
gchar *s = N_("Currency:");
gchar *s = N_("Cash In Lieu");
gchar *s = N_("If you received a cash disbursement as a result of the stock split,\n"
"enter the details of that payment here. Otherwise, just click `Next'.");
gchar *s = N_("Cash Amount:");
gchar *s = N_("Memo:");
gchar *s = N_("Cash In Lieu");
gchar *s = N_("Income Account");
gchar *s = N_("Asset Account");
gchar *s = N_("If you are finished creating the stock split or merger, press `Finish'.\n"
"You may also press `Back' to review your choices, or `Cancel' to\n"
"quit without making any changes.");

View File

@ -9415,691 +9415,4 @@ Click &quot;Cancel&quot; to abort the QIF import process.</text>
</widget>
</widget>
<widget>
<class>GtkWindow</class>
<name>Stock Split Druid</name>
<title>Stock Split</title>
<type>GTK_WINDOW_TOPLEVEL</type>
<position>GTK_WIN_POS_NONE</position>
<modal>False</modal>
<allow_shrink>False</allow_shrink>
<allow_grow>True</allow_grow>
<auto_shrink>False</auto_shrink>
<widget>
<class>GnomeDruid</class>
<name>stock_split_druid</name>
<widget>
<class>GnomeDruidPageStart</class>
<name>start_page</name>
<title></title>
<text>This druid will help you record a stock split or stock merger.</text>
<title_color>255,255,255</title_color>
<text_color>0,0,0</text_color>
<background_color>102,102,153</background_color>
<logo_background_color>102,102,153</logo_background_color>
<textbox_color>255,255,255</textbox_color>
</widget>
<widget>
<class>GnomeDruidPageStandard</class>
<name>account_page</name>
<title>Stock Account</title>
<title_color>255,255,255</title_color>
<background_color>102,102,153</background_color>
<logo_background_color>102,102,153</logo_background_color>
<widget>
<class>GtkVBox</class>
<child_name>GnomeDruidPageStandard:vbox</child_name>
<name>vbox98</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>GtkLabel</class>
<name>label847677</name>
<label>Select the account for which you want to record a stock split or merger.</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>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
</widget>
<widget>
<class>GtkAlignment</class>
<name>alignment1</name>
<xalign>0.5</xalign>
<yalign>0.5</yalign>
<xscale>1</xscale>
<yscale>1</yscale>
<child>
<padding>0</padding>
<expand>True</expand>
<fill>True</fill>
</child>
<widget>
<class>GtkScrolledWindow</class>
<name>scrolledwindow21</name>
<border_width>10</border_width>
<hscrollbar_policy>GTK_POLICY_AUTOMATIC</hscrollbar_policy>
<vscrollbar_policy>GTK_POLICY_AUTOMATIC</vscrollbar_policy>
<hupdate_policy>GTK_UPDATE_CONTINUOUS</hupdate_policy>
<vupdate_policy>GTK_UPDATE_CONTINUOUS</vupdate_policy>
<widget>
<class>GtkCList</class>
<name>account_clist</name>
<can_focus>True</can_focus>
<columns>3</columns>
<column_widths>80,80,80</column_widths>
<selection_mode>GTK_SELECTION_SINGLE</selection_mode>
<show_titles>True</show_titles>
<shadow_type>GTK_SHADOW_IN</shadow_type>
<widget>
<class>GtkLabel</class>
<child_name>CList:title</child_name>
<name>label847678</name>
<label>Account</label>
<justify>GTK_JUSTIFY_CENTER</justify>
<wrap>False</wrap>
<xalign>0.5</xalign>
<yalign>0.5</yalign>
<xpad>0</xpad>
<ypad>0</ypad>
</widget>
<widget>
<class>GtkLabel</class>
<child_name>CList:title</child_name>
<name>label847679</name>
<label>Symbol</label>
<justify>GTK_JUSTIFY_CENTER</justify>
<wrap>False</wrap>
<xalign>0.5</xalign>
<yalign>0.5</yalign>
<xpad>0</xpad>
<ypad>0</ypad>
</widget>
<widget>
<class>GtkLabel</class>
<child_name>CList:title</child_name>
<name>label847680</name>
<label>Shares</label>
<justify>GTK_JUSTIFY_CENTER</justify>
<wrap>False</wrap>
<xalign>0.5</xalign>
<yalign>0.5</yalign>
<xpad>0</xpad>
<ypad>0</ypad>
</widget>
</widget>
</widget>
</widget>
</widget>
</widget>
<widget>
<class>GnomeDruidPageStandard</class>
<name>details_page</name>
<title>Stock Split Details</title>
<title_color>255,255,255</title_color>
<background_color>102,102,153</background_color>
<logo_background_color>102,102,153</logo_background_color>
<widget>
<class>GtkVBox</class>
<child_name>GnomeDruidPageStandard:vbox</child_name>
<name>druid-vbox32</name>
<border_width>5</border_width>
<homogeneous>False</homogeneous>
<spacing>10</spacing>
<child>
<padding>0</padding>
<expand>True</expand>
<fill>True</fill>
</child>
<widget>
<class>GtkLabel</class>
<name>label847681</name>
<label>Enter the date and the number of shares you gained or lost from the stock split or merger.
For stock mergers (negative splits) use a negative value for the share distribution.
You can also enter a description of the transaction, or accept the default one.</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>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
</widget>
<widget>
<class>GtkHBox</class>
<name>hbox86</name>
<border_width>10</border_width>
<homogeneous>False</homogeneous>
<spacing>4</spacing>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
<widget>
<class>GtkVBox</class>
<name>vbox100</name>
<border_width>2</border_width>
<homogeneous>True</homogeneous>
<spacing>4</spacing>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
<widget>
<class>GtkLabel</class>
<name>label847683</name>
<label>Date:</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>label847684</name>
<label>Share Distribution:</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>label847693</name>
<label>Description:</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>vbox101</name>
<homogeneous>True</homogeneous>
<spacing>4</spacing>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
<widget>
<class>GtkHBox</class>
<name>date_box</name>
<homogeneous>False</homogeneous>
<spacing>0</spacing>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
<widget>
<class>Placeholder</class>
</widget>
</widget>
<widget>
<class>GtkHBox</class>
<name>distribution_box</name>
<homogeneous>False</homogeneous>
<spacing>0</spacing>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
<widget>
<class>Placeholder</class>
</widget>
</widget>
<widget>
<class>GtkEntry</class>
<name>description_entry</name>
<can_focus>True</can_focus>
<editable>True</editable>
<text_visible>True</text_visible>
<text_max_length>0</text_max_length>
<text>Stock Split</text>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
</widget>
</widget>
</widget>
<widget>
<class>GtkHSeparator</class>
<name>hseparator2</name>
<child>
<padding>5</padding>
<expand>False</expand>
<fill>False</fill>
</child>
</widget>
<widget>
<class>GtkLabel</class>
<name>label847691</name>
<label>If you want to record a stock price for the split, enter it below.
You may safely leave it blank.</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>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
</widget>
<widget>
<class>GtkHBox</class>
<name>hbox93</name>
<border_width>10</border_width>
<homogeneous>False</homogeneous>
<spacing>4</spacing>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
<widget>
<class>GtkVBox</class>
<name>vbox107</name>
<homogeneous>True</homogeneous>
<spacing>4</spacing>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
<widget>
<class>GtkLabel</class>
<name>label847692</name>
<label>New Price:</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>label847715</name>
<label>Currency:</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>vbox108</name>
<homogeneous>True</homogeneous>
<spacing>4</spacing>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
<widget>
<class>GtkHBox</class>
<name>price_box</name>
<homogeneous>False</homogeneous>
<spacing>0</spacing>
<child>
<padding>0</padding>
<expand>True</expand>
<fill>True</fill>
</child>
<widget>
<class>Placeholder</class>
</widget>
</widget>
<widget>
<class>GtkHBox</class>
<name>price_currency_box</name>
<homogeneous>False</homogeneous>
<spacing>0</spacing>
<child>
<padding>0</padding>
<expand>True</expand>
<fill>True</fill>
</child>
<widget>
<class>Placeholder</class>
</widget>
</widget>
</widget>
</widget>
</widget>
</widget>
<widget>
<class>GnomeDruidPageStandard</class>
<name>cash_page</name>
<title>Cash In Lieu</title>
<title_color>255,255,255</title_color>
<background_color>102,102,153</background_color>
<logo_background_color>102,102,153</logo_background_color>
<widget>
<class>GtkVBox</class>
<child_name>GnomeDruidPageStandard:vbox</child_name>
<name>druid-vbox33</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>GtkLabel</class>
<name>label847687</name>
<label>If you received a cash disbursement as a result of the stock split,
enter the details of that payment here. Otherwise, just click `Next'.</label>
<justify>GTK_JUSTIFY_LEFT</justify>
<wrap>False</wrap>
<xalign>0.5</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>GtkVBox</class>
<name>vbox102</name>
<border_width>5</border_width>
<homogeneous>False</homogeneous>
<spacing>10</spacing>
<child>
<padding>0</padding>
<expand>True</expand>
<fill>True</fill>
</child>
<widget>
<class>GtkHBox</class>
<name>hbox87</name>
<homogeneous>False</homogeneous>
<spacing>2</spacing>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
<widget>
<class>GtkVBox</class>
<name>vbox103</name>
<homogeneous>True</homogeneous>
<spacing>2</spacing>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
<widget>
<class>GtkLabel</class>
<name>label847688</name>
<label>Cash Amount:</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>label847689</name>
<label>Memo:</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>vbox104</name>
<homogeneous>True</homogeneous>
<spacing>2</spacing>
<child>
<padding>0</padding>
<expand>True</expand>
<fill>True</fill>
</child>
<widget>
<class>GtkHBox</class>
<name>cash_box</name>
<homogeneous>False</homogeneous>
<spacing>0</spacing>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
<widget>
<class>Placeholder</class>
</widget>
</widget>
<widget>
<class>GtkEntry</class>
<name>memo_entry</name>
<can_focus>True</can_focus>
<editable>True</editable>
<text_visible>True</text_visible>
<text_max_length>0</text_max_length>
<text>Cash In Lieu</text>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
</widget>
</widget>
</widget>
<widget>
<class>GtkHBox</class>
<name>hbox88</name>
<homogeneous>True</homogeneous>
<spacing>2</spacing>
<child>
<padding>0</padding>
<expand>True</expand>
<fill>True</fill>
</child>
<widget>
<class>GtkFrame</class>
<name>frame43</name>
<label>Income Account</label>
<label_xalign>0</label_xalign>
<shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
<child>
<padding>0</padding>
<expand>True</expand>
<fill>True</fill>
</child>
<widget>
<class>GtkScrolledWindow</class>
<name>income_scroll</name>
<border_width>3</border_width>
<hscrollbar_policy>GTK_POLICY_AUTOMATIC</hscrollbar_policy>
<vscrollbar_policy>GTK_POLICY_AUTOMATIC</vscrollbar_policy>
<hupdate_policy>GTK_UPDATE_CONTINUOUS</hupdate_policy>
<vupdate_policy>GTK_UPDATE_CONTINUOUS</vupdate_policy>
<widget>
<class>Placeholder</class>
</widget>
</widget>
</widget>
<widget>
<class>GtkFrame</class>
<name>frame44</name>
<label>Asset Account</label>
<label_xalign>0</label_xalign>
<shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
<child>
<padding>0</padding>
<expand>True</expand>
<fill>True</fill>
</child>
<widget>
<class>GtkScrolledWindow</class>
<name>asset_scroll</name>
<border_width>3</border_width>
<hscrollbar_policy>GTK_POLICY_AUTOMATIC</hscrollbar_policy>
<vscrollbar_policy>GTK_POLICY_AUTOMATIC</vscrollbar_policy>
<hupdate_policy>GTK_UPDATE_CONTINUOUS</hupdate_policy>
<vupdate_policy>GTK_UPDATE_CONTINUOUS</vupdate_policy>
<widget>
<class>Placeholder</class>
</widget>
</widget>
</widget>
</widget>
</widget>
</widget>
</widget>
<widget>
<class>GnomeDruidPageFinish</class>
<name>finish_page</name>
<title></title>
<text>If you are finished creating the stock split or merger, press `Finish'.
You may also press `Back' to review your choices, or `Cancel' to
quit without making any changes.</text>
<background_color>102,102,153</background_color>
<logo_background_color>102,102,153</logo_background_color>
<textbox_color>255,255,255</textbox_color>
<text_color>0,0,0</text_color>
<title_color>255,255,255</title_color>
</widget>
</widget>
</widget>
</GTK-Interface>