00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 namespace Foodolini.Activities.Inventory {
00012
00013
00014 public partial class InventoryActivity {
00015
00016 private Gtk.HBox hbox2;
00017
00018 private Gtk.VBox vbox1;
00019
00020 private Gtk.ScrolledWindow GtkScrolledWindow;
00021
00022 private Gtk.NodeView foodItemView;
00023
00024 private Gtk.HBox hbox1;
00025
00026 private Gtk.HButtonBox hbuttonbox1;
00027
00028 private Gtk.Button RegisterBtn;
00029
00030 private Gtk.HBox hbox3;
00031
00032 private Gtk.VSeparator vseparator2;
00033
00034 private Gtk.VBox vbox2;
00035
00036 private Gtk.Label label5;
00037
00038 private Gtk.Label lbIngre;
00039
00040 private Gtk.Label lbAmount;
00041
00042 private Gtk.Label lbExpire;
00043
00044 private Gtk.Label lbshelf;
00045
00046 private Gtk.HBox hbox4;
00047
00048 private Gtk.Button ConsumeBnt;
00049
00050 private Gtk.Button Editbnt;
00051
00052 private Gtk.Button Deletebnt;
00053
00054 private Gtk.HBox hbox6;
00055
00056 private Gtk.Label label6;
00057
00058 private Gtk.HBox hbox7;
00059
00060 private Gtk.Label label8;
00061
00062 private Gtk.HBox hbox5;
00063
00064 private Gtk.Label label7;
00065
00066 protected virtual void Build() {
00067 Stetic.Gui.Initialize(this);
00068
00069 Stetic.BinContainer.Attach(this);
00070 this.Name = "Foodolini.Activities.Inventory.InventoryActivity";
00071
00072 this.hbox2 = new Gtk.HBox();
00073 this.hbox2.Name = "hbox2";
00074 this.hbox2.Spacing = 6;
00075
00076 this.vbox1 = new Gtk.VBox();
00077 this.vbox1.Name = "vbox1";
00078 this.vbox1.Spacing = 6;
00079
00080 this.GtkScrolledWindow = new Gtk.ScrolledWindow();
00081 this.GtkScrolledWindow.Name = "GtkScrolledWindow";
00082 this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
00083
00084 this.foodItemView = new Gtk.NodeView();
00085 this.foodItemView.TooltipMarkup = "Displaying the current inventory";
00086 this.foodItemView.CanFocus = true;
00087 this.foodItemView.Name = "foodItemView";
00088 this.GtkScrolledWindow.Add(this.foodItemView);
00089 this.vbox1.Add(this.GtkScrolledWindow);
00090 Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.GtkScrolledWindow]));
00091 w2.Position = 0;
00092
00093 this.hbox1 = new Gtk.HBox();
00094 this.hbox1.Name = "hbox1";
00095 this.hbox1.Spacing = 6;
00096
00097 this.hbuttonbox1 = new Gtk.HButtonBox();
00098 this.hbuttonbox1.LayoutStyle = ((Gtk.ButtonBoxStyle)(3));
00099
00100 this.RegisterBtn = new Gtk.Button();
00101 this.RegisterBtn.TooltipMarkup = "Add new groceries to the inventory";
00102 this.RegisterBtn.CanFocus = true;
00103 this.RegisterBtn.Name = "RegisterBtn";
00104 this.RegisterBtn.UseUnderline = true;
00105
00106 Gtk.Alignment w3 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00107
00108 Gtk.HBox w4 = new Gtk.HBox();
00109 w4.Spacing = 2;
00110
00111 Gtk.Image w5 = new Gtk.Image();
00112 w5.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-add", Gtk.IconSize.Menu, 16);
00113 w4.Add(w5);
00114
00115 Gtk.Label w7 = new Gtk.Label();
00116 w7.LabelProp = Mono.Unix.Catalog.GetString("Register groceries");
00117 w7.UseUnderline = true;
00118 w4.Add(w7);
00119 w3.Add(w4);
00120 this.RegisterBtn.Add(w3);
00121 this.hbuttonbox1.Add(this.RegisterBtn);
00122 Gtk.ButtonBox.ButtonBoxChild w11 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox1[this.RegisterBtn]));
00123 w11.Expand = false;
00124 w11.Fill = false;
00125 this.hbox1.Add(this.hbuttonbox1);
00126 Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.hbox1[this.hbuttonbox1]));
00127 w12.Position = 0;
00128 this.vbox1.Add(this.hbox1);
00129 Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
00130 w13.Position = 1;
00131 w13.Expand = false;
00132 w13.Fill = false;
00133 this.hbox2.Add(this.vbox1);
00134 Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.hbox2[this.vbox1]));
00135 w14.Position = 0;
00136
00137 this.hbox3 = new Gtk.HBox();
00138 this.hbox3.Name = "hbox3";
00139 this.hbox3.Spacing = 6;
00140
00141 this.vseparator2 = new Gtk.VSeparator();
00142 this.vseparator2.Name = "vseparator2";
00143 this.hbox3.Add(this.vseparator2);
00144 Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.hbox3[this.vseparator2]));
00145 w15.Position = 0;
00146 w15.Expand = false;
00147 w15.Fill = false;
00148
00149 this.vbox2 = new Gtk.VBox();
00150 this.vbox2.Name = "vbox2";
00151 this.vbox2.Spacing = 6;
00152
00153 this.label5 = new Gtk.Label();
00154 this.label5.Name = "label5";
00155 this.vbox2.Add(this.label5);
00156 Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox2[this.label5]));
00157 w16.Position = 0;
00158 w16.Expand = false;
00159 w16.Fill = false;
00160
00161 this.lbIngre = new Gtk.Label();
00162 this.lbIngre.WidthRequest = 200;
00163 this.lbIngre.Name = "lbIngre";
00164 this.lbIngre.Xalign = 0F;
00165 this.lbIngre.UseMarkup = true;
00166 this.vbox2.Add(this.lbIngre);
00167 Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.vbox2[this.lbIngre]));
00168 w17.Position = 1;
00169 w17.Expand = false;
00170 w17.Fill = false;
00171
00172 this.lbAmount = new Gtk.Label();
00173 this.lbAmount.Name = "lbAmount";
00174 this.lbAmount.Xalign = 0F;
00175 this.vbox2.Add(this.lbAmount);
00176 Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.vbox2[this.lbAmount]));
00177 w18.Position = 2;
00178 w18.Expand = false;
00179 w18.Fill = false;
00180
00181 this.lbExpire = new Gtk.Label();
00182 this.lbExpire.Name = "lbExpire";
00183 this.lbExpire.Xalign = 0F;
00184 this.lbExpire.UseMarkup = true;
00185 this.vbox2.Add(this.lbExpire);
00186 Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.vbox2[this.lbExpire]));
00187 w19.Position = 3;
00188 w19.Expand = false;
00189 w19.Fill = false;
00190
00191 this.lbshelf = new Gtk.Label();
00192 this.lbshelf.Name = "lbshelf";
00193 this.lbshelf.Xalign = 0F;
00194 this.vbox2.Add(this.lbshelf);
00195 Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.vbox2[this.lbshelf]));
00196 w20.Position = 4;
00197 w20.Expand = false;
00198 w20.Fill = false;
00199
00200 this.hbox4 = new Gtk.HBox();
00201 this.hbox4.Name = "hbox4";
00202 this.hbox4.Spacing = 6;
00203
00204 this.ConsumeBnt = new Gtk.Button();
00205 this.ConsumeBnt.TooltipMarkup = "Consume some of the selected grocery";
00206 this.ConsumeBnt.CanFocus = true;
00207 this.ConsumeBnt.Name = "ConsumeBnt";
00208 this.ConsumeBnt.UseUnderline = true;
00209
00210 Gtk.Alignment w21 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00211
00212 Gtk.HBox w22 = new Gtk.HBox();
00213 w22.Spacing = 2;
00214
00215 Gtk.Image w23 = new Gtk.Image();
00216 w23.Pixbuf = Gdk.Pixbuf.LoadFromResource("Consume.png");
00217 w22.Add(w23);
00218
00219 Gtk.Label w25 = new Gtk.Label();
00220 w25.LabelProp = Mono.Unix.Catalog.GetString("Consume");
00221 w25.UseUnderline = true;
00222 w22.Add(w25);
00223 w21.Add(w22);
00224 this.ConsumeBnt.Add(w21);
00225 this.hbox4.Add(this.ConsumeBnt);
00226 Gtk.Box.BoxChild w29 = ((Gtk.Box.BoxChild)(this.hbox4[this.ConsumeBnt]));
00227 w29.Position = 0;
00228 w29.Expand = false;
00229 w29.Fill = false;
00230
00231 this.Editbnt = new Gtk.Button();
00232 this.Editbnt.TooltipMarkup = "Edit the selected grocery";
00233 this.Editbnt.CanFocus = true;
00234 this.Editbnt.Name = "Editbnt";
00235 this.Editbnt.UseUnderline = true;
00236
00237 Gtk.Alignment w30 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00238
00239 Gtk.HBox w31 = new Gtk.HBox();
00240 w31.Spacing = 2;
00241
00242 Gtk.Image w32 = new Gtk.Image();
00243 w32.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-edit", Gtk.IconSize.Menu, 16);
00244 w31.Add(w32);
00245
00246 Gtk.Label w34 = new Gtk.Label();
00247 w34.LabelProp = Mono.Unix.Catalog.GetString("Edit");
00248 w34.UseUnderline = true;
00249 w31.Add(w34);
00250 w30.Add(w31);
00251 this.Editbnt.Add(w30);
00252 this.hbox4.Add(this.Editbnt);
00253 Gtk.Box.BoxChild w38 = ((Gtk.Box.BoxChild)(this.hbox4[this.Editbnt]));
00254 w38.Position = 1;
00255 w38.Expand = false;
00256 w38.Fill = false;
00257
00258 this.Deletebnt = new Gtk.Button();
00259 this.Deletebnt.TooltipMarkup = "Delete the selected grocery";
00260 this.Deletebnt.CanFocus = true;
00261 this.Deletebnt.Name = "Deletebnt";
00262 this.Deletebnt.UseUnderline = true;
00263
00264 Gtk.Alignment w39 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00265
00266 Gtk.HBox w40 = new Gtk.HBox();
00267 w40.Spacing = 2;
00268
00269 Gtk.Image w41 = new Gtk.Image();
00270 w41.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-delete", Gtk.IconSize.Menu, 16);
00271 w40.Add(w41);
00272
00273 Gtk.Label w43 = new Gtk.Label();
00274 w43.LabelProp = Mono.Unix.Catalog.GetString("Delete");
00275 w43.UseUnderline = true;
00276 w40.Add(w43);
00277 w39.Add(w40);
00278 this.Deletebnt.Add(w39);
00279 this.hbox4.Add(this.Deletebnt);
00280 Gtk.Box.BoxChild w47 = ((Gtk.Box.BoxChild)(this.hbox4[this.Deletebnt]));
00281 w47.Position = 2;
00282 w47.Expand = false;
00283 w47.Fill = false;
00284 this.vbox2.Add(this.hbox4);
00285 Gtk.Box.BoxChild w48 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox4]));
00286 w48.Position = 5;
00287 w48.Expand = false;
00288 w48.Fill = false;
00289
00290 this.hbox6 = new Gtk.HBox();
00291 this.hbox6.Name = "hbox6";
00292 this.hbox6.Spacing = 6;
00293
00294 this.label6 = new Gtk.Label();
00295 this.label6.Name = "label6";
00296 this.hbox6.Add(this.label6);
00297 Gtk.Box.BoxChild w49 = ((Gtk.Box.BoxChild)(this.hbox6[this.label6]));
00298 w49.Position = 0;
00299 this.vbox2.Add(this.hbox6);
00300 Gtk.Box.BoxChild w50 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox6]));
00301 w50.Position = 6;
00302 w50.Expand = false;
00303 w50.Fill = false;
00304
00305 this.hbox7 = new Gtk.HBox();
00306 this.hbox7.Name = "hbox7";
00307 this.hbox7.Spacing = 6;
00308
00309 this.label8 = new Gtk.Label();
00310 this.label8.Name = "label8";
00311 this.hbox7.Add(this.label8);
00312 Gtk.Box.BoxChild w51 = ((Gtk.Box.BoxChild)(this.hbox7[this.label8]));
00313 w51.Position = 0;
00314 w51.Expand = false;
00315 w51.Fill = false;
00316 this.vbox2.Add(this.hbox7);
00317 Gtk.Box.BoxChild w52 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox7]));
00318 w52.Position = 7;
00319 w52.Expand = false;
00320 w52.Fill = false;
00321
00322 this.hbox5 = new Gtk.HBox();
00323 this.hbox5.Name = "hbox5";
00324 this.hbox5.Spacing = 6;
00325
00326 this.label7 = new Gtk.Label();
00327 this.label7.Name = "label7";
00328 this.hbox5.Add(this.label7);
00329 Gtk.Box.BoxChild w53 = ((Gtk.Box.BoxChild)(this.hbox5[this.label7]));
00330 w53.Position = 0;
00331 w53.Expand = false;
00332 w53.Fill = false;
00333 this.vbox2.Add(this.hbox5);
00334 Gtk.Box.BoxChild w54 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox5]));
00335 w54.Position = 8;
00336 w54.Expand = false;
00337 w54.Fill = false;
00338 this.hbox3.Add(this.vbox2);
00339 Gtk.Box.BoxChild w55 = ((Gtk.Box.BoxChild)(this.hbox3[this.vbox2]));
00340 w55.Position = 1;
00341 w55.Expand = false;
00342 w55.Fill = false;
00343 this.hbox2.Add(this.hbox3);
00344 Gtk.Box.BoxChild w56 = ((Gtk.Box.BoxChild)(this.hbox2[this.hbox3]));
00345 w56.Position = 1;
00346 w56.Expand = false;
00347 w56.Fill = false;
00348 this.Add(this.hbox2);
00349 if ((this.Child != null)) {
00350 this.Child.ShowAll();
00351 }
00352 this.Hide();
00353 this.foodItemView.CursorChanged += new System.EventHandler(this.OnFoodItemViewCursorChanged);
00354 this.foodItemView.RowActivated += new Gtk.RowActivatedHandler(this.OnFoodItemViewRowActivated);
00355 this.RegisterBtn.Clicked += new System.EventHandler(this.OnRegisterBtnClicked);
00356 this.ConsumeBnt.Clicked += new System.EventHandler(this.OnConsumeBntClicked);
00357 this.Editbnt.Clicked += new System.EventHandler(this.OnEditbntClicked);
00358 this.Deletebnt.Clicked += new System.EventHandler(this.OnDeletebntClicked);
00359 }
00360 }
00361 }