00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 namespace Foodolini.Activities {
00012
00013
00014 public partial class ConsumeFoodItem {
00015
00016 private Gtk.Alignment alignment1;
00017
00018 private Gtk.VBox vbox2;
00019
00020 private Gtk.Label lbover;
00021
00022 private Gtk.Label lbUser;
00023
00024 private Gtk.HBox hbox1;
00025
00026 private Gtk.Label lbQuan;
00027
00028 private Gtk.SpinButton spingram;
00029
00030 private Gtk.Label lbgram;
00031
00032 private Gtk.HSeparator hseparator2;
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.ConsumeFoodItem";
00042 this.Title = Mono.Unix.Catalog.GetString("Consume food item");
00043 this.WindowPosition = ((Gtk.WindowPosition)(4));
00044
00045 Gtk.VBox w1 = this.VBox;
00046 w1.Name = "dialog1_VBox";
00047 w1.BorderWidth = ((uint)(2));
00048
00049 this.alignment1 = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F);
00050 this.alignment1.Name = "alignment1";
00051 this.alignment1.LeftPadding = ((uint)(12));
00052 this.alignment1.TopPadding = ((uint)(12));
00053
00054 this.vbox2 = new Gtk.VBox();
00055 this.vbox2.Name = "vbox2";
00056 this.vbox2.Spacing = 6;
00057
00058 this.lbover = new Gtk.Label();
00059 this.lbover.Name = "lbover";
00060 this.lbover.Xalign = 0F;
00061 this.lbover.LabelProp = Mono.Unix.Catalog.GetString("Select an quantity to consume on user:");
00062 this.vbox2.Add(this.lbover);
00063 Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox2[this.lbover]));
00064 w2.Position = 0;
00065 w2.Expand = false;
00066 w2.Fill = false;
00067
00068 this.lbUser = new Gtk.Label();
00069 this.lbUser.Name = "lbUser";
00070 this.lbUser.Xalign = 0F;
00071 this.lbUser.LabelProp = Mono.Unix.Catalog.GetString("fullname");
00072 this.lbUser.UseMarkup = true;
00073 this.vbox2.Add(this.lbUser);
00074 Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox2[this.lbUser]));
00075 w3.Position = 1;
00076 w3.Expand = false;
00077 w3.Fill = false;
00078
00079 this.hbox1 = new Gtk.HBox();
00080 this.hbox1.Name = "hbox1";
00081 this.hbox1.Spacing = 6;
00082
00083 this.lbQuan = new Gtk.Label();
00084 this.lbQuan.Name = "lbQuan";
00085 this.lbQuan.Xalign = 0F;
00086 this.lbQuan.LabelProp = Mono.Unix.Catalog.GetString("Quantity");
00087 this.hbox1.Add(this.lbQuan);
00088 Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox1[this.lbQuan]));
00089 w4.Position = 0;
00090 w4.Expand = false;
00091 w4.Fill = false;
00092
00093 this.spingram = new Gtk.SpinButton(0, 100, 1);
00094 this.spingram.WidthRequest = 90;
00095 this.spingram.CanFocus = true;
00096 this.spingram.Name = "spingram";
00097 this.spingram.Adjustment.PageIncrement = 10;
00098 this.spingram.ClimbRate = 1;
00099 this.spingram.Numeric = true;
00100 this.hbox1.Add(this.spingram);
00101 Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox1[this.spingram]));
00102 w5.Position = 1;
00103 w5.Expand = false;
00104 w5.Fill = false;
00105
00106 this.lbgram = new Gtk.Label();
00107 this.lbgram.Name = "lbgram";
00108 this.lbgram.LabelProp = Mono.Unix.Catalog.GetString("gram");
00109 this.hbox1.Add(this.lbgram);
00110 Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox1[this.lbgram]));
00111 w6.Position = 2;
00112 w6.Expand = false;
00113 w6.Fill = false;
00114 this.vbox2.Add(this.hbox1);
00115 Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox1]));
00116 w7.Position = 2;
00117 w7.Expand = false;
00118 w7.Fill = false;
00119 this.alignment1.Add(this.vbox2);
00120 w1.Add(this.alignment1);
00121 Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(w1[this.alignment1]));
00122 w9.Position = 0;
00123 w9.Expand = false;
00124 w9.Fill = false;
00125
00126 this.hseparator2 = new Gtk.HSeparator();
00127 this.hseparator2.Name = "hseparator2";
00128 w1.Add(this.hseparator2);
00129 Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(w1[this.hseparator2]));
00130 w10.PackType = ((Gtk.PackType)(1));
00131 w10.Position = 2;
00132 w10.Expand = false;
00133 w10.Fill = false;
00134
00135 Gtk.HButtonBox w11 = this.ActionArea;
00136 w11.Name = "dialog1_ActionArea";
00137 w11.Spacing = 6;
00138 w11.BorderWidth = ((uint)(5));
00139 w11.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
00140
00141 this.buttonCancel = new Gtk.Button();
00142 this.buttonCancel.CanDefault = true;
00143 this.buttonCancel.CanFocus = true;
00144 this.buttonCancel.Name = "buttonCancel";
00145 this.buttonCancel.UseUnderline = true;
00146
00147 Gtk.Alignment w12 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00148
00149 Gtk.HBox w13 = new Gtk.HBox();
00150 w13.Spacing = 2;
00151
00152 Gtk.Image w14 = new Gtk.Image();
00153 w14.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-cancel", Gtk.IconSize.Menu, 16);
00154 w13.Add(w14);
00155
00156 Gtk.Label w16 = new Gtk.Label();
00157 w16.LabelProp = Mono.Unix.Catalog.GetString("Cancel");
00158 w16.UseUnderline = true;
00159 w13.Add(w16);
00160 w12.Add(w13);
00161 this.buttonCancel.Add(w12);
00162 this.AddActionWidget(this.buttonCancel, -6);
00163 Gtk.ButtonBox.ButtonBoxChild w20 = ((Gtk.ButtonBox.ButtonBoxChild)(w11[this.buttonCancel]));
00164 w20.Expand = false;
00165 w20.Fill = false;
00166
00167 this.buttonOk = new Gtk.Button();
00168 this.buttonOk.CanDefault = true;
00169 this.buttonOk.CanFocus = true;
00170 this.buttonOk.Name = "buttonOk";
00171 this.buttonOk.UseUnderline = true;
00172
00173 Gtk.Alignment w21 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00174
00175 Gtk.HBox w22 = new Gtk.HBox();
00176 w22.Spacing = 2;
00177
00178 Gtk.Image w23 = new Gtk.Image();
00179 w23.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-apply", Gtk.IconSize.Menu, 16);
00180 w22.Add(w23);
00181
00182 Gtk.Label w25 = new Gtk.Label();
00183 w25.LabelProp = Mono.Unix.Catalog.GetString("Ok");
00184 w25.UseUnderline = true;
00185 w22.Add(w25);
00186 w21.Add(w22);
00187 this.buttonOk.Add(w21);
00188 this.AddActionWidget(this.buttonOk, -5);
00189 Gtk.ButtonBox.ButtonBoxChild w29 = ((Gtk.ButtonBox.ButtonBoxChild)(w11[this.buttonOk]));
00190 w29.Position = 1;
00191 w29.Expand = false;
00192 w29.Fill = false;
00193 if ((this.Child != null)) {
00194 this.Child.ShowAll();
00195 }
00196 this.DefaultWidth = 301;
00197 this.DefaultHeight = 171;
00198 this.Show();
00199 }
00200 }
00201 }