00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 namespace Foodolini.Activities {
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 Foodolini.Activities.ChooseSportsActivity choosesportsactivity1;
00023
00024 private Gtk.VSeparator vseparator4;
00025
00026 private Gtk.VBox vbox3;
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.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.choosesportsactivity1 = new Foodolini.Activities.ChooseSportsActivity();
00082 this.choosesportsactivity1.Events = ((Gdk.EventMask)(256));
00083 this.choosesportsactivity1.Name = "choosesportsactivity1";
00084 this.hbox1.Add(this.choosesportsactivity1);
00085 Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.choosesportsactivity1]));
00086 w3.Position = 0;
00087 w3.Expand = false;
00088 w3.Fill = false;
00089
00090 this.vseparator4 = new Gtk.VSeparator();
00091 this.vseparator4.Name = "vseparator4";
00092 this.hbox1.Add(this.vseparator4);
00093 Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox1[this.vseparator4]));
00094 w4.Position = 1;
00095 w4.Expand = false;
00096 w4.Fill = false;
00097
00098 this.vbox3 = new Gtk.VBox();
00099 this.vbox3.Name = "vbox3";
00100 this.vbox3.Spacing = 6;
00101
00102 this.hbox4 = new Gtk.HBox();
00103 this.hbox4.Name = "hbox4";
00104 this.hbox4.Spacing = 6;
00105
00106 this.label6 = new Gtk.Label();
00107 this.label6.Name = "label6";
00108 this.label6.LabelProp = Mono.Unix.Catalog.GetString("Duration:");
00109 this.hbox4.Add(this.label6);
00110 Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox4[this.label6]));
00111 w5.Position = 0;
00112 w5.Expand = false;
00113 w5.Fill = false;
00114
00115 this.spbtHours = new Gtk.SpinButton(0, 100, 1);
00116 this.spbtHours.CanFocus = true;
00117 this.spbtHours.Name = "spbtHours";
00118 this.spbtHours.Adjustment.PageIncrement = 10;
00119 this.spbtHours.ClimbRate = 1;
00120 this.spbtHours.Numeric = true;
00121 this.hbox4.Add(this.spbtHours);
00122 Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox4[this.spbtHours]));
00123 w6.Position = 1;
00124 w6.Expand = false;
00125 w6.Fill = false;
00126
00127 this.label4 = new Gtk.Label();
00128 this.label4.Name = "label4";
00129 this.label4.LabelProp = Mono.Unix.Catalog.GetString("hours");
00130 this.hbox4.Add(this.label4);
00131 Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hbox4[this.label4]));
00132 w7.Position = 2;
00133 w7.Expand = false;
00134 w7.Fill = false;
00135
00136 this.spbtMinutes = new Gtk.SpinButton(0, 60, 1);
00137 this.spbtMinutes.CanFocus = true;
00138 this.spbtMinutes.Name = "spbtMinutes";
00139 this.spbtMinutes.Adjustment.PageIncrement = 10;
00140 this.spbtMinutes.ClimbRate = 1;
00141 this.spbtMinutes.Numeric = true;
00142 this.hbox4.Add(this.spbtMinutes);
00143 Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox4[this.spbtMinutes]));
00144 w8.Position = 3;
00145 w8.Expand = false;
00146 w8.Fill = false;
00147
00148 this.label5 = new Gtk.Label();
00149 this.label5.Name = "label5";
00150 this.label5.LabelProp = Mono.Unix.Catalog.GetString("minutes");
00151 this.hbox4.Add(this.label5);
00152 Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.hbox4[this.label5]));
00153 w9.Position = 4;
00154 w9.Expand = false;
00155 w9.Fill = false;
00156 this.vbox3.Add(this.hbox4);
00157 Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox4]));
00158 w10.Position = 0;
00159 w10.Expand = false;
00160 w10.Fill = false;
00161
00162 this.label3 = new Gtk.Label();
00163 this.label3.Name = "label3";
00164 this.label3.Xalign = 0F;
00165 this.label3.LabelProp = Mono.Unix.Catalog.GetString("Date:");
00166 this.vbox3.Add(this.label3);
00167 Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.vbox3[this.label3]));
00168 w11.Position = 1;
00169 w11.Expand = false;
00170 w11.Fill = false;
00171
00172 this.calDatePerformed = new Gtk.Calendar();
00173 this.calDatePerformed.CanFocus = true;
00174 this.calDatePerformed.Name = "calDatePerformed";
00175 this.calDatePerformed.DisplayOptions = ((Gtk.CalendarDisplayOptions)(35));
00176 this.vbox3.Add(this.calDatePerformed);
00177 Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.vbox3[this.calDatePerformed]));
00178 w12.Position = 2;
00179 w12.Expand = false;
00180 w12.Fill = false;
00181 this.hbox1.Add(this.vbox3);
00182 Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.hbox1[this.vbox3]));
00183 w13.Position = 2;
00184 w13.Expand = false;
00185 w13.Fill = false;
00186 this.vbox1.Add(this.hbox1);
00187 Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
00188 w14.Position = 1;
00189 w14.Expand = false;
00190 w14.Fill = false;
00191
00192 this.hseparator1 = new Gtk.HSeparator();
00193 this.hseparator1.Name = "hseparator1";
00194 this.vbox1.Add(this.hseparator1);
00195 Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.vbox1[this.hseparator1]));
00196 w15.Position = 2;
00197 w15.Expand = false;
00198 w15.Fill = false;
00199 w1.Add(this.vbox1);
00200 Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(w1[this.vbox1]));
00201 w16.Position = 0;
00202 w16.Expand = false;
00203 w16.Fill = false;
00204
00205 Gtk.HButtonBox w17 = this.ActionArea;
00206 w17.Name = "dialog1_ActionArea";
00207 w17.Spacing = 6;
00208 w17.BorderWidth = ((uint)(5));
00209 w17.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
00210
00211 this.btCancel = new Gtk.Button();
00212 this.btCancel.CanDefault = true;
00213 this.btCancel.CanFocus = true;
00214 this.btCancel.Name = "btCancel";
00215 this.btCancel.UseStock = true;
00216 this.btCancel.UseUnderline = true;
00217 this.btCancel.Label = "gtk-cancel";
00218 this.AddActionWidget(this.btCancel, -6);
00219 Gtk.ButtonBox.ButtonBoxChild w18 = ((Gtk.ButtonBox.ButtonBoxChild)(w17[this.btCancel]));
00220 w18.Expand = false;
00221 w18.Fill = false;
00222
00223 this.btSaveExercise = new Gtk.Button();
00224 this.btSaveExercise.CanDefault = true;
00225 this.btSaveExercise.CanFocus = true;
00226 this.btSaveExercise.Name = "btSaveExercise";
00227 this.btSaveExercise.UseUnderline = true;
00228
00229 Gtk.Alignment w19 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00230
00231 Gtk.HBox w20 = new Gtk.HBox();
00232 w20.Spacing = 2;
00233
00234 Gtk.Image w21 = new Gtk.Image();
00235 w21.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-save", Gtk.IconSize.Menu, 16);
00236 w20.Add(w21);
00237
00238 Gtk.Label w23 = new Gtk.Label();
00239 w23.LabelProp = Mono.Unix.Catalog.GetString("Save");
00240 w23.UseUnderline = true;
00241 w20.Add(w23);
00242 w19.Add(w20);
00243 this.btSaveExercise.Add(w19);
00244 this.AddActionWidget(this.btSaveExercise, -5);
00245 Gtk.ButtonBox.ButtonBoxChild w27 = ((Gtk.ButtonBox.ButtonBoxChild)(w17[this.btSaveExercise]));
00246 w27.Position = 1;
00247 w27.Expand = false;
00248 w27.Fill = false;
00249 if ((this.Child != null)) {
00250 this.Child.ShowAll();
00251 }
00252 this.DefaultWidth = 761;
00253 this.DefaultHeight = 419;
00254 this.Show();
00255 this.btCancel.Clicked += new System.EventHandler(this.OnBtCancelClicked);
00256 this.btSaveExercise.Clicked += new System.EventHandler(this.OnBtSaveExerciseClicked);
00257 }
00258 }
00259 }