00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 namespace Foodolini.Activities {
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.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.CanFocus = true;
00086 this.foodItemView.Name = "foodItemView";
00087 this.GtkScrolledWindow.Add(this.foodItemView);
00088 this.vbox1.Add(this.GtkScrolledWindow);
00089 Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.GtkScrolledWindow]));
00090 w2.Position = 0;
00091
00092 this.hbox1 = new Gtk.HBox();
00093 this.hbox1.Name = "hbox1";
00094 this.hbox1.Spacing = 6;
00095
00096 this.hbuttonbox1 = new Gtk.HButtonBox();
00097 this.hbuttonbox1.LayoutStyle = ((Gtk.ButtonBoxStyle)(3));
00098
00099 this.RegisterBtn = new Gtk.Button();
00100 this.RegisterBtn.CanFocus = true;
00101 this.RegisterBtn.Name = "RegisterBtn";
00102 this.RegisterBtn.UseUnderline = true;
00103
00104 Gtk.Alignment w3 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00105
00106 Gtk.HBox w4 = new Gtk.HBox();
00107 w4.Spacing = 2;
00108
00109 Gtk.Image w5 = new Gtk.Image();
00110 w5.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-add", Gtk.IconSize.Menu, 16);
00111 w4.Add(w5);
00112
00113 Gtk.Label w7 = new Gtk.Label();
00114 w7.LabelProp = Mono.Unix.Catalog.GetString("Register food item");
00115 w7.UseUnderline = true;
00116 w4.Add(w7);
00117 w3.Add(w4);
00118 this.RegisterBtn.Add(w3);
00119 this.hbuttonbox1.Add(this.RegisterBtn);
00120 Gtk.ButtonBox.ButtonBoxChild w11 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox1[this.RegisterBtn]));
00121 w11.Expand = false;
00122 w11.Fill = false;
00123 this.hbox1.Add(this.hbuttonbox1);
00124 Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.hbox1[this.hbuttonbox1]));
00125 w12.Position = 0;
00126 this.vbox1.Add(this.hbox1);
00127 Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
00128 w13.Position = 1;
00129 w13.Expand = false;
00130 w13.Fill = false;
00131 this.hbox2.Add(this.vbox1);
00132 Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.hbox2[this.vbox1]));
00133 w14.Position = 0;
00134
00135 this.hbox3 = new Gtk.HBox();
00136 this.hbox3.Name = "hbox3";
00137 this.hbox3.Spacing = 6;
00138
00139 this.vseparator2 = new Gtk.VSeparator();
00140 this.vseparator2.Name = "vseparator2";
00141 this.hbox3.Add(this.vseparator2);
00142 Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.hbox3[this.vseparator2]));
00143 w15.Position = 0;
00144 w15.Expand = false;
00145 w15.Fill = false;
00146
00147 this.vbox2 = new Gtk.VBox();
00148 this.vbox2.Name = "vbox2";
00149 this.vbox2.Spacing = 6;
00150
00151 this.label5 = new Gtk.Label();
00152 this.label5.Name = "label5";
00153 this.vbox2.Add(this.label5);
00154 Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox2[this.label5]));
00155 w16.Position = 0;
00156 w16.Expand = false;
00157 w16.Fill = false;
00158
00159 this.lbIngre = new Gtk.Label();
00160 this.lbIngre.WidthRequest = 200;
00161 this.lbIngre.Name = "lbIngre";
00162 this.lbIngre.Xalign = 0F;
00163 this.lbIngre.UseMarkup = true;
00164 this.vbox2.Add(this.lbIngre);
00165 Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.vbox2[this.lbIngre]));
00166 w17.Position = 1;
00167 w17.Expand = false;
00168 w17.Fill = false;
00169
00170 this.lbAmount = new Gtk.Label();
00171 this.lbAmount.Name = "lbAmount";
00172 this.lbAmount.Xalign = 0F;
00173 this.vbox2.Add(this.lbAmount);
00174 Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.vbox2[this.lbAmount]));
00175 w18.Position = 2;
00176 w18.Expand = false;
00177 w18.Fill = false;
00178
00179 this.lbExpire = new Gtk.Label();
00180 this.lbExpire.Name = "lbExpire";
00181 this.lbExpire.Xalign = 0F;
00182 this.lbExpire.UseMarkup = true;
00183 this.vbox2.Add(this.lbExpire);
00184 Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.vbox2[this.lbExpire]));
00185 w19.Position = 3;
00186 w19.Expand = false;
00187 w19.Fill = false;
00188
00189 this.lbshelf = new Gtk.Label();
00190 this.lbshelf.Name = "lbshelf";
00191 this.lbshelf.Xalign = 0F;
00192 this.vbox2.Add(this.lbshelf);
00193 Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.vbox2[this.lbshelf]));
00194 w20.Position = 4;
00195 w20.Expand = false;
00196 w20.Fill = false;
00197
00198 this.hbox4 = new Gtk.HBox();
00199 this.hbox4.Name = "hbox4";
00200 this.hbox4.Spacing = 6;
00201
00202 this.ConsumeBnt = new Gtk.Button();
00203 this.ConsumeBnt.CanFocus = true;
00204 this.ConsumeBnt.Name = "ConsumeBnt";
00205 this.ConsumeBnt.UseUnderline = true;
00206
00207 Gtk.Alignment w21 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00208
00209 Gtk.HBox w22 = new Gtk.HBox();
00210 w22.Spacing = 2;
00211
00212 Gtk.Image w23 = new Gtk.Image();
00213 w23.Pixbuf = Gdk.Pixbuf.LoadFromResource("Consume.png");
00214 w22.Add(w23);
00215
00216 Gtk.Label w25 = new Gtk.Label();
00217 w25.LabelProp = Mono.Unix.Catalog.GetString("Consume");
00218 w25.UseUnderline = true;
00219 w22.Add(w25);
00220 w21.Add(w22);
00221 this.ConsumeBnt.Add(w21);
00222 this.hbox4.Add(this.ConsumeBnt);
00223 Gtk.Box.BoxChild w29 = ((Gtk.Box.BoxChild)(this.hbox4[this.ConsumeBnt]));
00224 w29.Position = 0;
00225 w29.Expand = false;
00226 w29.Fill = false;
00227
00228 this.Editbnt = new Gtk.Button();
00229 this.Editbnt.CanFocus = true;
00230 this.Editbnt.Name = "Editbnt";
00231 this.Editbnt.UseUnderline = true;
00232
00233 Gtk.Alignment w30 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00234
00235 Gtk.HBox w31 = new Gtk.HBox();
00236 w31.Spacing = 2;
00237
00238 Gtk.Image w32 = new Gtk.Image();
00239 w32.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-edit", Gtk.IconSize.Menu, 16);
00240 w31.Add(w32);
00241
00242 Gtk.Label w34 = new Gtk.Label();
00243 w34.LabelProp = Mono.Unix.Catalog.GetString("Edit");
00244 w34.UseUnderline = true;
00245 w31.Add(w34);
00246 w30.Add(w31);
00247 this.Editbnt.Add(w30);
00248 this.hbox4.Add(this.Editbnt);
00249 Gtk.Box.BoxChild w38 = ((Gtk.Box.BoxChild)(this.hbox4[this.Editbnt]));
00250 w38.Position = 1;
00251 w38.Expand = false;
00252 w38.Fill = false;
00253
00254 this.Deletebnt = new Gtk.Button();
00255 this.Deletebnt.CanFocus = true;
00256 this.Deletebnt.Name = "Deletebnt";
00257 this.Deletebnt.UseUnderline = true;
00258
00259 Gtk.Alignment w39 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00260
00261 Gtk.HBox w40 = new Gtk.HBox();
00262 w40.Spacing = 2;
00263
00264 Gtk.Image w41 = new Gtk.Image();
00265 w41.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-delete", Gtk.IconSize.Menu, 16);
00266 w40.Add(w41);
00267
00268 Gtk.Label w43 = new Gtk.Label();
00269 w43.LabelProp = Mono.Unix.Catalog.GetString("Delete");
00270 w43.UseUnderline = true;
00271 w40.Add(w43);
00272 w39.Add(w40);
00273 this.Deletebnt.Add(w39);
00274 this.hbox4.Add(this.Deletebnt);
00275 Gtk.Box.BoxChild w47 = ((Gtk.Box.BoxChild)(this.hbox4[this.Deletebnt]));
00276 w47.Position = 2;
00277 w47.Expand = false;
00278 w47.Fill = false;
00279 this.vbox2.Add(this.hbox4);
00280 Gtk.Box.BoxChild w48 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox4]));
00281 w48.Position = 5;
00282 w48.Expand = false;
00283 w48.Fill = false;
00284
00285 this.hbox6 = new Gtk.HBox();
00286 this.hbox6.Name = "hbox6";
00287 this.hbox6.Spacing = 6;
00288
00289 this.label6 = new Gtk.Label();
00290 this.label6.Name = "label6";
00291 this.hbox6.Add(this.label6);
00292 Gtk.Box.BoxChild w49 = ((Gtk.Box.BoxChild)(this.hbox6[this.label6]));
00293 w49.Position = 0;
00294 this.vbox2.Add(this.hbox6);
00295 Gtk.Box.BoxChild w50 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox6]));
00296 w50.Position = 6;
00297 w50.Expand = false;
00298 w50.Fill = false;
00299
00300 this.hbox7 = new Gtk.HBox();
00301 this.hbox7.Name = "hbox7";
00302 this.hbox7.Spacing = 6;
00303
00304 this.label8 = new Gtk.Label();
00305 this.label8.Name = "label8";
00306 this.hbox7.Add(this.label8);
00307 Gtk.Box.BoxChild w51 = ((Gtk.Box.BoxChild)(this.hbox7[this.label8]));
00308 w51.Position = 0;
00309 w51.Expand = false;
00310 w51.Fill = false;
00311 this.vbox2.Add(this.hbox7);
00312 Gtk.Box.BoxChild w52 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox7]));
00313 w52.Position = 7;
00314 w52.Expand = false;
00315 w52.Fill = false;
00316
00317 this.hbox5 = new Gtk.HBox();
00318 this.hbox5.Name = "hbox5";
00319 this.hbox5.Spacing = 6;
00320
00321 this.label7 = new Gtk.Label();
00322 this.label7.Name = "label7";
00323 this.hbox5.Add(this.label7);
00324 Gtk.Box.BoxChild w53 = ((Gtk.Box.BoxChild)(this.hbox5[this.label7]));
00325 w53.Position = 0;
00326 w53.Expand = false;
00327 w53.Fill = false;
00328 this.vbox2.Add(this.hbox5);
00329 Gtk.Box.BoxChild w54 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox5]));
00330 w54.Position = 8;
00331 w54.Expand = false;
00332 w54.Fill = false;
00333 this.hbox3.Add(this.vbox2);
00334 Gtk.Box.BoxChild w55 = ((Gtk.Box.BoxChild)(this.hbox3[this.vbox2]));
00335 w55.Position = 1;
00336 w55.Expand = false;
00337 w55.Fill = false;
00338 this.hbox2.Add(this.hbox3);
00339 Gtk.Box.BoxChild w56 = ((Gtk.Box.BoxChild)(this.hbox2[this.hbox3]));
00340 w56.Position = 1;
00341 w56.Expand = false;
00342 w56.Fill = false;
00343 this.Add(this.hbox2);
00344 if ((this.Child != null)) {
00345 this.Child.ShowAll();
00346 }
00347 this.Hide();
00348 this.foodItemView.ButtonPressEvent += new Gtk.ButtonPressEventHandler(this.OnFoodItemViewButtonPressEvent);
00349 this.foodItemView.CursorChanged += new System.EventHandler(this.OnFoodItemViewCursorChanged);
00350 this.foodItemView.RowActivated += new Gtk.RowActivatedHandler(this.OnFoodItemViewRowActivated);
00351 this.RegisterBtn.Clicked += new System.EventHandler(this.OnRegisterBtnClicked);
00352 this.ConsumeBnt.Clicked += new System.EventHandler(this.OnConsumeBntClicked);
00353 this.Editbnt.Clicked += new System.EventHandler(this.OnEditbntClicked);
00354 this.Deletebnt.Clicked += new System.EventHandler(this.OnDeletebntClicked);
00355 }
00356 }
00357 }