00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 namespace Foodolini.Activities {
00012
00013
00014 public partial class IngredientDialog {
00015
00016 private Gtk.Table table1;
00017
00018 private Gtk.ComboBox cbFoodGroup;
00019
00020 private Gtk.HBox hbox1;
00021
00022 private Gtk.SpinButton sbShelfDays;
00023
00024 private Gtk.Label label12;
00025
00026 private Gtk.HBox hbox2;
00027
00028 private Gtk.SpinButton sbOpenDays;
00029
00030 private Gtk.Label label13;
00031
00032 private Gtk.Label label1;
00033
00034 private Gtk.Label label2;
00035
00036 private Gtk.Label label3;
00037
00038 private Gtk.Label label4;
00039
00040 private Gtk.Label label5;
00041
00042 private Gtk.Label label6;
00043
00044 private Gtk.Label label7;
00045
00046 private Gtk.Entry txtCommercialName;
00047
00048 private Gtk.Entry txtLongDescription;
00049
00050 private Gtk.Entry txtManufacturer;
00051
00052 private Gtk.Entry txtShortDescription;
00053
00054 private Gtk.ScrolledWindow GtkScrolledWindow;
00055
00056 private Gtk.NodeView nutrientsView;
00057
00058 private Gtk.Button btnDelete;
00059
00060 private Gtk.Button buttonCancel;
00061
00062 private Gtk.Button buttonOk;
00063
00064 protected virtual void Build() {
00065 Stetic.Gui.Initialize(this);
00066
00067 this.Name = "Foodolini.Activities.IngredientDialog";
00068 this.WindowPosition = ((Gtk.WindowPosition)(4));
00069
00070 Gtk.VBox w1 = this.VBox;
00071 w1.Name = "vBox";
00072 w1.BorderWidth = ((uint)(2));
00073
00074 this.table1 = new Gtk.Table(((uint)(7)), ((uint)(2)), false);
00075 this.table1.Name = "table1";
00076 this.table1.RowSpacing = ((uint)(6));
00077 this.table1.ColumnSpacing = ((uint)(6));
00078
00079 this.cbFoodGroup = Gtk.ComboBox.NewText();
00080 this.cbFoodGroup.Name = "cbFoodGroup";
00081 this.table1.Add(this.cbFoodGroup);
00082 Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table1[this.cbFoodGroup]));
00083 w2.TopAttach = ((uint)(6));
00084 w2.BottomAttach = ((uint)(7));
00085 w2.LeftAttach = ((uint)(1));
00086 w2.RightAttach = ((uint)(2));
00087 w2.XOptions = ((Gtk.AttachOptions)(4));
00088 w2.YOptions = ((Gtk.AttachOptions)(4));
00089
00090 this.hbox1 = new Gtk.HBox();
00091 this.hbox1.Name = "hbox1";
00092 this.hbox1.Spacing = 6;
00093
00094 this.sbShelfDays = new Gtk.SpinButton(0, 3650, 1);
00095 this.sbShelfDays.CanFocus = true;
00096 this.sbShelfDays.Name = "sbShelfDays";
00097 this.sbShelfDays.Adjustment.PageIncrement = 10;
00098 this.sbShelfDays.ClimbRate = 1;
00099 this.sbShelfDays.Numeric = true;
00100 this.hbox1.Add(this.sbShelfDays);
00101 Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.sbShelfDays]));
00102 w3.Position = 0;
00103 w3.Expand = false;
00104 w3.Fill = false;
00105
00106 this.label12 = new Gtk.Label();
00107 this.label12.Name = "label12";
00108 this.label12.LabelProp = Mono.Unix.Catalog.GetString("days");
00109 this.hbox1.Add(this.label12);
00110 Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox1[this.label12]));
00111 w4.Position = 1;
00112 w4.Expand = false;
00113 w4.Fill = false;
00114 this.table1.Add(this.hbox1);
00115 Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table1[this.hbox1]));
00116 w5.TopAttach = ((uint)(4));
00117 w5.BottomAttach = ((uint)(5));
00118 w5.LeftAttach = ((uint)(1));
00119 w5.RightAttach = ((uint)(2));
00120 w5.YOptions = ((Gtk.AttachOptions)(4));
00121
00122 this.hbox2 = new Gtk.HBox();
00123 this.hbox2.Name = "hbox2";
00124 this.hbox2.Spacing = 6;
00125
00126 this.sbOpenDays = new Gtk.SpinButton(0, 3650, 1);
00127 this.sbOpenDays.CanFocus = true;
00128 this.sbOpenDays.Name = "sbOpenDays";
00129 this.sbOpenDays.Adjustment.PageIncrement = 10;
00130 this.sbOpenDays.ClimbRate = 1;
00131 this.sbOpenDays.Numeric = true;
00132 this.hbox2.Add(this.sbOpenDays);
00133 Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox2[this.sbOpenDays]));
00134 w6.Position = 0;
00135 w6.Expand = false;
00136 w6.Fill = false;
00137
00138 this.label13 = new Gtk.Label();
00139 this.label13.Name = "label13";
00140 this.label13.LabelProp = Mono.Unix.Catalog.GetString("days");
00141 this.hbox2.Add(this.label13);
00142 Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hbox2[this.label13]));
00143 w7.Position = 1;
00144 w7.Expand = false;
00145 w7.Fill = false;
00146 this.table1.Add(this.hbox2);
00147 Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table1[this.hbox2]));
00148 w8.TopAttach = ((uint)(5));
00149 w8.BottomAttach = ((uint)(6));
00150 w8.LeftAttach = ((uint)(1));
00151 w8.RightAttach = ((uint)(2));
00152 w8.YOptions = ((Gtk.AttachOptions)(4));
00153
00154 this.label1 = new Gtk.Label();
00155 this.label1.Name = "label1";
00156 this.label1.Xalign = 0F;
00157 this.label1.LabelProp = Mono.Unix.Catalog.GetString("<b>Full name:</b>");
00158 this.label1.UseMarkup = true;
00159 this.table1.Add(this.label1);
00160 Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table1[this.label1]));
00161 w9.XOptions = ((Gtk.AttachOptions)(4));
00162 w9.YOptions = ((Gtk.AttachOptions)(4));
00163
00164 this.label2 = new Gtk.Label();
00165 this.label2.Name = "label2";
00166 this.label2.Xalign = 0F;
00167 this.label2.LabelProp = Mono.Unix.Catalog.GetString("<b>Abbreviated name:</b>");
00168 this.label2.UseMarkup = true;
00169 this.table1.Add(this.label2);
00170 Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table1[this.label2]));
00171 w10.TopAttach = ((uint)(1));
00172 w10.BottomAttach = ((uint)(2));
00173 w10.XOptions = ((Gtk.AttachOptions)(4));
00174 w10.YOptions = ((Gtk.AttachOptions)(4));
00175
00176 this.label3 = new Gtk.Label();
00177 this.label3.Name = "label3";
00178 this.label3.Xalign = 0F;
00179 this.label3.LabelProp = Mono.Unix.Catalog.GetString("<b>Commercial name:</b>");
00180 this.label3.UseMarkup = true;
00181 this.table1.Add(this.label3);
00182 Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table1[this.label3]));
00183 w11.TopAttach = ((uint)(2));
00184 w11.BottomAttach = ((uint)(3));
00185 w11.XOptions = ((Gtk.AttachOptions)(4));
00186 w11.YOptions = ((Gtk.AttachOptions)(4));
00187
00188 this.label4 = new Gtk.Label();
00189 this.label4.Name = "label4";
00190 this.label4.Xalign = 0F;
00191 this.label4.LabelProp = Mono.Unix.Catalog.GetString("<b>Manufacturer:</b>");
00192 this.label4.UseMarkup = true;
00193 this.table1.Add(this.label4);
00194 Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table1[this.label4]));
00195 w12.TopAttach = ((uint)(3));
00196 w12.BottomAttach = ((uint)(4));
00197 w12.XOptions = ((Gtk.AttachOptions)(4));
00198 w12.YOptions = ((Gtk.AttachOptions)(4));
00199
00200 this.label5 = new Gtk.Label();
00201 this.label5.Name = "label5";
00202 this.label5.Xalign = 0F;
00203 this.label5.LabelProp = Mono.Unix.Catalog.GetString("<b>Shelf life:</b>");
00204 this.label5.UseMarkup = true;
00205 this.table1.Add(this.label5);
00206 Gtk.Table.TableChild w13 = ((Gtk.Table.TableChild)(this.table1[this.label5]));
00207 w13.TopAttach = ((uint)(4));
00208 w13.BottomAttach = ((uint)(5));
00209 w13.XOptions = ((Gtk.AttachOptions)(4));
00210 w13.YOptions = ((Gtk.AttachOptions)(4));
00211
00212 this.label6 = new Gtk.Label();
00213 this.label6.Name = "label6";
00214 this.label6.LabelProp = Mono.Unix.Catalog.GetString("<b>Expiration after opening:</b>");
00215 this.label6.UseMarkup = true;
00216 this.table1.Add(this.label6);
00217 Gtk.Table.TableChild w14 = ((Gtk.Table.TableChild)(this.table1[this.label6]));
00218 w14.TopAttach = ((uint)(5));
00219 w14.BottomAttach = ((uint)(6));
00220 w14.XOptions = ((Gtk.AttachOptions)(4));
00221 w14.YOptions = ((Gtk.AttachOptions)(4));
00222
00223 this.label7 = new Gtk.Label();
00224 this.label7.Name = "label7";
00225 this.label7.Xalign = 0F;
00226 this.label7.LabelProp = Mono.Unix.Catalog.GetString("<b>Category:</b>");
00227 this.label7.UseMarkup = true;
00228 this.table1.Add(this.label7);
00229 Gtk.Table.TableChild w15 = ((Gtk.Table.TableChild)(this.table1[this.label7]));
00230 w15.TopAttach = ((uint)(6));
00231 w15.BottomAttach = ((uint)(7));
00232 w15.XOptions = ((Gtk.AttachOptions)(4));
00233 w15.YOptions = ((Gtk.AttachOptions)(4));
00234
00235 this.txtCommercialName = new Gtk.Entry();
00236 this.txtCommercialName.CanFocus = true;
00237 this.txtCommercialName.Name = "txtCommercialName";
00238 this.txtCommercialName.IsEditable = true;
00239 this.txtCommercialName.InvisibleChar = '•';
00240 this.table1.Add(this.txtCommercialName);
00241 Gtk.Table.TableChild w16 = ((Gtk.Table.TableChild)(this.table1[this.txtCommercialName]));
00242 w16.TopAttach = ((uint)(2));
00243 w16.BottomAttach = ((uint)(3));
00244 w16.LeftAttach = ((uint)(1));
00245 w16.RightAttach = ((uint)(2));
00246 w16.XOptions = ((Gtk.AttachOptions)(4));
00247 w16.YOptions = ((Gtk.AttachOptions)(4));
00248
00249 this.txtLongDescription = new Gtk.Entry();
00250 this.txtLongDescription.CanFocus = true;
00251 this.txtLongDescription.Name = "txtLongDescription";
00252 this.txtLongDescription.IsEditable = true;
00253 this.txtLongDescription.InvisibleChar = '•';
00254 this.table1.Add(this.txtLongDescription);
00255 Gtk.Table.TableChild w17 = ((Gtk.Table.TableChild)(this.table1[this.txtLongDescription]));
00256 w17.LeftAttach = ((uint)(1));
00257 w17.RightAttach = ((uint)(2));
00258 w17.YOptions = ((Gtk.AttachOptions)(4));
00259
00260 this.txtManufacturer = new Gtk.Entry();
00261 this.txtManufacturer.CanFocus = true;
00262 this.txtManufacturer.Name = "txtManufacturer";
00263 this.txtManufacturer.IsEditable = true;
00264 this.txtManufacturer.InvisibleChar = '•';
00265 this.table1.Add(this.txtManufacturer);
00266 Gtk.Table.TableChild w18 = ((Gtk.Table.TableChild)(this.table1[this.txtManufacturer]));
00267 w18.TopAttach = ((uint)(3));
00268 w18.BottomAttach = ((uint)(4));
00269 w18.LeftAttach = ((uint)(1));
00270 w18.RightAttach = ((uint)(2));
00271 w18.XOptions = ((Gtk.AttachOptions)(4));
00272 w18.YOptions = ((Gtk.AttachOptions)(4));
00273
00274 this.txtShortDescription = new Gtk.Entry();
00275 this.txtShortDescription.CanFocus = true;
00276 this.txtShortDescription.Name = "txtShortDescription";
00277 this.txtShortDescription.IsEditable = true;
00278 this.txtShortDescription.InvisibleChar = '•';
00279 this.table1.Add(this.txtShortDescription);
00280 Gtk.Table.TableChild w19 = ((Gtk.Table.TableChild)(this.table1[this.txtShortDescription]));
00281 w19.TopAttach = ((uint)(1));
00282 w19.BottomAttach = ((uint)(2));
00283 w19.LeftAttach = ((uint)(1));
00284 w19.RightAttach = ((uint)(2));
00285 w19.XOptions = ((Gtk.AttachOptions)(4));
00286 w19.YOptions = ((Gtk.AttachOptions)(4));
00287 w1.Add(this.table1);
00288 Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(w1[this.table1]));
00289 w20.Position = 0;
00290 w20.Expand = false;
00291
00292 this.GtkScrolledWindow = new Gtk.ScrolledWindow();
00293 this.GtkScrolledWindow.Name = "GtkScrolledWindow";
00294 this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
00295
00296 this.nutrientsView = new Gtk.NodeView();
00297 this.nutrientsView.CanFocus = true;
00298 this.nutrientsView.Name = "nutrientsView";
00299 this.nutrientsView.HoverSelection = true;
00300 this.GtkScrolledWindow.Add(this.nutrientsView);
00301 w1.Add(this.GtkScrolledWindow);
00302 Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(w1[this.GtkScrolledWindow]));
00303 w22.Position = 1;
00304
00305 Gtk.HButtonBox w23 = this.ActionArea;
00306 w23.Name = "dialog1_ActionArea";
00307 w23.Spacing = 6;
00308 w23.BorderWidth = ((uint)(5));
00309 w23.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
00310
00311 this.btnDelete = new Gtk.Button();
00312 this.btnDelete.CanFocus = true;
00313 this.btnDelete.Name = "btnDelete";
00314 this.btnDelete.UseUnderline = true;
00315
00316 Gtk.Alignment w24 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00317
00318 Gtk.HBox w25 = new Gtk.HBox();
00319 w25.Spacing = 2;
00320
00321 Gtk.Image w26 = new Gtk.Image();
00322 w26.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-delete", Gtk.IconSize.Menu, 16);
00323 w25.Add(w26);
00324
00325 Gtk.Label w28 = new Gtk.Label();
00326 w28.LabelProp = Mono.Unix.Catalog.GetString("_Delete");
00327 w28.UseUnderline = true;
00328 w25.Add(w28);
00329 w24.Add(w25);
00330 this.btnDelete.Add(w24);
00331 this.AddActionWidget(this.btnDelete, -2);
00332 Gtk.ButtonBox.ButtonBoxChild w32 = ((Gtk.ButtonBox.ButtonBoxChild)(w23[this.btnDelete]));
00333 w32.Expand = false;
00334 w32.Fill = false;
00335
00336 this.buttonCancel = new Gtk.Button();
00337 this.buttonCancel.CanDefault = true;
00338 this.buttonCancel.CanFocus = true;
00339 this.buttonCancel.Name = "buttonCancel";
00340 this.buttonCancel.UseUnderline = true;
00341
00342 Gtk.Alignment w33 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00343
00344 Gtk.HBox w34 = new Gtk.HBox();
00345 w34.Spacing = 2;
00346
00347 Gtk.Image w35 = new Gtk.Image();
00348 w35.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-cancel", Gtk.IconSize.Menu, 16);
00349 w34.Add(w35);
00350
00351 Gtk.Label w37 = new Gtk.Label();
00352 w37.LabelProp = Mono.Unix.Catalog.GetString("_Cancel");
00353 w37.UseUnderline = true;
00354 w34.Add(w37);
00355 w33.Add(w34);
00356 this.buttonCancel.Add(w33);
00357 this.AddActionWidget(this.buttonCancel, -6);
00358 Gtk.ButtonBox.ButtonBoxChild w41 = ((Gtk.ButtonBox.ButtonBoxChild)(w23[this.buttonCancel]));
00359 w41.Position = 1;
00360 w41.Expand = false;
00361 w41.Fill = false;
00362
00363 this.buttonOk = new Gtk.Button();
00364 this.buttonOk.CanDefault = true;
00365 this.buttonOk.CanFocus = true;
00366 this.buttonOk.Name = "buttonOk";
00367 this.buttonOk.UseUnderline = true;
00368
00369 Gtk.Alignment w42 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00370
00371 Gtk.HBox w43 = new Gtk.HBox();
00372 w43.Spacing = 2;
00373
00374 Gtk.Image w44 = new Gtk.Image();
00375 w44.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-apply", Gtk.IconSize.Menu, 16);
00376 w43.Add(w44);
00377
00378 Gtk.Label w46 = new Gtk.Label();
00379 w46.LabelProp = Mono.Unix.Catalog.GetString("_Save");
00380 w46.UseUnderline = true;
00381 w43.Add(w46);
00382 w42.Add(w43);
00383 this.buttonOk.Add(w42);
00384 this.AddActionWidget(this.buttonOk, -5);
00385 Gtk.ButtonBox.ButtonBoxChild w50 = ((Gtk.ButtonBox.ButtonBoxChild)(w23[this.buttonOk]));
00386 w50.Position = 2;
00387 w50.Expand = false;
00388 w50.Fill = false;
00389 if ((this.Child != null)) {
00390 this.Child.ShowAll();
00391 }
00392 this.DefaultWidth = 426;
00393 this.DefaultHeight = 667;
00394 this.Show();
00395 this.nutrientsView.RowActivated += new Gtk.RowActivatedHandler(this.OnNutrientsViewRowActivated);
00396 }
00397 }
00398 }