00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 namespace Foodolini.Activities {
00012
00013
00014 public partial class EditFoodItemDialog {
00015
00016 private Gtk.HBox hbox1;
00017
00018 private Gtk.VBox vbox1;
00019
00020 private Gtk.Table table1;
00021
00022 private Gtk.Label lbAmount1;
00023
00024 private Gtk.Label lbIngre;
00025
00026 private Gtk.Label lbIngredient;
00027
00028 private Gtk.SpinButton spinAmount;
00029
00030 private Gtk.Button bntIngre;
00031
00032 private Gtk.CheckButton chOpen;
00033
00034 private Gtk.Label lbExpiration;
00035
00036 private Gtk.Calendar cal;
00037
00038 private Gtk.Button buttonCancel;
00039
00040 private Gtk.Button buttonOk;
00041
00042 protected virtual void Build() {
00043 Stetic.Gui.Initialize(this);
00044
00045 this.Name = "Foodolini.Activities.EditFoodItemDialog";
00046 this.WindowPosition = ((Gtk.WindowPosition)(4));
00047
00048 Gtk.VBox w1 = this.VBox;
00049 w1.Name = "dialog1_VBox";
00050 w1.BorderWidth = ((uint)(2));
00051
00052 this.hbox1 = new Gtk.HBox();
00053 this.hbox1.Name = "hbox1";
00054 this.hbox1.Spacing = 6;
00055
00056 this.vbox1 = new Gtk.VBox();
00057 this.vbox1.Name = "vbox1";
00058 this.vbox1.Spacing = 6;
00059
00060 this.table1 = new Gtk.Table(((uint)(2)), ((uint)(2)), false);
00061 this.table1.Name = "table1";
00062 this.table1.RowSpacing = ((uint)(6));
00063 this.table1.ColumnSpacing = ((uint)(6));
00064
00065 this.lbAmount1 = new Gtk.Label();
00066 this.lbAmount1.Name = "lbAmount1";
00067 this.lbAmount1.Xalign = 0F;
00068 this.lbAmount1.LabelProp = Mono.Unix.Catalog.GetString("Quantity:");
00069 this.table1.Add(this.lbAmount1);
00070 Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table1[this.lbAmount1]));
00071 w2.XOptions = ((Gtk.AttachOptions)(4));
00072 w2.YOptions = ((Gtk.AttachOptions)(4));
00073
00074 this.lbIngre = new Gtk.Label();
00075 this.lbIngre.Name = "lbIngre";
00076 this.lbIngre.Xalign = 0F;
00077 this.lbIngre.LabelProp = Mono.Unix.Catalog.GetString("Ingredient:");
00078 this.lbIngre.UseMarkup = true;
00079 this.table1.Add(this.lbIngre);
00080 Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table1[this.lbIngre]));
00081 w3.TopAttach = ((uint)(1));
00082 w3.BottomAttach = ((uint)(2));
00083 w3.XOptions = ((Gtk.AttachOptions)(4));
00084 w3.YOptions = ((Gtk.AttachOptions)(4));
00085
00086 this.lbIngredient = new Gtk.Label();
00087 this.lbIngredient.Name = "lbIngredient";
00088 this.lbIngredient.Xalign = 0F;
00089 this.lbIngredient.LabelProp = Mono.Unix.Catalog.GetString("ingredient");
00090 this.table1.Add(this.lbIngredient);
00091 Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table1[this.lbIngredient]));
00092 w4.TopAttach = ((uint)(1));
00093 w4.BottomAttach = ((uint)(2));
00094 w4.LeftAttach = ((uint)(1));
00095 w4.RightAttach = ((uint)(2));
00096 w4.XOptions = ((Gtk.AttachOptions)(4));
00097 w4.YOptions = ((Gtk.AttachOptions)(4));
00098
00099 this.spinAmount = new Gtk.SpinButton(1, 100000, 50);
00100 this.spinAmount.CanFocus = true;
00101 this.spinAmount.Name = "spinAmount";
00102 this.spinAmount.Adjustment.PageIncrement = 50;
00103 this.spinAmount.Adjustment.PageSize = 50;
00104 this.spinAmount.ClimbRate = 1;
00105 this.spinAmount.Numeric = true;
00106 this.spinAmount.Value = 1;
00107 this.table1.Add(this.spinAmount);
00108 Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table1[this.spinAmount]));
00109 w5.LeftAttach = ((uint)(1));
00110 w5.RightAttach = ((uint)(2));
00111 w5.XOptions = ((Gtk.AttachOptions)(4));
00112 w5.YOptions = ((Gtk.AttachOptions)(4));
00113 this.vbox1.Add(this.table1);
00114 Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox1[this.table1]));
00115 w6.Position = 0;
00116 w6.Expand = false;
00117 w6.Fill = false;
00118
00119 this.bntIngre = new Gtk.Button();
00120 this.bntIngre.WidthRequest = 200;
00121 this.bntIngre.CanFocus = true;
00122 this.bntIngre.Name = "bntIngre";
00123 this.bntIngre.UseUnderline = true;
00124 this.bntIngre.Label = Mono.Unix.Catalog.GetString("Change ingredient");
00125 this.vbox1.Add(this.bntIngre);
00126 Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox1[this.bntIngre]));
00127 w7.Position = 1;
00128 w7.Expand = false;
00129 w7.Fill = false;
00130
00131 this.chOpen = new Gtk.CheckButton();
00132 this.chOpen.CanFocus = true;
00133 this.chOpen.Name = "chOpen";
00134 this.chOpen.Label = Mono.Unix.Catalog.GetString("FoodItem is open");
00135 this.chOpen.Active = true;
00136 this.chOpen.DrawIndicator = true;
00137 this.chOpen.UseUnderline = true;
00138 this.vbox1.Add(this.chOpen);
00139 Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.vbox1[this.chOpen]));
00140 w8.Position = 2;
00141 w8.Expand = false;
00142 w8.Fill = false;
00143
00144 this.lbExpiration = new Gtk.Label();
00145 this.lbExpiration.Name = "lbExpiration";
00146 this.lbExpiration.Xalign = 0F;
00147 this.lbExpiration.LabelProp = Mono.Unix.Catalog.GetString("Expiration Date:");
00148 this.vbox1.Add(this.lbExpiration);
00149 Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox1[this.lbExpiration]));
00150 w9.Position = 3;
00151 w9.Expand = false;
00152 w9.Fill = false;
00153
00154 this.cal = new Gtk.Calendar();
00155 this.cal.CanFocus = true;
00156 this.cal.Name = "cal";
00157 this.cal.DisplayOptions = ((Gtk.CalendarDisplayOptions)(35));
00158 this.vbox1.Add(this.cal);
00159 Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox1[this.cal]));
00160 w10.Position = 4;
00161 w10.Expand = false;
00162 w10.Fill = false;
00163 this.hbox1.Add(this.vbox1);
00164 Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.hbox1[this.vbox1]));
00165 w11.Position = 0;
00166 w11.Expand = false;
00167 w11.Fill = false;
00168 w1.Add(this.hbox1);
00169 Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(w1[this.hbox1]));
00170 w12.Position = 0;
00171 w12.Expand = false;
00172 w12.Fill = false;
00173
00174 Gtk.HButtonBox w13 = this.ActionArea;
00175 w13.Name = "dialog1_ActionArea";
00176 w13.Spacing = 6;
00177 w13.BorderWidth = ((uint)(5));
00178 w13.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
00179
00180 this.buttonCancel = new Gtk.Button();
00181 this.buttonCancel.CanDefault = true;
00182 this.buttonCancel.CanFocus = true;
00183 this.buttonCancel.Name = "buttonCancel";
00184 this.buttonCancel.UseUnderline = true;
00185
00186 Gtk.Alignment w14 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00187
00188 Gtk.HBox w15 = new Gtk.HBox();
00189 w15.Spacing = 2;
00190
00191 Gtk.Image w16 = new Gtk.Image();
00192 w16.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-cancel", Gtk.IconSize.Menu, 16);
00193 w15.Add(w16);
00194
00195 Gtk.Label w18 = new Gtk.Label();
00196 w18.LabelProp = Mono.Unix.Catalog.GetString("Cancel");
00197 w18.UseUnderline = true;
00198 w15.Add(w18);
00199 w14.Add(w15);
00200 this.buttonCancel.Add(w14);
00201 this.AddActionWidget(this.buttonCancel, -6);
00202 Gtk.ButtonBox.ButtonBoxChild w22 = ((Gtk.ButtonBox.ButtonBoxChild)(w13[this.buttonCancel]));
00203 w22.Expand = false;
00204 w22.Fill = false;
00205
00206 this.buttonOk = new Gtk.Button();
00207 this.buttonOk.CanDefault = true;
00208 this.buttonOk.CanFocus = true;
00209 this.buttonOk.Name = "buttonOk";
00210 this.buttonOk.UseUnderline = true;
00211
00212 Gtk.Alignment w23 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00213
00214 Gtk.HBox w24 = new Gtk.HBox();
00215 w24.Spacing = 2;
00216
00217 Gtk.Image w25 = new Gtk.Image();
00218 w25.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-apply", Gtk.IconSize.Menu, 16);
00219 w24.Add(w25);
00220
00221 Gtk.Label w27 = new Gtk.Label();
00222 w27.LabelProp = Mono.Unix.Catalog.GetString("Save");
00223 w27.UseUnderline = true;
00224 w24.Add(w27);
00225 w23.Add(w24);
00226 this.buttonOk.Add(w23);
00227 this.AddActionWidget(this.buttonOk, -5);
00228 Gtk.ButtonBox.ButtonBoxChild w31 = ((Gtk.ButtonBox.ButtonBoxChild)(w13[this.buttonOk]));
00229 w31.Position = 1;
00230 w31.Expand = false;
00231 w31.Fill = false;
00232 if ((this.Child != null)) {
00233 this.Child.ShowAll();
00234 }
00235 this.DefaultWidth = 282;
00236 this.DefaultHeight = 449;
00237 this.Show();
00238 this.bntIngre.Clicked += new System.EventHandler(this.OnBntIngreClicked);
00239 this.chOpen.Toggled += new System.EventHandler(this.OnChOpenToggled);
00240 }
00241 }
00242 }