00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 namespace Foodolini.Activities.RegisterExercise {
00012
00013
00014 public partial class ExerciseEditorDialog {
00015
00016 private Gtk.VBox vbox1;
00017
00018 private Gtk.Label label1;
00019
00020 private Gtk.Label label2;
00021
00022 private Gtk.HBox hbox1;
00023
00024 private Gtk.VBox vbChooseSport;
00025
00026 private Gtk.VSeparator vseparator4;
00027
00028 private Gtk.VBox vbox3;
00029
00030 private Gtk.HBox hbox4;
00031
00032 private Gtk.Label label6;
00033
00034 private Gtk.SpinButton spbtHours;
00035
00036 private Gtk.Label label4;
00037
00038 private Gtk.SpinButton spbtMinutes;
00039
00040 private Gtk.Label label5;
00041
00042 private Gtk.Label label3;
00043
00044 private Gtk.Calendar calDatePerformed;
00045
00046 private Gtk.HSeparator hseparator1;
00047
00048 private Gtk.Button buttonCancel;
00049
00050 private Gtk.Button buttonOK;
00051
00052 protected virtual void Build() {
00053 Stetic.Gui.Initialize(this);
00054
00055 this.Name = "Foodolini.Activities.RegisterExercise.ExerciseEditorDialog";
00056 this.WindowPosition = ((Gtk.WindowPosition)(4));
00057 this.HasSeparator = false;
00058
00059 Gtk.VBox w1 = this.VBox;
00060 w1.Name = "dialog1_VBox";
00061 w1.BorderWidth = ((uint)(2));
00062
00063 this.vbox1 = new Gtk.VBox();
00064 this.vbox1.Name = "vbox1";
00065 this.vbox1.Spacing = 6;
00066
00067 this.label1 = new Gtk.Label();
00068 this.label1.Name = "label1";
00069 this.label1.Xalign = 0F;
00070 this.label1.LabelProp = Mono.Unix.Catalog.GetString("Edit Exercise");
00071 this.vbox1.Add(this.label1);
00072 Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.label1]));
00073 w2.Position = 0;
00074 w2.Expand = false;
00075 w2.Fill = false;
00076
00077 this.label2 = new Gtk.Label();
00078 this.label2.Name = "label2";
00079 this.label2.Xalign = 0F;
00080 this.label2.LabelProp = Mono.Unix.Catalog.GetString("Choose the sports activity from the list, enter the duration to the right and/or\nchange the date in the calendar.");
00081 this.vbox1.Add(this.label2);
00082 Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.label2]));
00083 w3.Position = 1;
00084 w3.Expand = false;
00085 w3.Fill = false;
00086
00087 this.hbox1 = new Gtk.HBox();
00088 this.hbox1.Name = "hbox1";
00089 this.hbox1.Spacing = 6;
00090
00091 this.vbChooseSport = new Gtk.VBox();
00092 this.vbChooseSport.Name = "vbChooseSport";
00093 this.vbChooseSport.Spacing = 6;
00094 this.hbox1.Add(this.vbChooseSport);
00095 Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox1[this.vbChooseSport]));
00096 w4.Position = 0;
00097
00098 this.vseparator4 = new Gtk.VSeparator();
00099 this.vseparator4.Name = "vseparator4";
00100 this.hbox1.Add(this.vseparator4);
00101 Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox1[this.vseparator4]));
00102 w5.Position = 1;
00103 w5.Expand = false;
00104 w5.Fill = false;
00105
00106 this.vbox3 = new Gtk.VBox();
00107 this.vbox3.Name = "vbox3";
00108 this.vbox3.Spacing = 6;
00109
00110 this.hbox4 = new Gtk.HBox();
00111 this.hbox4.Name = "hbox4";
00112 this.hbox4.Spacing = 6;
00113
00114 this.label6 = new Gtk.Label();
00115 this.label6.Name = "label6";
00116 this.label6.LabelProp = Mono.Unix.Catalog.GetString("Duration:");
00117 this.hbox4.Add(this.label6);
00118 Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox4[this.label6]));
00119 w6.Position = 0;
00120 w6.Expand = false;
00121 w6.Fill = false;
00122
00123 this.spbtHours = new Gtk.SpinButton(0, 100, 1);
00124 this.spbtHours.CanFocus = true;
00125 this.spbtHours.Name = "spbtHours";
00126 this.spbtHours.Adjustment.PageIncrement = 10;
00127 this.spbtHours.ClimbRate = 1;
00128 this.spbtHours.Numeric = true;
00129 this.hbox4.Add(this.spbtHours);
00130 Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hbox4[this.spbtHours]));
00131 w7.Position = 1;
00132 w7.Expand = false;
00133 w7.Fill = false;
00134
00135 this.label4 = new Gtk.Label();
00136 this.label4.Name = "label4";
00137 this.label4.LabelProp = Mono.Unix.Catalog.GetString("hours");
00138 this.hbox4.Add(this.label4);
00139 Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox4[this.label4]));
00140 w8.Position = 2;
00141 w8.Expand = false;
00142 w8.Fill = false;
00143
00144 this.spbtMinutes = new Gtk.SpinButton(0, 60, 1);
00145 this.spbtMinutes.CanFocus = true;
00146 this.spbtMinutes.Name = "spbtMinutes";
00147 this.spbtMinutes.Adjustment.PageIncrement = 10;
00148 this.spbtMinutes.ClimbRate = 1;
00149 this.spbtMinutes.Numeric = true;
00150 this.hbox4.Add(this.spbtMinutes);
00151 Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.hbox4[this.spbtMinutes]));
00152 w9.Position = 3;
00153 w9.Expand = false;
00154 w9.Fill = false;
00155
00156 this.label5 = new Gtk.Label();
00157 this.label5.Name = "label5";
00158 this.label5.LabelProp = Mono.Unix.Catalog.GetString("minutes");
00159 this.hbox4.Add(this.label5);
00160 Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hbox4[this.label5]));
00161 w10.Position = 4;
00162 w10.Expand = false;
00163 w10.Fill = false;
00164 this.vbox3.Add(this.hbox4);
00165 Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox4]));
00166 w11.Position = 0;
00167 w11.Expand = false;
00168 w11.Fill = false;
00169
00170 this.label3 = new Gtk.Label();
00171 this.label3.Name = "label3";
00172 this.label3.Xalign = 0F;
00173 this.label3.LabelProp = Mono.Unix.Catalog.GetString("Date:");
00174 this.vbox3.Add(this.label3);
00175 Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.vbox3[this.label3]));
00176 w12.Position = 1;
00177 w12.Expand = false;
00178 w12.Fill = false;
00179
00180 this.calDatePerformed = new Gtk.Calendar();
00181 this.calDatePerformed.TooltipMarkup = "Date the exercise was performed.";
00182 this.calDatePerformed.CanFocus = true;
00183 this.calDatePerformed.Name = "calDatePerformed";
00184 this.calDatePerformed.DisplayOptions = ((Gtk.CalendarDisplayOptions)(35));
00185 this.vbox3.Add(this.calDatePerformed);
00186 Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.vbox3[this.calDatePerformed]));
00187 w13.Position = 2;
00188 w13.Expand = false;
00189 w13.Fill = false;
00190 this.hbox1.Add(this.vbox3);
00191 Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.hbox1[this.vbox3]));
00192 w14.Position = 2;
00193 w14.Expand = false;
00194 w14.Fill = false;
00195 this.vbox1.Add(this.hbox1);
00196 Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
00197 w15.Position = 2;
00198 w15.Expand = false;
00199 w15.Fill = false;
00200
00201 this.hseparator1 = new Gtk.HSeparator();
00202 this.hseparator1.Name = "hseparator1";
00203 this.vbox1.Add(this.hseparator1);
00204 Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox1[this.hseparator1]));
00205 w16.Position = 3;
00206 w16.Expand = false;
00207 w16.Fill = false;
00208 w1.Add(this.vbox1);
00209 Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(w1[this.vbox1]));
00210 w17.Position = 0;
00211 w17.Expand = false;
00212 w17.Fill = false;
00213
00214 Gtk.HButtonBox w18 = this.ActionArea;
00215 w18.Name = "dialog1_ActionArea";
00216 w18.Spacing = 6;
00217 w18.BorderWidth = ((uint)(5));
00218 w18.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
00219
00220 this.buttonCancel = new Gtk.Button();
00221 this.buttonCancel.CanDefault = true;
00222 this.buttonCancel.CanFocus = true;
00223 this.buttonCancel.Name = "buttonCancel";
00224 this.buttonCancel.UseUnderline = true;
00225
00226 Gtk.Alignment w19 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00227
00228 Gtk.HBox w20 = new Gtk.HBox();
00229 w20.Spacing = 2;
00230
00231 Gtk.Image w21 = new Gtk.Image();
00232 w21.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-cancel", Gtk.IconSize.Menu, 16);
00233 w20.Add(w21);
00234
00235 Gtk.Label w23 = new Gtk.Label();
00236 w23.LabelProp = Mono.Unix.Catalog.GetString("_Cancel");
00237 w23.UseUnderline = true;
00238 w20.Add(w23);
00239 w19.Add(w20);
00240 this.buttonCancel.Add(w19);
00241 this.AddActionWidget(this.buttonCancel, -6);
00242 Gtk.ButtonBox.ButtonBoxChild w27 = ((Gtk.ButtonBox.ButtonBoxChild)(w18[this.buttonCancel]));
00243 w27.Expand = false;
00244 w27.Fill = false;
00245
00246 this.buttonOK = new Gtk.Button();
00247 this.buttonOK.CanDefault = true;
00248 this.buttonOK.CanFocus = true;
00249 this.buttonOK.Name = "buttonOK";
00250 this.buttonOK.UseUnderline = true;
00251
00252 Gtk.Alignment w28 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00253
00254 Gtk.HBox w29 = new Gtk.HBox();
00255 w29.Spacing = 2;
00256
00257 Gtk.Image w30 = new Gtk.Image();
00258 w30.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-save", Gtk.IconSize.Menu, 16);
00259 w29.Add(w30);
00260
00261 Gtk.Label w32 = new Gtk.Label();
00262 w32.LabelProp = Mono.Unix.Catalog.GetString("Save");
00263 w32.UseUnderline = true;
00264 w29.Add(w32);
00265 w28.Add(w29);
00266 this.buttonOK.Add(w28);
00267 this.AddActionWidget(this.buttonOK, -5);
00268 Gtk.ButtonBox.ButtonBoxChild w36 = ((Gtk.ButtonBox.ButtonBoxChild)(w18[this.buttonOK]));
00269 w36.Position = 1;
00270 w36.Expand = false;
00271 w36.Fill = false;
00272 if ((this.Child != null)) {
00273 this.Child.ShowAll();
00274 }
00275 this.DefaultWidth = 761;
00276 this.DefaultHeight = 382;
00277 this.Show();
00278 this.buttonCancel.Clicked += new System.EventHandler(this.OnButtonCancelClicked);
00279 this.buttonOK.Clicked += new System.EventHandler(this.OnButtonOKClicked);
00280 }
00281 }
00282 }