00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 namespace Foodolini.Activities.Cookbook {
00012
00013
00014 public partial class RecipeViewer {
00015
00016 private Gtk.VBox bxViewRecipe;
00017
00018 private Gtk.HBox hbox2;
00019
00020 private Gtk.Label lbTitle;
00021
00022 private Gtk.Label lbTitle1;
00023
00024 private Gtk.Button BtnClose;
00025
00026 private Gtk.HBox hbox4;
00027
00028 private Gtk.Label label6;
00029
00030 private Gtk.SpinButton sbMultiplier;
00031
00032 private Gtk.ScrolledWindow GtkScrolledWindow;
00033
00034 private Gtk.NodeView nvIngredients;
00035
00036 private Gtk.Label label7;
00037
00038 private Gtk.ScrolledWindow GtkScrolledWindow1;
00039
00040 private Gtk.TextView tvViewRecipe;
00041
00042 private Gtk.HBox bxBottom;
00043
00044 private Gtk.VBox vbox2;
00045
00046 private Gtk.Table table3;
00047
00048 private Gtk.HBox hbox1;
00049
00050 private Gtk.Button btnStar1;
00051
00052 private Gtk.Button btnStar2;
00053
00054 private Gtk.Button btnStar3;
00055
00056 private Gtk.Button btnStar4;
00057
00058 private Gtk.Button btnStar5;
00059
00060 private Gtk.Label label1;
00061
00062 private Gtk.Label label2;
00063
00064 private Gtk.Label label4;
00065
00066 private Gtk.Label lbAverageRating;
00067
00068 private Gtk.Label lbDifficulty;
00069
00070 private Gtk.Label lbTime;
00071
00072 private Gtk.Table table1;
00073
00074 private Gtk.Button btnAdd2ShoppingList;
00075
00076 private Gtk.Button btnConsume;
00077
00078 private Gtk.Button btnDeleteRecipe;
00079
00080 private Gtk.Button btnEditRecipe;
00081
00082 private Gtk.Button btnStore;
00083
00084 protected virtual void Build() {
00085 Stetic.Gui.Initialize(this);
00086
00087 Stetic.BinContainer.Attach(this);
00088 this.Name = "Foodolini.Activities.Cookbook.RecipeViewer";
00089
00090 this.bxViewRecipe = new Gtk.VBox();
00091 this.bxViewRecipe.Name = "bxViewRecipe";
00092 this.bxViewRecipe.Spacing = 6;
00093
00094 this.hbox2 = new Gtk.HBox();
00095 this.hbox2.Name = "hbox2";
00096 this.hbox2.Spacing = 6;
00097
00098 this.lbTitle = new Gtk.Label();
00099 this.lbTitle.Name = "lbTitle";
00100 this.lbTitle.Xalign = 0F;
00101 this.lbTitle.LabelProp = Mono.Unix.Catalog.GetString("title");
00102 this.lbTitle.UseMarkup = true;
00103 this.hbox2.Add(this.lbTitle);
00104 Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.hbox2[this.lbTitle]));
00105 w1.Position = 0;
00106 w1.Expand = false;
00107 w1.Fill = false;
00108
00109 this.lbTitle1 = new Gtk.Label();
00110 this.lbTitle1.Name = "lbTitle1";
00111 this.lbTitle1.Xalign = 0F;
00112 this.lbTitle1.UseMarkup = true;
00113 this.hbox2.Add(this.lbTitle1);
00114 Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox2[this.lbTitle1]));
00115 w2.Position = 1;
00116
00117 this.BtnClose = new Gtk.Button();
00118 this.BtnClose.TooltipMarkup = "Close this view.";
00119 this.BtnClose.CanFocus = true;
00120 this.BtnClose.Name = "BtnClose";
00121 this.BtnClose.UseUnderline = true;
00122 this.BtnClose.Relief = ((Gtk.ReliefStyle)(2));
00123
00124 Gtk.Alignment w3 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00125
00126 Gtk.HBox w4 = new Gtk.HBox();
00127 w4.Spacing = 2;
00128
00129 Gtk.Image w5 = new Gtk.Image();
00130 w5.Pixbuf = Gdk.Pixbuf.LoadFromResource("CloseView.png");
00131 w4.Add(w5);
00132
00133 Gtk.Label w7 = new Gtk.Label();
00134 w4.Add(w7);
00135 w3.Add(w4);
00136 this.BtnClose.Add(w3);
00137 this.hbox2.Add(this.BtnClose);
00138 Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.hbox2[this.BtnClose]));
00139 w11.Position = 2;
00140 w11.Expand = false;
00141 w11.Fill = false;
00142 this.bxViewRecipe.Add(this.hbox2);
00143 Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.bxViewRecipe[this.hbox2]));
00144 w12.Position = 0;
00145 w12.Expand = false;
00146 w12.Fill = false;
00147
00148 this.hbox4 = new Gtk.HBox();
00149 this.hbox4.Name = "hbox4";
00150 this.hbox4.Spacing = 6;
00151
00152 this.label6 = new Gtk.Label();
00153 this.label6.Name = "label6";
00154 this.label6.LabelProp = Mono.Unix.Catalog.GetString("Number of servings:");
00155 this.hbox4.Add(this.label6);
00156 Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.hbox4[this.label6]));
00157 w13.Position = 0;
00158 w13.Expand = false;
00159 w13.Fill = false;
00160
00161 this.sbMultiplier = new Gtk.SpinButton(1, 100, 1);
00162 this.sbMultiplier.TooltipMarkup = "Change the number of servings for this recipe temporarily. ";
00163 this.sbMultiplier.CanFocus = true;
00164 this.sbMultiplier.Name = "sbMultiplier";
00165 this.sbMultiplier.Adjustment.PageIncrement = 10;
00166 this.sbMultiplier.ClimbRate = 1;
00167 this.sbMultiplier.Numeric = true;
00168 this.sbMultiplier.Value = 1;
00169 this.hbox4.Add(this.sbMultiplier);
00170 Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.hbox4[this.sbMultiplier]));
00171 w14.Position = 1;
00172 w14.Expand = false;
00173 w14.Fill = false;
00174 this.bxViewRecipe.Add(this.hbox4);
00175 Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.bxViewRecipe[this.hbox4]));
00176 w15.Position = 1;
00177 w15.Expand = false;
00178 w15.Fill = false;
00179
00180 this.GtkScrolledWindow = new Gtk.ScrolledWindow();
00181 this.GtkScrolledWindow.Name = "GtkScrolledWindow";
00182 this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
00183
00184 this.nvIngredients = new Gtk.NodeView();
00185 this.nvIngredients.CanFocus = true;
00186 this.nvIngredients.Name = "nvIngredients";
00187 this.GtkScrolledWindow.Add(this.nvIngredients);
00188 this.bxViewRecipe.Add(this.GtkScrolledWindow);
00189 Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.bxViewRecipe[this.GtkScrolledWindow]));
00190 w17.Position = 2;
00191
00192 this.label7 = new Gtk.Label();
00193 this.label7.Name = "label7";
00194 this.label7.Xalign = 0F;
00195 this.label7.LabelProp = Mono.Unix.Catalog.GetString("Directions");
00196 this.bxViewRecipe.Add(this.label7);
00197 Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.bxViewRecipe[this.label7]));
00198 w18.Position = 3;
00199 w18.Expand = false;
00200 w18.Fill = false;
00201
00202 this.GtkScrolledWindow1 = new Gtk.ScrolledWindow();
00203 this.GtkScrolledWindow1.Name = "GtkScrolledWindow1";
00204 this.GtkScrolledWindow1.ShadowType = ((Gtk.ShadowType)(1));
00205
00206 this.tvViewRecipe = new Gtk.TextView();
00207 this.tvViewRecipe.CanFocus = true;
00208 this.tvViewRecipe.Name = "tvViewRecipe";
00209 this.tvViewRecipe.Editable = false;
00210 this.tvViewRecipe.WrapMode = ((Gtk.WrapMode)(3));
00211 this.GtkScrolledWindow1.Add(this.tvViewRecipe);
00212 this.bxViewRecipe.Add(this.GtkScrolledWindow1);
00213 Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.bxViewRecipe[this.GtkScrolledWindow1]));
00214 w20.Position = 4;
00215
00216 this.bxBottom = new Gtk.HBox();
00217 this.bxBottom.Name = "bxBottom";
00218 this.bxBottom.Spacing = 6;
00219
00220 this.vbox2 = new Gtk.VBox();
00221 this.vbox2.Name = "vbox2";
00222 this.vbox2.Spacing = 6;
00223
00224 this.table3 = new Gtk.Table(((uint)(4)), ((uint)(2)), false);
00225 this.table3.Name = "table3";
00226 this.table3.RowSpacing = ((uint)(6));
00227 this.table3.ColumnSpacing = ((uint)(6));
00228
00229 this.hbox1 = new Gtk.HBox();
00230 this.hbox1.Name = "hbox1";
00231 this.hbox1.Spacing = 6;
00232
00233 this.btnStar1 = new Gtk.Button();
00234 this.btnStar1.TooltipMarkup = "Poor";
00235 this.btnStar1.Name = "btnStar1";
00236 this.btnStar1.UseUnderline = true;
00237 this.btnStar1.FocusOnClick = false;
00238 this.btnStar1.Relief = ((Gtk.ReliefStyle)(2));
00239
00240 Gtk.Alignment w21 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00241
00242 Gtk.HBox w22 = new Gtk.HBox();
00243 w22.Spacing = 2;
00244
00245 Gtk.Image w23 = new Gtk.Image();
00246 w22.Add(w23);
00247
00248 Gtk.Label w25 = new Gtk.Label();
00249 w22.Add(w25);
00250 w21.Add(w22);
00251 this.btnStar1.Add(w21);
00252 this.hbox1.Add(this.btnStar1);
00253 Gtk.Box.BoxChild w29 = ((Gtk.Box.BoxChild)(this.hbox1[this.btnStar1]));
00254 w29.Position = 0;
00255 w29.Expand = false;
00256 w29.Fill = false;
00257
00258 this.btnStar2 = new Gtk.Button();
00259 this.btnStar2.TooltipMarkup = "Nothing special";
00260 this.btnStar2.Name = "btnStar2";
00261 this.btnStar2.UseUnderline = true;
00262 this.btnStar2.FocusOnClick = false;
00263 this.btnStar2.Relief = ((Gtk.ReliefStyle)(2));
00264
00265 Gtk.Alignment w30 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00266
00267 Gtk.HBox w31 = new Gtk.HBox();
00268 w31.Spacing = 2;
00269
00270 Gtk.Image w32 = new Gtk.Image();
00271 w31.Add(w32);
00272
00273 Gtk.Label w34 = new Gtk.Label();
00274 w31.Add(w34);
00275 w30.Add(w31);
00276 this.btnStar2.Add(w30);
00277 this.hbox1.Add(this.btnStar2);
00278 Gtk.Box.BoxChild w38 = ((Gtk.Box.BoxChild)(this.hbox1[this.btnStar2]));
00279 w38.Position = 1;
00280 w38.Expand = false;
00281 w38.Fill = false;
00282
00283 this.btnStar3 = new Gtk.Button();
00284 this.btnStar3.TooltipMarkup = "Worth making";
00285 this.btnStar3.Name = "btnStar3";
00286 this.btnStar3.UseUnderline = true;
00287 this.btnStar3.FocusOnClick = false;
00288 this.btnStar3.Relief = ((Gtk.ReliefStyle)(2));
00289
00290 Gtk.Alignment w39 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00291
00292 Gtk.HBox w40 = new Gtk.HBox();
00293 w40.Spacing = 2;
00294
00295 Gtk.Image w41 = new Gtk.Image();
00296 w40.Add(w41);
00297
00298 Gtk.Label w43 = new Gtk.Label();
00299 w40.Add(w43);
00300 w39.Add(w40);
00301 this.btnStar3.Add(w39);
00302 this.hbox1.Add(this.btnStar3);
00303 Gtk.Box.BoxChild w47 = ((Gtk.Box.BoxChild)(this.hbox1[this.btnStar3]));
00304 w47.Position = 2;
00305 w47.Expand = false;
00306 w47.Fill = false;
00307
00308 this.btnStar4 = new Gtk.Button();
00309 this.btnStar4.TooltipMarkup = "Pretty good";
00310 this.btnStar4.Name = "btnStar4";
00311 this.btnStar4.UseUnderline = true;
00312 this.btnStar4.FocusOnClick = false;
00313 this.btnStar4.Relief = ((Gtk.ReliefStyle)(2));
00314
00315 Gtk.Alignment w48 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00316
00317 Gtk.HBox w49 = new Gtk.HBox();
00318 w49.Spacing = 2;
00319
00320 Gtk.Image w50 = new Gtk.Image();
00321 w49.Add(w50);
00322
00323 Gtk.Label w52 = new Gtk.Label();
00324 w49.Add(w52);
00325 w48.Add(w49);
00326 this.btnStar4.Add(w48);
00327 this.hbox1.Add(this.btnStar4);
00328 Gtk.Box.BoxChild w56 = ((Gtk.Box.BoxChild)(this.hbox1[this.btnStar4]));
00329 w56.Position = 3;
00330 w56.Expand = false;
00331 w56.Fill = false;
00332
00333 this.btnStar5 = new Gtk.Button();
00334 this.btnStar5.TooltipMarkup = "Fantastic";
00335 this.btnStar5.Name = "btnStar5";
00336 this.btnStar5.UseUnderline = true;
00337 this.btnStar5.FocusOnClick = false;
00338 this.btnStar5.Relief = ((Gtk.ReliefStyle)(2));
00339
00340 Gtk.Alignment w57 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00341
00342 Gtk.HBox w58 = new Gtk.HBox();
00343 w58.Spacing = 2;
00344
00345 Gtk.Image w59 = new Gtk.Image();
00346 w58.Add(w59);
00347
00348 Gtk.Label w61 = new Gtk.Label();
00349 w58.Add(w61);
00350 w57.Add(w58);
00351 this.btnStar5.Add(w57);
00352 this.hbox1.Add(this.btnStar5);
00353 Gtk.Box.BoxChild w65 = ((Gtk.Box.BoxChild)(this.hbox1[this.btnStar5]));
00354 w65.Position = 4;
00355 w65.Expand = false;
00356 w65.Fill = false;
00357 this.table3.Add(this.hbox1);
00358 Gtk.Table.TableChild w66 = ((Gtk.Table.TableChild)(this.table3[this.hbox1]));
00359 w66.RightAttach = ((uint)(2));
00360 w66.XOptions = ((Gtk.AttachOptions)(4));
00361 w66.YOptions = ((Gtk.AttachOptions)(4));
00362
00363 this.label1 = new Gtk.Label();
00364 this.label1.Name = "label1";
00365 this.label1.Xalign = 0F;
00366 this.label1.LabelProp = Mono.Unix.Catalog.GetString("Average rating:");
00367 this.table3.Add(this.label1);
00368 Gtk.Table.TableChild w67 = ((Gtk.Table.TableChild)(this.table3[this.label1]));
00369 w67.TopAttach = ((uint)(1));
00370 w67.BottomAttach = ((uint)(2));
00371 w67.XOptions = ((Gtk.AttachOptions)(4));
00372 w67.YOptions = ((Gtk.AttachOptions)(4));
00373
00374 this.label2 = new Gtk.Label();
00375 this.label2.Name = "label2";
00376 this.label2.Xalign = 0F;
00377 this.label2.LabelProp = Mono.Unix.Catalog.GetString("Preparation time:");
00378 this.table3.Add(this.label2);
00379 Gtk.Table.TableChild w68 = ((Gtk.Table.TableChild)(this.table3[this.label2]));
00380 w68.TopAttach = ((uint)(3));
00381 w68.BottomAttach = ((uint)(4));
00382 w68.XOptions = ((Gtk.AttachOptions)(4));
00383 w68.YOptions = ((Gtk.AttachOptions)(4));
00384
00385 this.label4 = new Gtk.Label();
00386 this.label4.Name = "label4";
00387 this.label4.Xalign = 0F;
00388 this.label4.LabelProp = Mono.Unix.Catalog.GetString("Difficulty:");
00389 this.table3.Add(this.label4);
00390 Gtk.Table.TableChild w69 = ((Gtk.Table.TableChild)(this.table3[this.label4]));
00391 w69.TopAttach = ((uint)(2));
00392 w69.BottomAttach = ((uint)(3));
00393 w69.XOptions = ((Gtk.AttachOptions)(4));
00394 w69.YOptions = ((Gtk.AttachOptions)(4));
00395
00396 this.lbAverageRating = new Gtk.Label();
00397 this.lbAverageRating.Name = "lbAverageRating";
00398 this.lbAverageRating.Xalign = 0F;
00399 this.lbAverageRating.LabelProp = Mono.Unix.Catalog.GetString("0");
00400 this.table3.Add(this.lbAverageRating);
00401 Gtk.Table.TableChild w70 = ((Gtk.Table.TableChild)(this.table3[this.lbAverageRating]));
00402 w70.TopAttach = ((uint)(1));
00403 w70.BottomAttach = ((uint)(2));
00404 w70.LeftAttach = ((uint)(1));
00405 w70.RightAttach = ((uint)(2));
00406 w70.XOptions = ((Gtk.AttachOptions)(4));
00407 w70.YOptions = ((Gtk.AttachOptions)(4));
00408
00409 this.lbDifficulty = new Gtk.Label();
00410 this.lbDifficulty.Name = "lbDifficulty";
00411 this.lbDifficulty.Xalign = 0F;
00412 this.lbDifficulty.LabelProp = Mono.Unix.Catalog.GetString("0");
00413 this.table3.Add(this.lbDifficulty);
00414 Gtk.Table.TableChild w71 = ((Gtk.Table.TableChild)(this.table3[this.lbDifficulty]));
00415 w71.TopAttach = ((uint)(2));
00416 w71.BottomAttach = ((uint)(3));
00417 w71.LeftAttach = ((uint)(1));
00418 w71.RightAttach = ((uint)(2));
00419 w71.XOptions = ((Gtk.AttachOptions)(4));
00420 w71.YOptions = ((Gtk.AttachOptions)(4));
00421
00422 this.lbTime = new Gtk.Label();
00423 this.lbTime.Name = "lbTime";
00424 this.lbTime.Xalign = 0F;
00425 this.lbTime.LabelProp = Mono.Unix.Catalog.GetString("0");
00426 this.table3.Add(this.lbTime);
00427 Gtk.Table.TableChild w72 = ((Gtk.Table.TableChild)(this.table3[this.lbTime]));
00428 w72.TopAttach = ((uint)(3));
00429 w72.BottomAttach = ((uint)(4));
00430 w72.LeftAttach = ((uint)(1));
00431 w72.RightAttach = ((uint)(2));
00432 w72.XOptions = ((Gtk.AttachOptions)(4));
00433 w72.YOptions = ((Gtk.AttachOptions)(4));
00434 this.vbox2.Add(this.table3);
00435 Gtk.Box.BoxChild w73 = ((Gtk.Box.BoxChild)(this.vbox2[this.table3]));
00436 w73.Position = 0;
00437 w73.Expand = false;
00438 w73.Fill = false;
00439
00440 this.table1 = new Gtk.Table(((uint)(3)), ((uint)(2)), false);
00441 this.table1.Name = "table1";
00442 this.table1.RowSpacing = ((uint)(6));
00443 this.table1.ColumnSpacing = ((uint)(6));
00444
00445 this.btnAdd2ShoppingList = new Gtk.Button();
00446 this.btnAdd2ShoppingList.TooltipMarkup = "Add the current recipe to the shopping list.\nOnly the ingredients missing i inventory will be listed.";
00447 this.btnAdd2ShoppingList.CanFocus = true;
00448 this.btnAdd2ShoppingList.Name = "btnAdd2ShoppingList";
00449 this.btnAdd2ShoppingList.UseUnderline = true;
00450
00451 Gtk.Alignment w74 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00452
00453 Gtk.HBox w75 = new Gtk.HBox();
00454 w75.Spacing = 2;
00455
00456 Gtk.Image w76 = new Gtk.Image();
00457 w76.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-add", Gtk.IconSize.Menu, 16);
00458 w75.Add(w76);
00459
00460 Gtk.Label w78 = new Gtk.Label();
00461 w78.LabelProp = Mono.Unix.Catalog.GetString("_Add ingredients to shopping list");
00462 w78.UseUnderline = true;
00463 w75.Add(w78);
00464 w74.Add(w75);
00465 this.btnAdd2ShoppingList.Add(w74);
00466 this.table1.Add(this.btnAdd2ShoppingList);
00467 Gtk.Table.TableChild w82 = ((Gtk.Table.TableChild)(this.table1[this.btnAdd2ShoppingList]));
00468 w82.RightAttach = ((uint)(2));
00469 w82.YOptions = ((Gtk.AttachOptions)(4));
00470
00471 this.btnConsume = new Gtk.Button();
00472 this.btnConsume.TooltipMarkup = "Used when eating this recipe as a meal";
00473 this.btnConsume.CanFocus = true;
00474 this.btnConsume.Name = "btnConsume";
00475 this.btnConsume.UseUnderline = true;
00476
00477 Gtk.Alignment w83 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00478
00479 Gtk.HBox w84 = new Gtk.HBox();
00480 w84.Spacing = 2;
00481
00482 Gtk.Image w85 = new Gtk.Image();
00483 w85.Pixbuf = Gdk.Pixbuf.LoadFromResource("Consume.png");
00484 w84.Add(w85);
00485
00486 Gtk.Label w87 = new Gtk.Label();
00487 w87.LabelProp = Mono.Unix.Catalog.GetString("_Consume");
00488 w87.UseUnderline = true;
00489 w84.Add(w87);
00490 w83.Add(w84);
00491 this.btnConsume.Add(w83);
00492 this.table1.Add(this.btnConsume);
00493 Gtk.Table.TableChild w91 = ((Gtk.Table.TableChild)(this.table1[this.btnConsume]));
00494 w91.TopAttach = ((uint)(2));
00495 w91.BottomAttach = ((uint)(3));
00496 w91.LeftAttach = ((uint)(1));
00497 w91.RightAttach = ((uint)(2));
00498 w91.XOptions = ((Gtk.AttachOptions)(4));
00499 w91.YOptions = ((Gtk.AttachOptions)(4));
00500
00501 this.btnDeleteRecipe = new Gtk.Button();
00502 this.btnDeleteRecipe.TooltipMarkup = "Delete the current recipe";
00503 this.btnDeleteRecipe.CanFocus = true;
00504 this.btnDeleteRecipe.Name = "btnDeleteRecipe";
00505 this.btnDeleteRecipe.UseUnderline = true;
00506
00507 Gtk.Alignment w92 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00508
00509 Gtk.HBox w93 = new Gtk.HBox();
00510 w93.Spacing = 2;
00511
00512 Gtk.Image w94 = new Gtk.Image();
00513 w94.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-delete", Gtk.IconSize.Menu, 16);
00514 w93.Add(w94);
00515
00516 Gtk.Label w96 = new Gtk.Label();
00517 w96.LabelProp = Mono.Unix.Catalog.GetString("_Delete recipe");
00518 w96.UseUnderline = true;
00519 w93.Add(w96);
00520 w92.Add(w93);
00521 this.btnDeleteRecipe.Add(w92);
00522 this.table1.Add(this.btnDeleteRecipe);
00523 Gtk.Table.TableChild w100 = ((Gtk.Table.TableChild)(this.table1[this.btnDeleteRecipe]));
00524 w100.TopAttach = ((uint)(1));
00525 w100.BottomAttach = ((uint)(2));
00526 w100.LeftAttach = ((uint)(1));
00527 w100.RightAttach = ((uint)(2));
00528 w100.XOptions = ((Gtk.AttachOptions)(4));
00529 w100.YOptions = ((Gtk.AttachOptions)(4));
00530
00531 this.btnEditRecipe = new Gtk.Button();
00532 this.btnEditRecipe.TooltipMarkup = "Edit the current recipe";
00533 this.btnEditRecipe.CanFocus = true;
00534 this.btnEditRecipe.Name = "btnEditRecipe";
00535 this.btnEditRecipe.UseUnderline = true;
00536
00537 Gtk.Alignment w101 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00538
00539 Gtk.HBox w102 = new Gtk.HBox();
00540 w102.Spacing = 2;
00541
00542 Gtk.Image w103 = new Gtk.Image();
00543 w103.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-edit", Gtk.IconSize.Menu, 16);
00544 w102.Add(w103);
00545
00546 Gtk.Label w105 = new Gtk.Label();
00547 w105.LabelProp = Mono.Unix.Catalog.GetString("_Edit recipe");
00548 w105.UseUnderline = true;
00549 w102.Add(w105);
00550 w101.Add(w102);
00551 this.btnEditRecipe.Add(w101);
00552 this.table1.Add(this.btnEditRecipe);
00553 Gtk.Table.TableChild w109 = ((Gtk.Table.TableChild)(this.table1[this.btnEditRecipe]));
00554 w109.TopAttach = ((uint)(1));
00555 w109.BottomAttach = ((uint)(2));
00556 w109.XOptions = ((Gtk.AttachOptions)(4));
00557 w109.YOptions = ((Gtk.AttachOptions)(4));
00558
00559 this.btnStore = new Gtk.Button();
00560 this.btnStore.TooltipMarkup = "Cook this recipe and save it to the inventory";
00561 this.btnStore.CanFocus = true;
00562 this.btnStore.Name = "btnStore";
00563 this.btnStore.UseUnderline = true;
00564
00565 Gtk.Alignment w110 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00566
00567 Gtk.HBox w111 = new Gtk.HBox();
00568 w111.Spacing = 2;
00569
00570 Gtk.Image w112 = new Gtk.Image();
00571 w112.Pixbuf = Gdk.Pixbuf.LoadFromResource("Store.png");
00572 w111.Add(w112);
00573
00574 Gtk.Label w114 = new Gtk.Label();
00575 w114.LabelProp = Mono.Unix.Catalog.GetString("S_tore");
00576 w114.UseUnderline = true;
00577 w111.Add(w114);
00578 w110.Add(w111);
00579 this.btnStore.Add(w110);
00580 this.table1.Add(this.btnStore);
00581 Gtk.Table.TableChild w118 = ((Gtk.Table.TableChild)(this.table1[this.btnStore]));
00582 w118.TopAttach = ((uint)(2));
00583 w118.BottomAttach = ((uint)(3));
00584 w118.XOptions = ((Gtk.AttachOptions)(4));
00585 w118.YOptions = ((Gtk.AttachOptions)(4));
00586 this.vbox2.Add(this.table1);
00587 Gtk.Box.BoxChild w119 = ((Gtk.Box.BoxChild)(this.vbox2[this.table1]));
00588 w119.Position = 1;
00589 this.bxBottom.Add(this.vbox2);
00590 Gtk.Box.BoxChild w120 = ((Gtk.Box.BoxChild)(this.bxBottom[this.vbox2]));
00591 w120.Position = 0;
00592 w120.Expand = false;
00593 w120.Fill = false;
00594 this.bxViewRecipe.Add(this.bxBottom);
00595 Gtk.Box.BoxChild w121 = ((Gtk.Box.BoxChild)(this.bxViewRecipe[this.bxBottom]));
00596 w121.Position = 5;
00597 w121.Expand = false;
00598 w121.Fill = false;
00599 this.Add(this.bxViewRecipe);
00600 if ((this.Child != null)) {
00601 this.Child.ShowAll();
00602 }
00603 this.Hide();
00604 this.BtnClose.Clicked += new System.EventHandler(this.OnBtnCloseViewClicked);
00605 this.sbMultiplier.TextInserted += new Gtk.TextInsertedHandler(this.OnSbMultiplierChanged);
00606 this.sbMultiplier.Activated += new System.EventHandler(this.OnSbMultiplierChanged);
00607 this.btnStar1.Clicked += new System.EventHandler(this.RateRecipe);
00608 this.btnStar2.Clicked += new System.EventHandler(this.RateRecipe);
00609 this.btnStar3.Clicked += new System.EventHandler(this.RateRecipe);
00610 this.btnStar4.Clicked += new System.EventHandler(this.RateRecipe);
00611 this.btnStar5.Clicked += new System.EventHandler(this.RateRecipe);
00612 this.btnStore.Clicked += new System.EventHandler(this.OnStoreClick);
00613 this.btnEditRecipe.Clicked += new System.EventHandler(this.EditRecipe);
00614 this.btnDeleteRecipe.Clicked += new System.EventHandler(this.OnDeleteRecipeClick);
00615 this.btnConsume.Clicked += new System.EventHandler(this.OnConsumeClick);
00616 this.btnAdd2ShoppingList.Clicked += new System.EventHandler(this.OnBtnRecipe2ShoppingListClicked);
00617 }
00618 }
00619 }