Files linked to dialog-customer.glade

This commit is contained in:
Robert Fewell
2017-06-20 12:55:31 +01:00
parent ff6c83cabe
commit a147d77218
2 changed files with 108 additions and 76 deletions

View File

@@ -572,8 +572,8 @@ gnc_customer_new_window (QofBook *bookp, GncCustomer *cust)
gnc_builder_add_from_file (builder, "dialog-customer.glade", "terms_store");
gnc_builder_add_from_file (builder, "dialog-customer.glade", "tax_included_store");
gnc_builder_add_from_file (builder, "dialog-customer.glade", "taxtable_store");
gnc_builder_add_from_file (builder, "dialog-customer.glade", "Customer Dialog");
cw->dialog = GTK_WIDGET (gtk_builder_get_object (builder, "Customer Dialog"));
gnc_builder_add_from_file (builder, "dialog-customer.glade", "customer_dialog");
cw->dialog = GTK_WIDGET (gtk_builder_get_object (builder, "customer_dialog"));
g_object_set_data (G_OBJECT (cw->dialog), "dialog_info", cw);

View File

@@ -1,7 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.20.0 -->
<interface>
<!-- interface-requires gtk+ 2.16 -->
<object class="GtkDialog" id="Customer Dialog">
<requires lib="gtk+" version="3.10"/>
<object class="GtkListStore" id="tax_included_store">
<columns>
<!-- column-name tax_included_name -->
<column type="gchararray"/>
<!-- column-name tax_included_value -->
<column type="gpointer"/>
</columns>
</object>
<object class="GtkListStore" id="taxtable_store">
<columns>
<!-- column-name taxtable_name -->
<column type="gchararray"/>
<!-- column-name taxtable_value -->
<column type="gpointer"/>
</columns>
</object>
<object class="GtkListStore" id="terms_store">
<columns>
<!-- column-name terms_name -->
<column type="gchararray"/>
<!-- column-name terms_pointer -->
<column type="gpointer"/>
</columns>
</object>
<object class="GtkDialog" id="customer_dialog">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="title" translatable="yes">New Customer</property>
@@ -20,13 +45,12 @@
<property name="layout_style">end</property>
<child>
<object class="GtkButton" id="helpbutton">
<property name="label">gtk-help</property>
<property name="label" translatable="yes">_Help</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>
<signal name="clicked" handler="gnc_customer_window_help_cb" swapped="no"/>
</object>
<packing>
@@ -37,13 +61,12 @@
</child>
<child>
<object class="GtkButton" id="cancelbutton">
<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>
<signal name="clicked" handler="gnc_customer_window_cancel_cb" swapped="no"/>
</object>
<packing>
@@ -54,14 +77,13 @@
</child>
<child>
<object class="GtkButton" id="okbutton">
<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="has_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>
<signal name="clicked" handler="gnc_customer_window_ok_cb" swapped="no"/>
</object>
<packing>
@@ -83,9 +105,10 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<child>
<object class="GtkVBox" id="vbox2">
<object class="GtkBox" id="vbox2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkFrame" id="frame1">
<property name="visible">True</property>
@@ -93,20 +116,25 @@
<property name="border_width">3</property>
<property name="label_xalign">0</property>
<child>
<object class="GtkHBox" id="hbox2">
<object class="GtkBox" id="hbox2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin_left">5</property>
<property name="margin_right">5</property>
<property name="margin_top">5</property>
<property name="margin_bottom">5</property>
<property name="border_width">2</property>
<child>
<object class="GtkVBox" id="vbox11">
<object class="GtkBox" id="vbox11">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<property name="homogeneous">True</property>
<child>
<object class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">1</property>
<property name="halign">end</property>
<property name="label" translatable="yes">Customer Number: </property>
<property name="justify">right</property>
</object>
@@ -120,7 +148,7 @@
<object class="GtkLabel" id="label19">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">1</property>
<property name="halign">end</property>
<property name="label" translatable="yes">Company Name: </property>
<property name="justify">right</property>
</object>
@@ -136,7 +164,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="active">True</property>
<property name="draw_indicator">True</property>
@@ -155,9 +183,10 @@
</packing>
</child>
<child>
<object class="GtkVBox" id="vbox12">
<object class="GtkBox" id="vbox12">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<property name="homogeneous">True</property>
<child>
<object class="GtkEntry" id="id_entry">
@@ -229,20 +258,25 @@
<property name="border_width">3</property>
<property name="label_xalign">0</property>
<child>
<object class="GtkHBox" id="hbox3">
<object class="GtkBox" id="hbox3">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin_left">5</property>
<property name="margin_right">5</property>
<property name="margin_top">5</property>
<property name="margin_bottom">5</property>
<child>
<object class="GtkVBox" id="vbox5">
<object class="GtkBox" id="vbox5">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="border_width">3</property>
<property name="orientation">vertical</property>
<property name="homogeneous">True</property>
<child>
<object class="GtkLabel" id="label3">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">1</property>
<property name="halign">end</property>
<property name="label" translatable="yes">Name: </property>
<property name="justify">right</property>
</object>
@@ -256,7 +290,7 @@
<object class="GtkLabel" id="label4">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">1</property>
<property name="halign">end</property>
<property name="label" translatable="yes">Address: </property>
<property name="justify">right</property>
</object>
@@ -306,7 +340,7 @@
<object class="GtkLabel" id="label5">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">1</property>
<property name="halign">end</property>
<property name="label" translatable="yes">Phone: </property>
<property name="justify">right</property>
</object>
@@ -320,7 +354,7 @@
<object class="GtkLabel" id="label6">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">1</property>
<property name="halign">end</property>
<property name="label" translatable="yes">Fax: </property>
<property name="justify">right</property>
</object>
@@ -334,7 +368,7 @@
<object class="GtkLabel" id="label7">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">1</property>
<property name="halign">end</property>
<property name="label" translatable="yes">Email: </property>
<property name="justify">right</property>
</object>
@@ -353,10 +387,11 @@
</packing>
</child>
<child>
<object class="GtkVBox" id="vbox6">
<object class="GtkBox" id="vbox6">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="border_width">3</property>
<property name="orientation">vertical</property>
<property name="homogeneous">True</property>
<child>
<object class="GtkEntry" id="name_entry">
@@ -493,6 +528,12 @@
<object class="GtkScrolledWindow" id="scrolledwindow1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin_left">5</property>
<property name="margin_right">5</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="border_width">3</property>
<property name="hscrollbar_policy">never</property>
<property name="shadow_type">in</property>
@@ -533,9 +574,10 @@
</packing>
</child>
<child>
<object class="GtkVBox" id="vbox13">
<object class="GtkBox" id="vbox13">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkFrame" id="frame3">
<property name="visible">True</property>
@@ -543,19 +585,24 @@
<property name="border_width">3</property>
<property name="label_xalign">0</property>
<child>
<object class="GtkHBox" id="hbox6">
<object class="GtkBox" id="hbox6">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin_left">5</property>
<property name="margin_right">5</property>
<property name="margin_top">5</property>
<property name="margin_bottom">5</property>
<child>
<object class="GtkVBox" id="vbox7">
<object class="GtkBox" id="vbox7">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<property name="homogeneous">True</property>
<child>
<object class="GtkLabel" id="label36">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">1</property>
<property name="halign">end</property>
<property name="label" translatable="yes">Currency: </property>
<property name="justify">right</property>
</object>
@@ -569,7 +616,7 @@
<object class="GtkLabel" id="label8">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">1</property>
<property name="halign">end</property>
<property name="label" translatable="yes">Terms: </property>
<property name="justify">right</property>
</object>
@@ -583,7 +630,7 @@
<object class="GtkLabel" id="label10">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">1</property>
<property name="halign">end</property>
<property name="label" translatable="yes">Discount: </property>
<property name="justify">right</property>
</object>
@@ -597,7 +644,7 @@
<object class="GtkLabel" id="label11">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">1</property>
<property name="halign">end</property>
<property name="label" translatable="yes">Credit Limit: </property>
<property name="justify">right</property>
</object>
@@ -611,7 +658,7 @@
<object class="GtkLabel" id="label34">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">1</property>
<property name="halign">end</property>
<property name="label" translatable="yes">Tax Included: </property>
<property name="justify">right</property>
</object>
@@ -625,7 +672,7 @@
<object class="GtkLabel" id="label35">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">1</property>
<property name="halign">end</property>
<property name="label" translatable="yes">Tax Table: </property>
<property name="justify">right</property>
</object>
@@ -643,13 +690,14 @@
</packing>
</child>
<child>
<object class="GtkVBox" id="vbox1">
<object class="GtkBox" id="vbox1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="border_width">3</property>
<property name="orientation">vertical</property>
<property name="homogeneous">True</property>
<child>
<object class="GtkHBox" id="currency_box">
<object class="GtkBox" id="currency_box">
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
@@ -682,7 +730,7 @@
</packing>
</child>
<child>
<object class="GtkHBox" id="discount_box">
<object class="GtkBox" id="discount_box">
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
@@ -696,7 +744,7 @@
</packing>
</child>
<child>
<object class="GtkHBox" id="credit_box">
<object class="GtkBox" id="credit_box">
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
@@ -729,7 +777,7 @@
</packing>
</child>
<child>
<object class="GtkHBox" id="hbox7">
<object class="GtkBox" id="hbox7">
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
@@ -738,7 +786,8 @@
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="tooltip_text" translatable="yes">Override the global Tax Table?</property>
<property name="use_action_appearance">False</property>
<property name="halign">start</property>
<property name="margin_right">5</property>
<property name="use_underline">True</property>
<property name="draw_indicator">True</property>
<signal name="toggled" handler="gnc_customer_taxtable_check_cb" swapped="no"/>
@@ -819,9 +868,10 @@
</packing>
</child>
<child>
<object class="GtkVBox" id="vbox9">
<object class="GtkBox" id="vbox9">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkFrame" id="frame5">
<property name="visible">True</property>
@@ -829,20 +879,25 @@
<property name="border_width">3</property>
<property name="label_xalign">0</property>
<child>
<object class="GtkHBox" id="hbox5">
<object class="GtkBox" id="hbox5">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin_left">5</property>
<property name="margin_right">5</property>
<property name="margin_top">5</property>
<property name="margin_bottom">5</property>
<child>
<object class="GtkVBox" id="vbox8">
<object class="GtkBox" id="vbox8">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="border_width">4</property>
<property name="orientation">vertical</property>
<property name="homogeneous">True</property>
<child>
<object class="GtkLabel" id="label14">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">1</property>
<property name="halign">end</property>
<property name="label" translatable="yes">Name: </property>
<property name="justify">right</property>
</object>
@@ -856,7 +911,7 @@
<object class="GtkLabel" id="label15">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">1</property>
<property name="halign">end</property>
<property name="label" translatable="yes">Address: </property>
<property name="justify">right</property>
</object>
@@ -906,7 +961,7 @@
<object class="GtkLabel" id="label16">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">1</property>
<property name="halign">end</property>
<property name="label" translatable="yes">Phone: </property>
<property name="justify">right</property>
</object>
@@ -920,7 +975,7 @@
<object class="GtkLabel" id="label17">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">1</property>
<property name="halign">end</property>
<property name="label" translatable="yes">Fax: </property>
<property name="justify">right</property>
</object>
@@ -934,7 +989,7 @@
<object class="GtkLabel" id="label18">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">1</property>
<property name="halign">end</property>
<property name="label" translatable="yes">Email: </property>
<property name="justify">right</property>
</object>
@@ -953,10 +1008,11 @@
</packing>
</child>
<child>
<object class="GtkVBox" id="vbox3">
<object class="GtkBox" id="vbox3">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="border_width">3</property>
<property name="orientation">vertical</property>
<property name="homogeneous">True</property>
<child>
<object class="GtkEntry" id="shipname_entry">
@@ -1122,28 +1178,4 @@
<action-widget response="-5">okbutton</action-widget>
</action-widgets>
</object>
<object class="GtkListStore" id="tax_included_store">
<columns>
<!-- column-name tax_included_name -->
<column type="gchararray"/>
<!-- column-name tax_included_value -->
<column type="gpointer"/>
</columns>
</object>
<object class="GtkListStore" id="taxtable_store">
<columns>
<!-- column-name taxtable_name -->
<column type="gchararray"/>
<!-- column-name taxtable_value -->
<column type="gpointer"/>
</columns>
</object>
<object class="GtkListStore" id="terms_store">
<columns>
<!-- column-name terms_name -->
<column type="gchararray"/>
<!-- column-name terms_pointer -->
<column type="gpointer"/>
</columns>
</object>
</interface>