Files linked to dialog-tax-info.glade

This commit is contained in:
Robert Fewell 2017-06-20 09:25:59 +01:00
parent f1906344c0
commit aebbf61ec5
2 changed files with 136 additions and 158 deletions

View File

@ -1155,12 +1155,14 @@ identity_edit_clicked_cb (GtkButton *button,
alignment = gtk_alignment_new(1.00, 0.50, 1.00, 0.00);
gtk_alignment_set_padding (GTK_ALIGNMENT (alignment), 0, 0, 12, 0);
gtk_container_add (GTK_CONTAINER (alignment), label);
table = gtk_table_new (3, 2, FALSE);
gtk_table_attach_defaults (GTK_TABLE (table), alignment, 0, 1, 0, 1);
table = gtk_grid_new ();
gtk_grid_attach (GTK_GRID(table), alignment, 0, 0, 1, 1);
alignment = gtk_alignment_new(0.00, 0.50, 1.00, 0.00);
gtk_alignment_set_padding (GTK_ALIGNMENT (alignment), 0, 0, 12, 0);
gtk_container_add (GTK_CONTAINER (alignment), name_entry);
gtk_table_attach_defaults (GTK_TABLE (table), alignment, 1, 2, 0, 1);
gtk_grid_attach (GTK_GRID(table), alignment, 1, 0, 1, 1);
store = gtk_list_store_new (1, G_TYPE_STRING);
gtk_list_store_clear(store);
types = ti_dialog->entity_type_infos;
@ -1194,18 +1196,22 @@ identity_edit_clicked_cb (GtkButton *button,
alignment = gtk_alignment_new(1.00, 0.50, 1.00, 0.00);
gtk_alignment_set_padding (GTK_ALIGNMENT (alignment), 0, 0, 12, 0);
gtk_container_add (GTK_CONTAINER (alignment), label);
gtk_table_attach_defaults (GTK_TABLE (table), alignment, 0, 1, 1, 2);
gtk_grid_attach (GTK_GRID(table), alignment, 0, 1, 1, 1);
alignment = gtk_alignment_new(0.00, 0.50, 1.00, 0.00);
gtk_alignment_set_padding (GTK_ALIGNMENT (alignment), 0, 0, 12, 0);
gtk_container_add (GTK_CONTAINER (alignment), type_combo);
gtk_table_attach_defaults (GTK_TABLE (table), alignment, 1, 2, 1, 2);
gtk_grid_attach (GTK_GRID(table), alignment, 1, 1, 1, 1);
label = gtk_label_new (_("CAUTION: If you set TXF categories, and later change 'Type', you will need to manually reset those categories one at a time"));
gtk_label_set_max_width_chars (GTK_LABEL (label), 50);
gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
gnc_label_set_alignment (label, 0.50, 0.50);
alignment = gtk_alignment_new(0.50, 0.50, 1.00, 0.00);
gtk_alignment_set_padding (GTK_ALIGNMENT (alignment), 6, 6, 4, 4);
gtk_container_add (GTK_CONTAINER (alignment), label);
gtk_table_attach_defaults (GTK_TABLE (table), alignment, 0, 2, 2, 3);
gtk_grid_attach (GTK_GRID(table), alignment, 0, 2, 2, 1);
gtk_container_add (GTK_CONTAINER (content_area), table);
gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_APPLY);
g_signal_connect (G_OBJECT (dialog), "response",
@ -1269,9 +1275,9 @@ gnc_tax_info_dialog_create (GtkWidget * parent, TaxInfoDialog *ti_dialog)
builder = gtk_builder_new();
gnc_builder_add_from_file (builder, "dialog-tax-info.glade", "copy_spin_adj");
gnc_builder_add_from_file (builder, "dialog-tax-info.glade", "Tax Information Dialog");
gnc_builder_add_from_file (builder, "dialog-tax-info.glade", "tax_information_dialog");
dialog = GTK_WIDGET(gtk_builder_get_object (builder, "Tax Information Dialog"));
dialog = GTK_WIDGET(gtk_builder_get_object (builder, "tax_information_dialog"));
ti_dialog->dialog = dialog;
initialize_getters ();

View File

@ -1,30 +1,36 @@
<?xml version="1.0"?>
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.20.0 -->
<interface>
<requires lib="gtk+" version="2.16"/>
<!-- interface-naming-policy toplevel-contextual -->
<object class="GtkDialog" id="Tax Information Dialog">
<requires lib="gtk+" version="3.10"/>
<object class="GtkAdjustment" id="copy_spin_adj">
<property name="lower">1</property>
<property name="upper">100</property>
<property name="value">1</property>
<property name="step_increment">1</property>
</object>
<object class="GtkDialog" id="tax_information_dialog">
<property name="can_focus">False</property>
<property name="title" translatable="yes">Income Tax Information</property>
<property name="type_hint">dialog</property>
<child internal-child="vbox">
<object class="GtkVBox" id="dialog-vbox14">
<object class="GtkBox" id="dialog-vbox14">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<property name="spacing">6</property>
<child internal-child="action_area">
<object class="GtkHButtonBox" id="dialog-action_area14">
<object class="GtkButtonBox" id="dialog-action_area14">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="layout_style">end</property>
<child>
<object class="GtkButton" id="cancel_button">
<property name="label">gtk-cancel</property>
<property name="label" translatable="yes">_Cancel</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_default">True</property>
<property name="receives_default">False</property>
<property name="use_action_appearance">False</property>
<property name="use_stock">True</property>
<property name="use_underline">True</property>
</object>
<packing>
<property name="expand">False</property>
@ -34,13 +40,12 @@
</child>
<child>
<object class="GtkButton" id="ok_button">
<property name="label">gtk-ok</property>
<property name="label" translatable="yes">_OK</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_default">True</property>
<property name="receives_default">False</property>
<property name="use_action_appearance">False</property>
<property name="use_stock">True</property>
<property name="use_underline">True</property>
</object>
<packing>
<property name="expand">False</property>
@ -57,9 +62,10 @@
</packing>
</child>
<child>
<object class="GtkVBox" id="vbox101">
<object class="GtkBox" id="vbox101">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkAlignment" id="alignment14">
<property name="visible">True</property>
@ -69,7 +75,7 @@
<object class="GtkLabel" id="label847741">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="halign">start</property>
<property name="label" translatable="yes">&lt;b&gt;Income Tax Identity&lt;/b&gt;</property>
<property name="use_markup">True</property>
<property name="use_underline">True</property>
@ -92,11 +98,9 @@
<property name="top_padding">4</property>
<property name="left_padding">12</property>
<child>
<object class="GtkTable" id="table1">
<object class="GtkGrid" id="table1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="n_rows">3</property>
<property name="n_columns">2</property>
<child>
<object class="GtkAlignment" id="alignment17">
<property name="visible">True</property>
@ -108,7 +112,7 @@
<object class="GtkLabel" id="label847743">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">1</property>
<property name="halign">start</property>
<property name="label" translatable="yes">Name:</property>
<property name="use_markup">True</property>
<property name="use_underline">True</property>
@ -117,7 +121,8 @@
</child>
</object>
<packing>
<property name="y_options">GTK_FILL</property>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
</packing>
</child>
<child>
@ -131,7 +136,6 @@
<object class="GtkLabel" id="label847742">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">1</property>
<property name="label" translatable="yes">Type:</property>
<property name="use_markup">True</property>
<property name="use_underline">True</property>
@ -140,9 +144,8 @@
</child>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
<property name="y_options">GTK_FILL</property>
</packing>
</child>
<child>
@ -157,14 +160,12 @@
<object class="GtkLabel" id="entity_name">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
</object>
</child>
</object>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="y_options">GTK_FILL</property>
<property name="top_attach">0</property>
</packing>
</child>
<child>
@ -176,28 +177,27 @@
<property name="left_padding">12</property>
<child>
<object class="GtkButton" id="identity_edit_button">
<property name="label">gtk-edit</property>
<property name="label" translatable="yes">_Edit</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="tooltip_text" translatable="yes">Click to change Tax Name and/or Tax Type.</property>
<property name="use_action_appearance">False</property>
<property name="use_stock">True</property>
<property name="halign">center</property>
<property name="use_underline">True</property>
</object>
</child>
</object>
<packing>
<property name="right_attach">2</property>
<property name="left_attach">0</property>
<property name="top_attach">2</property>
<property name="bottom_attach">3</property>
<property name="x_options"></property>
<property name="y_options"></property>
<property name="width">2</property>
</packing>
</child>
<child>
<object class="GtkAlignment" id="alignment3">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
<property name="xalign">0</property>
<property name="xscale">0</property>
<property name="yscale">0</property>
@ -206,16 +206,12 @@
<object class="GtkLabel" id="entity_type">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
</object>
</child>
</object>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
<property name="y_options">GTK_FILL</property>
</packing>
</child>
</object>
@ -235,19 +231,20 @@
</packing>
</child>
<child>
<object class="GtkHPaned" id="paned">
<object class="GtkPaned" id="paned">
<property name="visible">True</property>
<property name="can_focus">True</property>
<child>
<object class="GtkVBox" id="acct_info_vbox">
<object class="GtkBox" id="acct_info_vbox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="border_width">6</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkLabel" id="accounts_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="halign">start</property>
<property name="label" translatable="yes">&lt;b&gt;_Accounts&lt;/b&gt;</property>
<property name="use_markup">True</property>
<property name="use_underline">True</property>
@ -264,26 +261,29 @@
<property name="can_focus">False</property>
<property name="left_padding">12</property>
<child>
<object class="GtkVBox" id="vbox96">
<object class="GtkBox" id="vbox96">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkTable" id="table3">
<object class="GtkGrid" id="table3">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="n_rows">2</property>
<property name="n_columns">2</property>
<child>
<object class="GtkRadioButton" id="income_radio">
<property name="label" translatable="yes">_Income</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="use_action_appearance">False</property>
<property name="halign">start</property>
<property name="use_underline">True</property>
<property name="active">True</property>
<property name="draw_indicator">True</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
</packing>
</child>
<child>
<object class="GtkRadioButton" id="expense_radio">
@ -291,14 +291,14 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="use_action_appearance">False</property>
<property name="halign">start</property>
<property name="use_underline">True</property>
<property name="draw_indicator">True</property>
<property name="group">income_radio</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">0</property>
</packing>
</child>
<child>
@ -307,14 +307,14 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="use_action_appearance">False</property>
<property name="halign">start</property>
<property name="use_underline">True</property>
<property name="draw_indicator">True</property>
<property name="group">income_radio</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
</packing>
</child>
<child>
@ -323,16 +323,14 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="use_action_appearance">False</property>
<property name="halign">start</property>
<property name="use_underline">True</property>
<property name="draw_indicator">True</property>
<property name="group">income_radio</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
</packing>
</child>
</object>
@ -346,8 +344,6 @@
<object class="GtkScrolledWindow" id="account_scroll">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hscrollbar_policy">automatic</property>
<property name="vscrollbar_policy">automatic</property>
<property name="shadow_type">in</property>
<child>
<placeholder/>
@ -360,7 +356,7 @@
</packing>
</child>
<child>
<object class="GtkHBox" id="hbox98">
<object class="GtkBox" id="hbox98">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="border_width">3</property>
@ -380,7 +376,6 @@
<object class="GtkLabel" id="label847733">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">1</property>
<property name="label" translatable="yes">Accounts Selected:</property>
<property name="justify">center</property>
</object>
@ -422,56 +417,17 @@
</packing>
</child>
<child>
<object class="GtkHButtonBox" id="hbox99">
<object class="GtkButtonBox" id="hbox99">
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
<object class="GtkButton" id="select_subaccounts_button">
<property name="label" translatable="yes">_Select Subaccounts</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="border_width">3</property>
<property name="use_action_appearance">False</property>
<child>
<object class="GtkAlignment" id="alignment1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xscale">0</property>
<property name="yscale">0</property>
<child>
<object class="GtkHBox" id="hbox100">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="spacing">2</property>
<child>
<object class="GtkImage" id="image1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="stock">gtk-add</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label847737">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">_Select Subaccounts</property>
<property name="use_underline">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">1</property>
</packing>
</child>
</object>
</child>
</object>
</child>
<property name="use_underline">True</property>
</object>
<packing>
<property name="expand">False</property>
@ -502,20 +458,22 @@
</packing>
</child>
<child>
<object class="GtkVBox" id="tax_info_vbox">
<object class="GtkBox" id="tax_info_vbox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="border_width">6</property>
<property name="orientation">vertical</property>
<property name="spacing">12</property>
<child>
<object class="GtkVBox" id="vbox100">
<object class="GtkBox" id="vbox100">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkLabel" id="label847734">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="halign">start</property>
<property name="label" translatable="yes">&lt;b&gt;Account Tax Information&lt;/b&gt;</property>
<property name="use_markup">True</property>
</object>
@ -536,7 +494,7 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="use_action_appearance">False</property>
<property name="halign">start</property>
<property name="use_underline">True</property>
<property name="draw_indicator">True</property>
</object>
@ -556,15 +514,16 @@
</packing>
</child>
<child>
<object class="GtkVBox" id="txf_categories_vbox">
<object class="GtkBox" id="txf_categories_vbox">
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkLabel" id="txf_category_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="halign">start</property>
<property name="label" translatable="yes">&lt;b&gt;_TXF Categories&lt;/b&gt;</property>
<property name="use_markup">True</property>
<property name="use_underline">True</property>
@ -576,54 +535,42 @@
</packing>
</child>
<child>
<object class="GtkVPaned" id="vpaned1">
<object class="GtkPaned" id="paned1">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="margin_top">5</property>
<property name="margin_bottom">5</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="orientation">vertical</property>
<property name="position">200</property>
<child>
<object class="GtkAlignment" id="alignment5">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="left_padding">12</property>
<child>
<object class="GtkScrolledWindow" id="scrolledwindow28">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hscrollbar_policy">automatic</property>
<property name="vscrollbar_policy">automatic</property>
<property name="can_focus">True</property>
<property name="margin_top">5</property>
<property name="margin_bottom">5</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="shadow_type">in</property>
<child>
<object class="GtkTreeView" id="txf_category_view">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="reorderable">True</property>
<property name="rules_hint">True</property>
</object>
</child>
</object>
</child>
</object>
<packing>
<property name="resize">True</property>
<property name="shrink">True</property>
</packing>
</child>
<child>
<object class="GtkAlignment" id="alignment6">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="left_padding">12</property>
<child>
<object class="GtkScrolledWindow" id="help_scroll">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hscrollbar_policy">automatic</property>
<property name="vscrollbar_policy">automatic</property>
<property name="shadow_type">in</property>
<child>
<object class="GtkTextView" id="txf_help_text">
<property name="can_focus">False</property>
<property name="editable">False</property>
<property name="wrap_mode">word</property>
<child internal-child="selection">
<object class="GtkTreeSelection" id="treeview-selection"/>
</child>
</object>
</child>
</object>
@ -634,9 +581,42 @@
<property name="shrink">True</property>
</packing>
</child>
<child>
<object class="GtkAlignment" id="alignment6">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="left_padding">12</property>
<child>
<object class="GtkScrolledWindow" id="help_scroll">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="margin_top">5</property>
<property name="margin_bottom">5</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="shadow_type">in</property>
<child>
<object class="GtkTextView" id="txf_help_text">
<property name="can_focus">True</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="editable">False</property>
<property name="wrap_mode">word</property>
</object>
</child>
</object>
</child>
</object>
<packing>
<property name="resize">True</property>
<property name="shrink">True</property>
</packing>
</child>
</object>
<packing>
<property name="expand">True</property>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
@ -649,20 +629,20 @@
</packing>
</child>
<child>
<object class="GtkHBox" id="pns_copy_hbox">
<object class="GtkBox" id="pns_copy_hbox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="spacing">30</property>
<child>
<object class="GtkVBox" id="payer_name_source_vbox">
<object class="GtkBox" id="payer_name_source_vbox">
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkLabel" id="label847736">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">&lt;b&gt;Payer Name Source&lt;/b&gt;</property>
<property name="use_markup">True</property>
</object>
@ -683,7 +663,7 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="use_action_appearance">False</property>
<property name="halign">start</property>
<property name="use_underline">True</property>
<property name="draw_indicator">True</property>
</object>
@ -706,7 +686,7 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="use_action_appearance">False</property>
<property name="halign">start</property>
<property name="use_underline">True</property>
<property name="draw_indicator">True</property>
<property name="group">current_account_button</property>
@ -727,15 +707,15 @@
</packing>
</child>
<child>
<object class="GtkVBox" id="copy_number_vbox">
<object class="GtkBox" id="copy_number_vbox">
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkLabel" id="label847738">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">&lt;b&gt;Copy Number&lt;/b&gt;</property>
<property name="use_markup">True</property>
</object>
@ -756,8 +736,6 @@
<property name="can_focus">True</property>
<property name="primary_icon_activatable">False</property>
<property name="secondary_icon_activatable">False</property>
<property name="primary_icon_sensitive">True</property>
<property name="secondary_icon_sensitive">True</property>
<property name="adjustment">copy_spin_adj</property>
<property name="climb_rate">1</property>
</object>
@ -803,10 +781,4 @@
<action-widget response="-5">ok_button</action-widget>
</action-widgets>
</object>
<object class="GtkAdjustment" id="copy_spin_adj">
<property name="lower">1</property>
<property name="upper">100</property>
<property name="value">1</property>
<property name="step_increment">1</property>
</object>
</interface>