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