00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 namespace Foodolini.Activities.Cookbook {
00012
00013
00014 public partial class RecipeCreater {
00015
00016 private Gtk.VBox vbox2;
00017
00018 private Gtk.Label lbWidgetTitle;
00019
00020 private Gtk.HBox hbox2;
00021
00022 private Gtk.VBox vbox3;
00023
00024 private Gtk.Label label3;
00025
00026 private Gtk.Entry entTitle;
00027
00028 private Gtk.Label label4;
00029
00030 private Gtk.Entry entCategories;
00031
00032 private Gtk.Label label5;
00033
00034 private Gtk.ScrolledWindow GtkScrolledWindow2;
00035
00036 private Gtk.TextView tvDirections;
00037
00038 private Gtk.VBox bxIngredient;
00039
00040 private Gtk.Table table4;
00041
00042 private Gtk.ComboBox cbxDifficulty;
00043
00044 private Gtk.ComboBox cbxMealtype;
00045
00046 private Gtk.HBox hbox1;
00047
00048 private Gtk.SpinButton sbMultiplier;
00049
00050 private Gtk.Label label13;
00051
00052 private Gtk.HBox hbox7;
00053
00054 private Gtk.SpinButton sbDays;
00055
00056 private Gtk.Label label12;
00057
00058 private Gtk.SpinButton sbHours;
00059
00060 private Gtk.Label label11;
00061
00062 private Gtk.SpinButton sbMinuts;
00063
00064 private Gtk.Label label10;
00065
00066 private Gtk.Label label1;
00067
00068 private Gtk.Label label2;
00069
00070 private Gtk.Label label8;
00071
00072 private Gtk.Label label9;
00073
00074 private Gtk.ScrolledWindow GtkScrolledWindow;
00075
00076 private Gtk.NodeView nvIngredients;
00077
00078 private Gtk.HBox hbox3;
00079
00080 private Gtk.Button btnAddIngredient;
00081
00082 private Gtk.Button btnRemoveIngredient;
00083
00084 private Gtk.HSeparator hseparator2;
00085
00086 private Gtk.HBox hbox5;
00087
00088 private Gtk.Label label6;
00089
00090 private Gtk.FileChooserButton fcbPicture;
00091
00092 private Gtk.Image imgRecipe;
00093
00094 private Gtk.HSeparator hseparator1;
00095
00096 private Gtk.HBox hbox4;
00097
00098 private Gtk.Label label7;
00099
00100 private Gtk.Button btnCancel;
00101
00102 private Gtk.Button btnSave;
00103
00104 protected virtual void Build() {
00105 Stetic.Gui.Initialize(this);
00106
00107 Stetic.BinContainer.Attach(this);
00108 this.Name = "Foodolini.Activities.Cookbook.RecipeCreater";
00109
00110 this.vbox2 = new Gtk.VBox();
00111 this.vbox2.Name = "vbox2";
00112 this.vbox2.Spacing = 6;
00113 this.vbox2.BorderWidth = ((uint)(9));
00114
00115 this.lbWidgetTitle = new Gtk.Label();
00116 this.lbWidgetTitle.Name = "lbWidgetTitle";
00117 this.lbWidgetTitle.Xalign = 0F;
00118 this.lbWidgetTitle.LabelProp = Mono.Unix.Catalog.GetString("<big><b>Create Recipe</b></big>");
00119 this.lbWidgetTitle.UseMarkup = true;
00120 this.vbox2.Add(this.lbWidgetTitle);
00121 Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox2[this.lbWidgetTitle]));
00122 w1.Position = 0;
00123 w1.Expand = false;
00124 w1.Fill = false;
00125
00126 this.hbox2 = new Gtk.HBox();
00127 this.hbox2.Name = "hbox2";
00128 this.hbox2.Spacing = 6;
00129
00130 this.vbox3 = new Gtk.VBox();
00131 this.vbox3.Name = "vbox3";
00132 this.vbox3.Spacing = 6;
00133
00134 this.label3 = new Gtk.Label();
00135 this.label3.Name = "label3";
00136 this.label3.Xalign = 0F;
00137 this.label3.LabelProp = Mono.Unix.Catalog.GetString("<b>Title:</b>");
00138 this.label3.UseMarkup = true;
00139 this.vbox3.Add(this.label3);
00140 Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox3[this.label3]));
00141 w2.Position = 0;
00142 w2.Expand = false;
00143 w2.Fill = false;
00144
00145 this.entTitle = new Gtk.Entry();
00146 this.entTitle.CanFocus = true;
00147 this.entTitle.Name = "entTitle";
00148 this.entTitle.IsEditable = true;
00149 this.entTitle.InvisibleChar = '•';
00150 this.vbox3.Add(this.entTitle);
00151 Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox3[this.entTitle]));
00152 w3.Position = 1;
00153 w3.Expand = false;
00154
00155 this.label4 = new Gtk.Label();
00156 this.label4.Name = "label4";
00157 this.label4.Xalign = 0F;
00158 this.label4.LabelProp = Mono.Unix.Catalog.GetString("<b>Categories</b> (Separate each category with a comma)<b>:</b>");
00159 this.label4.UseMarkup = true;
00160 this.vbox3.Add(this.label4);
00161 Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox3[this.label4]));
00162 w4.Position = 2;
00163 w4.Expand = false;
00164 w4.Fill = false;
00165
00166 this.entCategories = new Gtk.Entry();
00167 this.entCategories.CanFocus = true;
00168 this.entCategories.Name = "entCategories";
00169 this.entCategories.IsEditable = true;
00170 this.entCategories.InvisibleChar = '•';
00171 this.vbox3.Add(this.entCategories);
00172 Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox3[this.entCategories]));
00173 w5.Position = 3;
00174 w5.Expand = false;
00175 w5.Fill = false;
00176
00177 this.label5 = new Gtk.Label();
00178 this.label5.Name = "label5";
00179 this.label5.Xalign = 0F;
00180 this.label5.LabelProp = Mono.Unix.Catalog.GetString("<b>Directions:</b>");
00181 this.label5.UseMarkup = true;
00182 this.vbox3.Add(this.label5);
00183 Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox3[this.label5]));
00184 w6.Position = 4;
00185 w6.Expand = false;
00186 w6.Fill = false;
00187
00188 this.GtkScrolledWindow2 = new Gtk.ScrolledWindow();
00189 this.GtkScrolledWindow2.Name = "GtkScrolledWindow2";
00190 this.GtkScrolledWindow2.ShadowType = ((Gtk.ShadowType)(1));
00191
00192 this.tvDirections = new Gtk.TextView();
00193 this.tvDirections.TooltipMarkup = "Enter directions here. Each line represents a step";
00194 this.tvDirections.CanFocus = true;
00195 this.tvDirections.Name = "tvDirections";
00196 this.tvDirections.WrapMode = ((Gtk.WrapMode)(3));
00197 this.GtkScrolledWindow2.Add(this.tvDirections);
00198 this.vbox3.Add(this.GtkScrolledWindow2);
00199 Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.vbox3[this.GtkScrolledWindow2]));
00200 w8.Position = 5;
00201 this.hbox2.Add(this.vbox3);
00202 Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.hbox2[this.vbox3]));
00203 w9.Position = 0;
00204
00205 this.bxIngredient = new Gtk.VBox();
00206 this.bxIngredient.Name = "bxIngredient";
00207 this.bxIngredient.Spacing = 6;
00208
00209 this.table4 = new Gtk.Table(((uint)(4)), ((uint)(2)), false);
00210 this.table4.Name = "table4";
00211 this.table4.RowSpacing = ((uint)(6));
00212 this.table4.ColumnSpacing = ((uint)(6));
00213
00214 this.cbxDifficulty = Gtk.ComboBox.NewText();
00215 this.cbxDifficulty.AppendText(Mono.Unix.Catalog.GetString("Easy"));
00216 this.cbxDifficulty.AppendText(Mono.Unix.Catalog.GetString("Medium"));
00217 this.cbxDifficulty.AppendText(Mono.Unix.Catalog.GetString("Hard"));
00218 this.cbxDifficulty.AppendText(Mono.Unix.Catalog.GetString("Unknown"));
00219 this.cbxDifficulty.Name = "cbxDifficulty";
00220 this.cbxDifficulty.Active = 3;
00221 this.table4.Add(this.cbxDifficulty);
00222 Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table4[this.cbxDifficulty]));
00223 w10.TopAttach = ((uint)(1));
00224 w10.BottomAttach = ((uint)(2));
00225 w10.LeftAttach = ((uint)(1));
00226 w10.RightAttach = ((uint)(2));
00227 w10.XOptions = ((Gtk.AttachOptions)(4));
00228 w10.YOptions = ((Gtk.AttachOptions)(4));
00229
00230 this.cbxMealtype = Gtk.ComboBox.NewText();
00231 this.cbxMealtype.AppendText(Mono.Unix.Catalog.GetString("Breakfast"));
00232 this.cbxMealtype.AppendText(Mono.Unix.Catalog.GetString("Lunch"));
00233 this.cbxMealtype.AppendText(Mono.Unix.Catalog.GetString("Dinner"));
00234 this.cbxMealtype.AppendText(Mono.Unix.Catalog.GetString("Other"));
00235 this.cbxMealtype.Name = "cbxMealtype";
00236 this.cbxMealtype.Active = 3;
00237 this.table4.Add(this.cbxMealtype);
00238 Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table4[this.cbxMealtype]));
00239 w11.LeftAttach = ((uint)(1));
00240 w11.RightAttach = ((uint)(2));
00241 w11.XOptions = ((Gtk.AttachOptions)(4));
00242 w11.YOptions = ((Gtk.AttachOptions)(4));
00243
00244 this.hbox1 = new Gtk.HBox();
00245 this.hbox1.Name = "hbox1";
00246 this.hbox1.Spacing = 6;
00247
00248 this.sbMultiplier = new Gtk.SpinButton(1, 100, 1);
00249 this.sbMultiplier.TooltipMarkup = "Change the number of servings for this recipe temporarily. ";
00250 this.sbMultiplier.CanFocus = true;
00251 this.sbMultiplier.Name = "sbMultiplier";
00252 this.sbMultiplier.Adjustment.PageIncrement = 10;
00253 this.sbMultiplier.ClimbRate = 1;
00254 this.sbMultiplier.Numeric = true;
00255 this.sbMultiplier.Value = 1;
00256 this.hbox1.Add(this.sbMultiplier);
00257 Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.hbox1[this.sbMultiplier]));
00258 w12.Position = 0;
00259 w12.Expand = false;
00260 w12.Fill = false;
00261
00262 this.label13 = new Gtk.Label();
00263 this.label13.Name = "label13";
00264 this.hbox1.Add(this.label13);
00265 Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.hbox1[this.label13]));
00266 w13.Position = 1;
00267 this.table4.Add(this.hbox1);
00268 Gtk.Table.TableChild w14 = ((Gtk.Table.TableChild)(this.table4[this.hbox1]));
00269 w14.TopAttach = ((uint)(3));
00270 w14.BottomAttach = ((uint)(4));
00271 w14.LeftAttach = ((uint)(1));
00272 w14.RightAttach = ((uint)(2));
00273 w14.XOptions = ((Gtk.AttachOptions)(4));
00274 w14.YOptions = ((Gtk.AttachOptions)(4));
00275
00276 this.hbox7 = new Gtk.HBox();
00277 this.hbox7.Name = "hbox7";
00278 this.hbox7.Spacing = 6;
00279
00280 this.sbDays = new Gtk.SpinButton(0, 100, 1);
00281 this.sbDays.CanFocus = true;
00282 this.sbDays.Name = "sbDays";
00283 this.sbDays.Adjustment.PageIncrement = 10;
00284 this.sbDays.ClimbRate = 1;
00285 this.sbDays.Numeric = true;
00286 this.hbox7.Add(this.sbDays);
00287 Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.hbox7[this.sbDays]));
00288 w15.Position = 0;
00289 w15.Expand = false;
00290 w15.Fill = false;
00291
00292 this.label12 = new Gtk.Label();
00293 this.label12.Name = "label12";
00294 this.label12.LabelProp = Mono.Unix.Catalog.GetString("days,");
00295 this.hbox7.Add(this.label12);
00296 Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.hbox7[this.label12]));
00297 w16.Position = 1;
00298 w16.Expand = false;
00299 w16.Fill = false;
00300
00301 this.sbHours = new Gtk.SpinButton(0, 100, 1);
00302 this.sbHours.CanFocus = true;
00303 this.sbHours.Name = "sbHours";
00304 this.sbHours.Adjustment.PageIncrement = 10;
00305 this.sbHours.ClimbRate = 1;
00306 this.sbHours.Numeric = true;
00307 this.hbox7.Add(this.sbHours);
00308 Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.hbox7[this.sbHours]));
00309 w17.Position = 2;
00310 w17.Expand = false;
00311 w17.Fill = false;
00312
00313 this.label11 = new Gtk.Label();
00314 this.label11.Name = "label11";
00315 this.label11.LabelProp = Mono.Unix.Catalog.GetString("hours,");
00316 this.hbox7.Add(this.label11);
00317 Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.hbox7[this.label11]));
00318 w18.Position = 3;
00319 w18.Expand = false;
00320 w18.Fill = false;
00321
00322 this.sbMinuts = new Gtk.SpinButton(0, 100, 1);
00323 this.sbMinuts.CanFocus = true;
00324 this.sbMinuts.Name = "sbMinuts";
00325 this.sbMinuts.Adjustment.PageIncrement = 10;
00326 this.sbMinuts.ClimbRate = 1;
00327 this.sbMinuts.Numeric = true;
00328 this.hbox7.Add(this.sbMinuts);
00329 Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.hbox7[this.sbMinuts]));
00330 w19.Position = 4;
00331 w19.Expand = false;
00332 w19.Fill = false;
00333
00334 this.label10 = new Gtk.Label();
00335 this.label10.Name = "label10";
00336 this.label10.Xalign = 0F;
00337 this.label10.LabelProp = Mono.Unix.Catalog.GetString("minutes");
00338 this.hbox7.Add(this.label10);
00339 Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.hbox7[this.label10]));
00340 w20.Position = 5;
00341 w20.Expand = false;
00342 w20.Fill = false;
00343 this.table4.Add(this.hbox7);
00344 Gtk.Table.TableChild w21 = ((Gtk.Table.TableChild)(this.table4[this.hbox7]));
00345 w21.TopAttach = ((uint)(2));
00346 w21.BottomAttach = ((uint)(3));
00347 w21.LeftAttach = ((uint)(1));
00348 w21.RightAttach = ((uint)(2));
00349 w21.XOptions = ((Gtk.AttachOptions)(4));
00350 w21.YOptions = ((Gtk.AttachOptions)(4));
00351
00352 this.label1 = new Gtk.Label();
00353 this.label1.Name = "label1";
00354 this.label1.Xalign = 0F;
00355 this.label1.LabelProp = Mono.Unix.Catalog.GetString("<b>Preparation time:</b>");
00356 this.label1.UseMarkup = true;
00357 this.table4.Add(this.label1);
00358 Gtk.Table.TableChild w22 = ((Gtk.Table.TableChild)(this.table4[this.label1]));
00359 w22.TopAttach = ((uint)(2));
00360 w22.BottomAttach = ((uint)(3));
00361 w22.XOptions = ((Gtk.AttachOptions)(4));
00362 w22.YOptions = ((Gtk.AttachOptions)(4));
00363
00364 this.label2 = new Gtk.Label();
00365 this.label2.Name = "label2";
00366 this.label2.Xalign = 0F;
00367 this.label2.LabelProp = Mono.Unix.Catalog.GetString("<b>Meal type:</b>");
00368 this.label2.UseMarkup = true;
00369 this.table4.Add(this.label2);
00370 Gtk.Table.TableChild w23 = ((Gtk.Table.TableChild)(this.table4[this.label2]));
00371 w23.XOptions = ((Gtk.AttachOptions)(4));
00372 w23.YOptions = ((Gtk.AttachOptions)(4));
00373
00374 this.label8 = new Gtk.Label();
00375 this.label8.Name = "label8";
00376 this.label8.LabelProp = Mono.Unix.Catalog.GetString("<b>Number of servings:</b>");
00377 this.label8.UseMarkup = true;
00378 this.table4.Add(this.label8);
00379 Gtk.Table.TableChild w24 = ((Gtk.Table.TableChild)(this.table4[this.label8]));
00380 w24.TopAttach = ((uint)(3));
00381 w24.BottomAttach = ((uint)(4));
00382 w24.XOptions = ((Gtk.AttachOptions)(4));
00383 w24.YOptions = ((Gtk.AttachOptions)(4));
00384
00385 this.label9 = new Gtk.Label();
00386 this.label9.Name = "label9";
00387 this.label9.Xalign = 0F;
00388 this.label9.LabelProp = Mono.Unix.Catalog.GetString("<b>Difficulty:</b>");
00389 this.label9.UseMarkup = true;
00390 this.table4.Add(this.label9);
00391 Gtk.Table.TableChild w25 = ((Gtk.Table.TableChild)(this.table4[this.label9]));
00392 w25.TopAttach = ((uint)(1));
00393 w25.BottomAttach = ((uint)(2));
00394 w25.XOptions = ((Gtk.AttachOptions)(4));
00395 w25.YOptions = ((Gtk.AttachOptions)(4));
00396 this.bxIngredient.Add(this.table4);
00397 Gtk.Box.BoxChild w26 = ((Gtk.Box.BoxChild)(this.bxIngredient[this.table4]));
00398 w26.Position = 0;
00399 w26.Expand = false;
00400 w26.Fill = false;
00401
00402 this.GtkScrolledWindow = new Gtk.ScrolledWindow();
00403 this.GtkScrolledWindow.Name = "GtkScrolledWindow";
00404 this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
00405
00406 this.nvIngredients = new Gtk.NodeView();
00407 this.nvIngredients.CanFocus = true;
00408 this.nvIngredients.Name = "nvIngredients";
00409 this.GtkScrolledWindow.Add(this.nvIngredients);
00410 this.bxIngredient.Add(this.GtkScrolledWindow);
00411 Gtk.Box.BoxChild w28 = ((Gtk.Box.BoxChild)(this.bxIngredient[this.GtkScrolledWindow]));
00412 w28.Position = 1;
00413
00414 this.hbox3 = new Gtk.HBox();
00415 this.hbox3.Name = "hbox3";
00416 this.hbox3.Spacing = 6;
00417
00418 this.btnAddIngredient = new Gtk.Button();
00419 this.btnAddIngredient.TooltipMarkup = "Add an ingredient to this recipe";
00420 this.btnAddIngredient.CanFocus = true;
00421 this.btnAddIngredient.Name = "btnAddIngredient";
00422 this.btnAddIngredient.UseUnderline = true;
00423
00424 Gtk.Alignment w29 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00425
00426 Gtk.HBox w30 = new Gtk.HBox();
00427 w30.Spacing = 2;
00428
00429 Gtk.Image w31 = new Gtk.Image();
00430 w31.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-add", Gtk.IconSize.Menu, 16);
00431 w30.Add(w31);
00432
00433 Gtk.Label w33 = new Gtk.Label();
00434 w33.LabelProp = Mono.Unix.Catalog.GetString("_Add ingredient");
00435 w33.UseUnderline = true;
00436 w30.Add(w33);
00437 w29.Add(w30);
00438 this.btnAddIngredient.Add(w29);
00439 this.hbox3.Add(this.btnAddIngredient);
00440 Gtk.Box.BoxChild w37 = ((Gtk.Box.BoxChild)(this.hbox3[this.btnAddIngredient]));
00441 w37.Position = 0;
00442
00443 this.btnRemoveIngredient = new Gtk.Button();
00444 this.btnRemoveIngredient.TooltipMarkup = "Remove the selected ingredient from this recipe";
00445 this.btnRemoveIngredient.CanFocus = true;
00446 this.btnRemoveIngredient.Name = "btnRemoveIngredient";
00447 this.btnRemoveIngredient.UseUnderline = true;
00448
00449 Gtk.Alignment w38 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00450
00451 Gtk.HBox w39 = new Gtk.HBox();
00452 w39.Spacing = 2;
00453
00454 Gtk.Image w40 = new Gtk.Image();
00455 w40.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-remove", Gtk.IconSize.Menu, 16);
00456 w39.Add(w40);
00457
00458 Gtk.Label w42 = new Gtk.Label();
00459 w42.LabelProp = Mono.Unix.Catalog.GetString("_Remove ingredient");
00460 w42.UseUnderline = true;
00461 w39.Add(w42);
00462 w38.Add(w39);
00463 this.btnRemoveIngredient.Add(w38);
00464 this.hbox3.Add(this.btnRemoveIngredient);
00465 Gtk.Box.BoxChild w46 = ((Gtk.Box.BoxChild)(this.hbox3[this.btnRemoveIngredient]));
00466 w46.Position = 1;
00467 this.bxIngredient.Add(this.hbox3);
00468 Gtk.Box.BoxChild w47 = ((Gtk.Box.BoxChild)(this.bxIngredient[this.hbox3]));
00469 w47.Position = 2;
00470 w47.Expand = false;
00471 w47.Fill = false;
00472
00473 this.hseparator2 = new Gtk.HSeparator();
00474 this.hseparator2.Name = "hseparator2";
00475 this.bxIngredient.Add(this.hseparator2);
00476 Gtk.Box.BoxChild w48 = ((Gtk.Box.BoxChild)(this.bxIngredient[this.hseparator2]));
00477 w48.Position = 3;
00478 w48.Expand = false;
00479 w48.Fill = false;
00480
00481 this.hbox5 = new Gtk.HBox();
00482 this.hbox5.Name = "hbox5";
00483 this.hbox5.Spacing = 6;
00484
00485 this.label6 = new Gtk.Label();
00486 this.label6.Name = "label6";
00487 this.label6.LabelProp = Mono.Unix.Catalog.GetString("<b>Choose picture:</b>");
00488 this.label6.UseMarkup = true;
00489 this.hbox5.Add(this.label6);
00490 Gtk.Box.BoxChild w49 = ((Gtk.Box.BoxChild)(this.hbox5[this.label6]));
00491 w49.Position = 0;
00492 w49.Expand = false;
00493 w49.Fill = false;
00494
00495 this.fcbPicture = new Gtk.FileChooserButton(Mono.Unix.Catalog.GetString("Vælg en fil"), ((Gtk.FileChooserAction)(0)));
00496 this.fcbPicture.TooltipMarkup = "Add a picture to this recipe";
00497 this.fcbPicture.Name = "fcbPicture";
00498 this.hbox5.Add(this.fcbPicture);
00499 Gtk.Box.BoxChild w50 = ((Gtk.Box.BoxChild)(this.hbox5[this.fcbPicture]));
00500 w50.Position = 1;
00501 this.bxIngredient.Add(this.hbox5);
00502 Gtk.Box.BoxChild w51 = ((Gtk.Box.BoxChild)(this.bxIngredient[this.hbox5]));
00503 w51.Position = 4;
00504 w51.Expand = false;
00505 w51.Fill = false;
00506
00507 this.imgRecipe = new Gtk.Image();
00508 this.imgRecipe.TooltipMarkup = "Picture of this recipe";
00509 this.imgRecipe.Name = "imgRecipe";
00510 this.bxIngredient.Add(this.imgRecipe);
00511 Gtk.Box.BoxChild w52 = ((Gtk.Box.BoxChild)(this.bxIngredient[this.imgRecipe]));
00512 w52.Position = 5;
00513 w52.Expand = false;
00514 w52.Fill = false;
00515 this.hbox2.Add(this.bxIngredient);
00516 Gtk.Box.BoxChild w53 = ((Gtk.Box.BoxChild)(this.hbox2[this.bxIngredient]));
00517 w53.Position = 1;
00518 this.vbox2.Add(this.hbox2);
00519 Gtk.Box.BoxChild w54 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox2]));
00520 w54.Position = 1;
00521
00522 this.hseparator1 = new Gtk.HSeparator();
00523 this.hseparator1.Name = "hseparator1";
00524 this.vbox2.Add(this.hseparator1);
00525 Gtk.Box.BoxChild w55 = ((Gtk.Box.BoxChild)(this.vbox2[this.hseparator1]));
00526 w55.Position = 2;
00527 w55.Expand = false;
00528 w55.Fill = false;
00529
00530 this.hbox4 = new Gtk.HBox();
00531 this.hbox4.Name = "hbox4";
00532 this.hbox4.Spacing = 6;
00533
00534 this.label7 = new Gtk.Label();
00535 this.label7.Name = "label7";
00536 this.hbox4.Add(this.label7);
00537 Gtk.Box.BoxChild w56 = ((Gtk.Box.BoxChild)(this.hbox4[this.label7]));
00538 w56.Position = 0;
00539
00540 this.btnCancel = new Gtk.Button();
00541 this.btnCancel.TooltipMarkup = "Cancel creation";
00542 this.btnCancel.WidthRequest = 150;
00543 this.btnCancel.CanFocus = true;
00544 this.btnCancel.Name = "btnCancel";
00545 this.btnCancel.UseUnderline = true;
00546
00547 Gtk.Alignment w57 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00548
00549 Gtk.HBox w58 = new Gtk.HBox();
00550 w58.Spacing = 2;
00551
00552 Gtk.Image w59 = new Gtk.Image();
00553 w59.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-cancel", Gtk.IconSize.Menu, 16);
00554 w58.Add(w59);
00555
00556 Gtk.Label w61 = new Gtk.Label();
00557 w61.LabelProp = Mono.Unix.Catalog.GetString("_Cancel");
00558 w61.UseUnderline = true;
00559 w58.Add(w61);
00560 w57.Add(w58);
00561 this.btnCancel.Add(w57);
00562 this.hbox4.Add(this.btnCancel);
00563 Gtk.Box.BoxChild w65 = ((Gtk.Box.BoxChild)(this.hbox4[this.btnCancel]));
00564 w65.Position = 1;
00565 w65.Expand = false;
00566 w65.Fill = false;
00567
00568 this.btnSave = new Gtk.Button();
00569 this.btnSave.TooltipMarkup = "Save this recipe";
00570 this.btnSave.WidthRequest = 150;
00571 this.btnSave.CanFocus = true;
00572 this.btnSave.Name = "btnSave";
00573 this.btnSave.UseUnderline = true;
00574
00575 Gtk.Alignment w66 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00576
00577 Gtk.HBox w67 = new Gtk.HBox();
00578 w67.Spacing = 2;
00579
00580 Gtk.Image w68 = new Gtk.Image();
00581 w68.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-save", Gtk.IconSize.Menu, 16);
00582 w67.Add(w68);
00583
00584 Gtk.Label w70 = new Gtk.Label();
00585 w70.LabelProp = Mono.Unix.Catalog.GetString("_Save recipe");
00586 w70.UseUnderline = true;
00587 w67.Add(w70);
00588 w66.Add(w67);
00589 this.btnSave.Add(w66);
00590 this.hbox4.Add(this.btnSave);
00591 Gtk.Box.BoxChild w74 = ((Gtk.Box.BoxChild)(this.hbox4[this.btnSave]));
00592 w74.Position = 2;
00593 w74.Expand = false;
00594 w74.Fill = false;
00595 this.vbox2.Add(this.hbox4);
00596 Gtk.Box.BoxChild w75 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox4]));
00597 w75.Position = 3;
00598 w75.Expand = false;
00599 w75.Fill = false;
00600 this.Add(this.vbox2);
00601 if ((this.Child != null)) {
00602 this.Child.ShowAll();
00603 }
00604 this.Hide();
00605 this.entTitle.Changed += new System.EventHandler(this.OnEntryChanged);
00606 this.entCategories.Changed += new System.EventHandler(this.OnEntryChanged);
00607 this.tvDirections.KeyReleaseEvent += new Gtk.KeyReleaseEventHandler(this.OnTvDirectionsKeyReleaseEvent);
00608 this.btnAddIngredient.Clicked += new System.EventHandler(this.OnAddIngredient);
00609 this.btnRemoveIngredient.Clicked += new System.EventHandler(this.OnBtnRemoveIngredientClicked);
00610 this.fcbPicture.CurrentFolderChanged += new System.EventHandler(this.OnSelectPictureClick);
00611 this.btnCancel.Clicked += new System.EventHandler(this.OnCancelClick);
00612 this.btnSave.Clicked += new System.EventHandler(this.OnSaveClicked);
00613 }
00614 }
00615 }