00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 namespace Foodolini.Activities.Inventory {
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.Inventory.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 by:");
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("<b>Quantity:</b>");
00087 this.lbQuan.UseMarkup = true;
00088 this.hbox1.Add(this.lbQuan);
00089 Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox1[this.lbQuan]));
00090 w4.Position = 0;
00091 w4.Expand = false;
00092 w4.Fill = false;
00093
00094 this.spingram = new Gtk.SpinButton(0, 100, 50);
00095 this.spingram.WidthRequest = 90;
00096 this.spingram.CanFocus = true;
00097 this.spingram.Name = "spingram";
00098 this.spingram.Adjustment.PageIncrement = 50;
00099 this.spingram.Adjustment.PageSize = 50;
00100 this.spingram.ClimbRate = 50;
00101 this.spingram.Numeric = true;
00102 this.hbox1.Add(this.spingram);
00103 Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox1[this.spingram]));
00104 w5.Position = 1;
00105 w5.Expand = false;
00106 w5.Fill = false;
00107
00108 this.lbgram = new Gtk.Label();
00109 this.lbgram.Name = "lbgram";
00110 this.lbgram.LabelProp = Mono.Unix.Catalog.GetString("grams");
00111 this.hbox1.Add(this.lbgram);
00112 Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox1[this.lbgram]));
00113 w6.Position = 2;
00114 w6.Expand = false;
00115 w6.Fill = false;
00116 this.vbox2.Add(this.hbox1);
00117 Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox1]));
00118 w7.Position = 2;
00119 w7.Expand = false;
00120 w7.Fill = false;
00121 this.alignment1.Add(this.vbox2);
00122 w1.Add(this.alignment1);
00123 Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(w1[this.alignment1]));
00124 w9.Position = 0;
00125 w9.Expand = false;
00126 w9.Fill = false;
00127
00128 this.hseparator2 = new Gtk.HSeparator();
00129 this.hseparator2.Name = "hseparator2";
00130 w1.Add(this.hseparator2);
00131 Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(w1[this.hseparator2]));
00132 w10.PackType = ((Gtk.PackType)(1));
00133 w10.Position = 2;
00134 w10.Expand = false;
00135 w10.Fill = false;
00136
00137 Gtk.HButtonBox w11 = this.ActionArea;
00138 w11.Name = "dialog1_ActionArea";
00139 w11.Spacing = 6;
00140 w11.BorderWidth = ((uint)(5));
00141 w11.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
00142
00143 this.buttonCancel = new Gtk.Button();
00144 this.buttonCancel.TooltipMarkup = "Cancel consumption";
00145 this.buttonCancel.CanDefault = true;
00146 this.buttonCancel.CanFocus = true;
00147 this.buttonCancel.Name = "buttonCancel";
00148 this.buttonCancel.UseUnderline = true;
00149
00150 Gtk.Alignment w12 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00151
00152 Gtk.HBox w13 = new Gtk.HBox();
00153 w13.Spacing = 2;
00154
00155 Gtk.Image w14 = new Gtk.Image();
00156 w14.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-cancel", Gtk.IconSize.Menu, 16);
00157 w13.Add(w14);
00158
00159 Gtk.Label w16 = new Gtk.Label();
00160 w16.LabelProp = Mono.Unix.Catalog.GetString("Cancel");
00161 w16.UseUnderline = true;
00162 w13.Add(w16);
00163 w12.Add(w13);
00164 this.buttonCancel.Add(w12);
00165 this.AddActionWidget(this.buttonCancel, -6);
00166 Gtk.ButtonBox.ButtonBoxChild w20 = ((Gtk.ButtonBox.ButtonBoxChild)(w11[this.buttonCancel]));
00167 w20.Expand = false;
00168 w20.Fill = false;
00169
00170 this.buttonOk = new Gtk.Button();
00171 this.buttonOk.TooltipMarkup = "Consume the specified quantity";
00172 this.buttonOk.CanDefault = true;
00173 this.buttonOk.CanFocus = true;
00174 this.buttonOk.Name = "buttonOk";
00175 this.buttonOk.UseUnderline = true;
00176
00177 Gtk.Alignment w21 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00178
00179 Gtk.HBox w22 = new Gtk.HBox();
00180 w22.Spacing = 2;
00181
00182 Gtk.Image w23 = new Gtk.Image();
00183 w23.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-apply", Gtk.IconSize.Menu, 16);
00184 w22.Add(w23);
00185
00186 Gtk.Label w25 = new Gtk.Label();
00187 w25.LabelProp = Mono.Unix.Catalog.GetString("Ok");
00188 w25.UseUnderline = true;
00189 w22.Add(w25);
00190 w21.Add(w22);
00191 this.buttonOk.Add(w21);
00192 this.AddActionWidget(this.buttonOk, -5);
00193 Gtk.ButtonBox.ButtonBoxChild w29 = ((Gtk.ButtonBox.ButtonBoxChild)(w11[this.buttonOk]));
00194 w29.Position = 1;
00195 w29.Expand = false;
00196 w29.Fill = false;
00197 if ((this.Child != null)) {
00198 this.Child.ShowAll();
00199 }
00200 this.DefaultWidth = 301;
00201 this.DefaultHeight = 171;
00202 this.Show();
00203 }
00204 }
00205 }