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