00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 namespace Foodolini.Activities {
00012
00013
00014 public partial class PersonViewer {
00015
00016 private Gtk.HBox hbox2;
00017
00018 private Gtk.VBox vbox2;
00019
00020 private Gtk.Table table2PersonViewer;
00021
00022 private Gtk.HBox hbox3;
00023
00024 private Gtk.Label lbDiet;
00025
00026 private Gtk.Label label2;
00027
00028 private Gtk.Label label3;
00029
00030 private Gtk.Label label4;
00031
00032 private Gtk.Label label5;
00033
00034 private Gtk.Label label7;
00035
00036 private Gtk.Label lbDateBirth;
00037
00038 private Gtk.Label lbFullName;
00039
00040 private Gtk.Label lbHeight;
00041
00042 private Gtk.Label lbUserName;
00043
00044 private Gtk.Label lbWeight;
00045
00046 private Gtk.VBox vbox3;
00047
00048 private Gtk.HButtonBox hbuttonbox6;
00049
00050 private Gtk.Button btChangeDiet;
00051
00052 private Gtk.HButtonBox hbuttonbox2;
00053
00054 private Gtk.Button button314UserProf;
00055
00056 private Gtk.VBox vbox4;
00057
00058 private Gtk.VBox vbox5ViewExercises;
00059
00060 private Gtk.Label lbExercises;
00061
00062 private Gtk.HBox hbox1;
00063
00064 private Gtk.VBox vbox6;
00065
00066 private Gtk.ScrolledWindow GtkScrolledWindow;
00067
00068 private Gtk.NodeView ExerciseView;
00069
00070 private Gtk.HButtonBox hbuttonbox3;
00071
00072 private Gtk.Button btDeleteEx;
00073
00074 private Gtk.Button btEditEx;
00075
00076 private Gtk.Button btRegisterEx;
00077
00078 protected virtual void Build() {
00079 Stetic.Gui.Initialize(this);
00080
00081 Stetic.BinContainer.Attach(this);
00082 this.Name = "Foodolini.Activities.PersonViewer";
00083
00084 this.hbox2 = new Gtk.HBox();
00085 this.hbox2.Name = "hbox2";
00086 this.hbox2.Spacing = 6;
00087 this.hbox2.BorderWidth = ((uint)(9));
00088
00089 this.vbox2 = new Gtk.VBox();
00090 this.vbox2.Name = "vbox2";
00091 this.vbox2.Spacing = 6;
00092
00093 this.table2PersonViewer = new Gtk.Table(((uint)(6)), ((uint)(2)), false);
00094 this.table2PersonViewer.Name = "table2PersonViewer";
00095 this.table2PersonViewer.RowSpacing = ((uint)(9));
00096 this.table2PersonViewer.ColumnSpacing = ((uint)(9));
00097 this.table2PersonViewer.BorderWidth = ((uint)(9));
00098
00099 this.hbox3 = new Gtk.HBox();
00100 this.hbox3.Name = "hbox3";
00101 this.hbox3.Spacing = 6;
00102
00103 this.lbDiet = new Gtk.Label();
00104 this.lbDiet.Name = "lbDiet";
00105 this.lbDiet.Xalign = 0F;
00106 this.lbDiet.LabelProp = Mono.Unix.Catalog.GetString("detter er navnet på dieten");
00107 this.lbDiet.WidthChars = 25;
00108 this.hbox3.Add(this.lbDiet);
00109 Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.hbox3[this.lbDiet]));
00110 w1.Position = 0;
00111 w1.Expand = false;
00112 w1.Fill = false;
00113 this.table2PersonViewer.Add(this.hbox3);
00114 Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table2PersonViewer[this.hbox3]));
00115 w2.TopAttach = ((uint)(5));
00116 w2.BottomAttach = ((uint)(6));
00117 w2.LeftAttach = ((uint)(1));
00118 w2.RightAttach = ((uint)(2));
00119 w2.XOptions = ((Gtk.AttachOptions)(4));
00120 w2.YOptions = ((Gtk.AttachOptions)(4));
00121
00122 this.label2 = new Gtk.Label();
00123 this.label2.Name = "label2";
00124 this.label2.Xpad = 5;
00125 this.label2.Xalign = 0F;
00126 this.label2.LabelProp = Mono.Unix.Catalog.GetString("User name:");
00127 this.table2PersonViewer.Add(this.label2);
00128 Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table2PersonViewer[this.label2]));
00129 w3.TopAttach = ((uint)(1));
00130 w3.BottomAttach = ((uint)(2));
00131 w3.XOptions = ((Gtk.AttachOptions)(4));
00132 w3.YOptions = ((Gtk.AttachOptions)(4));
00133
00134 this.label3 = new Gtk.Label();
00135 this.label3.Name = "label3";
00136 this.label3.Xpad = 5;
00137 this.label3.Xalign = 0F;
00138 this.label3.LabelProp = Mono.Unix.Catalog.GetString("Date of birth:");
00139 this.table2PersonViewer.Add(this.label3);
00140 Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table2PersonViewer[this.label3]));
00141 w4.TopAttach = ((uint)(2));
00142 w4.BottomAttach = ((uint)(3));
00143 w4.XOptions = ((Gtk.AttachOptions)(4));
00144 w4.YOptions = ((Gtk.AttachOptions)(4));
00145
00146 this.label4 = new Gtk.Label();
00147 this.label4.Name = "label4";
00148 this.label4.Xpad = 5;
00149 this.label4.Xalign = 0F;
00150 this.label4.LabelProp = Mono.Unix.Catalog.GetString("Height:");
00151 this.table2PersonViewer.Add(this.label4);
00152 Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table2PersonViewer[this.label4]));
00153 w5.TopAttach = ((uint)(3));
00154 w5.BottomAttach = ((uint)(4));
00155 w5.XOptions = ((Gtk.AttachOptions)(4));
00156 w5.YOptions = ((Gtk.AttachOptions)(4));
00157
00158 this.label5 = new Gtk.Label();
00159 this.label5.Name = "label5";
00160 this.label5.Xpad = 5;
00161 this.label5.Xalign = 0F;
00162 this.label5.LabelProp = Mono.Unix.Catalog.GetString("Weight:");
00163 this.table2PersonViewer.Add(this.label5);
00164 Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table2PersonViewer[this.label5]));
00165 w6.TopAttach = ((uint)(4));
00166 w6.BottomAttach = ((uint)(5));
00167 w6.XOptions = ((Gtk.AttachOptions)(4));
00168 w6.YOptions = ((Gtk.AttachOptions)(4));
00169
00170 this.label7 = new Gtk.Label();
00171 this.label7.Name = "label7";
00172 this.label7.Xpad = 5;
00173 this.label7.Xalign = 0F;
00174 this.label7.LabelProp = Mono.Unix.Catalog.GetString("Diet:");
00175 this.table2PersonViewer.Add(this.label7);
00176 Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table2PersonViewer[this.label7]));
00177 w7.TopAttach = ((uint)(5));
00178 w7.BottomAttach = ((uint)(6));
00179 w7.XOptions = ((Gtk.AttachOptions)(4));
00180 w7.YOptions = ((Gtk.AttachOptions)(4));
00181
00182 this.lbDateBirth = new Gtk.Label();
00183 this.lbDateBirth.Name = "lbDateBirth";
00184 this.lbDateBirth.Xalign = 0F;
00185 this.lbDateBirth.LabelProp = Mono.Unix.Catalog.GetString("label10");
00186 this.table2PersonViewer.Add(this.lbDateBirth);
00187 Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table2PersonViewer[this.lbDateBirth]));
00188 w8.TopAttach = ((uint)(2));
00189 w8.BottomAttach = ((uint)(3));
00190 w8.LeftAttach = ((uint)(1));
00191 w8.RightAttach = ((uint)(2));
00192 w8.XOptions = ((Gtk.AttachOptions)(4));
00193 w8.YOptions = ((Gtk.AttachOptions)(4));
00194
00195 this.lbFullName = new Gtk.Label();
00196 this.lbFullName.Name = "lbFullName";
00197 this.lbFullName.Xpad = 5;
00198 this.lbFullName.Xalign = 0F;
00199 this.lbFullName.LabelProp = Mono.Unix.Catalog.GetString("User profile");
00200 this.lbFullName.UseMarkup = true;
00201 this.table2PersonViewer.Add(this.lbFullName);
00202 Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table2PersonViewer[this.lbFullName]));
00203 w9.RightAttach = ((uint)(2));
00204 w9.XOptions = ((Gtk.AttachOptions)(4));
00205 w9.YOptions = ((Gtk.AttachOptions)(4));
00206
00207 this.lbHeight = new Gtk.Label();
00208 this.lbHeight.Name = "lbHeight";
00209 this.lbHeight.Xalign = 0F;
00210 this.lbHeight.LabelProp = Mono.Unix.Catalog.GetString("label11");
00211 this.table2PersonViewer.Add(this.lbHeight);
00212 Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table2PersonViewer[this.lbHeight]));
00213 w10.TopAttach = ((uint)(3));
00214 w10.BottomAttach = ((uint)(4));
00215 w10.LeftAttach = ((uint)(1));
00216 w10.RightAttach = ((uint)(2));
00217 w10.XOptions = ((Gtk.AttachOptions)(4));
00218 w10.YOptions = ((Gtk.AttachOptions)(4));
00219
00220 this.lbUserName = new Gtk.Label();
00221 this.lbUserName.Name = "lbUserName";
00222 this.lbUserName.Xalign = 0F;
00223 this.lbUserName.LabelProp = Mono.Unix.Catalog.GetString("label9");
00224 this.lbUserName.WidthChars = 25;
00225 this.table2PersonViewer.Add(this.lbUserName);
00226 Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table2PersonViewer[this.lbUserName]));
00227 w11.TopAttach = ((uint)(1));
00228 w11.BottomAttach = ((uint)(2));
00229 w11.LeftAttach = ((uint)(1));
00230 w11.RightAttach = ((uint)(2));
00231 w11.XOptions = ((Gtk.AttachOptions)(4));
00232 w11.YOptions = ((Gtk.AttachOptions)(4));
00233
00234 this.lbWeight = new Gtk.Label();
00235 this.lbWeight.Name = "lbWeight";
00236 this.lbWeight.Xalign = 0F;
00237 this.lbWeight.LabelProp = Mono.Unix.Catalog.GetString("label12");
00238 this.table2PersonViewer.Add(this.lbWeight);
00239 Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table2PersonViewer[this.lbWeight]));
00240 w12.TopAttach = ((uint)(4));
00241 w12.BottomAttach = ((uint)(5));
00242 w12.LeftAttach = ((uint)(1));
00243 w12.RightAttach = ((uint)(2));
00244 w12.XOptions = ((Gtk.AttachOptions)(4));
00245 w12.YOptions = ((Gtk.AttachOptions)(4));
00246 this.vbox2.Add(this.table2PersonViewer);
00247 Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.vbox2[this.table2PersonViewer]));
00248 w13.Position = 0;
00249 w13.Expand = false;
00250 w13.Fill = false;
00251
00252 this.vbox3 = new Gtk.VBox();
00253 this.vbox3.Name = "vbox3";
00254 this.vbox3.Spacing = 6;
00255
00256 this.hbuttonbox6 = new Gtk.HButtonBox();
00257 this.hbuttonbox6.Name = "hbuttonbox6";
00258 this.hbuttonbox6.LayoutStyle = ((Gtk.ButtonBoxStyle)(1));
00259
00260 this.btChangeDiet = new Gtk.Button();
00261 this.btChangeDiet.CanFocus = true;
00262 this.btChangeDiet.Name = "btChangeDiet";
00263 this.btChangeDiet.UseUnderline = true;
00264
00265 Gtk.Alignment w14 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00266
00267 Gtk.HBox w15 = new Gtk.HBox();
00268 w15.Spacing = 2;
00269
00270 Gtk.Image w16 = new Gtk.Image();
00271 w16.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-edit", Gtk.IconSize.Menu, 16);
00272 w15.Add(w16);
00273
00274 Gtk.Label w18 = new Gtk.Label();
00275 w18.LabelProp = Mono.Unix.Catalog.GetString("Change Diet");
00276 w18.UseUnderline = true;
00277 w15.Add(w18);
00278 w14.Add(w15);
00279 this.btChangeDiet.Add(w14);
00280 this.hbuttonbox6.Add(this.btChangeDiet);
00281 Gtk.ButtonBox.ButtonBoxChild w22 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox6[this.btChangeDiet]));
00282 w22.Expand = false;
00283 w22.Fill = false;
00284 this.vbox3.Add(this.hbuttonbox6);
00285 Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbuttonbox6]));
00286 w23.Position = 0;
00287 w23.Expand = false;
00288 w23.Fill = false;
00289
00290 this.hbuttonbox2 = new Gtk.HButtonBox();
00291 this.hbuttonbox2.Name = "hbuttonbox2";
00292 this.hbuttonbox2.Spacing = 9;
00293 this.hbuttonbox2.BorderWidth = ((uint)(9));
00294 this.hbuttonbox2.LayoutStyle = ((Gtk.ButtonBoxStyle)(3));
00295
00296 this.button314UserProf = new Gtk.Button();
00297 this.button314UserProf.CanFocus = true;
00298 this.button314UserProf.Name = "button314UserProf";
00299 this.button314UserProf.UseUnderline = true;
00300
00301 Gtk.Alignment w24 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00302
00303 Gtk.HBox w25 = new Gtk.HBox();
00304 w25.Spacing = 2;
00305
00306 Gtk.Image w26 = new Gtk.Image();
00307 w26.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-edit", Gtk.IconSize.Menu, 16);
00308 w25.Add(w26);
00309
00310 Gtk.Label w28 = new Gtk.Label();
00311 w28.LabelProp = Mono.Unix.Catalog.GetString("Edit User Profile");
00312 w28.UseUnderline = true;
00313 w25.Add(w28);
00314 w24.Add(w25);
00315 this.button314UserProf.Add(w24);
00316 this.hbuttonbox2.Add(this.button314UserProf);
00317 Gtk.ButtonBox.ButtonBoxChild w32 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2[this.button314UserProf]));
00318 w32.Expand = false;
00319 w32.Fill = false;
00320 this.vbox3.Add(this.hbuttonbox2);
00321 Gtk.Box.BoxChild w33 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbuttonbox2]));
00322 w33.Position = 1;
00323 w33.Expand = false;
00324 w33.Fill = false;
00325 this.vbox2.Add(this.vbox3);
00326 Gtk.Box.BoxChild w34 = ((Gtk.Box.BoxChild)(this.vbox2[this.vbox3]));
00327 w34.Position = 1;
00328 w34.Expand = false;
00329 w34.Fill = false;
00330
00331 this.vbox4 = new Gtk.VBox();
00332 this.vbox4.Name = "vbox4";
00333 this.vbox4.Spacing = 6;
00334 this.vbox2.Add(this.vbox4);
00335 Gtk.Box.BoxChild w35 = ((Gtk.Box.BoxChild)(this.vbox2[this.vbox4]));
00336 w35.Position = 2;
00337 this.hbox2.Add(this.vbox2);
00338 Gtk.Box.BoxChild w36 = ((Gtk.Box.BoxChild)(this.hbox2[this.vbox2]));
00339 w36.Position = 0;
00340 w36.Expand = false;
00341 w36.Fill = false;
00342
00343 this.vbox5ViewExercises = new Gtk.VBox();
00344 this.vbox5ViewExercises.Name = "vbox5ViewExercises";
00345 this.vbox5ViewExercises.Spacing = 9;
00346 this.vbox5ViewExercises.BorderWidth = ((uint)(9));
00347
00348 this.lbExercises = new Gtk.Label();
00349 this.lbExercises.Name = "lbExercises";
00350 this.lbExercises.Xalign = 0F;
00351 this.lbExercises.LabelProp = Mono.Unix.Catalog.GetString("<big>Exercises:</big>");
00352 this.lbExercises.UseMarkup = true;
00353 this.vbox5ViewExercises.Add(this.lbExercises);
00354 Gtk.Box.BoxChild w37 = ((Gtk.Box.BoxChild)(this.vbox5ViewExercises[this.lbExercises]));
00355 w37.Position = 0;
00356 w37.Expand = false;
00357 w37.Fill = false;
00358
00359 this.hbox1 = new Gtk.HBox();
00360 this.hbox1.Name = "hbox1";
00361 this.hbox1.Spacing = 6;
00362 this.hbox1.BorderWidth = ((uint)(9));
00363
00364 this.vbox6 = new Gtk.VBox();
00365 this.vbox6.Name = "vbox6";
00366 this.vbox6.Spacing = 6;
00367
00368 this.GtkScrolledWindow = new Gtk.ScrolledWindow();
00369 this.GtkScrolledWindow.Name = "GtkScrolledWindow";
00370 this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
00371
00372 this.ExerciseView = new Gtk.NodeView();
00373 this.ExerciseView.CanFocus = true;
00374 this.ExerciseView.Name = "ExerciseView";
00375 this.GtkScrolledWindow.Add(this.ExerciseView);
00376 this.vbox6.Add(this.GtkScrolledWindow);
00377 Gtk.Box.BoxChild w39 = ((Gtk.Box.BoxChild)(this.vbox6[this.GtkScrolledWindow]));
00378 w39.Position = 0;
00379 this.hbox1.Add(this.vbox6);
00380 Gtk.Box.BoxChild w40 = ((Gtk.Box.BoxChild)(this.hbox1[this.vbox6]));
00381 w40.Position = 0;
00382 this.vbox5ViewExercises.Add(this.hbox1);
00383 Gtk.Box.BoxChild w41 = ((Gtk.Box.BoxChild)(this.vbox5ViewExercises[this.hbox1]));
00384 w41.Position = 1;
00385
00386 this.hbuttonbox3 = new Gtk.HButtonBox();
00387 this.hbuttonbox3.Name = "hbuttonbox3";
00388 this.hbuttonbox3.Spacing = 6;
00389 this.hbuttonbox3.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
00390
00391 this.btDeleteEx = new Gtk.Button();
00392 this.btDeleteEx.CanFocus = true;
00393 this.btDeleteEx.Name = "btDeleteEx";
00394 this.btDeleteEx.UseUnderline = true;
00395 this.btDeleteEx.Label = Mono.Unix.Catalog.GetString("Delete Exercise");
00396 this.hbuttonbox3.Add(this.btDeleteEx);
00397 Gtk.ButtonBox.ButtonBoxChild w42 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox3[this.btDeleteEx]));
00398 w42.Expand = false;
00399 w42.Fill = false;
00400
00401 this.btEditEx = new Gtk.Button();
00402 this.btEditEx.CanFocus = true;
00403 this.btEditEx.Name = "btEditEx";
00404 this.btEditEx.UseUnderline = true;
00405 this.btEditEx.Label = Mono.Unix.Catalog.GetString("Edit Exercise");
00406 this.hbuttonbox3.Add(this.btEditEx);
00407 Gtk.ButtonBox.ButtonBoxChild w43 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox3[this.btEditEx]));
00408 w43.Position = 1;
00409 w43.Expand = false;
00410 w43.Fill = false;
00411
00412 this.btRegisterEx = new Gtk.Button();
00413 this.btRegisterEx.CanFocus = true;
00414 this.btRegisterEx.Name = "btRegisterEx";
00415 this.btRegisterEx.UseUnderline = true;
00416 this.btRegisterEx.Label = Mono.Unix.Catalog.GetString("Register Exercise");
00417 this.hbuttonbox3.Add(this.btRegisterEx);
00418 Gtk.ButtonBox.ButtonBoxChild w44 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox3[this.btRegisterEx]));
00419 w44.Position = 2;
00420 w44.Expand = false;
00421 w44.Fill = false;
00422 this.vbox5ViewExercises.Add(this.hbuttonbox3);
00423 Gtk.Box.BoxChild w45 = ((Gtk.Box.BoxChild)(this.vbox5ViewExercises[this.hbuttonbox3]));
00424 w45.Position = 2;
00425 w45.Expand = false;
00426 w45.Fill = false;
00427 this.hbox2.Add(this.vbox5ViewExercises);
00428 Gtk.Box.BoxChild w46 = ((Gtk.Box.BoxChild)(this.hbox2[this.vbox5ViewExercises]));
00429 w46.Position = 1;
00430 this.Add(this.hbox2);
00431 if ((this.Child != null)) {
00432 this.Child.ShowAll();
00433 }
00434 this.Hide();
00435 this.button314UserProf.Clicked += new System.EventHandler(this.btEditUserProfileOnClick);
00436 this.btEditEx.Clicked += new System.EventHandler(this.EditExOnClicked);
00437 this.btRegisterEx.Clicked += new System.EventHandler(this.RegExOnClicked);
00438 }
00439 }
00440 }