00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 namespace Foodolini.Activities.RegisterExercise {
00012
00013
00014 public partial class CreateSportsActivityDialog {
00015
00016 private Gtk.VBox vbox2;
00017
00018 private Gtk.Label label2;
00019
00020 private Gtk.Table table1;
00021
00022 private Gtk.Entry entName;
00023
00024 private Gtk.Label label4;
00025
00026 private Gtk.Label label5;
00027
00028 private Gtk.SpinButton spbtMET;
00029
00030 private Gtk.Button buttonCancel;
00031
00032 private Gtk.Button buttonOk;
00033
00034 protected virtual void Build() {
00035 Stetic.Gui.Initialize(this);
00036
00037 this.Name = "Foodolini.Activities.RegisterExercise.CreateSportsActivityDialog";
00038 this.Title = "";
00039 this.WindowPosition = ((Gtk.WindowPosition)(4));
00040 this.HasSeparator = false;
00041
00042 Gtk.VBox w1 = this.VBox;
00043 w1.Name = "dialog1_VBox";
00044 w1.BorderWidth = ((uint)(2));
00045
00046 this.vbox2 = new Gtk.VBox();
00047 this.vbox2.Name = "vbox2";
00048 this.vbox2.Spacing = 6;
00049
00050 this.label2 = new Gtk.Label();
00051 this.label2.Name = "label2";
00052 this.label2.Xalign = 0F;
00053 this.label2.LabelProp = Mono.Unix.Catalog.GetString("Enter the name of the new sports activity.\nThe MET value is the ratio of metabolic rate\nof doing an exercise in relation to the metabolic\nrate of resting.");
00054 this.vbox2.Add(this.label2);
00055 Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox2[this.label2]));
00056 w2.Position = 0;
00057 w2.Expand = false;
00058 w2.Fill = false;
00059
00060 this.table1 = new Gtk.Table(((uint)(2)), ((uint)(2)), false);
00061 this.table1.Name = "table1";
00062 this.table1.RowSpacing = ((uint)(6));
00063 this.table1.ColumnSpacing = ((uint)(6));
00064
00065 this.entName = new Gtk.Entry();
00066 this.entName.TooltipMarkup = "Name of the sports activity";
00067 this.entName.WidthRequest = 200;
00068 this.entName.CanFocus = true;
00069 this.entName.Name = "entName";
00070 this.entName.IsEditable = true;
00071 this.entName.InvisibleChar = '●';
00072 this.table1.Add(this.entName);
00073 Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table1[this.entName]));
00074 w3.LeftAttach = ((uint)(1));
00075 w3.RightAttach = ((uint)(2));
00076 w3.YOptions = ((Gtk.AttachOptions)(4));
00077
00078 this.label4 = new Gtk.Label();
00079 this.label4.Name = "label4";
00080 this.label4.Xalign = 0F;
00081 this.label4.LabelProp = Mono.Unix.Catalog.GetString("MET value:");
00082 this.table1.Add(this.label4);
00083 Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table1[this.label4]));
00084 w4.TopAttach = ((uint)(1));
00085 w4.BottomAttach = ((uint)(2));
00086 w4.XOptions = ((Gtk.AttachOptions)(4));
00087 w4.YOptions = ((Gtk.AttachOptions)(4));
00088
00089 this.label5 = new Gtk.Label();
00090 this.label5.Name = "label5";
00091 this.label5.Xalign = 0F;
00092 this.label5.LabelProp = Mono.Unix.Catalog.GetString("Name:");
00093 this.table1.Add(this.label5);
00094 Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table1[this.label5]));
00095 w5.XOptions = ((Gtk.AttachOptions)(4));
00096 w5.YOptions = ((Gtk.AttachOptions)(4));
00097
00098 this.spbtMET = new Gtk.SpinButton(1, 100, 1);
00099 this.spbtMET.TooltipMarkup = "Metabolic Equivalent of Task (MET)";
00100 this.spbtMET.CanFocus = true;
00101 this.spbtMET.Name = "spbtMET";
00102 this.spbtMET.Adjustment.PageIncrement = 10;
00103 this.spbtMET.ClimbRate = 5;
00104 this.spbtMET.Digits = ((uint)(1));
00105 this.spbtMET.Numeric = true;
00106 this.spbtMET.Value = 1;
00107 this.table1.Add(this.spbtMET);
00108 Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table1[this.spbtMET]));
00109 w6.TopAttach = ((uint)(1));
00110 w6.BottomAttach = ((uint)(2));
00111 w6.LeftAttach = ((uint)(1));
00112 w6.RightAttach = ((uint)(2));
00113 w6.YOptions = ((Gtk.AttachOptions)(4));
00114 this.vbox2.Add(this.table1);
00115 Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox2[this.table1]));
00116 w7.Position = 1;
00117 w7.Expand = false;
00118 w7.Fill = false;
00119 w1.Add(this.vbox2);
00120 Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(w1[this.vbox2]));
00121 w8.Position = 0;
00122 w8.Expand = false;
00123 w8.Fill = false;
00124
00125 Gtk.HButtonBox w9 = this.ActionArea;
00126 w9.Name = "dialog1_ActionArea";
00127 w9.Spacing = 6;
00128 w9.BorderWidth = ((uint)(5));
00129 w9.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
00130
00131 this.buttonCancel = new Gtk.Button();
00132 this.buttonCancel.CanDefault = true;
00133 this.buttonCancel.CanFocus = true;
00134 this.buttonCancel.Name = "buttonCancel";
00135 this.buttonCancel.UseUnderline = true;
00136
00137 Gtk.Alignment w10 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00138
00139 Gtk.HBox w11 = new Gtk.HBox();
00140 w11.Spacing = 2;
00141
00142 Gtk.Image w12 = new Gtk.Image();
00143 w12.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-cancel", Gtk.IconSize.Menu, 16);
00144 w11.Add(w12);
00145
00146 Gtk.Label w14 = new Gtk.Label();
00147 w14.LabelProp = Mono.Unix.Catalog.GetString("_Cancel");
00148 w14.UseUnderline = true;
00149 w11.Add(w14);
00150 w10.Add(w11);
00151 this.buttonCancel.Add(w10);
00152 this.AddActionWidget(this.buttonCancel, -6);
00153 Gtk.ButtonBox.ButtonBoxChild w18 = ((Gtk.ButtonBox.ButtonBoxChild)(w9[this.buttonCancel]));
00154 w18.Expand = false;
00155 w18.Fill = false;
00156
00157 this.buttonOk = new Gtk.Button();
00158 this.buttonOk.TooltipMarkup = "Save the sports activity";
00159 this.buttonOk.CanDefault = true;
00160 this.buttonOk.CanFocus = true;
00161 this.buttonOk.Name = "buttonOk";
00162 this.buttonOk.UseUnderline = true;
00163
00164 Gtk.Alignment w19 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00165
00166 Gtk.HBox w20 = new Gtk.HBox();
00167 w20.Spacing = 2;
00168
00169 Gtk.Image w21 = new Gtk.Image();
00170 w21.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-save", Gtk.IconSize.Menu, 16);
00171 w20.Add(w21);
00172
00173 Gtk.Label w23 = new Gtk.Label();
00174 w23.LabelProp = Mono.Unix.Catalog.GetString("_Save");
00175 w23.UseUnderline = true;
00176 w20.Add(w23);
00177 w19.Add(w20);
00178 this.buttonOk.Add(w19);
00179 this.AddActionWidget(this.buttonOk, -5);
00180 Gtk.ButtonBox.ButtonBoxChild w27 = ((Gtk.ButtonBox.ButtonBoxChild)(w9[this.buttonOk]));
00181 w27.Position = 1;
00182 w27.Expand = false;
00183 w27.Fill = false;
00184 if ((this.Child != null)) {
00185 this.Child.ShowAll();
00186 }
00187 this.DefaultWidth = 314;
00188 this.DefaultHeight = 203;
00189 this.Show();
00190 }
00191 }
00192 }