00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 namespace Foodolini.Activities {
00012
00013
00014 public partial class IngredientSelector {
00015
00016 private Foodolini.Activities.IngredientsActivity ingredientsactivity;
00017
00018 private Gtk.HBox hbox;
00019
00020 private Gtk.Label lblQuantity;
00021
00022 private Gtk.SpinButton sbQuantity;
00023
00024 private Gtk.Button buttonCancel;
00025
00026 private Gtk.Button buttonOk;
00027
00028 protected virtual void Build() {
00029 Stetic.Gui.Initialize(this);
00030
00031 this.Name = "Foodolini.Activities.IngredientSelector";
00032 this.WindowPosition = ((Gtk.WindowPosition)(4));
00033
00034 Gtk.VBox w1 = this.VBox;
00035 w1.Name = "vBox";
00036 w1.BorderWidth = ((uint)(2));
00037
00038 this.ingredientsactivity = new Foodolini.Activities.IngredientsActivity();
00039 this.ingredientsactivity.Events = ((Gdk.EventMask)(256));
00040 this.ingredientsactivity.Name = "ingredientsactivity";
00041 w1.Add(this.ingredientsactivity);
00042 Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(w1[this.ingredientsactivity]));
00043 w2.Position = 0;
00044
00045 this.hbox = new Gtk.HBox();
00046 this.hbox.Name = "hbox";
00047 this.hbox.Spacing = 6;
00048 this.hbox.BorderWidth = ((uint)(6));
00049
00050 this.lblQuantity = new Gtk.Label();
00051 this.lblQuantity.Name = "lblQuantity";
00052 this.lblQuantity.LabelProp = Mono.Unix.Catalog.GetString("<b>Quantity (g):</b>");
00053 this.lblQuantity.UseMarkup = true;
00054 this.hbox.Add(this.lblQuantity);
00055 Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox[this.lblQuantity]));
00056 w3.Position = 0;
00057 w3.Expand = false;
00058 w3.Fill = false;
00059
00060 this.sbQuantity = new Gtk.SpinButton(0, 100000, 50);
00061 this.sbQuantity.CanFocus = true;
00062 this.sbQuantity.Name = "sbQuantity";
00063 this.sbQuantity.Adjustment.PageIncrement = 10;
00064 this.sbQuantity.ClimbRate = 1;
00065 this.sbQuantity.Numeric = true;
00066 this.hbox.Add(this.sbQuantity);
00067 Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox[this.sbQuantity]));
00068 w4.Position = 1;
00069 w4.Expand = false;
00070 w4.Fill = false;
00071 w1.Add(this.hbox);
00072 Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(w1[this.hbox]));
00073 w5.Position = 1;
00074 w5.Expand = false;
00075 w5.Fill = false;
00076
00077 Gtk.HButtonBox w6 = this.ActionArea;
00078 w6.Name = "dialog1_ActionArea";
00079 w6.Spacing = 6;
00080 w6.BorderWidth = ((uint)(5));
00081 w6.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
00082
00083 this.buttonCancel = new Gtk.Button();
00084 this.buttonCancel.CanDefault = true;
00085 this.buttonCancel.CanFocus = true;
00086 this.buttonCancel.Name = "buttonCancel";
00087 this.buttonCancel.UseUnderline = true;
00088
00089 Gtk.Alignment w7 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00090
00091 Gtk.HBox w8 = new Gtk.HBox();
00092 w8.Spacing = 2;
00093
00094 Gtk.Image w9 = new Gtk.Image();
00095 w9.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-cancel", Gtk.IconSize.Menu, 16);
00096 w8.Add(w9);
00097
00098 Gtk.Label w11 = new Gtk.Label();
00099 w11.LabelProp = Mono.Unix.Catalog.GetString("_Cancel");
00100 w11.UseUnderline = true;
00101 w8.Add(w11);
00102 w7.Add(w8);
00103 this.buttonCancel.Add(w7);
00104 this.AddActionWidget(this.buttonCancel, -6);
00105 Gtk.ButtonBox.ButtonBoxChild w15 = ((Gtk.ButtonBox.ButtonBoxChild)(w6[this.buttonCancel]));
00106 w15.Expand = false;
00107 w15.Fill = false;
00108
00109 this.buttonOk = new Gtk.Button();
00110 this.buttonOk.Sensitive = false;
00111 this.buttonOk.CanDefault = true;
00112 this.buttonOk.CanFocus = true;
00113 this.buttonOk.Name = "buttonOk";
00114 this.buttonOk.UseUnderline = true;
00115
00116 Gtk.Alignment w16 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00117
00118 Gtk.HBox w17 = new Gtk.HBox();
00119 w17.Spacing = 2;
00120
00121 Gtk.Image w18 = new Gtk.Image();
00122 w18.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-apply", Gtk.IconSize.Menu, 16);
00123 w17.Add(w18);
00124
00125 Gtk.Label w20 = new Gtk.Label();
00126 w20.LabelProp = Mono.Unix.Catalog.GetString("_OK");
00127 w20.UseUnderline = true;
00128 w17.Add(w20);
00129 w16.Add(w17);
00130 this.buttonOk.Add(w16);
00131 this.AddActionWidget(this.buttonOk, -5);
00132 Gtk.ButtonBox.ButtonBoxChild w24 = ((Gtk.ButtonBox.ButtonBoxChild)(w6[this.buttonOk]));
00133 w24.Position = 1;
00134 w24.Expand = false;
00135 w24.Fill = false;
00136 if ((this.Child != null)) {
00137 this.Child.ShowAll();
00138 }
00139 this.DefaultWidth = 928;
00140 this.DefaultHeight = 686;
00141 this.hbox.Hide();
00142 this.Show();
00143 }
00144 }
00145 }