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