00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 namespace Foodolini.Activities.FoodRegistration {
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.HButtonBox hbuttonbox2;
00035
00036 private Gtk.Button DuplicateButton;
00037
00038 private Gtk.Button RemoveButton;
00039
00040 private Gtk.Label IngredientLabel;
00041
00042 private Gtk.Label label2;
00043
00044 private Gtk.Label label3;
00045
00046 private Gtk.Label label5;
00047
00048 private Gtk.SpinButton QuantitySpinbutton;
00049
00050 private Gtk.Button SelectIngredientButton;
00051
00052 private Gtk.VBox vbox2;
00053
00054 private Foodolini.Activities.FoodRegistration.Scanner scanner;
00055
00056 private Gtk.HBox hbox4;
00057
00058 private Gtk.ComboBox VideoSourceComboBox;
00059
00060 private Gtk.Button RefreshButton;
00061
00062 private Gtk.ToggleButton FlipButton;
00063
00064 private Gtk.Button MuteButton;
00065
00066 private Gtk.ScrolledWindow GtkScrolledWindow;
00067
00068 private Gtk.NodeView FoodView;
00069
00070 private Gtk.HButtonBox hbuttonbox1;
00071
00072 private Gtk.Button CancelButton;
00073
00074 private Gtk.Button SaveButton;
00075
00076 protected virtual void Build() {
00077 Stetic.Gui.Initialize(this);
00078
00079 Stetic.BinContainer.Attach(this);
00080 this.Name = "Foodolini.Activities.FoodRegistration.FoodRegistrationActivity";
00081
00082 this.vbox1 = new Gtk.VBox();
00083 this.vbox1.Name = "vbox1";
00084 this.vbox1.Spacing = 6;
00085
00086 this.hbox1 = new Gtk.HBox();
00087 this.hbox1.Name = "hbox1";
00088 this.hbox1.Spacing = 6;
00089
00090 this.table1 = new Gtk.Table(((uint)(8)), ((uint)(2)), false);
00091 this.table1.Name = "table1";
00092 this.table1.RowSpacing = ((uint)(6));
00093 this.table1.ColumnSpacing = ((uint)(6));
00094
00095 this.AddButton = new Gtk.Button();
00096 this.AddButton.TooltipMarkup = "Add food item without scanning a bar code.";
00097 this.AddButton.CanFocus = true;
00098 this.AddButton.Name = "AddButton";
00099 this.AddButton.UseUnderline = true;
00100
00101 Gtk.Alignment w1 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00102
00103 Gtk.HBox w2 = new Gtk.HBox();
00104 w2.Spacing = 2;
00105
00106 Gtk.Image w3 = new Gtk.Image();
00107 w3.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-add", Gtk.IconSize.Menu, 16);
00108 w2.Add(w3);
00109
00110 Gtk.Label w5 = new Gtk.Label();
00111 w5.LabelProp = Mono.Unix.Catalog.GetString("Add item without bar code");
00112 w5.UseUnderline = true;
00113 w2.Add(w5);
00114 w1.Add(w2);
00115 this.AddButton.Add(w1);
00116 this.table1.Add(this.AddButton);
00117 Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table1[this.AddButton]));
00118 w9.LeftAttach = ((uint)(1));
00119 w9.RightAttach = ((uint)(2));
00120 w9.XOptions = ((Gtk.AttachOptions)(4));
00121 w9.YOptions = ((Gtk.AttachOptions)(4));
00122
00123 this.ExpirationCalendar = new Gtk.Calendar();
00124 this.ExpirationCalendar.TooltipMarkup = "Select expiration date for the food item.";
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.TooltipMarkup = "Clear the bar code association, do this to avoid applying ingredient and quantity changes to the bar code association.";
00163 this.ClearBarCodeButton.Sensitive = false;
00164 this.ClearBarCodeButton.CanFocus = true;
00165 this.ClearBarCodeButton.Name = "ClearBarCodeButton";
00166 this.ClearBarCodeButton.UseUnderline = true;
00167
00168 Gtk.Alignment w13 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00169
00170 Gtk.HBox w14 = new Gtk.HBox();
00171 w14.Spacing = 2;
00172
00173 Gtk.Image w15 = new Gtk.Image();
00174 w15.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-clear", Gtk.IconSize.Menu, 16);
00175 w14.Add(w15);
00176
00177 Gtk.Label w17 = new Gtk.Label();
00178 w14.Add(w17);
00179 w13.Add(w14);
00180 this.ClearBarCodeButton.Add(w13);
00181 this.hbox2.Add(this.ClearBarCodeButton);
00182 Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.hbox2[this.ClearBarCodeButton]));
00183 w21.Position = 2;
00184 w21.Expand = false;
00185 w21.Fill = false;
00186 this.table1.Add(this.hbox2);
00187 Gtk.Table.TableChild w22 = ((Gtk.Table.TableChild)(this.table1[this.hbox2]));
00188 w22.TopAttach = ((uint)(2));
00189 w22.BottomAttach = ((uint)(3));
00190 w22.RightAttach = ((uint)(2));
00191 w22.XOptions = ((Gtk.AttachOptions)(4));
00192
00193 this.hbuttonbox2 = new Gtk.HButtonBox();
00194 this.hbuttonbox2.Name = "hbuttonbox2";
00195 this.hbuttonbox2.LayoutStyle = ((Gtk.ButtonBoxStyle)(3));
00196
00197 this.DuplicateButton = new Gtk.Button();
00198 this.DuplicateButton.TooltipMarkup = "Duplicate selected food item.";
00199 this.DuplicateButton.CanFocus = true;
00200 this.DuplicateButton.Name = "DuplicateButton";
00201 this.DuplicateButton.UseUnderline = true;
00202
00203 Gtk.Alignment w23 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00204
00205 Gtk.HBox w24 = new Gtk.HBox();
00206 w24.Spacing = 2;
00207
00208 Gtk.Image w25 = new Gtk.Image();
00209 w25.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-copy", Gtk.IconSize.Menu, 16);
00210 w24.Add(w25);
00211
00212 Gtk.Label w27 = new Gtk.Label();
00213 w27.LabelProp = Mono.Unix.Catalog.GetString("Duplicate");
00214 w27.UseUnderline = true;
00215 w24.Add(w27);
00216 w23.Add(w24);
00217 this.DuplicateButton.Add(w23);
00218 this.hbuttonbox2.Add(this.DuplicateButton);
00219 Gtk.ButtonBox.ButtonBoxChild w31 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2[this.DuplicateButton]));
00220 w31.Expand = false;
00221 w31.Fill = false;
00222
00223 this.RemoveButton = new Gtk.Button();
00224 this.RemoveButton.TooltipMarkup = "Remove selected food item.";
00225 this.RemoveButton.CanFocus = true;
00226 this.RemoveButton.Name = "RemoveButton";
00227 this.RemoveButton.UseUnderline = true;
00228
00229 Gtk.Alignment w32 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00230
00231 Gtk.HBox w33 = new Gtk.HBox();
00232 w33.Spacing = 2;
00233
00234 Gtk.Image w34 = new Gtk.Image();
00235 w34.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-remove", Gtk.IconSize.Menu, 16);
00236 w33.Add(w34);
00237
00238 Gtk.Label w36 = new Gtk.Label();
00239 w36.LabelProp = Mono.Unix.Catalog.GetString("Remove");
00240 w36.UseUnderline = true;
00241 w33.Add(w36);
00242 w32.Add(w33);
00243 this.RemoveButton.Add(w32);
00244 this.hbuttonbox2.Add(this.RemoveButton);
00245 Gtk.ButtonBox.ButtonBoxChild w40 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2[this.RemoveButton]));
00246 w40.Position = 1;
00247 w40.Expand = false;
00248 w40.Fill = false;
00249 this.table1.Add(this.hbuttonbox2);
00250 Gtk.Table.TableChild w41 = ((Gtk.Table.TableChild)(this.table1[this.hbuttonbox2]));
00251 w41.TopAttach = ((uint)(7));
00252 w41.BottomAttach = ((uint)(8));
00253 w41.RightAttach = ((uint)(2));
00254 w41.XOptions = ((Gtk.AttachOptions)(4));
00255 w41.YOptions = ((Gtk.AttachOptions)(4));
00256
00257 this.IngredientLabel = new Gtk.Label();
00258 this.IngredientLabel.TooltipMarkup = "Currently selected ingredient, will be associated with the bar code.";
00259 this.IngredientLabel.WidthRequest = 200;
00260 this.IngredientLabel.Name = "IngredientLabel";
00261 this.IngredientLabel.Selectable = true;
00262 this.IngredientLabel.SingleLineMode = true;
00263 this.table1.Add(this.IngredientLabel);
00264 Gtk.Table.TableChild w42 = ((Gtk.Table.TableChild)(this.table1[this.IngredientLabel]));
00265 w42.TopAttach = ((uint)(3));
00266 w42.BottomAttach = ((uint)(4));
00267 w42.LeftAttach = ((uint)(1));
00268 w42.RightAttach = ((uint)(2));
00269 w42.XOptions = ((Gtk.AttachOptions)(0));
00270 w42.YOptions = ((Gtk.AttachOptions)(4));
00271
00272 this.label2 = new Gtk.Label();
00273 this.label2.Name = "label2";
00274 this.label2.Xpad = 5;
00275 this.label2.Xalign = 0F;
00276 this.label2.LabelProp = Mono.Unix.Catalog.GetString("<b>Quantity (g):</b>");
00277 this.label2.UseMarkup = true;
00278 this.table1.Add(this.label2);
00279 Gtk.Table.TableChild w43 = ((Gtk.Table.TableChild)(this.table1[this.label2]));
00280 w43.TopAttach = ((uint)(1));
00281 w43.BottomAttach = ((uint)(2));
00282 w43.XOptions = ((Gtk.AttachOptions)(4));
00283 w43.YOptions = ((Gtk.AttachOptions)(4));
00284
00285 this.label3 = new Gtk.Label();
00286 this.label3.Name = "label3";
00287 this.label3.Xpad = 5;
00288 this.label3.Xalign = 0F;
00289 this.label3.LabelProp = Mono.Unix.Catalog.GetString("<b>Ingredient:</b>");
00290 this.label3.UseMarkup = true;
00291 this.table1.Add(this.label3);
00292 Gtk.Table.TableChild w44 = ((Gtk.Table.TableChild)(this.table1[this.label3]));
00293 w44.TopAttach = ((uint)(3));
00294 w44.BottomAttach = ((uint)(4));
00295 w44.XOptions = ((Gtk.AttachOptions)(4));
00296 w44.YOptions = ((Gtk.AttachOptions)(4));
00297
00298 this.label5 = new Gtk.Label();
00299 this.label5.Name = "label5";
00300 this.label5.Xpad = 5;
00301 this.label5.Xalign = 0F;
00302 this.label5.LabelProp = Mono.Unix.Catalog.GetString("<b>Expiration date:</b>");
00303 this.label5.UseMarkup = true;
00304 this.table1.Add(this.label5);
00305 Gtk.Table.TableChild w45 = ((Gtk.Table.TableChild)(this.table1[this.label5]));
00306 w45.TopAttach = ((uint)(5));
00307 w45.BottomAttach = ((uint)(6));
00308 w45.XOptions = ((Gtk.AttachOptions)(4));
00309 w45.YOptions = ((Gtk.AttachOptions)(4));
00310
00311 this.QuantitySpinbutton = new Gtk.SpinButton(1, 100000, 50);
00312 this.QuantitySpinbutton.TooltipMarkup = "Content of the food item in grams, will be associated with the bar code.";
00313 this.QuantitySpinbutton.CanFocus = true;
00314 this.QuantitySpinbutton.Name = "QuantitySpinbutton";
00315 this.QuantitySpinbutton.Adjustment.PageIncrement = 10;
00316 this.QuantitySpinbutton.ClimbRate = 1;
00317 this.QuantitySpinbutton.Numeric = true;
00318 this.QuantitySpinbutton.Value = 100;
00319 this.table1.Add(this.QuantitySpinbutton);
00320 Gtk.Table.TableChild w46 = ((Gtk.Table.TableChild)(this.table1[this.QuantitySpinbutton]));
00321 w46.TopAttach = ((uint)(1));
00322 w46.BottomAttach = ((uint)(2));
00323 w46.LeftAttach = ((uint)(1));
00324 w46.RightAttach = ((uint)(2));
00325 w46.XOptions = ((Gtk.AttachOptions)(4));
00326 w46.YOptions = ((Gtk.AttachOptions)(4));
00327
00328 this.SelectIngredientButton = new Gtk.Button();
00329 this.SelectIngredientButton.TooltipMarkup = "Change the ingredient of the current food item.";
00330 this.SelectIngredientButton.CanFocus = true;
00331 this.SelectIngredientButton.Name = "SelectIngredientButton";
00332 this.SelectIngredientButton.UseUnderline = true;
00333 this.SelectIngredientButton.Label = Mono.Unix.Catalog.GetString("Change ingredient");
00334 this.table1.Add(this.SelectIngredientButton);
00335 Gtk.Table.TableChild w47 = ((Gtk.Table.TableChild)(this.table1[this.SelectIngredientButton]));
00336 w47.TopAttach = ((uint)(4));
00337 w47.BottomAttach = ((uint)(5));
00338 w47.LeftAttach = ((uint)(1));
00339 w47.RightAttach = ((uint)(2));
00340 w47.XOptions = ((Gtk.AttachOptions)(4));
00341 w47.YOptions = ((Gtk.AttachOptions)(4));
00342 this.hbox1.Add(this.table1);
00343 Gtk.Box.BoxChild w48 = ((Gtk.Box.BoxChild)(this.hbox1[this.table1]));
00344 w48.Position = 0;
00345 w48.Expand = false;
00346 w48.Fill = false;
00347
00348 this.vbox2 = new Gtk.VBox();
00349 this.vbox2.Name = "vbox2";
00350 this.vbox2.Spacing = 6;
00351
00352 this.scanner = new Foodolini.Activities.FoodRegistration.Scanner();
00353 this.scanner.WidthRequest = 600;
00354 this.scanner.HeightRequest = 100;
00355 this.scanner.Name = "scanner";
00356 this.scanner.Mute = false;
00357 this.scanner.Flip = false;
00358 this.vbox2.Add(this.scanner);
00359 Gtk.Box.BoxChild w49 = ((Gtk.Box.BoxChild)(this.vbox2[this.scanner]));
00360 w49.Position = 0;
00361
00362 this.hbox4 = new Gtk.HBox();
00363 this.hbox4.Name = "hbox4";
00364 this.hbox4.Spacing = 6;
00365
00366 this.VideoSourceComboBox = Gtk.ComboBox.NewText();
00367 this.VideoSourceComboBox.TooltipMarkup = "Select video source.";
00368 this.VideoSourceComboBox.Name = "VideoSourceComboBox";
00369 this.VideoSourceComboBox.HasFrame = false;
00370 this.VideoSourceComboBox.FocusOnClick = false;
00371 this.hbox4.Add(this.VideoSourceComboBox);
00372 Gtk.Box.BoxChild w50 = ((Gtk.Box.BoxChild)(this.hbox4[this.VideoSourceComboBox]));
00373 w50.Position = 0;
00374
00375 this.RefreshButton = new Gtk.Button();
00376 this.RefreshButton.TooltipMarkup = "Refresh list of video devices.";
00377 this.RefreshButton.CanFocus = true;
00378 this.RefreshButton.Name = "RefreshButton";
00379 this.RefreshButton.UseUnderline = true;
00380 this.RefreshButton.FocusOnClick = false;
00381 this.RefreshButton.Relief = ((Gtk.ReliefStyle)(2));
00382
00383 Gtk.Alignment w51 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00384
00385 Gtk.HBox w52 = new Gtk.HBox();
00386 w52.Spacing = 2;
00387
00388 Gtk.Image w53 = new Gtk.Image();
00389 w53.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-refresh", Gtk.IconSize.Menu, 16);
00390 w52.Add(w53);
00391
00392 Gtk.Label w55 = new Gtk.Label();
00393 w52.Add(w55);
00394 w51.Add(w52);
00395 this.RefreshButton.Add(w51);
00396 this.hbox4.Add(this.RefreshButton);
00397 Gtk.Box.BoxChild w59 = ((Gtk.Box.BoxChild)(this.hbox4[this.RefreshButton]));
00398 w59.Position = 1;
00399 w59.Expand = false;
00400 w59.Fill = false;
00401
00402 this.FlipButton = new Gtk.ToggleButton();
00403 this.FlipButton.TooltipMarkup = "Flip video stream";
00404 this.FlipButton.CanFocus = true;
00405 this.FlipButton.Name = "FlipButton";
00406 this.FlipButton.UseUnderline = true;
00407 this.FlipButton.FocusOnClick = false;
00408 this.FlipButton.Relief = ((Gtk.ReliefStyle)(2));
00409 this.FlipButton.Active = true;
00410
00411 Gtk.Alignment w60 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00412
00413 Gtk.HBox w61 = new Gtk.HBox();
00414 w61.Spacing = 2;
00415
00416 Gtk.Image w62 = new Gtk.Image();
00417 w62.Pixbuf = Gdk.Pixbuf.LoadFromResource("flip.png");
00418 w61.Add(w62);
00419
00420 Gtk.Label w64 = new Gtk.Label();
00421 w61.Add(w64);
00422 w60.Add(w61);
00423 this.FlipButton.Add(w60);
00424 this.hbox4.Add(this.FlipButton);
00425 Gtk.Box.BoxChild w68 = ((Gtk.Box.BoxChild)(this.hbox4[this.FlipButton]));
00426 w68.PackType = ((Gtk.PackType)(1));
00427 w68.Position = 2;
00428 w68.Expand = false;
00429 w68.Fill = false;
00430
00431 this.MuteButton = new Gtk.Button();
00432 this.MuteButton.TooltipMarkup = "Mute the bar code scanner";
00433 this.MuteButton.CanFocus = true;
00434 this.MuteButton.Name = "MuteButton";
00435 this.MuteButton.UseUnderline = true;
00436 this.MuteButton.FocusOnClick = false;
00437 this.MuteButton.Relief = ((Gtk.ReliefStyle)(2));
00438
00439 Gtk.Alignment w69 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00440
00441 Gtk.HBox w70 = new Gtk.HBox();
00442 w70.Spacing = 2;
00443
00444 Gtk.Image w71 = new Gtk.Image();
00445 w70.Add(w71);
00446
00447 Gtk.Label w73 = new Gtk.Label();
00448 w70.Add(w73);
00449 w69.Add(w70);
00450 this.MuteButton.Add(w69);
00451 this.hbox4.Add(this.MuteButton);
00452 Gtk.Box.BoxChild w77 = ((Gtk.Box.BoxChild)(this.hbox4[this.MuteButton]));
00453 w77.PackType = ((Gtk.PackType)(1));
00454 w77.Position = 3;
00455 w77.Expand = false;
00456 w77.Fill = false;
00457 this.vbox2.Add(this.hbox4);
00458 Gtk.Box.BoxChild w78 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox4]));
00459 w78.Position = 1;
00460 w78.Expand = false;
00461 w78.Fill = false;
00462 this.hbox1.Add(this.vbox2);
00463 Gtk.Box.BoxChild w79 = ((Gtk.Box.BoxChild)(this.hbox1[this.vbox2]));
00464 w79.Position = 1;
00465 w79.Expand = false;
00466 w79.Fill = false;
00467 w79.Padding = ((uint)(20));
00468 this.vbox1.Add(this.hbox1);
00469 Gtk.Box.BoxChild w80 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
00470 w80.Position = 0;
00471 w80.Expand = false;
00472 w80.Fill = false;
00473
00474 this.GtkScrolledWindow = new Gtk.ScrolledWindow();
00475 this.GtkScrolledWindow.Name = "GtkScrolledWindow";
00476 this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
00477
00478 this.FoodView = new Gtk.NodeView();
00479 this.FoodView.CanFocus = true;
00480 this.FoodView.Name = "FoodView";
00481 this.GtkScrolledWindow.Add(this.FoodView);
00482 this.vbox1.Add(this.GtkScrolledWindow);
00483 Gtk.Box.BoxChild w82 = ((Gtk.Box.BoxChild)(this.vbox1[this.GtkScrolledWindow]));
00484 w82.Position = 1;
00485
00486 this.hbuttonbox1 = new Gtk.HButtonBox();
00487 this.hbuttonbox1.Spacing = 5;
00488 this.hbuttonbox1.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
00489
00490 this.CancelButton = new Gtk.Button();
00491 this.CancelButton.TooltipMarkup = "Discard changes";
00492 this.CancelButton.CanFocus = true;
00493 this.CancelButton.Name = "CancelButton";
00494 this.CancelButton.UseUnderline = true;
00495
00496 Gtk.Alignment w83 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00497
00498 Gtk.HBox w84 = new Gtk.HBox();
00499 w84.Spacing = 2;
00500
00501 Gtk.Image w85 = new Gtk.Image();
00502 w85.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-cancel", Gtk.IconSize.Menu, 16);
00503 w84.Add(w85);
00504
00505 Gtk.Label w87 = new Gtk.Label();
00506 w87.LabelProp = Mono.Unix.Catalog.GetString("Cancel");
00507 w87.UseUnderline = true;
00508 w84.Add(w87);
00509 w83.Add(w84);
00510 this.CancelButton.Add(w83);
00511 this.hbuttonbox1.Add(this.CancelButton);
00512 Gtk.ButtonBox.ButtonBoxChild w91 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox1[this.CancelButton]));
00513 w91.Expand = false;
00514 w91.Fill = false;
00515
00516 this.SaveButton = new Gtk.Button();
00517 this.SaveButton.TooltipMarkup = "Save changes";
00518 this.SaveButton.CanFocus = true;
00519 this.SaveButton.Name = "SaveButton";
00520 this.SaveButton.UseUnderline = true;
00521
00522 Gtk.Alignment w92 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00523
00524 Gtk.HBox w93 = new Gtk.HBox();
00525 w93.Spacing = 2;
00526
00527 Gtk.Image w94 = new Gtk.Image();
00528 w94.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-save", Gtk.IconSize.Menu, 16);
00529 w93.Add(w94);
00530
00531 Gtk.Label w96 = new Gtk.Label();
00532 w96.LabelProp = Mono.Unix.Catalog.GetString("Save");
00533 w96.UseUnderline = true;
00534 w93.Add(w96);
00535 w92.Add(w93);
00536 this.SaveButton.Add(w92);
00537 this.hbuttonbox1.Add(this.SaveButton);
00538 Gtk.ButtonBox.ButtonBoxChild w100 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox1[this.SaveButton]));
00539 w100.Position = 1;
00540 w100.Expand = false;
00541 w100.Fill = false;
00542 this.vbox1.Add(this.hbuttonbox1);
00543 Gtk.Box.BoxChild w101 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbuttonbox1]));
00544 w101.Position = 2;
00545 w101.Expand = false;
00546 w101.Fill = false;
00547 this.Add(this.vbox1);
00548 if ((this.Child != null)) {
00549 this.Child.ShowAll();
00550 }
00551 this.Hide();
00552 this.SelectIngredientButton.Clicked += new System.EventHandler(this.OnSelectIngredientButtonClicked);
00553 this.QuantitySpinbutton.ValueChanged += new System.EventHandler(this.OnQuantitySpinbuttonValueChanged);
00554 this.DuplicateButton.Clicked += new System.EventHandler(this.OnDuplicateButtonClicked);
00555 this.RemoveButton.Clicked += new System.EventHandler(this.OnRemoveButtonClicked);
00556 this.ClearBarCodeButton.Clicked += new System.EventHandler(this.OnClearBarCodeButtonClicked);
00557 this.ExpirationCalendar.MonthChanged += new System.EventHandler(this.CalendarChanged);
00558 this.ExpirationCalendar.DaySelected += new System.EventHandler(this.CalendarChanged);
00559 this.ExpirationCalendar.NextYear += new System.EventHandler(this.CalendarChanged);
00560 this.ExpirationCalendar.PrevYear += new System.EventHandler(this.CalendarChanged);
00561 this.AddButton.Clicked += new System.EventHandler(this.OnAddButtonClicked);
00562 this.scanner.BarScanned += new System.EventHandler<Foodolini.Activities.FoodRegistration.BarScannedArgs>(this.OnScannerBarScanned);
00563 this.VideoSourceComboBox.Changed += new System.EventHandler(this.OnVideoSourceComboBoxChanged);
00564 this.RefreshButton.Clicked += new System.EventHandler(this.OnRefreshButtonClicked);
00565 this.MuteButton.Clicked += new System.EventHandler(this.OnMuteButtonClicked);
00566 this.FlipButton.Toggled += new System.EventHandler(this.OnFlipButtonToggled);
00567 this.FoodView.CursorChanged += new System.EventHandler(this.OnFoodViewCursorChanged);
00568 this.CancelButton.Clicked += new System.EventHandler(this.OnCancelButtonClicked);
00569 this.SaveButton.Clicked += new System.EventHandler(this.OnSaveButtonClicked);
00570 }
00571 }
00572 }