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

* src/gnome/dialog-utils.c (gnc_glade_lookup_widget): new func

	* src/gnome/dialog-tax-info.c: use libglade

	* src/gnome/dialog-style-sheet.c: use libglade


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4674 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Dave Peticolas 2001-06-14 00:15:30 +00:00
parent 7bfecbb146
commit 33de0d9ddb
14 changed files with 717 additions and 1023 deletions

View File

@ -1,5 +1,9 @@
2001-06-13 Dave Peticolas <dave@krondo.com>
* src/gnome/dialog-utils.c (gnc_glade_lookup_widget): new func
* src/gnome/dialog-tax-info.c: use libglade
* src/gnome/dialog-style-sheet.c: use libglade
2001-06-13 James LewisMoss <jimdres@mindspring.com>

View File

@ -32,6 +32,7 @@ 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/tax_strings.c
src/gnome/glade/userpass_strings.c
src/gnome/gnc-commodity-edit.c
src/gnome/gnc-datedelta.c

View File

@ -26,7 +26,7 @@
#include <gnome.h>
#include <time.h>
#include "glade-gnc-dialogs.h"
#include "dialog-utils.h"
#include "gnc-dateedit.h"
#include "gnc-engine-util.h"
#include "gnc-ui.h"
@ -75,11 +75,12 @@ gnc_dup_trans_dialog_create (GtkWidget * parent, DupTransDialog *dt_dialog,
time_t date, const char *num_str)
{
GtkWidget *dialog;
GtkObject *dtdo;
GladeXML *xml;
dialog = create_Duplicate_Transaction_Dialog ();
xml = gnc_glade_xml_new ("register.glade", "Duplicate Transaction Dialog");
dialog = glade_xml_get_widget (xml, "Duplicate Transaction Dialog");
dt_dialog->dialog = dialog;
dtdo = GTK_OBJECT (dialog);
/* parent */
if (parent != NULL)
@ -94,7 +95,7 @@ gnc_dup_trans_dialog_create (GtkWidget * parent, DupTransDialog *dt_dialog,
GtkWidget *hbox;
date_edit = gnc_date_edit_new (date, FALSE, FALSE);
hbox = gtk_object_get_data (dtdo, "date_hbox");
hbox = glade_xml_get_widget (xml, "date_hbox");
gtk_widget_show (date_edit);
gtk_box_pack_end (GTK_BOX (hbox), date_edit, TRUE, TRUE, 0);
@ -105,7 +106,7 @@ gnc_dup_trans_dialog_create (GtkWidget * parent, DupTransDialog *dt_dialog,
GtkWidget *num_spin;
long int num;
num_spin = gtk_object_get_data (dtdo, "num_spin");
num_spin = glade_xml_get_widget (xml, "num_spin");
dt_dialog->num_edit = num_spin;
gnome_dialog_editable_enters (GNOME_DIALOG (dialog),

View File

@ -28,8 +28,6 @@
#include "account-tree.h"
#include "dialog-utils.h"
#include "glade-gnc-dialogs.h"
#include "glade-support.h"
#include "gnc-component-manager.h"
#include "gnc-engine-util.h"
#include "gnc-ui.h"
@ -136,7 +134,7 @@ gnc_tax_info_set_changed (TaxInfoDialog *ti_dialog, gboolean changed)
{
GtkWidget *button;
button = lookup_widget (ti_dialog->dialog, "apply_button");
button = gnc_glade_lookup_widget (ti_dialog->dialog, "apply_button");
gtk_widget_set_sensitive (button, changed);
ti_dialog->changed = changed;
@ -538,8 +536,8 @@ gnc_tax_info_update_accounts (TaxInfoDialog *ti_dialog)
num_accounts = g_list_length (accounts);
label = lookup_widget (ti_dialog->dialog, "num_accounts_label");
frame = lookup_widget (ti_dialog->dialog, "tax_info_frame");
label = gnc_glade_lookup_widget (ti_dialog->dialog, "num_accounts_label");
frame = gnc_glade_lookup_widget (ti_dialog->dialog, "tax_info_frame");
string = g_strdup_printf ("%d", num_accounts);
gtk_label_set_text (GTK_LABEL (label), string);
@ -625,12 +623,13 @@ txf_code_select_row_cb (GtkCList *clist,
gtk_editable_delete_text (ge, 0, -1);
gtk_editable_insert_text (ge, text, strlen (text), &pos);
scroll = lookup_widget (GTK_WIDGET (clist), "help_scroll");
scroll = gnc_glade_lookup_widget (GTK_WIDGET (clist), "help_scroll");
adj = gtk_scrolled_window_get_vadjustment (GTK_SCROLLED_WINDOW (scroll));
gtk_adjustment_set_value (adj, 0.0);
frame = lookup_widget (GTK_WIDGET (clist), "payer_name_source_frame");
frame = gnc_glade_lookup_widget (GTK_WIDGET (clist),
"payer_name_source_frame");
if (txf_info->payer_name_source)
{
@ -667,7 +666,8 @@ tax_related_toggled_cb (GtkToggleButton *togglebutton,
on = gtk_toggle_button_get_active (togglebutton);
frame = lookup_widget (GTK_WIDGET (togglebutton), "txf_categories_frame");
frame = gnc_glade_lookup_widget (GTK_WIDGET (togglebutton),
"txf_categories_frame");
gtk_widget_set_sensitive (frame, on);
gnc_tax_info_set_changed (ti_dialog, TRUE);
@ -687,8 +687,11 @@ gnc_tax_info_dialog_create (GtkWidget * parent, TaxInfoDialog *ti_dialog)
{
GtkWidget *dialog;
GtkObject *tido;
GladeXML *xml;
dialog = create_Tax_Information_Dialog ();
xml = gnc_glade_xml_new ("tax.glade", "Tax Information Dialog");
dialog = glade_xml_get_widget (xml, "Tax Information Dialog");
ti_dialog->dialog = dialog;
tido = GTK_OBJECT (dialog);
@ -723,13 +726,13 @@ gnc_tax_info_dialog_create (GtkWidget * parent, TaxInfoDialog *ti_dialog)
GtkWidget *clist;
GtkWidget *text;
button = lookup_widget (dialog, "tax_related_button");
button = glade_xml_get_widget (xml, "tax_related_button");
ti_dialog->tax_related_button = button;
gtk_signal_connect (GTK_OBJECT (button), "toggled",
GTK_SIGNAL_FUNC (tax_related_toggled_cb), ti_dialog);
text = lookup_widget (dialog, "txf_help_text");
text = glade_xml_get_widget (xml, "txf_help_text");
gtk_text_set_word_wrap (GTK_TEXT (text), TRUE);
ti_dialog->txf_help_text = text;
@ -745,17 +748,17 @@ gnc_tax_info_dialog_create (GtkWidget * parent, TaxInfoDialog *ti_dialog)
gtk_widget_set_usize (text, 0, (font->ascent + font->descent) * 5 + 6);
}
clist = lookup_widget (dialog, "txf_category_clist");
clist = glade_xml_get_widget (xml, "txf_category_clist");
gtk_clist_column_titles_passive (GTK_CLIST (clist));
ti_dialog->txf_category_clist = clist;
gtk_signal_connect (GTK_OBJECT (clist), "select-row",
GTK_SIGNAL_FUNC (txf_code_select_row_cb), ti_dialog);
button = lookup_widget (dialog, "current_account_button");
button = glade_xml_get_widget (xml, "current_account_button");
ti_dialog->current_account_button = button;
button = lookup_widget (dialog, "parent_account_button");
button = glade_xml_get_widget (xml, "parent_account_button");
ti_dialog->parent_account_button = button;
gtk_signal_connect (GTK_OBJECT (button), "toggled",
@ -792,10 +795,10 @@ gnc_tax_info_dialog_create (GtkWidget * parent, TaxInfoDialog *ti_dialog)
gtk_widget_show (ti_dialog->account_tree);
scroll = gtk_object_get_data (tido, "account_scroll");
scroll = glade_xml_get_widget (xml, "account_scroll");
gtk_container_add (GTK_CONTAINER (scroll), ti_dialog->account_tree);
income_radio = lookup_widget (dialog, "income_radio");
income_radio = glade_xml_get_widget (xml, "income_radio");
gtk_signal_connect (GTK_OBJECT (income_radio), "toggled",
GTK_SIGNAL_FUNC (gnc_tax_info_income_cb),
ti_dialog);
@ -805,7 +808,7 @@ gnc_tax_info_dialog_create (GtkWidget * parent, TaxInfoDialog *ti_dialog)
{
GtkWidget *button;
button = lookup_widget (dialog, "select_subaccounts_button");
button = glade_xml_get_widget (xml, "select_subaccounts_button");
gtk_signal_connect (GTK_OBJECT (button), "clicked",
GTK_SIGNAL_FUNC (select_subaccounts_clicked),
ti_dialog);

View File

@ -872,3 +872,16 @@ gnc_glade_xml_new (const char *filename, const char *root)
return xml;
}
GtkWidget *
gnc_glade_lookup_widget (GtkWidget *widget, const char *name)
{
GladeXML *xml;
if (!widget || !name) return NULL;
xml = glade_get_widget_tree (widget);
if (!xml) return NULL;
return glade_xml_get_widget (xml, name);
}

View File

@ -90,5 +90,6 @@ void gnc_clist_set_check (GtkCList *list, int row, int col, gboolean checked);
void gnc_clist_columns_autosize (GtkCList *list);
GladeXML * gnc_glade_xml_new (const char *filename, const char *root);
GtkWidget * gnc_glade_lookup_widget (GtkWidget *widget, const char *name);
#endif

View File

@ -5774,407 +5774,3 @@ create_Report_Window (void)
return Report_Window;
}
GtkWidget*
create_Tax_Information_Dialog (void)
{
GtkWidget *Tax_Information_Dialog;
GtkWidget *dialog_vbox14;
GtkWidget *hbox81;
GtkWidget *account_frame;
GtkWidget *vbox96;
GtkWidget *hbox97;
GSList *tax_info_account_type_group = NULL;
GtkWidget *income_radio;
GtkWidget *expense_radio;
GtkWidget *account_scroll;
GtkWidget *hbox98;
GtkWidget *label847733;
GtkWidget *num_accounts_label;
GtkWidget *select_subaccounts_button;
GtkWidget *tax_info_frame;
GtkWidget *vbox92;
GtkWidget *tax_related_button;
GtkWidget *hseparator1;
GtkWidget *txf_categories_frame;
GtkWidget *vbox113;
GtkWidget *scrolledwindow28;
GtkWidget *txf_category_clist;
GtkWidget *label847734;
GtkWidget *label847735;
GtkWidget *help_scroll;
GtkWidget *txf_help_text;
GtkWidget *payer_name_source_frame;
GtkWidget *vbox97;
GSList *payer_name_source_group = NULL;
GtkWidget *current_account_button;
GtkWidget *parent_account_button;
GtkWidget *dialog_action_area14;
GtkWidget *button73;
GtkWidget *apply_button;
GtkWidget *button75;
Tax_Information_Dialog = gnome_dialog_new (_("Tax Information"), NULL);
gtk_object_set_data (GTK_OBJECT (Tax_Information_Dialog), "Tax_Information_Dialog", Tax_Information_Dialog);
gtk_window_set_policy (GTK_WINDOW (Tax_Information_Dialog), TRUE, TRUE, FALSE);
dialog_vbox14 = GNOME_DIALOG (Tax_Information_Dialog)->vbox;
gtk_object_set_data (GTK_OBJECT (Tax_Information_Dialog), "dialog_vbox14", dialog_vbox14);
gtk_widget_show (dialog_vbox14);
hbox81 = gtk_hbox_new (FALSE, 2);
gtk_widget_ref (hbox81);
gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "hbox81", hbox81,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (hbox81);
gtk_box_pack_start (GTK_BOX (dialog_vbox14), hbox81, TRUE, TRUE, 0);
account_frame = gtk_frame_new (_("Accounts"));
gtk_widget_ref (account_frame);
gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "account_frame", account_frame,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (account_frame);
gtk_box_pack_start (GTK_BOX (hbox81), account_frame, TRUE, TRUE, 0);
vbox96 = gtk_vbox_new (FALSE, 0);
gtk_widget_ref (vbox96);
gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "vbox96", vbox96,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (vbox96);
gtk_container_add (GTK_CONTAINER (account_frame), vbox96);
hbox97 = gtk_hbox_new (FALSE, 0);
gtk_widget_ref (hbox97);
gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "hbox97", hbox97,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (hbox97);
gtk_box_pack_start (GTK_BOX (vbox96), hbox97, FALSE, FALSE, 2);
gtk_container_set_border_width (GTK_CONTAINER (hbox97), 3);
income_radio = gtk_radio_button_new_with_label (tax_info_account_type_group, _("Income"));
tax_info_account_type_group = gtk_radio_button_group (GTK_RADIO_BUTTON (income_radio));
gtk_widget_ref (income_radio);
gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "income_radio", income_radio,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (income_radio);
gtk_box_pack_start (GTK_BOX (hbox97), income_radio, FALSE, FALSE, 0);
expense_radio = gtk_radio_button_new_with_label (tax_info_account_type_group, _("Expense"));
tax_info_account_type_group = gtk_radio_button_group (GTK_RADIO_BUTTON (expense_radio));
gtk_widget_ref (expense_radio);
gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "expense_radio", expense_radio,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (expense_radio);
gtk_box_pack_start (GTK_BOX (hbox97), expense_radio, FALSE, FALSE, 0);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (expense_radio), TRUE);
account_scroll = gtk_scrolled_window_new (NULL, NULL);
gtk_widget_ref (account_scroll);
gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "account_scroll", account_scroll,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (account_scroll);
gtk_box_pack_start (GTK_BOX (vbox96), account_scroll, TRUE, TRUE, 0);
gtk_container_set_border_width (GTK_CONTAINER (account_scroll), 3);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (account_scroll), GTK_POLICY_NEVER, GTK_POLICY_ALWAYS);
hbox98 = gtk_hbox_new (FALSE, 2);
gtk_widget_ref (hbox98);
gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "hbox98", hbox98,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (hbox98);
gtk_box_pack_start (GTK_BOX (vbox96), hbox98, FALSE, FALSE, 0);
gtk_container_set_border_width (GTK_CONTAINER (hbox98), 3);
label847733 = gtk_label_new (_("Accounts Selected:"));
gtk_widget_ref (label847733);
gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "label847733", label847733,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (label847733);
gtk_box_pack_start (GTK_BOX (hbox98), label847733, FALSE, FALSE, 0);
gtk_misc_set_alignment (GTK_MISC (label847733), 1, 0.5);
num_accounts_label = gtk_label_new (_("0"));
gtk_widget_ref (num_accounts_label);
gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "num_accounts_label", num_accounts_label,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (num_accounts_label);
gtk_box_pack_start (GTK_BOX (hbox98), num_accounts_label, FALSE, FALSE, 0);
select_subaccounts_button = gtk_button_new_with_label (_("Select Subaccounts"));
gtk_widget_ref (select_subaccounts_button);
gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "select_subaccounts_button", select_subaccounts_button,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (select_subaccounts_button);
gtk_box_pack_start (GTK_BOX (vbox96), select_subaccounts_button, FALSE, FALSE, 0);
gtk_container_set_border_width (GTK_CONTAINER (select_subaccounts_button), 3);
tax_info_frame = gtk_frame_new (_("Tax Information"));
gtk_widget_ref (tax_info_frame);
gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "tax_info_frame", tax_info_frame,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (tax_info_frame);
gtk_box_pack_start (GTK_BOX (hbox81), tax_info_frame, TRUE, TRUE, 0);
gtk_widget_set_sensitive (tax_info_frame, FALSE);
vbox92 = gtk_vbox_new (FALSE, 3);
gtk_widget_ref (vbox92);
gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "vbox92", vbox92,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (vbox92);
gtk_container_add (GTK_CONTAINER (tax_info_frame), vbox92);
gtk_container_set_border_width (GTK_CONTAINER (vbox92), 3);
tax_related_button = gtk_check_button_new_with_label (_("Tax Related"));
gtk_widget_ref (tax_related_button);
gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "tax_related_button", tax_related_button,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (tax_related_button);
gtk_box_pack_start (GTK_BOX (vbox92), tax_related_button, FALSE, FALSE, 0);
hseparator1 = gtk_hseparator_new ();
gtk_widget_ref (hseparator1);
gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "hseparator1", hseparator1,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (hseparator1);
gtk_box_pack_start (GTK_BOX (vbox92), hseparator1, FALSE, FALSE, 6);
txf_categories_frame = gtk_frame_new (_("TXF Categories"));
gtk_widget_ref (txf_categories_frame);
gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "txf_categories_frame", txf_categories_frame,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (txf_categories_frame);
gtk_box_pack_start (GTK_BOX (vbox92), txf_categories_frame, TRUE, TRUE, 0);
gtk_widget_set_sensitive (txf_categories_frame, FALSE);
vbox113 = gtk_vbox_new (FALSE, 2);
gtk_widget_ref (vbox113);
gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "vbox113", vbox113,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (vbox113);
gtk_container_add (GTK_CONTAINER (txf_categories_frame), vbox113);
gtk_container_set_border_width (GTK_CONTAINER (vbox113), 3);
scrolledwindow28 = gtk_scrolled_window_new (NULL, NULL);
gtk_widget_ref (scrolledwindow28);
gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "scrolledwindow28", scrolledwindow28,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (scrolledwindow28);
gtk_box_pack_start (GTK_BOX (vbox113), scrolledwindow28, TRUE, TRUE, 0);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow28), GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS);
txf_category_clist = gtk_clist_new (2);
gtk_widget_ref (txf_category_clist);
gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "txf_category_clist", txf_category_clist,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (txf_category_clist);
gtk_container_add (GTK_CONTAINER (scrolledwindow28), txf_category_clist);
gtk_clist_set_column_width (GTK_CLIST (txf_category_clist), 0, 80);
gtk_clist_set_column_width (GTK_CLIST (txf_category_clist), 1, 80);
gtk_clist_set_selection_mode (GTK_CLIST (txf_category_clist), GTK_SELECTION_BROWSE);
gtk_clist_column_titles_show (GTK_CLIST (txf_category_clist));
label847734 = gtk_label_new (_("Form"));
gtk_widget_ref (label847734);
gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "label847734", label847734,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (label847734);
gtk_clist_set_column_widget (GTK_CLIST (txf_category_clist), 0, label847734);
label847735 = gtk_label_new (_("Description"));
gtk_widget_ref (label847735);
gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "label847735", label847735,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (label847735);
gtk_clist_set_column_widget (GTK_CLIST (txf_category_clist), 1, label847735);
help_scroll = gtk_scrolled_window_new (NULL, NULL);
gtk_widget_ref (help_scroll);
gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "help_scroll", help_scroll,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (help_scroll);
gtk_box_pack_start (GTK_BOX (vbox113), help_scroll, FALSE, FALSE, 0);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (help_scroll), GTK_POLICY_NEVER, GTK_POLICY_ALWAYS);
txf_help_text = gtk_text_new (NULL, NULL);
gtk_widget_ref (txf_help_text);
gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "txf_help_text", txf_help_text,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (txf_help_text);
gtk_container_add (GTK_CONTAINER (help_scroll), txf_help_text);
payer_name_source_frame = gtk_frame_new (_("Payer Name Source"));
gtk_widget_ref (payer_name_source_frame);
gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "payer_name_source_frame", payer_name_source_frame,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (payer_name_source_frame);
gtk_box_pack_start (GTK_BOX (vbox92), payer_name_source_frame, FALSE, FALSE, 0);
vbox97 = gtk_vbox_new (FALSE, 2);
gtk_widget_ref (vbox97);
gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "vbox97", vbox97,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (vbox97);
gtk_container_add (GTK_CONTAINER (payer_name_source_frame), vbox97);
gtk_container_set_border_width (GTK_CONTAINER (vbox97), 3);
current_account_button = gtk_radio_button_new_with_label (payer_name_source_group, _("Current Account"));
payer_name_source_group = gtk_radio_button_group (GTK_RADIO_BUTTON (current_account_button));
gtk_widget_ref (current_account_button);
gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "current_account_button", current_account_button,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (current_account_button);
gtk_box_pack_start (GTK_BOX (vbox97), current_account_button, FALSE, FALSE, 0);
parent_account_button = gtk_radio_button_new_with_label (payer_name_source_group, _("Parent Account"));
payer_name_source_group = gtk_radio_button_group (GTK_RADIO_BUTTON (parent_account_button));
gtk_widget_ref (parent_account_button);
gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "parent_account_button", parent_account_button,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (parent_account_button);
gtk_box_pack_start (GTK_BOX (vbox97), parent_account_button, FALSE, FALSE, 0);
dialog_action_area14 = GNOME_DIALOG (Tax_Information_Dialog)->action_area;
gtk_object_set_data (GTK_OBJECT (Tax_Information_Dialog), "dialog_action_area14", dialog_action_area14);
gtk_widget_show (dialog_action_area14);
gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area14), GTK_BUTTONBOX_END);
gtk_button_box_set_spacing (GTK_BUTTON_BOX (dialog_action_area14), 8);
gnome_dialog_append_button (GNOME_DIALOG (Tax_Information_Dialog), GNOME_STOCK_BUTTON_OK);
button73 = g_list_last (GNOME_DIALOG (Tax_Information_Dialog)->buttons)->data;
gtk_widget_ref (button73);
gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "button73", button73,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (button73);
GTK_WIDGET_SET_FLAGS (button73, GTK_CAN_DEFAULT);
gnome_dialog_append_button (GNOME_DIALOG (Tax_Information_Dialog), GNOME_STOCK_BUTTON_APPLY);
apply_button = g_list_last (GNOME_DIALOG (Tax_Information_Dialog)->buttons)->data;
gtk_widget_ref (apply_button);
gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "apply_button", apply_button,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (apply_button);
GTK_WIDGET_SET_FLAGS (apply_button, GTK_CAN_DEFAULT);
gnome_dialog_append_button (GNOME_DIALOG (Tax_Information_Dialog), GNOME_STOCK_BUTTON_CLOSE);
button75 = g_list_last (GNOME_DIALOG (Tax_Information_Dialog)->buttons)->data;
gtk_widget_ref (button75);
gtk_object_set_data_full (GTK_OBJECT (Tax_Information_Dialog), "button75", button75,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (button75);
GTK_WIDGET_SET_FLAGS (button75, GTK_CAN_DEFAULT);
return Tax_Information_Dialog;
}
GtkWidget*
create_Duplicate_Transaction_Dialog (void)
{
GtkWidget *Duplicate_Transaction_Dialog;
GtkWidget *dialog_vbox15;
GtkWidget *frame41;
GtkWidget *hbox84;
GtkWidget *vbox94;
GtkWidget *label847669;
GtkWidget *label847670;
GtkWidget *vbox95;
GtkWidget *date_hbox;
GtkObject *num_spin_adj;
GtkWidget *num_spin;
GtkWidget *dialog_action_area15;
GtkWidget *button76;
GtkWidget *button77;
Duplicate_Transaction_Dialog = gnome_dialog_new (_("Duplicate Transaction"), NULL);
gtk_object_set_data (GTK_OBJECT (Duplicate_Transaction_Dialog), "Duplicate_Transaction_Dialog", Duplicate_Transaction_Dialog);
gtk_window_set_modal (GTK_WINDOW (Duplicate_Transaction_Dialog), TRUE);
gtk_window_set_policy (GTK_WINDOW (Duplicate_Transaction_Dialog), FALSE, FALSE, FALSE);
gnome_dialog_close_hides (GNOME_DIALOG (Duplicate_Transaction_Dialog), TRUE);
dialog_vbox15 = GNOME_DIALOG (Duplicate_Transaction_Dialog)->vbox;
gtk_object_set_data (GTK_OBJECT (Duplicate_Transaction_Dialog), "dialog_vbox15", dialog_vbox15);
gtk_widget_show (dialog_vbox15);
frame41 = gtk_frame_new (_("Transaction Information"));
gtk_widget_ref (frame41);
gtk_object_set_data_full (GTK_OBJECT (Duplicate_Transaction_Dialog), "frame41", frame41,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (frame41);
gtk_box_pack_start (GTK_BOX (dialog_vbox15), frame41, TRUE, TRUE, 0);
hbox84 = gtk_hbox_new (FALSE, 2);
gtk_widget_ref (hbox84);
gtk_object_set_data_full (GTK_OBJECT (Duplicate_Transaction_Dialog), "hbox84", hbox84,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (hbox84);
gtk_container_add (GTK_CONTAINER (frame41), hbox84);
gtk_container_set_border_width (GTK_CONTAINER (hbox84), 3);
vbox94 = gtk_vbox_new (TRUE, 5);
gtk_widget_ref (vbox94);
gtk_object_set_data_full (GTK_OBJECT (Duplicate_Transaction_Dialog), "vbox94", vbox94,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (vbox94);
gtk_box_pack_start (GTK_BOX (hbox84), vbox94, FALSE, FALSE, 0);
label847669 = gtk_label_new (_("Date:"));
gtk_widget_ref (label847669);
gtk_object_set_data_full (GTK_OBJECT (Duplicate_Transaction_Dialog), "label847669", label847669,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (label847669);
gtk_box_pack_start (GTK_BOX (vbox94), label847669, FALSE, FALSE, 0);
gtk_misc_set_alignment (GTK_MISC (label847669), 1, 0.5);
label847670 = gtk_label_new (_("Num:"));
gtk_widget_ref (label847670);
gtk_object_set_data_full (GTK_OBJECT (Duplicate_Transaction_Dialog), "label847670", label847670,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (label847670);
gtk_box_pack_start (GTK_BOX (vbox94), label847670, FALSE, FALSE, 0);
gtk_misc_set_alignment (GTK_MISC (label847670), 1, 0.5);
vbox95 = gtk_vbox_new (TRUE, 5);
gtk_widget_ref (vbox95);
gtk_object_set_data_full (GTK_OBJECT (Duplicate_Transaction_Dialog), "vbox95", vbox95,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (vbox95);
gtk_box_pack_start (GTK_BOX (hbox84), vbox95, TRUE, TRUE, 0);
date_hbox = gtk_hbox_new (FALSE, 0);
gtk_widget_ref (date_hbox);
gtk_object_set_data_full (GTK_OBJECT (Duplicate_Transaction_Dialog), "date_hbox", date_hbox,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (date_hbox);
gtk_box_pack_start (GTK_BOX (vbox95), date_hbox, TRUE, TRUE, 0);
num_spin_adj = gtk_adjustment_new (0, 0, 100000, 1, 10, 10);
num_spin = gtk_spin_button_new (GTK_ADJUSTMENT (num_spin_adj), 1, 0);
gtk_widget_ref (num_spin);
gtk_object_set_data_full (GTK_OBJECT (Duplicate_Transaction_Dialog), "num_spin", num_spin,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (num_spin);
gtk_box_pack_start (GTK_BOX (vbox95), num_spin, FALSE, FALSE, 0);
dialog_action_area15 = GNOME_DIALOG (Duplicate_Transaction_Dialog)->action_area;
gtk_object_set_data (GTK_OBJECT (Duplicate_Transaction_Dialog), "dialog_action_area15", dialog_action_area15);
gtk_widget_show (dialog_action_area15);
gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area15), GTK_BUTTONBOX_END);
gtk_button_box_set_spacing (GTK_BUTTON_BOX (dialog_action_area15), 8);
gnome_dialog_append_button (GNOME_DIALOG (Duplicate_Transaction_Dialog), GNOME_STOCK_BUTTON_OK);
button76 = g_list_last (GNOME_DIALOG (Duplicate_Transaction_Dialog)->buttons)->data;
gtk_widget_ref (button76);
gtk_object_set_data_full (GTK_OBJECT (Duplicate_Transaction_Dialog), "button76", button76,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (button76);
GTK_WIDGET_SET_FLAGS (button76, GTK_CAN_DEFAULT);
gnome_dialog_append_button (GNOME_DIALOG (Duplicate_Transaction_Dialog), GNOME_STOCK_BUTTON_CANCEL);
button77 = g_list_last (GNOME_DIALOG (Duplicate_Transaction_Dialog)->buttons)->data;
gtk_widget_ref (button77);
gtk_object_set_data_full (GTK_OBJECT (Duplicate_Transaction_Dialog), "button77", button77,
(GtkDestroyNotify) gtk_widget_unref);
gtk_widget_show (button77);
GTK_WIDGET_SET_FLAGS (button77, GTK_CAN_DEFAULT);
return Duplicate_Transaction_Dialog;
}

View File

@ -17,5 +17,3 @@ GtkWidget* create_Transfer_Dialog (void);
GtkWidget* create_Progress_Dialog (void);
GtkWidget* create_Help_Window (void);
GtkWidget* create_Report_Window (void);
GtkWidget* create_Tax_Information_Dialog (void);
GtkWidget* create_Duplicate_Transaction_Dialog (void);

View File

@ -2,15 +2,19 @@ gladedir = $(GNC_GLADE_DIR)
glade_DATA = \
commodity.glade \
price.glade \
register.glade \
report.glade \
stocks.glade \
tax.glade \
userpass.glade
STRING_FILES = \
commodity_strings.c \
price_strings.c \
register_strings.c \
report_strings.c \
stocks.glade \
tax.glade \
userpass_strings.c
EXTRA_DIST = $(glade_DATA) $(STRING_FILES)

View File

@ -0,0 +1,200 @@
<?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>register_strings.c</translatable_strings_file>
</project>
<widget>
<class>GnomeDialog</class>
<name>Duplicate Transaction Dialog</name>
<title>Duplicate Transaction</title>
<type>GTK_WINDOW_TOPLEVEL</type>
<position>GTK_WIN_POS_NONE</position>
<modal>True</modal>
<allow_shrink>False</allow_shrink>
<allow_grow>False</allow_grow>
<auto_shrink>False</auto_shrink>
<auto_close>False</auto_close>
<hide_on_close>True</hide_on_close>
<widget>
<class>GtkVBox</class>
<child_name>GnomeDialog:vbox</child_name>
<name>dialog-vbox15</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_area15</name>
<layout_style>GTK_BUTTONBOX_END</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>button76</name>
<can_default>True</can_default>
<can_focus>True</can_focus>
<stock_button>GNOME_STOCK_BUTTON_OK</stock_button>
</widget>
<widget>
<class>GtkButton</class>
<name>button77</name>
<can_default>True</can_default>
<can_focus>True</can_focus>
<stock_button>GNOME_STOCK_BUTTON_CANCEL</stock_button>
</widget>
</widget>
<widget>
<class>GtkFrame</class>
<name>frame41</name>
<label>Transaction Information</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>GtkHBox</class>
<name>hbox84</name>
<border_width>3</border_width>
<homogeneous>False</homogeneous>
<spacing>2</spacing>
<widget>
<class>GtkVBox</class>
<name>vbox94</name>
<homogeneous>True</homogeneous>
<spacing>5</spacing>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
<widget>
<class>GtkLabel</class>
<name>label847669</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>label847670</name>
<label>Num:</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>vbox95</name>
<homogeneous>True</homogeneous>
<spacing>5</spacing>
<child>
<padding>0</padding>
<expand>True</expand>
<fill>True</fill>
</child>
<widget>
<class>GtkHBox</class>
<name>date_hbox</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>GtkSpinButton</class>
<name>num_spin</name>
<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>0</value>
<lower>0</lower>
<upper>100000</upper>
<step>1</step>
<page>10</page>
<page_size>10</page_size>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
</widget>
</widget>
</widget>
</widget>
</widget>
</widget>
</GTK-Interface>

View File

@ -0,0 +1,10 @@
/*
* 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_("Duplicate Transaction");
gchar *s = N_("Transaction Information");
gchar *s = N_("Date:");
gchar *s = N_("Num:");

436
src/gnome/glade/tax.glade Normal file
View File

@ -0,0 +1,436 @@
<?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>tax_strings.c</translatable_strings_file>
</project>
<widget>
<class>GnomeDialog</class>
<name>Tax Information Dialog</name>
<title>Tax Information</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-vbox14</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_area14</name>
<layout_style>GTK_BUTTONBOX_END</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>button73</name>
<can_default>True</can_default>
<can_focus>True</can_focus>
<stock_button>GNOME_STOCK_BUTTON_OK</stock_button>
</widget>
<widget>
<class>GtkButton</class>
<name>apply_button</name>
<can_default>True</can_default>
<can_focus>True</can_focus>
<stock_button>GNOME_STOCK_BUTTON_APPLY</stock_button>
</widget>
<widget>
<class>GtkButton</class>
<name>button75</name>
<can_default>True</can_default>
<can_focus>True</can_focus>
<stock_button>GNOME_STOCK_BUTTON_CLOSE</stock_button>
</widget>
</widget>
<widget>
<class>GtkHBox</class>
<name>hbox81</name>
<homogeneous>False</homogeneous>
<spacing>2</spacing>
<child>
<padding>0</padding>
<expand>True</expand>
<fill>True</fill>
</child>
<widget>
<class>GtkFrame</class>
<name>account_frame</name>
<label>Accounts</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>GtkVBox</class>
<name>vbox96</name>
<homogeneous>False</homogeneous>
<spacing>0</spacing>
<widget>
<class>GtkHBox</class>
<name>hbox97</name>
<border_width>3</border_width>
<homogeneous>False</homogeneous>
<spacing>0</spacing>
<child>
<padding>2</padding>
<expand>False</expand>
<fill>False</fill>
</child>
<widget>
<class>GtkRadioButton</class>
<name>income_radio</name>
<can_focus>True</can_focus>
<label>Income</label>
<active>False</active>
<draw_indicator>True</draw_indicator>
<group>tax_info_account_type</group>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
</widget>
<widget>
<class>GtkRadioButton</class>
<name>expense_radio</name>
<can_focus>True</can_focus>
<label>Expense</label>
<active>True</active>
<draw_indicator>True</draw_indicator>
<group>tax_info_account_type</group>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
</widget>
</widget>
<widget>
<class>GtkScrolledWindow</class>
<name>account_scroll</name>
<border_width>3</border_width>
<hscrollbar_policy>GTK_POLICY_NEVER</hscrollbar_policy>
<vscrollbar_policy>GTK_POLICY_ALWAYS</vscrollbar_policy>
<hupdate_policy>GTK_UPDATE_CONTINUOUS</hupdate_policy>
<vupdate_policy>GTK_UPDATE_CONTINUOUS</vupdate_policy>
<child>
<padding>0</padding>
<expand>True</expand>
<fill>True</fill>
</child>
<widget>
<class>Placeholder</class>
</widget>
</widget>
<widget>
<class>GtkHBox</class>
<name>hbox98</name>
<border_width>3</border_width>
<homogeneous>False</homogeneous>
<spacing>2</spacing>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
<widget>
<class>GtkLabel</class>
<name>label847733</name>
<label>Accounts Selected:</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>num_accounts_label</name>
<label>0</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>
<widget>
<class>GtkButton</class>
<name>select_subaccounts_button</name>
<border_width>3</border_width>
<can_focus>True</can_focus>
<label>Select Subaccounts</label>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
</widget>
</widget>
</widget>
<widget>
<class>GtkFrame</class>
<name>tax_info_frame</name>
<sensitive>False</sensitive>
<label>Tax Information</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>GtkVBox</class>
<name>vbox92</name>
<border_width>3</border_width>
<homogeneous>False</homogeneous>
<spacing>3</spacing>
<widget>
<class>GtkCheckButton</class>
<name>tax_related_button</name>
<can_focus>True</can_focus>
<label>Tax Related</label>
<active>False</active>
<draw_indicator>True</draw_indicator>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
</widget>
<widget>
<class>GtkHSeparator</class>
<name>hseparator1</name>
<child>
<padding>6</padding>
<expand>False</expand>
<fill>False</fill>
</child>
</widget>
<widget>
<class>GtkFrame</class>
<name>txf_categories_frame</name>
<sensitive>False</sensitive>
<label>TXF Categories</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>GtkVBox</class>
<name>vbox113</name>
<border_width>3</border_width>
<homogeneous>False</homogeneous>
<spacing>2</spacing>
<widget>
<class>GtkScrolledWindow</class>
<name>scrolledwindow28</name>
<hscrollbar_policy>GTK_POLICY_AUTOMATIC</hscrollbar_policy>
<vscrollbar_policy>GTK_POLICY_ALWAYS</vscrollbar_policy>
<hupdate_policy>GTK_UPDATE_CONTINUOUS</hupdate_policy>
<vupdate_policy>GTK_UPDATE_CONTINUOUS</vupdate_policy>
<child>
<padding>0</padding>
<expand>True</expand>
<fill>True</fill>
</child>
<widget>
<class>GtkCList</class>
<name>txf_category_clist</name>
<can_focus>True</can_focus>
<columns>2</columns>
<column_widths>80,80</column_widths>
<selection_mode>GTK_SELECTION_BROWSE</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>label847734</name>
<label>Form</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>label847735</name>
<label>Description</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>
<class>GtkScrolledWindow</class>
<name>help_scroll</name>
<hscrollbar_policy>GTK_POLICY_NEVER</hscrollbar_policy>
<vscrollbar_policy>GTK_POLICY_ALWAYS</vscrollbar_policy>
<hupdate_policy>GTK_UPDATE_CONTINUOUS</hupdate_policy>
<vupdate_policy>GTK_UPDATE_CONTINUOUS</vupdate_policy>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
<widget>
<class>GtkText</class>
<name>txf_help_text</name>
<can_focus>True</can_focus>
<editable>False</editable>
<text></text>
</widget>
</widget>
</widget>
</widget>
<widget>
<class>GtkFrame</class>
<name>payer_name_source_frame</name>
<label>Payer Name Source</label>
<label_xalign>0</label_xalign>
<shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
<widget>
<class>GtkVBox</class>
<name>vbox97</name>
<border_width>3</border_width>
<homogeneous>False</homogeneous>
<spacing>2</spacing>
<widget>
<class>GtkRadioButton</class>
<name>current_account_button</name>
<can_focus>True</can_focus>
<label>Current Account</label>
<active>False</active>
<draw_indicator>True</draw_indicator>
<group>payer_name_source</group>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
</widget>
<widget>
<class>GtkRadioButton</class>
<name>parent_account_button</name>
<can_focus>True</can_focus>
<label>Parent Account</label>
<active>False</active>
<draw_indicator>True</draw_indicator>
<group>payer_name_source</group>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
</widget>
</widget>
</widget>
</widget>
</widget>
</widget>
</widget>
</widget>
</GTK-Interface>

View File

@ -0,0 +1,21 @@
/*
* 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_("Tax Information");
gchar *s = N_("Accounts");
gchar *s = N_("Income");
gchar *s = N_("Expense");
gchar *s = N_("Accounts Selected:");
gchar *s = N_("0");
gchar *s = N_("Select Subaccounts");
gchar *s = N_("Tax Information");
gchar *s = N_("Tax Related");
gchar *s = N_("TXF Categories");
gchar *s = N_("Form");
gchar *s = N_("Description");
gchar *s = N_("Payer Name Source");
gchar *s = N_("Current Account");
gchar *s = N_("Parent Account");

View File

@ -8507,598 +8507,4 @@ Click &quot;Cancel&quot; to abort the QIF import process.</text>
</widget>
</widget>
<widget>
<class>GnomeDialog</class>
<name>Tax Information Dialog</name>
<title>Tax Information</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-vbox14</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_area14</name>
<layout_style>GTK_BUTTONBOX_END</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>button73</name>
<can_default>True</can_default>
<can_focus>True</can_focus>
<stock_button>GNOME_STOCK_BUTTON_OK</stock_button>
</widget>
<widget>
<class>GtkButton</class>
<name>apply_button</name>
<can_default>True</can_default>
<can_focus>True</can_focus>
<stock_button>GNOME_STOCK_BUTTON_APPLY</stock_button>
</widget>
<widget>
<class>GtkButton</class>
<name>button75</name>
<can_default>True</can_default>
<can_focus>True</can_focus>
<stock_button>GNOME_STOCK_BUTTON_CLOSE</stock_button>
</widget>
</widget>
<widget>
<class>GtkHBox</class>
<name>hbox81</name>
<homogeneous>False</homogeneous>
<spacing>2</spacing>
<child>
<padding>0</padding>
<expand>True</expand>
<fill>True</fill>
</child>
<widget>
<class>GtkFrame</class>
<name>account_frame</name>
<label>Accounts</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>GtkVBox</class>
<name>vbox96</name>
<homogeneous>False</homogeneous>
<spacing>0</spacing>
<widget>
<class>GtkHBox</class>
<name>hbox97</name>
<border_width>3</border_width>
<homogeneous>False</homogeneous>
<spacing>0</spacing>
<child>
<padding>2</padding>
<expand>False</expand>
<fill>False</fill>
</child>
<widget>
<class>GtkRadioButton</class>
<name>income_radio</name>
<can_focus>True</can_focus>
<label>Income</label>
<active>False</active>
<draw_indicator>True</draw_indicator>
<group>tax_info_account_type</group>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
</widget>
<widget>
<class>GtkRadioButton</class>
<name>expense_radio</name>
<can_focus>True</can_focus>
<label>Expense</label>
<active>True</active>
<draw_indicator>True</draw_indicator>
<group>tax_info_account_type</group>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
</widget>
</widget>
<widget>
<class>GtkScrolledWindow</class>
<name>account_scroll</name>
<border_width>3</border_width>
<hscrollbar_policy>GTK_POLICY_NEVER</hscrollbar_policy>
<vscrollbar_policy>GTK_POLICY_ALWAYS</vscrollbar_policy>
<hupdate_policy>GTK_UPDATE_CONTINUOUS</hupdate_policy>
<vupdate_policy>GTK_UPDATE_CONTINUOUS</vupdate_policy>
<child>
<padding>0</padding>
<expand>True</expand>
<fill>True</fill>
</child>
<widget>
<class>Placeholder</class>
</widget>
</widget>
<widget>
<class>GtkHBox</class>
<name>hbox98</name>
<border_width>3</border_width>
<homogeneous>False</homogeneous>
<spacing>2</spacing>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
<widget>
<class>GtkLabel</class>
<name>label847733</name>
<label>Accounts Selected:</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>num_accounts_label</name>
<label>0</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>
<widget>
<class>GtkButton</class>
<name>select_subaccounts_button</name>
<border_width>3</border_width>
<can_focus>True</can_focus>
<label>Select Subaccounts</label>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
</widget>
</widget>
</widget>
<widget>
<class>GtkFrame</class>
<name>tax_info_frame</name>
<sensitive>False</sensitive>
<label>Tax Information</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>GtkVBox</class>
<name>vbox92</name>
<border_width>3</border_width>
<homogeneous>False</homogeneous>
<spacing>3</spacing>
<widget>
<class>GtkCheckButton</class>
<name>tax_related_button</name>
<can_focus>True</can_focus>
<label>Tax Related</label>
<active>False</active>
<draw_indicator>True</draw_indicator>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
</widget>
<widget>
<class>GtkHSeparator</class>
<name>hseparator1</name>
<child>
<padding>6</padding>
<expand>False</expand>
<fill>False</fill>
</child>
</widget>
<widget>
<class>GtkFrame</class>
<name>txf_categories_frame</name>
<sensitive>False</sensitive>
<label>TXF Categories</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>GtkVBox</class>
<name>vbox113</name>
<border_width>3</border_width>
<homogeneous>False</homogeneous>
<spacing>2</spacing>
<widget>
<class>GtkScrolledWindow</class>
<name>scrolledwindow28</name>
<hscrollbar_policy>GTK_POLICY_AUTOMATIC</hscrollbar_policy>
<vscrollbar_policy>GTK_POLICY_ALWAYS</vscrollbar_policy>
<hupdate_policy>GTK_UPDATE_CONTINUOUS</hupdate_policy>
<vupdate_policy>GTK_UPDATE_CONTINUOUS</vupdate_policy>
<child>
<padding>0</padding>
<expand>True</expand>
<fill>True</fill>
</child>
<widget>
<class>GtkCList</class>
<name>txf_category_clist</name>
<can_focus>True</can_focus>
<columns>2</columns>
<column_widths>80,80</column_widths>
<selection_mode>GTK_SELECTION_BROWSE</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>label847734</name>
<label>Form</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>label847735</name>
<label>Description</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>
<class>GtkScrolledWindow</class>
<name>help_scroll</name>
<hscrollbar_policy>GTK_POLICY_NEVER</hscrollbar_policy>
<vscrollbar_policy>GTK_POLICY_ALWAYS</vscrollbar_policy>
<hupdate_policy>GTK_UPDATE_CONTINUOUS</hupdate_policy>
<vupdate_policy>GTK_UPDATE_CONTINUOUS</vupdate_policy>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
<widget>
<class>GtkText</class>
<name>txf_help_text</name>
<can_focus>True</can_focus>
<editable>False</editable>
<text></text>
</widget>
</widget>
</widget>
</widget>
<widget>
<class>GtkFrame</class>
<name>payer_name_source_frame</name>
<label>Payer Name Source</label>
<label_xalign>0</label_xalign>
<shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
<widget>
<class>GtkVBox</class>
<name>vbox97</name>
<border_width>3</border_width>
<homogeneous>False</homogeneous>
<spacing>2</spacing>
<widget>
<class>GtkRadioButton</class>
<name>current_account_button</name>
<can_focus>True</can_focus>
<label>Current Account</label>
<active>False</active>
<draw_indicator>True</draw_indicator>
<group>payer_name_source</group>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
</widget>
<widget>
<class>GtkRadioButton</class>
<name>parent_account_button</name>
<can_focus>True</can_focus>
<label>Parent Account</label>
<active>False</active>
<draw_indicator>True</draw_indicator>
<group>payer_name_source</group>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
</widget>
</widget>
</widget>
</widget>
</widget>
</widget>
</widget>
</widget>
<widget>
<class>GnomeDialog</class>
<name>Duplicate Transaction Dialog</name>
<title>Duplicate Transaction</title>
<type>GTK_WINDOW_TOPLEVEL</type>
<position>GTK_WIN_POS_NONE</position>
<modal>True</modal>
<allow_shrink>False</allow_shrink>
<allow_grow>False</allow_grow>
<auto_shrink>False</auto_shrink>
<auto_close>False</auto_close>
<hide_on_close>True</hide_on_close>
<widget>
<class>GtkVBox</class>
<child_name>GnomeDialog:vbox</child_name>
<name>dialog-vbox15</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_area15</name>
<layout_style>GTK_BUTTONBOX_END</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>button76</name>
<can_default>True</can_default>
<can_focus>True</can_focus>
<stock_button>GNOME_STOCK_BUTTON_OK</stock_button>
</widget>
<widget>
<class>GtkButton</class>
<name>button77</name>
<can_default>True</can_default>
<can_focus>True</can_focus>
<stock_button>GNOME_STOCK_BUTTON_CANCEL</stock_button>
</widget>
</widget>
<widget>
<class>GtkFrame</class>
<name>frame41</name>
<label>Transaction Information</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>GtkHBox</class>
<name>hbox84</name>
<border_width>3</border_width>
<homogeneous>False</homogeneous>
<spacing>2</spacing>
<widget>
<class>GtkVBox</class>
<name>vbox94</name>
<homogeneous>True</homogeneous>
<spacing>5</spacing>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
<widget>
<class>GtkLabel</class>
<name>label847669</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>label847670</name>
<label>Num:</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>vbox95</name>
<homogeneous>True</homogeneous>
<spacing>5</spacing>
<child>
<padding>0</padding>
<expand>True</expand>
<fill>True</fill>
</child>
<widget>
<class>GtkHBox</class>
<name>date_hbox</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>GtkSpinButton</class>
<name>num_spin</name>
<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>0</value>
<lower>0</lower>
<upper>100000</upper>
<step>1</step>
<page>10</page>
<page_size>10</page_size>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
</widget>
</widget>
</widget>
</widget>
</widget>
</widget>
</GTK-Interface>