00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 namespace Foodolini.Activities {
00012
00013
00014 public partial class ExerciseEditor {
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 Foodolini.Activities.ChooseSportsActivity choosesportsactivity1;
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.HBox hbox2;
00049
00050 private Gtk.Label label7;
00051
00052 private Gtk.Button btCancel;
00053
00054 private Gtk.Button btSaveExercise;
00055
00056 protected virtual void Build() {
00057 Stetic.Gui.Initialize(this);
00058
00059 Stetic.BinContainer.Attach(this);
00060 this.Name = "Foodolini.Activities.ExerciseEditor";
00061
00062 this.vbox1 = new Gtk.VBox();
00063 this.vbox1.Name = "vbox1";
00064 this.vbox1.Spacing = 6;
00065
00066 this.label1 = new Gtk.Label();
00067 this.label1.Name = "label1";
00068 this.label1.Xalign = 0F;
00069 this.label1.LabelProp = Mono.Unix.Catalog.GetString("Edit Exercise");
00070 this.vbox1.Add(this.label1);
00071 Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox1[this.label1]));
00072 w1.Position = 0;
00073 w1.Expand = false;
00074 w1.Fill = false;
00075
00076 this.label2 = new Gtk.Label();
00077 this.label2.Name = "label2";
00078 this.label2.Xalign = 0F;
00079 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.");
00080 this.vbox1.Add(this.label2);
00081 Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.label2]));
00082 w2.Position = 1;
00083 w2.Expand = false;
00084 w2.Fill = false;
00085
00086 this.hbox1 = new Gtk.HBox();
00087 this.hbox1.Name = "hbox1";
00088 this.hbox1.Spacing = 6;
00089
00090 this.choosesportsactivity1 = new Foodolini.Activities.ChooseSportsActivity();
00091 this.choosesportsactivity1.Events = ((Gdk.EventMask)(256));
00092 this.choosesportsactivity1.Name = "choosesportsactivity1";
00093 this.hbox1.Add(this.choosesportsactivity1);
00094 Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.choosesportsactivity1]));
00095 w3.Position = 0;
00096 w3.Expand = false;
00097 w3.Fill = false;
00098
00099 this.vseparator4 = new Gtk.VSeparator();
00100 this.vseparator4.Name = "vseparator4";
00101 this.hbox1.Add(this.vseparator4);
00102 Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox1[this.vseparator4]));
00103 w4.Position = 1;
00104 w4.Expand = false;
00105 w4.Fill = false;
00106
00107 this.vbox3 = new Gtk.VBox();
00108 this.vbox3.Name = "vbox3";
00109 this.vbox3.Spacing = 6;
00110
00111 this.hbox4 = new Gtk.HBox();
00112 this.hbox4.Name = "hbox4";
00113 this.hbox4.Spacing = 6;
00114
00115 this.label6 = new Gtk.Label();
00116 this.label6.Name = "label6";
00117 this.label6.LabelProp = Mono.Unix.Catalog.GetString("Duration:");
00118 this.hbox4.Add(this.label6);
00119 Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox4[this.label6]));
00120 w5.Position = 0;
00121 w5.Expand = false;
00122 w5.Fill = false;
00123
00124 this.spbtHours = new Gtk.SpinButton(0, 100, 1);
00125 this.spbtHours.CanFocus = true;
00126 this.spbtHours.Name = "spbtHours";
00127 this.spbtHours.Adjustment.PageIncrement = 10;
00128 this.spbtHours.ClimbRate = 1;
00129 this.spbtHours.Numeric = true;
00130 this.hbox4.Add(this.spbtHours);
00131 Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox4[this.spbtHours]));
00132 w6.Position = 1;
00133 w6.Expand = false;
00134 w6.Fill = false;
00135
00136 this.label4 = new Gtk.Label();
00137 this.label4.Name = "label4";
00138 this.label4.LabelProp = Mono.Unix.Catalog.GetString("hours");
00139 this.hbox4.Add(this.label4);
00140 Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hbox4[this.label4]));
00141 w7.Position = 2;
00142 w7.Expand = false;
00143 w7.Fill = false;
00144
00145 this.spbtMinutes = new Gtk.SpinButton(0, 60, 1);
00146 this.spbtMinutes.CanFocus = true;
00147 this.spbtMinutes.Name = "spbtMinutes";
00148 this.spbtMinutes.Adjustment.PageIncrement = 10;
00149 this.spbtMinutes.ClimbRate = 1;
00150 this.spbtMinutes.Numeric = true;
00151 this.hbox4.Add(this.spbtMinutes);
00152 Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox4[this.spbtMinutes]));
00153 w8.Position = 3;
00154 w8.Expand = false;
00155 w8.Fill = false;
00156
00157 this.label5 = new Gtk.Label();
00158 this.label5.Name = "label5";
00159 this.label5.LabelProp = Mono.Unix.Catalog.GetString("minutes");
00160 this.hbox4.Add(this.label5);
00161 Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.hbox4[this.label5]));
00162 w9.Position = 4;
00163 w9.Expand = false;
00164 w9.Fill = false;
00165 this.vbox3.Add(this.hbox4);
00166 Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox4]));
00167 w10.Position = 0;
00168 w10.Expand = false;
00169 w10.Fill = false;
00170
00171 this.label3 = new Gtk.Label();
00172 this.label3.Name = "label3";
00173 this.label3.Xalign = 0F;
00174 this.label3.LabelProp = Mono.Unix.Catalog.GetString("Date:");
00175 this.vbox3.Add(this.label3);
00176 Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.vbox3[this.label3]));
00177 w11.Position = 1;
00178 w11.Expand = false;
00179 w11.Fill = false;
00180
00181 this.calDatePerformed = new Gtk.Calendar();
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 w12 = ((Gtk.Box.BoxChild)(this.vbox3[this.calDatePerformed]));
00187 w12.Position = 2;
00188 w12.Expand = false;
00189 w12.Fill = false;
00190 this.hbox1.Add(this.vbox3);
00191 Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.hbox1[this.vbox3]));
00192 w13.Position = 2;
00193 w13.Expand = false;
00194 w13.Fill = false;
00195 this.vbox1.Add(this.hbox1);
00196 Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
00197 w14.Position = 2;
00198 w14.Expand = false;
00199 w14.Fill = false;
00200
00201 this.hseparator1 = new Gtk.HSeparator();
00202 this.hseparator1.Name = "hseparator1";
00203 this.vbox1.Add(this.hseparator1);
00204 Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.vbox1[this.hseparator1]));
00205 w15.Position = 3;
00206 w15.Expand = false;
00207 w15.Fill = false;
00208
00209 this.hbox2 = new Gtk.HBox();
00210 this.hbox2.Name = "hbox2";
00211 this.hbox2.Spacing = 6;
00212
00213 this.label7 = new Gtk.Label();
00214 this.label7.Name = "label7";
00215 this.hbox2.Add(this.label7);
00216 Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.hbox2[this.label7]));
00217 w16.Position = 0;
00218 w16.Fill = false;
00219
00220 this.btCancel = new Gtk.Button();
00221 this.btCancel.CanFocus = true;
00222 this.btCancel.Name = "btCancel";
00223 this.btCancel.UseUnderline = true;
00224 this.btCancel.Label = Mono.Unix.Catalog.GetString("Cancel");
00225 this.hbox2.Add(this.btCancel);
00226 Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.hbox2[this.btCancel]));
00227 w17.Position = 1;
00228 w17.Expand = false;
00229 w17.Fill = false;
00230
00231 this.btSaveExercise = new Gtk.Button();
00232 this.btSaveExercise.CanFocus = true;
00233 this.btSaveExercise.Name = "btSaveExercise";
00234 this.btSaveExercise.UseUnderline = true;
00235 this.btSaveExercise.Label = Mono.Unix.Catalog.GetString("Save Exercise");
00236 this.hbox2.Add(this.btSaveExercise);
00237 Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.hbox2[this.btSaveExercise]));
00238 w18.Position = 2;
00239 w18.Expand = false;
00240 w18.Fill = false;
00241 this.vbox1.Add(this.hbox2);
00242 Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox2]));
00243 w19.Position = 4;
00244 w19.Expand = false;
00245 w19.Fill = false;
00246 this.Add(this.vbox1);
00247 if ((this.Child != null)) {
00248 this.Child.ShowAll();
00249 }
00250 this.Hide();
00251 }
00252 }
00253 }