00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 namespace Foodolini.Activities.Home {
00012
00013
00014 public partial class HomeActivity {
00015
00016 private Gtk.EventBox styleFacilitator;
00017
00018 private Gtk.VBox vbox2;
00019
00020 private Gtk.Fixed fixed1;
00021
00022 private Gtk.HBox hbox1;
00023
00024 private Gtk.VBox vbox1;
00025
00026 private Gtk.Label label1;
00027
00028 private Gtk.VButtonBox vbuttonbox1;
00029
00030 private Gtk.Button InventoryButton;
00031
00032 private Gtk.Label label2;
00033
00034 private Gtk.Button RegisterFoodItemButton;
00035
00036 private Gtk.Label label3;
00037
00038 private Gtk.Button CookbookButton;
00039
00040 private Gtk.Label label9;
00041
00042 private Gtk.Button NewRecipeButton;
00043
00044 private Gtk.Label label8;
00045
00046 private Gtk.Button IngredientsButton;
00047
00048 private Gtk.Label label7;
00049
00050 private Gtk.Button ProfileButton1;
00051
00052 private Gtk.Label label5;
00053
00054 private Gtk.Button AdminButton;
00055
00056 private Gtk.Label label4;
00057
00058 private Gtk.VBox vbox3;
00059
00060 private Gtk.Label label10;
00061
00062 private Gtk.ScrolledWindow GtkScrolledWindow;
00063
00064 private Gtk.NodeView InventoryView;
00065
00066 protected virtual void Build() {
00067 Stetic.Gui.Initialize(this);
00068
00069 Stetic.BinContainer.Attach(this);
00070 this.Name = "Foodolini.Activities.Home.HomeActivity";
00071
00072 this.styleFacilitator = new Gtk.EventBox();
00073 this.styleFacilitator.Name = "styleFacilitator";
00074
00075 this.vbox2 = new Gtk.VBox();
00076 this.vbox2.Name = "vbox2";
00077 this.vbox2.Spacing = 6;
00078
00079 this.fixed1 = new Gtk.Fixed();
00080 this.fixed1.Name = "fixed1";
00081 this.fixed1.HasWindow = false;
00082 this.vbox2.Add(this.fixed1);
00083 Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox2[this.fixed1]));
00084 w1.Position = 0;
00085 w1.Expand = false;
00086 w1.Fill = false;
00087 w1.Padding = ((uint)(50));
00088
00089 this.hbox1 = new Gtk.HBox();
00090 this.hbox1.Name = "hbox1";
00091 this.hbox1.Spacing = 6;
00092 this.hbox1.BorderWidth = ((uint)(54));
00093
00094 this.vbox1 = new Gtk.VBox();
00095 this.vbox1.Name = "vbox1";
00096 this.vbox1.Spacing = 6;
00097
00098 this.label1 = new Gtk.Label();
00099 this.label1.Name = "label1";
00100 this.label1.Xalign = 0F;
00101 this.label1.Yalign = 0F;
00102 this.label1.LabelProp = Mono.Unix.Catalog.GetString("<span size=\"xx-large\" color=\"blue\"><b>Actions</b></span>");
00103 this.label1.UseMarkup = true;
00104 this.vbox1.Add(this.label1);
00105 Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.label1]));
00106 w2.Position = 0;
00107 w2.Expand = false;
00108 w2.Fill = false;
00109
00110 this.vbuttonbox1 = new Gtk.VButtonBox();
00111 this.vbuttonbox1.Name = "vbuttonbox1";
00112 this.vbuttonbox1.BorderWidth = ((uint)(6));
00113 this.vbuttonbox1.LayoutStyle = ((Gtk.ButtonBoxStyle)(3));
00114
00115 this.InventoryButton = new Gtk.Button();
00116 this.InventoryButton.CanFocus = true;
00117 this.InventoryButton.Name = "InventoryButton";
00118 this.InventoryButton.FocusOnClick = false;
00119 this.InventoryButton.Relief = ((Gtk.ReliefStyle)(2));
00120 this.InventoryButton.Xalign = 0F;
00121
00122 this.label2 = new Gtk.Label();
00123 this.label2.Name = "label2";
00124 this.label2.Xalign = 0F;
00125 this.label2.LabelProp = Mono.Unix.Catalog.GetString("<u><span color=\"blue\">Inventory</span></u>\n<span size=\"small\">See what you have on storage.</span>");
00126 this.label2.UseMarkup = true;
00127 this.InventoryButton.Add(this.label2);
00128 this.InventoryButton.Label = null;
00129 this.vbuttonbox1.Add(this.InventoryButton);
00130 Gtk.ButtonBox.ButtonBoxChild w4 = ((Gtk.ButtonBox.ButtonBoxChild)(this.vbuttonbox1[this.InventoryButton]));
00131 w4.Expand = false;
00132 w4.Fill = false;
00133
00134 this.RegisterFoodItemButton = new Gtk.Button();
00135 this.RegisterFoodItemButton.CanFocus = true;
00136 this.RegisterFoodItemButton.Name = "RegisterFoodItemButton";
00137 this.RegisterFoodItemButton.FocusOnClick = false;
00138 this.RegisterFoodItemButton.Relief = ((Gtk.ReliefStyle)(2));
00139 this.RegisterFoodItemButton.Xalign = 0F;
00140
00141 this.label3 = new Gtk.Label();
00142 this.label3.Name = "label3";
00143 this.label3.Xalign = 0F;
00144 this.label3.LabelProp = Mono.Unix.Catalog.GetString("<u><span color=\"blue\">Register grocery</span></u>\n<span size=\"small\">Register purchased groceries.</span>");
00145 this.label3.UseMarkup = true;
00146 this.RegisterFoodItemButton.Add(this.label3);
00147 this.RegisterFoodItemButton.Label = null;
00148 this.vbuttonbox1.Add(this.RegisterFoodItemButton);
00149 Gtk.ButtonBox.ButtonBoxChild w6 = ((Gtk.ButtonBox.ButtonBoxChild)(this.vbuttonbox1[this.RegisterFoodItemButton]));
00150 w6.Position = 1;
00151 w6.Expand = false;
00152 w6.Fill = false;
00153
00154 this.CookbookButton = new Gtk.Button();
00155 this.CookbookButton.CanFocus = true;
00156 this.CookbookButton.Name = "CookbookButton";
00157 this.CookbookButton.FocusOnClick = false;
00158 this.CookbookButton.Relief = ((Gtk.ReliefStyle)(2));
00159 this.CookbookButton.Xalign = 0F;
00160
00161 this.label9 = new Gtk.Label();
00162 this.label9.Name = "label9";
00163 this.label9.Xalign = 0F;
00164 this.label9.LabelProp = Mono.Unix.Catalog.GetString("<u><span color=\"blue\">Cookbook</span></u>\n<span size=\"small\">Search for recipies.</span>");
00165 this.label9.UseMarkup = true;
00166 this.CookbookButton.Add(this.label9);
00167 this.CookbookButton.Label = null;
00168 this.vbuttonbox1.Add(this.CookbookButton);
00169 Gtk.ButtonBox.ButtonBoxChild w8 = ((Gtk.ButtonBox.ButtonBoxChild)(this.vbuttonbox1[this.CookbookButton]));
00170 w8.Position = 2;
00171 w8.Expand = false;
00172 w8.Fill = false;
00173
00174 this.NewRecipeButton = new Gtk.Button();
00175 this.NewRecipeButton.CanFocus = true;
00176 this.NewRecipeButton.Name = "NewRecipeButton";
00177 this.NewRecipeButton.FocusOnClick = false;
00178 this.NewRecipeButton.Relief = ((Gtk.ReliefStyle)(2));
00179 this.NewRecipeButton.Xalign = 0F;
00180
00181 this.label8 = new Gtk.Label();
00182 this.label8.Name = "label8";
00183 this.label8.Xalign = 0F;
00184 this.label8.LabelProp = Mono.Unix.Catalog.GetString("<u><span color=\"blue\">New recipe</span></u>\n<span size=\"small\">Type a new recipe.</span>");
00185 this.label8.UseMarkup = true;
00186 this.NewRecipeButton.Add(this.label8);
00187 this.NewRecipeButton.Label = null;
00188 this.vbuttonbox1.Add(this.NewRecipeButton);
00189 Gtk.ButtonBox.ButtonBoxChild w10 = ((Gtk.ButtonBox.ButtonBoxChild)(this.vbuttonbox1[this.NewRecipeButton]));
00190 w10.Position = 3;
00191 w10.Expand = false;
00192 w10.Fill = false;
00193
00194 this.IngredientsButton = new Gtk.Button();
00195 this.IngredientsButton.CanFocus = true;
00196 this.IngredientsButton.Name = "IngredientsButton";
00197 this.IngredientsButton.FocusOnClick = false;
00198 this.IngredientsButton.Relief = ((Gtk.ReliefStyle)(2));
00199 this.IngredientsButton.Xalign = 0F;
00200
00201 this.label7 = new Gtk.Label();
00202 this.label7.Name = "label7";
00203 this.label7.Xalign = 0F;
00204 this.label7.LabelProp = Mono.Unix.Catalog.GetString("<u><span color=\"blue\">Ingredients</span></u>\n<span size=\"small\">Manage ingredients.</span>");
00205 this.label7.UseMarkup = true;
00206 this.IngredientsButton.Add(this.label7);
00207 this.IngredientsButton.Label = null;
00208 this.vbuttonbox1.Add(this.IngredientsButton);
00209 Gtk.ButtonBox.ButtonBoxChild w12 = ((Gtk.ButtonBox.ButtonBoxChild)(this.vbuttonbox1[this.IngredientsButton]));
00210 w12.Position = 4;
00211 w12.Expand = false;
00212 w12.Fill = false;
00213
00214 this.ProfileButton1 = new Gtk.Button();
00215 this.ProfileButton1.CanFocus = true;
00216 this.ProfileButton1.Name = "ProfileButton1";
00217 this.ProfileButton1.FocusOnClick = false;
00218 this.ProfileButton1.Relief = ((Gtk.ReliefStyle)(2));
00219 this.ProfileButton1.Xalign = 0F;
00220
00221 this.label5 = new Gtk.Label();
00222 this.label5.Name = "label5";
00223 this.label5.Xalign = 0F;
00224 this.label5.LabelProp = Mono.Unix.Catalog.GetString("<u><span color=\"blue\">Profile</span></u>\n<span size=\"small\">View/edit your user profile.</span>");
00225 this.label5.UseMarkup = true;
00226 this.ProfileButton1.Add(this.label5);
00227 this.ProfileButton1.Label = null;
00228 this.vbuttonbox1.Add(this.ProfileButton1);
00229 Gtk.ButtonBox.ButtonBoxChild w14 = ((Gtk.ButtonBox.ButtonBoxChild)(this.vbuttonbox1[this.ProfileButton1]));
00230 w14.Position = 5;
00231 w14.Expand = false;
00232 w14.Fill = false;
00233
00234 this.AdminButton = new Gtk.Button();
00235 this.AdminButton.CanFocus = true;
00236 this.AdminButton.Name = "AdminButton";
00237 this.AdminButton.FocusOnClick = false;
00238 this.AdminButton.Relief = ((Gtk.ReliefStyle)(2));
00239 this.AdminButton.Xalign = 0F;
00240
00241 this.label4 = new Gtk.Label();
00242 this.label4.Name = "label4";
00243 this.label4.Xalign = 0F;
00244 this.label4.LabelProp = Mono.Unix.Catalog.GetString("<u><span color=\"blue\">Administration</span></u>\n<span size=\"small\">Create or remove users.</span>");
00245 this.label4.UseMarkup = true;
00246 this.AdminButton.Add(this.label4);
00247 this.AdminButton.Label = null;
00248 this.vbuttonbox1.Add(this.AdminButton);
00249 Gtk.ButtonBox.ButtonBoxChild w16 = ((Gtk.ButtonBox.ButtonBoxChild)(this.vbuttonbox1[this.AdminButton]));
00250 w16.Position = 6;
00251 w16.Expand = false;
00252 w16.Fill = false;
00253 this.vbox1.Add(this.vbuttonbox1);
00254 Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.vbox1[this.vbuttonbox1]));
00255 w17.Position = 1;
00256 this.hbox1.Add(this.vbox1);
00257 Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.hbox1[this.vbox1]));
00258 w18.Position = 0;
00259 w18.Expand = false;
00260 w18.Fill = false;
00261
00262 this.vbox3 = new Gtk.VBox();
00263 this.vbox3.Name = "vbox3";
00264 this.vbox3.Spacing = 6;
00265
00266 this.label10 = new Gtk.Label();
00267 this.label10.Name = "label10";
00268 this.label10.Xalign = 0F;
00269 this.label10.LabelProp = Mono.Unix.Catalog.GetString("<span size=\"xx-large\" color=\"blue\"><b>Inventory by date</b></span>");
00270 this.label10.UseMarkup = true;
00271 this.vbox3.Add(this.label10);
00272 Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.vbox3[this.label10]));
00273 w19.Position = 0;
00274 w19.Expand = false;
00275 w19.Fill = false;
00276
00277 this.GtkScrolledWindow = new Gtk.ScrolledWindow();
00278 this.GtkScrolledWindow.Name = "GtkScrolledWindow";
00279 this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
00280 this.GtkScrolledWindow.BorderWidth = ((uint)(9));
00281
00282 this.InventoryView = new Gtk.NodeView();
00283 this.InventoryView.CanFocus = true;
00284 this.InventoryView.Name = "InventoryView";
00285 this.InventoryView.Reorderable = true;
00286 this.GtkScrolledWindow.Add(this.InventoryView);
00287 this.vbox3.Add(this.GtkScrolledWindow);
00288 Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.vbox3[this.GtkScrolledWindow]));
00289 w21.Position = 1;
00290 this.hbox1.Add(this.vbox3);
00291 Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.hbox1[this.vbox3]));
00292 w22.Position = 1;
00293 this.vbox2.Add(this.hbox1);
00294 Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox1]));
00295 w23.Position = 1;
00296 this.styleFacilitator.Add(this.vbox2);
00297 this.Add(this.styleFacilitator);
00298 if ((this.Child != null)) {
00299 this.Child.ShowAll();
00300 }
00301 this.Hide();
00302 this.InventoryButton.Clicked += new System.EventHandler(this.OnInventoryButtonClicked);
00303 this.RegisterFoodItemButton.Clicked += new System.EventHandler(this.OnRegisterFoodItemButtonClicked);
00304 this.CookbookButton.Clicked += new System.EventHandler(this.OnCookbookButtonClicked);
00305 this.NewRecipeButton.Clicked += new System.EventHandler(this.OnNewRecipeButtonClicked);
00306 this.IngredientsButton.Clicked += new System.EventHandler(this.OnIngredientsButtonClicked);
00307 this.ProfileButton1.Clicked += new System.EventHandler(this.OnProfileButtonClicked);
00308 this.AdminButton.Clicked += new System.EventHandler(this.OnAdminButtonClicked);
00309 this.InventoryView.RowActivated += new Gtk.RowActivatedHandler(this.OnInventoryViewRowActivated);
00310 }
00311 }
00312 }