00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 namespace Foodolini.Activities.Inventory {
00012
00013
00014 public partial class EditFoodItemDialog {
00015
00016 private Gtk.HBox hbox1;
00017
00018 private Gtk.VBox vbox1;
00019
00020 private Gtk.Table table1;
00021
00022 private Gtk.Label lbAmount1;
00023
00024 private Gtk.Label lbIngre;
00025
00026 private Gtk.Label lbIngredient;
00027
00028 private Gtk.SpinButton spinAmount;
00029
00030 private Gtk.Button bntIngre;
00031
00032 private Gtk.CheckButton chOpen;
00033
00034 private Gtk.Label lbExpiration;
00035
00036 private Gtk.Calendar cal;
00037
00038 private Gtk.Button buttonCancel;
00039
00040 private Gtk.Button buttonOk;
00041
00042 protected virtual void Build() {
00043 Stetic.Gui.Initialize(this);
00044
00045 this.Name = "Foodolini.Activities.Inventory.EditFoodItemDialog";
00046 this.WindowPosition = ((Gtk.WindowPosition)(4));
00047
00048 Gtk.VBox w1 = this.VBox;
00049 w1.Name = "dialog1_VBox";
00050 w1.BorderWidth = ((uint)(2));
00051
00052 this.hbox1 = new Gtk.HBox();
00053 this.hbox1.Name = "hbox1";
00054 this.hbox1.Spacing = 6;
00055
00056 this.vbox1 = new Gtk.VBox();
00057 this.vbox1.Name = "vbox1";
00058 this.vbox1.Spacing = 6;
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.lbAmount1 = new Gtk.Label();
00066 this.lbAmount1.Name = "lbAmount1";
00067 this.lbAmount1.Xalign = 0F;
00068 this.lbAmount1.LabelProp = Mono.Unix.Catalog.GetString("<b>Quantity (g):</b>");
00069 this.lbAmount1.UseMarkup = true;
00070 this.table1.Add(this.lbAmount1);
00071 Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table1[this.lbAmount1]));
00072 w2.XOptions = ((Gtk.AttachOptions)(4));
00073 w2.YOptions = ((Gtk.AttachOptions)(4));
00074
00075 this.lbIngre = new Gtk.Label();
00076 this.lbIngre.Name = "lbIngre";
00077 this.lbIngre.Xalign = 0F;
00078 this.lbIngre.LabelProp = Mono.Unix.Catalog.GetString("<b>Ingredient:</b>");
00079 this.lbIngre.UseMarkup = true;
00080 this.table1.Add(this.lbIngre);
00081 Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table1[this.lbIngre]));
00082 w3.TopAttach = ((uint)(1));
00083 w3.BottomAttach = ((uint)(2));
00084 w3.XOptions = ((Gtk.AttachOptions)(4));
00085 w3.YOptions = ((Gtk.AttachOptions)(4));
00086
00087 this.lbIngredient = new Gtk.Label();
00088 this.lbIngredient.TooltipMarkup = "The ingredient this grocery represents";
00089 this.lbIngredient.Name = "lbIngredient";
00090 this.lbIngredient.Xalign = 0F;
00091 this.lbIngredient.LabelProp = Mono.Unix.Catalog.GetString("ingredient");
00092 this.table1.Add(this.lbIngredient);
00093 Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table1[this.lbIngredient]));
00094 w4.TopAttach = ((uint)(1));
00095 w4.BottomAttach = ((uint)(2));
00096 w4.LeftAttach = ((uint)(1));
00097 w4.RightAttach = ((uint)(2));
00098 w4.XOptions = ((Gtk.AttachOptions)(4));
00099 w4.YOptions = ((Gtk.AttachOptions)(4));
00100
00101 this.spinAmount = new Gtk.SpinButton(1, 100000, 50);
00102 this.spinAmount.TooltipMarkup = "The quantity currently in storage";
00103 this.spinAmount.CanFocus = true;
00104 this.spinAmount.Name = "spinAmount";
00105 this.spinAmount.Adjustment.PageIncrement = 50;
00106 this.spinAmount.Adjustment.PageSize = 50;
00107 this.spinAmount.ClimbRate = 1;
00108 this.spinAmount.Numeric = true;
00109 this.spinAmount.Value = 1;
00110 this.table1.Add(this.spinAmount);
00111 Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table1[this.spinAmount]));
00112 w5.LeftAttach = ((uint)(1));
00113 w5.RightAttach = ((uint)(2));
00114 w5.XOptions = ((Gtk.AttachOptions)(4));
00115 w5.YOptions = ((Gtk.AttachOptions)(4));
00116 this.vbox1.Add(this.table1);
00117 Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox1[this.table1]));
00118 w6.Position = 0;
00119 w6.Expand = false;
00120 w6.Fill = false;
00121
00122 this.bntIngre = new Gtk.Button();
00123 this.bntIngre.TooltipMarkup = "Select another ingredient to represent this grocery";
00124 this.bntIngre.WidthRequest = 200;
00125 this.bntIngre.CanFocus = true;
00126 this.bntIngre.Name = "bntIngre";
00127 this.bntIngre.UseUnderline = true;
00128 this.bntIngre.Label = Mono.Unix.Catalog.GetString("Change ingredient");
00129 this.vbox1.Add(this.bntIngre);
00130 Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox1[this.bntIngre]));
00131 w7.Position = 1;
00132 w7.Expand = false;
00133 w7.Fill = false;
00134
00135 this.chOpen = new Gtk.CheckButton();
00136 this.chOpen.TooltipMarkup = "Checked if this grocery has been opened";
00137 this.chOpen.CanFocus = true;
00138 this.chOpen.Name = "chOpen";
00139 this.chOpen.Label = Mono.Unix.Catalog.GetString("This has been opened");
00140 this.chOpen.Active = true;
00141 this.chOpen.DrawIndicator = true;
00142 this.chOpen.UseUnderline = true;
00143 this.vbox1.Add(this.chOpen);
00144 Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.vbox1[this.chOpen]));
00145 w8.Position = 2;
00146 w8.Expand = false;
00147 w8.Fill = false;
00148
00149 this.lbExpiration = new Gtk.Label();
00150 this.lbExpiration.Name = "lbExpiration";
00151 this.lbExpiration.Xalign = 0F;
00152 this.lbExpiration.LabelProp = Mono.Unix.Catalog.GetString("<b>Expiration Date:</b>");
00153 this.lbExpiration.UseMarkup = true;
00154 this.vbox1.Add(this.lbExpiration);
00155 Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox1[this.lbExpiration]));
00156 w9.Position = 3;
00157 w9.Expand = false;
00158 w9.Fill = false;
00159
00160 this.cal = new Gtk.Calendar();
00161 this.cal.CanFocus = true;
00162 this.cal.Name = "cal";
00163 this.cal.DisplayOptions = ((Gtk.CalendarDisplayOptions)(35));
00164 this.vbox1.Add(this.cal);
00165 Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox1[this.cal]));
00166 w10.Position = 4;
00167 w10.Expand = false;
00168 w10.Fill = false;
00169 this.hbox1.Add(this.vbox1);
00170 Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.hbox1[this.vbox1]));
00171 w11.Position = 0;
00172 w11.Expand = false;
00173 w11.Fill = false;
00174 w1.Add(this.hbox1);
00175 Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(w1[this.hbox1]));
00176 w12.Position = 0;
00177 w12.Expand = false;
00178 w12.Fill = false;
00179
00180 Gtk.HButtonBox w13 = this.ActionArea;
00181 w13.Name = "dialog1_ActionArea";
00182 w13.Spacing = 6;
00183 w13.BorderWidth = ((uint)(5));
00184 w13.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
00185
00186 this.buttonCancel = new Gtk.Button();
00187 this.buttonCancel.TooltipMarkup = "Cancel changes med to this grocery";
00188 this.buttonCancel.CanDefault = true;
00189 this.buttonCancel.CanFocus = true;
00190 this.buttonCancel.Name = "buttonCancel";
00191 this.buttonCancel.UseUnderline = true;
00192
00193 Gtk.Alignment w14 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00194
00195 Gtk.HBox w15 = new Gtk.HBox();
00196 w15.Spacing = 2;
00197
00198 Gtk.Image w16 = new Gtk.Image();
00199 w16.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-cancel", Gtk.IconSize.Menu, 16);
00200 w15.Add(w16);
00201
00202 Gtk.Label w18 = new Gtk.Label();
00203 w18.LabelProp = Mono.Unix.Catalog.GetString("Cancel");
00204 w18.UseUnderline = true;
00205 w15.Add(w18);
00206 w14.Add(w15);
00207 this.buttonCancel.Add(w14);
00208 this.AddActionWidget(this.buttonCancel, -6);
00209 Gtk.ButtonBox.ButtonBoxChild w22 = ((Gtk.ButtonBox.ButtonBoxChild)(w13[this.buttonCancel]));
00210 w22.Expand = false;
00211 w22.Fill = false;
00212
00213 this.buttonOk = new Gtk.Button();
00214 this.buttonOk.TooltipMarkup = "Save changes made to this grocery";
00215 this.buttonOk.CanDefault = true;
00216 this.buttonOk.CanFocus = true;
00217 this.buttonOk.Name = "buttonOk";
00218 this.buttonOk.UseUnderline = true;
00219
00220 Gtk.Alignment w23 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00221
00222 Gtk.HBox w24 = new Gtk.HBox();
00223 w24.Spacing = 2;
00224
00225 Gtk.Image w25 = new Gtk.Image();
00226 w25.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-apply", Gtk.IconSize.Menu, 16);
00227 w24.Add(w25);
00228
00229 Gtk.Label w27 = new Gtk.Label();
00230 w27.LabelProp = Mono.Unix.Catalog.GetString("Save");
00231 w27.UseUnderline = true;
00232 w24.Add(w27);
00233 w23.Add(w24);
00234 this.buttonOk.Add(w23);
00235 this.AddActionWidget(this.buttonOk, -5);
00236 Gtk.ButtonBox.ButtonBoxChild w31 = ((Gtk.ButtonBox.ButtonBoxChild)(w13[this.buttonOk]));
00237 w31.Position = 1;
00238 w31.Expand = false;
00239 w31.Fill = false;
00240 if ((this.Child != null)) {
00241 this.Child.ShowAll();
00242 }
00243 this.DefaultWidth = 282;
00244 this.DefaultHeight = 337;
00245 this.Show();
00246 this.bntIngre.Clicked += new System.EventHandler(this.OnBntIngreClicked);
00247 this.chOpen.Toggled += new System.EventHandler(this.OnChOpenToggled);
00248 }
00249 }
00250 }