00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 namespace Foodolini.Activities {
00012
00013
00014 public partial class FoodRegistrationActivity {
00015
00016 private Gtk.VBox vbox1;
00017
00018 private Gtk.HBox hbox1;
00019
00020 private Gtk.Table table1;
00021
00022 private Gtk.Button AddButton;
00023
00024 private Gtk.Calendar ExpirationCalendar;
00025
00026 private Gtk.HBox hbox2;
00027
00028 private Gtk.Label label6;
00029
00030 private Gtk.Label BarCodeLabel;
00031
00032 private Gtk.Button ClearBarCodeButton;
00033
00034 private Gtk.Label IngredientLabel;
00035
00036 private Gtk.Label label2;
00037
00038 private Gtk.Label label3;
00039
00040 private Gtk.Label label4;
00041
00042 private Gtk.Label label5;
00043
00044 private Gtk.Entry ProductEntry;
00045
00046 private Gtk.SpinButton QuantitySpinbutton;
00047
00048 private Gtk.Button SelectIngredientButton;
00049
00050 private Gtk.VBox vbox2;
00051
00052 private Foodolini.Activities.FoodRegistration.Scanner scanner;
00053
00054 private Gtk.HBox hbox4;
00055
00056 private Gtk.ComboBox VideoSourceComboBox;
00057
00058 private Gtk.Button RefreshButton;
00059
00060 private Gtk.Button MuteButton;
00061
00062 private Gtk.ScrolledWindow GtkScrolledWindow;
00063
00064 private Gtk.NodeView FoodView;
00065
00066 private Gtk.HBox hbox3;
00067
00068 private Gtk.HButtonBox hbuttonbox2;
00069
00070 private Gtk.Button RemoveButton;
00071
00072 private Gtk.HButtonBox hbuttonbox1;
00073
00074 private Gtk.Button CancelButton;
00075
00076 private Gtk.Button SaveButton;
00077
00078 protected virtual void Build() {
00079 Stetic.Gui.Initialize(this);
00080
00081 Stetic.BinContainer.Attach(this);
00082 this.Name = "Foodolini.Activities.FoodRegistrationActivity";
00083
00084 this.vbox1 = new Gtk.VBox();
00085 this.vbox1.Name = "vbox1";
00086 this.vbox1.Spacing = 6;
00087
00088 this.hbox1 = new Gtk.HBox();
00089 this.hbox1.Name = "hbox1";
00090 this.hbox1.Spacing = 6;
00091
00092 this.table1 = new Gtk.Table(((uint)(8)), ((uint)(2)), false);
00093 this.table1.Name = "table1";
00094 this.table1.RowSpacing = ((uint)(6));
00095 this.table1.ColumnSpacing = ((uint)(6));
00096
00097 this.AddButton = new Gtk.Button();
00098 this.AddButton.CanFocus = true;
00099 this.AddButton.Name = "AddButton";
00100 this.AddButton.UseUnderline = true;
00101
00102 Gtk.Alignment w1 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00103
00104 Gtk.HBox w2 = new Gtk.HBox();
00105 w2.Spacing = 2;
00106
00107 Gtk.Image w3 = new Gtk.Image();
00108 w3.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-add", Gtk.IconSize.Menu, 16);
00109 w2.Add(w3);
00110
00111 Gtk.Label w5 = new Gtk.Label();
00112 w5.LabelProp = Mono.Unix.Catalog.GetString("Add");
00113 w5.UseUnderline = true;
00114 w2.Add(w5);
00115 w1.Add(w2);
00116 this.AddButton.Add(w1);
00117 this.table1.Add(this.AddButton);
00118 Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table1[this.AddButton]));
00119 w9.TopAttach = ((uint)(7));
00120 w9.BottomAttach = ((uint)(8));
00121 w9.XOptions = ((Gtk.AttachOptions)(4));
00122 w9.YOptions = ((Gtk.AttachOptions)(4));
00123
00124 this.ExpirationCalendar = new Gtk.Calendar();
00125 this.ExpirationCalendar.CanFocus = true;
00126 this.ExpirationCalendar.Name = "ExpirationCalendar";
00127 this.ExpirationCalendar.DisplayOptions = ((Gtk.CalendarDisplayOptions)(35));
00128 this.table1.Add(this.ExpirationCalendar);
00129 Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table1[this.ExpirationCalendar]));
00130 w10.TopAttach = ((uint)(6));
00131 w10.BottomAttach = ((uint)(7));
00132 w10.RightAttach = ((uint)(2));
00133 w10.XOptions = ((Gtk.AttachOptions)(4));
00134 w10.YOptions = ((Gtk.AttachOptions)(4));
00135
00136 this.hbox2 = new Gtk.HBox();
00137 this.hbox2.Name = "hbox2";
00138 this.hbox2.Spacing = 6;
00139
00140 this.label6 = new Gtk.Label();
00141 this.label6.Name = "label6";
00142 this.label6.Xpad = 5;
00143 this.label6.Xalign = 0F;
00144 this.label6.LabelProp = Mono.Unix.Catalog.GetString("<b>Bar code:</b>");
00145 this.label6.UseMarkup = true;
00146 this.hbox2.Add(this.label6);
00147 Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.hbox2[this.label6]));
00148 w11.Position = 0;
00149 w11.Expand = false;
00150 w11.Fill = false;
00151
00152 this.BarCodeLabel = new Gtk.Label();
00153 this.BarCodeLabel.Name = "BarCodeLabel";
00154 this.BarCodeLabel.LabelProp = Mono.Unix.Catalog.GetString("-");
00155 this.BarCodeLabel.UseMarkup = true;
00156 this.hbox2.Add(this.BarCodeLabel);
00157 Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.hbox2[this.BarCodeLabel]));
00158 w12.Position = 1;
00159 w12.Fill = false;
00160
00161 this.ClearBarCodeButton = new Gtk.Button();
00162 this.ClearBarCodeButton.Sensitive = false;
00163 this.ClearBarCodeButton.CanFocus = true;
00164 this.ClearBarCodeButton.Name = "ClearBarCodeButton";
00165 this.ClearBarCodeButton.UseUnderline = true;
00166
00167 Gtk.Alignment w13 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00168
00169 Gtk.HBox w14 = new Gtk.HBox();
00170 w14.Spacing = 2;
00171
00172 Gtk.Image w15 = new Gtk.Image();
00173 w15.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-clear", Gtk.IconSize.Menu, 16);
00174 w14.Add(w15);
00175
00176 Gtk.Label w17 = new Gtk.Label();
00177 w14.Add(w17);
00178 w13.Add(w14);
00179 this.ClearBarCodeButton.Add(w13);
00180 this.hbox2.Add(this.ClearBarCodeButton);
00181 Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.hbox2[this.ClearBarCodeButton]));
00182 w21.Position = 2;
00183 w21.Expand = false;
00184 w21.Fill = false;
00185 this.table1.Add(this.hbox2);
00186 Gtk.Table.TableChild w22 = ((Gtk.Table.TableChild)(this.table1[this.hbox2]));
00187 w22.TopAttach = ((uint)(2));
00188 w22.BottomAttach = ((uint)(3));
00189 w22.RightAttach = ((uint)(2));
00190 w22.XOptions = ((Gtk.AttachOptions)(4));
00191
00192 this.IngredientLabel = new Gtk.Label();
00193 this.IngredientLabel.WidthRequest = 200;
00194 this.IngredientLabel.Name = "IngredientLabel";
00195 this.IngredientLabel.Xalign = 0F;
00196 this.IngredientLabel.Selectable = true;
00197 this.IngredientLabel.SingleLineMode = true;
00198 this.table1.Add(this.IngredientLabel);
00199 Gtk.Table.TableChild w23 = ((Gtk.Table.TableChild)(this.table1[this.IngredientLabel]));
00200 w23.TopAttach = ((uint)(3));
00201 w23.BottomAttach = ((uint)(4));
00202 w23.LeftAttach = ((uint)(1));
00203 w23.RightAttach = ((uint)(2));
00204 w23.XOptions = ((Gtk.AttachOptions)(0));
00205 w23.YOptions = ((Gtk.AttachOptions)(4));
00206
00207 this.label2 = new Gtk.Label();
00208 this.label2.Name = "label2";
00209 this.label2.Xpad = 5;
00210 this.label2.Xalign = 0F;
00211 this.label2.LabelProp = Mono.Unix.Catalog.GetString("<b>Quantity (g):</b>");
00212 this.label2.UseMarkup = true;
00213 this.table1.Add(this.label2);
00214 Gtk.Table.TableChild w24 = ((Gtk.Table.TableChild)(this.table1[this.label2]));
00215 w24.TopAttach = ((uint)(1));
00216 w24.BottomAttach = ((uint)(2));
00217 w24.XOptions = ((Gtk.AttachOptions)(4));
00218 w24.YOptions = ((Gtk.AttachOptions)(4));
00219
00220 this.label3 = new Gtk.Label();
00221 this.label3.Name = "label3";
00222 this.label3.Xpad = 5;
00223 this.label3.Xalign = 0F;
00224 this.label3.LabelProp = Mono.Unix.Catalog.GetString("<b>Ingredient:</b>");
00225 this.label3.UseMarkup = true;
00226 this.table1.Add(this.label3);
00227 Gtk.Table.TableChild w25 = ((Gtk.Table.TableChild)(this.table1[this.label3]));
00228 w25.TopAttach = ((uint)(3));
00229 w25.BottomAttach = ((uint)(4));
00230 w25.XOptions = ((Gtk.AttachOptions)(4));
00231 w25.YOptions = ((Gtk.AttachOptions)(4));
00232
00233 this.label4 = new Gtk.Label();
00234 this.label4.Name = "label4";
00235 this.label4.Xpad = 5;
00236 this.label4.Xalign = 0F;
00237 this.label4.LabelProp = Mono.Unix.Catalog.GetString("<b>Product:</b>");
00238 this.label4.UseMarkup = true;
00239 this.table1.Add(this.label4);
00240 Gtk.Table.TableChild w26 = ((Gtk.Table.TableChild)(this.table1[this.label4]));
00241 w26.XOptions = ((Gtk.AttachOptions)(4));
00242 w26.YOptions = ((Gtk.AttachOptions)(4));
00243
00244 this.label5 = new Gtk.Label();
00245 this.label5.Name = "label5";
00246 this.label5.Xpad = 5;
00247 this.label5.Xalign = 0F;
00248 this.label5.LabelProp = Mono.Unix.Catalog.GetString("<b>Expiration date:</b>");
00249 this.label5.UseMarkup = true;
00250 this.table1.Add(this.label5);
00251 Gtk.Table.TableChild w27 = ((Gtk.Table.TableChild)(this.table1[this.label5]));
00252 w27.TopAttach = ((uint)(5));
00253 w27.BottomAttach = ((uint)(6));
00254 w27.XOptions = ((Gtk.AttachOptions)(4));
00255 w27.YOptions = ((Gtk.AttachOptions)(4));
00256
00257 this.ProductEntry = new Gtk.Entry();
00258 this.ProductEntry.CanFocus = true;
00259 this.ProductEntry.Name = "ProductEntry";
00260 this.ProductEntry.IsEditable = true;
00261 this.ProductEntry.InvisibleChar = '●';
00262 this.table1.Add(this.ProductEntry);
00263 Gtk.Table.TableChild w28 = ((Gtk.Table.TableChild)(this.table1[this.ProductEntry]));
00264 w28.LeftAttach = ((uint)(1));
00265 w28.RightAttach = ((uint)(2));
00266 w28.XOptions = ((Gtk.AttachOptions)(4));
00267 w28.YOptions = ((Gtk.AttachOptions)(4));
00268
00269 this.QuantitySpinbutton = new Gtk.SpinButton(1, 100000, 50);
00270 this.QuantitySpinbutton.CanFocus = true;
00271 this.QuantitySpinbutton.Name = "QuantitySpinbutton";
00272 this.QuantitySpinbutton.Adjustment.PageIncrement = 10;
00273 this.QuantitySpinbutton.ClimbRate = 1;
00274 this.QuantitySpinbutton.Numeric = true;
00275 this.QuantitySpinbutton.Value = 100;
00276 this.table1.Add(this.QuantitySpinbutton);
00277 Gtk.Table.TableChild w29 = ((Gtk.Table.TableChild)(this.table1[this.QuantitySpinbutton]));
00278 w29.TopAttach = ((uint)(1));
00279 w29.BottomAttach = ((uint)(2));
00280 w29.LeftAttach = ((uint)(1));
00281 w29.RightAttach = ((uint)(2));
00282 w29.XOptions = ((Gtk.AttachOptions)(4));
00283 w29.YOptions = ((Gtk.AttachOptions)(4));
00284
00285 this.SelectIngredientButton = new Gtk.Button();
00286 this.SelectIngredientButton.CanFocus = true;
00287 this.SelectIngredientButton.Name = "SelectIngredientButton";
00288 this.SelectIngredientButton.UseUnderline = true;
00289 this.SelectIngredientButton.Label = Mono.Unix.Catalog.GetString("Select ingredient");
00290 this.table1.Add(this.SelectIngredientButton);
00291 Gtk.Table.TableChild w30 = ((Gtk.Table.TableChild)(this.table1[this.SelectIngredientButton]));
00292 w30.TopAttach = ((uint)(4));
00293 w30.BottomAttach = ((uint)(5));
00294 w30.LeftAttach = ((uint)(1));
00295 w30.RightAttach = ((uint)(2));
00296 w30.XOptions = ((Gtk.AttachOptions)(4));
00297 w30.YOptions = ((Gtk.AttachOptions)(4));
00298 this.hbox1.Add(this.table1);
00299 Gtk.Box.BoxChild w31 = ((Gtk.Box.BoxChild)(this.hbox1[this.table1]));
00300 w31.Position = 0;
00301 w31.Expand = false;
00302 w31.Fill = false;
00303
00304 this.vbox2 = new Gtk.VBox();
00305 this.vbox2.Name = "vbox2";
00306 this.vbox2.Spacing = 6;
00307
00308 this.scanner = new Foodolini.Activities.FoodRegistration.Scanner();
00309 this.scanner.WidthRequest = 600;
00310 this.scanner.HeightRequest = 100;
00311 this.scanner.Name = "scanner";
00312 this.scanner.Mute = false;
00313 this.vbox2.Add(this.scanner);
00314 Gtk.Box.BoxChild w32 = ((Gtk.Box.BoxChild)(this.vbox2[this.scanner]));
00315 w32.Position = 0;
00316
00317 this.hbox4 = new Gtk.HBox();
00318 this.hbox4.Name = "hbox4";
00319 this.hbox4.Spacing = 6;
00320
00321 this.VideoSourceComboBox = Gtk.ComboBox.NewText();
00322 this.VideoSourceComboBox.Name = "VideoSourceComboBox";
00323 this.VideoSourceComboBox.HasFrame = false;
00324 this.VideoSourceComboBox.FocusOnClick = false;
00325 this.hbox4.Add(this.VideoSourceComboBox);
00326 Gtk.Box.BoxChild w33 = ((Gtk.Box.BoxChild)(this.hbox4[this.VideoSourceComboBox]));
00327 w33.Position = 0;
00328
00329 this.RefreshButton = new Gtk.Button();
00330 this.RefreshButton.TooltipMarkup = "Refresh list of video devices.";
00331 this.RefreshButton.CanFocus = true;
00332 this.RefreshButton.Name = "RefreshButton";
00333 this.RefreshButton.UseUnderline = true;
00334 this.RefreshButton.FocusOnClick = false;
00335 this.RefreshButton.Relief = ((Gtk.ReliefStyle)(2));
00336
00337 Gtk.Alignment w34 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00338
00339 Gtk.HBox w35 = new Gtk.HBox();
00340 w35.Spacing = 2;
00341
00342 Gtk.Image w36 = new Gtk.Image();
00343 w36.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-refresh", Gtk.IconSize.Menu, 16);
00344 w35.Add(w36);
00345
00346 Gtk.Label w38 = new Gtk.Label();
00347 w35.Add(w38);
00348 w34.Add(w35);
00349 this.RefreshButton.Add(w34);
00350 this.hbox4.Add(this.RefreshButton);
00351 Gtk.Box.BoxChild w42 = ((Gtk.Box.BoxChild)(this.hbox4[this.RefreshButton]));
00352 w42.Position = 1;
00353 w42.Expand = false;
00354 w42.Fill = false;
00355
00356 this.MuteButton = new Gtk.Button();
00357 this.MuteButton.TooltipMarkup = "Mute the bar code scanner";
00358 this.MuteButton.CanFocus = true;
00359 this.MuteButton.Name = "MuteButton";
00360 this.MuteButton.UseUnderline = true;
00361 this.MuteButton.FocusOnClick = false;
00362 this.MuteButton.Relief = ((Gtk.ReliefStyle)(2));
00363
00364 Gtk.Alignment w43 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00365
00366 Gtk.HBox w44 = new Gtk.HBox();
00367 w44.Spacing = 2;
00368
00369 Gtk.Image w45 = new Gtk.Image();
00370 w44.Add(w45);
00371
00372 Gtk.Label w47 = new Gtk.Label();
00373 w44.Add(w47);
00374 w43.Add(w44);
00375 this.MuteButton.Add(w43);
00376 this.hbox4.Add(this.MuteButton);
00377 Gtk.Box.BoxChild w51 = ((Gtk.Box.BoxChild)(this.hbox4[this.MuteButton]));
00378 w51.PackType = ((Gtk.PackType)(1));
00379 w51.Position = 2;
00380 w51.Expand = false;
00381 w51.Fill = false;
00382 this.vbox2.Add(this.hbox4);
00383 Gtk.Box.BoxChild w52 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox4]));
00384 w52.Position = 1;
00385 w52.Expand = false;
00386 w52.Fill = false;
00387 this.hbox1.Add(this.vbox2);
00388 Gtk.Box.BoxChild w53 = ((Gtk.Box.BoxChild)(this.hbox1[this.vbox2]));
00389 w53.Position = 1;
00390 w53.Expand = false;
00391 w53.Fill = false;
00392 w53.Padding = ((uint)(20));
00393 this.vbox1.Add(this.hbox1);
00394 Gtk.Box.BoxChild w54 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
00395 w54.Position = 0;
00396 w54.Expand = false;
00397 w54.Fill = false;
00398
00399 this.GtkScrolledWindow = new Gtk.ScrolledWindow();
00400 this.GtkScrolledWindow.Name = "GtkScrolledWindow";
00401 this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
00402
00403 this.FoodView = new Gtk.NodeView();
00404 this.FoodView.CanFocus = true;
00405 this.FoodView.Name = "FoodView";
00406 this.GtkScrolledWindow.Add(this.FoodView);
00407 this.vbox1.Add(this.GtkScrolledWindow);
00408 Gtk.Box.BoxChild w56 = ((Gtk.Box.BoxChild)(this.vbox1[this.GtkScrolledWindow]));
00409 w56.Position = 1;
00410
00411 this.hbox3 = new Gtk.HBox();
00412 this.hbox3.Name = "hbox3";
00413 this.hbox3.Spacing = 6;
00414
00415 this.hbuttonbox2 = new Gtk.HButtonBox();
00416 this.hbuttonbox2.Name = "hbuttonbox2";
00417 this.hbuttonbox2.LayoutStyle = ((Gtk.ButtonBoxStyle)(3));
00418
00419 this.RemoveButton = new Gtk.Button();
00420 this.RemoveButton.CanFocus = true;
00421 this.RemoveButton.Name = "RemoveButton";
00422 this.RemoveButton.UseUnderline = true;
00423
00424 Gtk.Alignment w57 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00425
00426 Gtk.HBox w58 = new Gtk.HBox();
00427 w58.Spacing = 2;
00428
00429 Gtk.Image w59 = new Gtk.Image();
00430 w59.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-remove", Gtk.IconSize.Menu, 16);
00431 w58.Add(w59);
00432
00433 Gtk.Label w61 = new Gtk.Label();
00434 w61.LabelProp = Mono.Unix.Catalog.GetString("Remove food item");
00435 w61.UseUnderline = true;
00436 w58.Add(w61);
00437 w57.Add(w58);
00438 this.RemoveButton.Add(w57);
00439 this.hbuttonbox2.Add(this.RemoveButton);
00440 Gtk.ButtonBox.ButtonBoxChild w65 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2[this.RemoveButton]));
00441 w65.Expand = false;
00442 w65.Fill = false;
00443 this.hbox3.Add(this.hbuttonbox2);
00444 Gtk.Box.BoxChild w66 = ((Gtk.Box.BoxChild)(this.hbox3[this.hbuttonbox2]));
00445 w66.Position = 0;
00446
00447 this.hbuttonbox1 = new Gtk.HButtonBox();
00448 this.hbuttonbox1.Spacing = 5;
00449 this.hbuttonbox1.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
00450
00451 this.CancelButton = new Gtk.Button();
00452 this.CancelButton.CanFocus = true;
00453 this.CancelButton.Name = "CancelButton";
00454 this.CancelButton.UseUnderline = true;
00455
00456 Gtk.Alignment w67 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00457
00458 Gtk.HBox w68 = new Gtk.HBox();
00459 w68.Spacing = 2;
00460
00461 Gtk.Image w69 = new Gtk.Image();
00462 w69.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-cancel", Gtk.IconSize.Menu, 16);
00463 w68.Add(w69);
00464
00465 Gtk.Label w71 = new Gtk.Label();
00466 w71.LabelProp = Mono.Unix.Catalog.GetString("Cancel");
00467 w71.UseUnderline = true;
00468 w68.Add(w71);
00469 w67.Add(w68);
00470 this.CancelButton.Add(w67);
00471 this.hbuttonbox1.Add(this.CancelButton);
00472 Gtk.ButtonBox.ButtonBoxChild w75 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox1[this.CancelButton]));
00473 w75.Expand = false;
00474 w75.Fill = false;
00475
00476 this.SaveButton = new Gtk.Button();
00477 this.SaveButton.CanFocus = true;
00478 this.SaveButton.Name = "SaveButton";
00479 this.SaveButton.UseUnderline = true;
00480
00481 Gtk.Alignment w76 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00482
00483 Gtk.HBox w77 = new Gtk.HBox();
00484 w77.Spacing = 2;
00485
00486 Gtk.Image w78 = new Gtk.Image();
00487 w78.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-save", Gtk.IconSize.Menu, 16);
00488 w77.Add(w78);
00489
00490 Gtk.Label w80 = new Gtk.Label();
00491 w80.LabelProp = Mono.Unix.Catalog.GetString("Save");
00492 w80.UseUnderline = true;
00493 w77.Add(w80);
00494 w76.Add(w77);
00495 this.SaveButton.Add(w76);
00496 this.hbuttonbox1.Add(this.SaveButton);
00497 Gtk.ButtonBox.ButtonBoxChild w84 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox1[this.SaveButton]));
00498 w84.Position = 1;
00499 w84.Expand = false;
00500 w84.Fill = false;
00501 this.hbox3.Add(this.hbuttonbox1);
00502 Gtk.Box.BoxChild w85 = ((Gtk.Box.BoxChild)(this.hbox3[this.hbuttonbox1]));
00503 w85.Position = 2;
00504 this.vbox1.Add(this.hbox3);
00505 Gtk.Box.BoxChild w86 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox3]));
00506 w86.Position = 2;
00507 w86.Expand = false;
00508 w86.Fill = false;
00509 this.Add(this.vbox1);
00510 if ((this.Child != null)) {
00511 this.Child.ShowAll();
00512 }
00513 this.Hide();
00514 this.SelectIngredientButton.Clicked += new System.EventHandler(this.OnSelectIngredientButtonClicked);
00515 this.QuantitySpinbutton.ValueChanged += new System.EventHandler(this.OnQuantitySpinbuttonValueChanged);
00516 this.ClearBarCodeButton.Clicked += new System.EventHandler(this.OnClearBarCodeButtonClicked);
00517 this.AddButton.Clicked += new System.EventHandler(this.OnAddButtonClicked);
00518 this.scanner.BarScanned += new System.EventHandler<Foodolini.Activities.FoodRegistration.BarScannedArgs>(this.OnScannerBarScanned);
00519 this.VideoSourceComboBox.Changed += new System.EventHandler(this.OnVideoSourceComboBoxChanged);
00520 this.RefreshButton.Clicked += new System.EventHandler(this.OnRefreshButtonClicked);
00521 this.MuteButton.Clicked += new System.EventHandler(this.OnMuteButtonClicked);
00522 this.FoodView.CursorChanged += new System.EventHandler(this.OnFoodViewCursorChanged);
00523 this.RemoveButton.Clicked += new System.EventHandler(this.OnRemoveButtonClicked);
00524 this.CancelButton.Clicked += new System.EventHandler(this.OnCancelButtonClicked);
00525 this.SaveButton.Clicked += new System.EventHandler(this.OnSaveButtonClicked);
00526 }
00527 }
00528 }