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