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