00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 namespace Foodolini.Activities.Person {
00012
00013
00014 public partial class PersonEditorDialog {
00015
00016 private Gtk.Table table1;
00017
00018 private Gtk.Calendar calendarDateOfBirth;
00019
00020 private Gtk.Entry entry1FullName;
00021
00022 private Gtk.Entry entry2UserName;
00023
00024 private Gtk.Label label8;
00025
00026 private Gtk.Label lbDateOfBirth;
00027
00028 private Gtk.Label lbFullName;
00029
00030 private Gtk.Label lbGender;
00031
00032 private Gtk.Label lbHeight;
00033
00034 private Gtk.Label lbUserProfile;
00035
00036 private Gtk.Label lbWeight;
00037
00038 private Gtk.VBox vbox2;
00039
00040 private Gtk.ComboBox comboboxGender;
00041
00042 private Gtk.VBox vbox3;
00043
00044 private Gtk.SpinButton spHeight;
00045
00046 private Gtk.VBox vbox4;
00047
00048 private Gtk.SpinButton spWeight;
00049
00050 private Gtk.HSeparator hseparator1;
00051
00052 private Gtk.Button btCancel;
00053
00054 private Gtk.Button btOk;
00055
00056 protected virtual void Build() {
00057 Stetic.Gui.Initialize(this);
00058
00059 this.Name = "Foodolini.Activities.Person.PersonEditorDialog";
00060 this.WindowPosition = ((Gtk.WindowPosition)(4));
00061 this.HasSeparator = false;
00062
00063 Gtk.VBox w1 = this.VBox;
00064 w1.Name = "dialog1_VBox";
00065 w1.BorderWidth = ((uint)(2));
00066
00067 this.table1 = new Gtk.Table(((uint)(6)), ((uint)(4)), false);
00068 this.table1.Name = "table1";
00069 this.table1.RowSpacing = ((uint)(6));
00070 this.table1.ColumnSpacing = ((uint)(6));
00071 this.table1.BorderWidth = ((uint)(9));
00072
00073 this.calendarDateOfBirth = new Gtk.Calendar();
00074 this.calendarDateOfBirth.CanFocus = true;
00075 this.calendarDateOfBirth.Name = "calendarDateOfBirth";
00076 this.calendarDateOfBirth.DisplayOptions = ((Gtk.CalendarDisplayOptions)(35));
00077 this.table1.Add(this.calendarDateOfBirth);
00078 Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table1[this.calendarDateOfBirth]));
00079 w2.TopAttach = ((uint)(3));
00080 w2.BottomAttach = ((uint)(4));
00081 w2.LeftAttach = ((uint)(1));
00082 w2.RightAttach = ((uint)(4));
00083 w2.XOptions = ((Gtk.AttachOptions)(4));
00084 w2.YOptions = ((Gtk.AttachOptions)(4));
00085
00086 this.entry1FullName = new Gtk.Entry();
00087 this.entry1FullName.CanFocus = true;
00088 this.entry1FullName.Name = "entry1FullName";
00089 this.entry1FullName.IsEditable = true;
00090 this.entry1FullName.InvisibleChar = '●';
00091 this.table1.Add(this.entry1FullName);
00092 Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table1[this.entry1FullName]));
00093 w3.TopAttach = ((uint)(1));
00094 w3.BottomAttach = ((uint)(2));
00095 w3.LeftAttach = ((uint)(1));
00096 w3.RightAttach = ((uint)(4));
00097 w3.XOptions = ((Gtk.AttachOptions)(4));
00098 w3.YOptions = ((Gtk.AttachOptions)(4));
00099
00100 this.entry2UserName = new Gtk.Entry();
00101 this.entry2UserName.CanFocus = true;
00102 this.entry2UserName.Name = "entry2UserName";
00103 this.entry2UserName.IsEditable = true;
00104 this.entry2UserName.InvisibleChar = '●';
00105 this.table1.Add(this.entry2UserName);
00106 Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table1[this.entry2UserName]));
00107 w4.TopAttach = ((uint)(2));
00108 w4.BottomAttach = ((uint)(3));
00109 w4.LeftAttach = ((uint)(1));
00110 w4.RightAttach = ((uint)(4));
00111 w4.XOptions = ((Gtk.AttachOptions)(4));
00112 w4.YOptions = ((Gtk.AttachOptions)(4));
00113
00114 this.label8 = new Gtk.Label();
00115 this.label8.Name = "label8";
00116 this.label8.Xpad = 5;
00117 this.label8.Xalign = 0F;
00118 this.label8.LabelProp = Mono.Unix.Catalog.GetString("User name:");
00119 this.table1.Add(this.label8);
00120 Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table1[this.label8]));
00121 w5.TopAttach = ((uint)(2));
00122 w5.BottomAttach = ((uint)(3));
00123 w5.XOptions = ((Gtk.AttachOptions)(4));
00124 w5.YOptions = ((Gtk.AttachOptions)(4));
00125
00126 this.lbDateOfBirth = new Gtk.Label();
00127 this.lbDateOfBirth.Name = "lbDateOfBirth";
00128 this.lbDateOfBirth.Xpad = 5;
00129 this.lbDateOfBirth.Xalign = 0F;
00130 this.lbDateOfBirth.LabelProp = Mono.Unix.Catalog.GetString("Date of birth:");
00131 this.table1.Add(this.lbDateOfBirth);
00132 Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table1[this.lbDateOfBirth]));
00133 w6.TopAttach = ((uint)(3));
00134 w6.BottomAttach = ((uint)(4));
00135 w6.XOptions = ((Gtk.AttachOptions)(4));
00136 w6.YOptions = ((Gtk.AttachOptions)(4));
00137
00138 this.lbFullName = new Gtk.Label();
00139 this.lbFullName.Name = "lbFullName";
00140 this.lbFullName.Xpad = 5;
00141 this.lbFullName.Xalign = 0F;
00142 this.lbFullName.LabelProp = Mono.Unix.Catalog.GetString("Full name:");
00143 this.table1.Add(this.lbFullName);
00144 Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.lbFullName]));
00145 w7.TopAttach = ((uint)(1));
00146 w7.BottomAttach = ((uint)(2));
00147 w7.XOptions = ((Gtk.AttachOptions)(4));
00148 w7.YOptions = ((Gtk.AttachOptions)(4));
00149
00150 this.lbGender = new Gtk.Label();
00151 this.lbGender.Name = "lbGender";
00152 this.lbGender.Xpad = 5;
00153 this.lbGender.Xalign = 0F;
00154 this.lbGender.LabelProp = Mono.Unix.Catalog.GetString("Gender:");
00155 this.table1.Add(this.lbGender);
00156 Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table1[this.lbGender]));
00157 w8.TopAttach = ((uint)(4));
00158 w8.BottomAttach = ((uint)(5));
00159 w8.XOptions = ((Gtk.AttachOptions)(4));
00160 w8.YOptions = ((Gtk.AttachOptions)(4));
00161
00162 this.lbHeight = new Gtk.Label();
00163 this.lbHeight.Name = "lbHeight";
00164 this.lbHeight.Xpad = 5;
00165 this.lbHeight.Xalign = 0F;
00166 this.lbHeight.LabelProp = Mono.Unix.Catalog.GetString("Height (cm):");
00167 this.table1.Add(this.lbHeight);
00168 Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table1[this.lbHeight]));
00169 w9.TopAttach = ((uint)(4));
00170 w9.BottomAttach = ((uint)(5));
00171 w9.LeftAttach = ((uint)(2));
00172 w9.RightAttach = ((uint)(3));
00173 w9.XOptions = ((Gtk.AttachOptions)(4));
00174 w9.YOptions = ((Gtk.AttachOptions)(4));
00175
00176 this.lbUserProfile = new Gtk.Label();
00177 this.lbUserProfile.Name = "lbUserProfile";
00178 this.lbUserProfile.Xpad = 5;
00179 this.lbUserProfile.Xalign = 0F;
00180 this.lbUserProfile.LabelProp = Mono.Unix.Catalog.GetString("<big>Edit user profile:</big>");
00181 this.lbUserProfile.UseMarkup = true;
00182 this.table1.Add(this.lbUserProfile);
00183 Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table1[this.lbUserProfile]));
00184 w10.RightAttach = ((uint)(4));
00185 w10.XOptions = ((Gtk.AttachOptions)(4));
00186 w10.YOptions = ((Gtk.AttachOptions)(4));
00187
00188 this.lbWeight = new Gtk.Label();
00189 this.lbWeight.Name = "lbWeight";
00190 this.lbWeight.Xpad = 5;
00191 this.lbWeight.Xalign = 0F;
00192 this.lbWeight.LabelProp = Mono.Unix.Catalog.GetString("Weight (kg):");
00193 this.table1.Add(this.lbWeight);
00194 Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table1[this.lbWeight]));
00195 w11.TopAttach = ((uint)(5));
00196 w11.BottomAttach = ((uint)(6));
00197 w11.LeftAttach = ((uint)(2));
00198 w11.RightAttach = ((uint)(3));
00199 w11.XOptions = ((Gtk.AttachOptions)(4));
00200 w11.YOptions = ((Gtk.AttachOptions)(4));
00201
00202 this.vbox2 = new Gtk.VBox();
00203 this.vbox2.Name = "vbox2";
00204 this.vbox2.Spacing = 6;
00205
00206 this.comboboxGender = Gtk.ComboBox.NewText();
00207 this.comboboxGender.AppendText(Mono.Unix.Catalog.GetString("male"));
00208 this.comboboxGender.AppendText(Mono.Unix.Catalog.GetString("female"));
00209 this.comboboxGender.Name = "comboboxGender";
00210 this.comboboxGender.Active = 0;
00211 this.vbox2.Add(this.comboboxGender);
00212 Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.vbox2[this.comboboxGender]));
00213 w12.Position = 0;
00214 w12.Expand = false;
00215 w12.Fill = false;
00216 this.table1.Add(this.vbox2);
00217 Gtk.Table.TableChild w13 = ((Gtk.Table.TableChild)(this.table1[this.vbox2]));
00218 w13.TopAttach = ((uint)(4));
00219 w13.BottomAttach = ((uint)(5));
00220 w13.LeftAttach = ((uint)(1));
00221 w13.RightAttach = ((uint)(2));
00222 w13.XOptions = ((Gtk.AttachOptions)(4));
00223 w13.YOptions = ((Gtk.AttachOptions)(4));
00224
00225 this.vbox3 = new Gtk.VBox();
00226 this.vbox3.Name = "vbox3";
00227 this.vbox3.Spacing = 6;
00228
00229 this.spHeight = new Gtk.SpinButton(0, 250, 1);
00230 this.spHeight.CanFocus = true;
00231 this.spHeight.Name = "spHeight";
00232 this.spHeight.Adjustment.PageIncrement = 10;
00233 this.spHeight.ClimbRate = 1;
00234 this.spHeight.Digits = ((uint)(2));
00235 this.spHeight.Numeric = true;
00236 this.vbox3.Add(this.spHeight);
00237 Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox3[this.spHeight]));
00238 w14.Position = 0;
00239 w14.Expand = false;
00240 w14.Fill = false;
00241 this.table1.Add(this.vbox3);
00242 Gtk.Table.TableChild w15 = ((Gtk.Table.TableChild)(this.table1[this.vbox3]));
00243 w15.TopAttach = ((uint)(4));
00244 w15.BottomAttach = ((uint)(5));
00245 w15.LeftAttach = ((uint)(3));
00246 w15.RightAttach = ((uint)(4));
00247 w15.XOptions = ((Gtk.AttachOptions)(4));
00248 w15.YOptions = ((Gtk.AttachOptions)(4));
00249
00250 this.vbox4 = new Gtk.VBox();
00251 this.vbox4.Name = "vbox4";
00252 this.vbox4.Spacing = 6;
00253
00254 this.spWeight = new Gtk.SpinButton(0, 100, 5);
00255 this.spWeight.CanFocus = true;
00256 this.spWeight.Name = "spWeight";
00257 this.spWeight.Adjustment.PageIncrement = 10;
00258 this.spWeight.ClimbRate = 1;
00259 this.spWeight.Digits = ((uint)(1));
00260 this.spWeight.Numeric = true;
00261 this.vbox4.Add(this.spWeight);
00262 Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox4[this.spWeight]));
00263 w16.Position = 0;
00264 w16.Expand = false;
00265 w16.Fill = false;
00266 this.table1.Add(this.vbox4);
00267 Gtk.Table.TableChild w17 = ((Gtk.Table.TableChild)(this.table1[this.vbox4]));
00268 w17.TopAttach = ((uint)(5));
00269 w17.BottomAttach = ((uint)(6));
00270 w17.LeftAttach = ((uint)(3));
00271 w17.RightAttach = ((uint)(4));
00272 w17.XOptions = ((Gtk.AttachOptions)(4));
00273 w17.YOptions = ((Gtk.AttachOptions)(4));
00274 w1.Add(this.table1);
00275 Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(w1[this.table1]));
00276 w18.Position = 0;
00277 w18.Expand = false;
00278 w18.Fill = false;
00279
00280 this.hseparator1 = new Gtk.HSeparator();
00281 this.hseparator1.Name = "hseparator1";
00282 w1.Add(this.hseparator1);
00283 Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(w1[this.hseparator1]));
00284 w19.Position = 1;
00285 w19.Expand = false;
00286 w19.Fill = false;
00287
00288 Gtk.HButtonBox w20 = this.ActionArea;
00289 w20.Name = "dialog1_ActionArea";
00290 w20.Spacing = 6;
00291 w20.BorderWidth = ((uint)(5));
00292 w20.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
00293
00294 this.btCancel = new Gtk.Button();
00295 this.btCancel.CanDefault = true;
00296 this.btCancel.CanFocus = true;
00297 this.btCancel.Name = "btCancel";
00298 this.btCancel.UseUnderline = true;
00299
00300 Gtk.Alignment w21 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00301
00302 Gtk.HBox w22 = new Gtk.HBox();
00303 w22.Spacing = 2;
00304
00305 Gtk.Image w23 = new Gtk.Image();
00306 w23.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-cancel", Gtk.IconSize.Menu, 16);
00307 w22.Add(w23);
00308
00309 Gtk.Label w25 = new Gtk.Label();
00310 w25.LabelProp = Mono.Unix.Catalog.GetString("_Cancel");
00311 w25.UseUnderline = true;
00312 w22.Add(w25);
00313 w21.Add(w22);
00314 this.btCancel.Add(w21);
00315 this.AddActionWidget(this.btCancel, -6);
00316 Gtk.ButtonBox.ButtonBoxChild w29 = ((Gtk.ButtonBox.ButtonBoxChild)(w20[this.btCancel]));
00317 w29.Expand = false;
00318 w29.Fill = false;
00319
00320 this.btOk = new Gtk.Button();
00321 this.btOk.CanDefault = true;
00322 this.btOk.CanFocus = true;
00323 this.btOk.Name = "btOk";
00324 this.btOk.UseUnderline = true;
00325
00326 Gtk.Alignment w30 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00327
00328 Gtk.HBox w31 = new Gtk.HBox();
00329 w31.Spacing = 2;
00330
00331 Gtk.Image w32 = new Gtk.Image();
00332 w32.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-apply", Gtk.IconSize.Menu, 16);
00333 w31.Add(w32);
00334
00335 Gtk.Label w34 = new Gtk.Label();
00336 w34.LabelProp = Mono.Unix.Catalog.GetString("_OK");
00337 w34.UseUnderline = true;
00338 w31.Add(w34);
00339 w30.Add(w31);
00340 this.btOk.Add(w30);
00341 this.AddActionWidget(this.btOk, -5);
00342 Gtk.ButtonBox.ButtonBoxChild w38 = ((Gtk.ButtonBox.ButtonBoxChild)(w20[this.btOk]));
00343 w38.Position = 1;
00344 w38.Expand = false;
00345 w38.Fill = false;
00346 if ((this.Child != null)) {
00347 this.Child.ShowAll();
00348 }
00349 this.DefaultWidth = 430;
00350 this.DefaultHeight = 437;
00351 this.Show();
00352 this.spWeight.ValueChanged += new System.EventHandler(this.ValidateEntries);
00353 this.spHeight.ValueChanged += new System.EventHandler(this.ValidateEntries);
00354 this.comboboxGender.Changed += new System.EventHandler(this.ValidateEntries);
00355 this.entry2UserName.Changed += new System.EventHandler(this.ValidateEntries);
00356 this.entry1FullName.Changed += new System.EventHandler(this.ValidateEntries);
00357 this.calendarDateOfBirth.DaySelected += new System.EventHandler(this.ValidateEntries);
00358 this.calendarDateOfBirth.MonthChanged += new System.EventHandler(this.ValidateEntries);
00359 this.btCancel.Clicked += new System.EventHandler(this.CancelOnClick);
00360 this.btOk.Clicked += new System.EventHandler(this.btOkOnClicked);
00361 }
00362 }
00363 }