00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 namespace Foodolini.Activities.FoodRegistration {
00012
00013
00014 public partial class SaveDialog {
00015
00016 private Gtk.HBox hbox4;
00017
00018 private Gtk.Image image32;
00019
00020 private Gtk.Label label6;
00021
00022 private Gtk.Button buttonDiscard;
00023
00024 private Gtk.Button buttonCancel;
00025
00026 private Gtk.Button buttonSave;
00027
00028 protected virtual void Build() {
00029 Stetic.Gui.Initialize(this);
00030
00031 this.Name = "Foodolini.Activities.FoodRegistration.SaveDialog";
00032 this.Title = Mono.Unix.Catalog.GetString("Save changes?");
00033 this.Icon = Stetic.IconLoader.LoadIcon(this, "gtk-dialog-question", Gtk.IconSize.Menu, 16);
00034 this.WindowPosition = ((Gtk.WindowPosition)(4));
00035 this.Modal = true;
00036 this.SkipTaskbarHint = true;
00037
00038 Gtk.VBox w1 = this.VBox;
00039 w1.Name = "dialog1_VBox";
00040 w1.BorderWidth = ((uint)(2));
00041
00042 this.hbox4 = new Gtk.HBox();
00043 this.hbox4.Name = "hbox4";
00044 this.hbox4.Spacing = 6;
00045 this.hbox4.BorderWidth = ((uint)(6));
00046
00047 this.image32 = new Gtk.Image();
00048 this.image32.Name = "image32";
00049 this.image32.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-dialog-question", Gtk.IconSize.Dialog, 48);
00050 this.hbox4.Add(this.image32);
00051 Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox4[this.image32]));
00052 w2.Position = 0;
00053 w2.Expand = false;
00054 w2.Fill = false;
00055
00056 this.label6 = new Gtk.Label();
00057 this.label6.Name = "label6";
00058 this.label6.Xalign = 0F;
00059 this.label6.LabelProp = Mono.Unix.Catalog.GetString("Do you want to save the food items you have scanned?");
00060 this.label6.Wrap = true;
00061 this.hbox4.Add(this.label6);
00062 Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox4[this.label6]));
00063 w3.Position = 1;
00064 w1.Add(this.hbox4);
00065 Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(w1[this.hbox4]));
00066 w4.Position = 0;
00067 w4.Expand = false;
00068 w4.Fill = false;
00069
00070 Gtk.HButtonBox w5 = this.ActionArea;
00071 w5.Name = "dialog1_ActionArea";
00072 w5.Spacing = 6;
00073 w5.BorderWidth = ((uint)(5));
00074 w5.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
00075
00076 this.buttonDiscard = new Gtk.Button();
00077 this.buttonDiscard.CanDefault = true;
00078 this.buttonDiscard.CanFocus = true;
00079 this.buttonDiscard.Name = "buttonDiscard";
00080 this.buttonDiscard.UseUnderline = true;
00081
00082 Gtk.Alignment w6 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00083
00084 Gtk.HBox w7 = new Gtk.HBox();
00085 w7.Spacing = 2;
00086
00087 Gtk.Image w8 = new Gtk.Image();
00088 w8.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-delete", Gtk.IconSize.Menu, 16);
00089 w7.Add(w8);
00090
00091 Gtk.Label w10 = new Gtk.Label();
00092 w10.LabelProp = Mono.Unix.Catalog.GetString("Discard");
00093 w10.UseUnderline = true;
00094 w7.Add(w10);
00095 w6.Add(w7);
00096 this.buttonDiscard.Add(w6);
00097 this.AddActionWidget(this.buttonDiscard, -2);
00098 Gtk.ButtonBox.ButtonBoxChild w14 = ((Gtk.ButtonBox.ButtonBoxChild)(w5[this.buttonDiscard]));
00099 w14.Expand = false;
00100 w14.Fill = false;
00101
00102 this.buttonCancel = new Gtk.Button();
00103 this.buttonCancel.CanDefault = true;
00104 this.buttonCancel.CanFocus = true;
00105 this.buttonCancel.Name = "buttonCancel";
00106 this.buttonCancel.UseUnderline = true;
00107
00108 Gtk.Alignment w15 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00109
00110 Gtk.HBox w16 = new Gtk.HBox();
00111 w16.Spacing = 2;
00112
00113 Gtk.Image w17 = new Gtk.Image();
00114 w17.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-cancel", Gtk.IconSize.Menu, 16);
00115 w16.Add(w17);
00116
00117 Gtk.Label w19 = new Gtk.Label();
00118 w19.LabelProp = Mono.Unix.Catalog.GetString("Cancel");
00119 w19.UseUnderline = true;
00120 w16.Add(w19);
00121 w15.Add(w16);
00122 this.buttonCancel.Add(w15);
00123 this.AddActionWidget(this.buttonCancel, -6);
00124 Gtk.ButtonBox.ButtonBoxChild w23 = ((Gtk.ButtonBox.ButtonBoxChild)(w5[this.buttonCancel]));
00125 w23.Position = 1;
00126 w23.Expand = false;
00127 w23.Fill = false;
00128
00129 this.buttonSave = new Gtk.Button();
00130 this.buttonSave.CanFocus = true;
00131 this.buttonSave.Name = "buttonSave";
00132 this.buttonSave.UseUnderline = true;
00133
00134 Gtk.Alignment w24 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00135
00136 Gtk.HBox w25 = new Gtk.HBox();
00137 w25.Spacing = 2;
00138
00139 Gtk.Image w26 = new Gtk.Image();
00140 w26.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-apply", Gtk.IconSize.Menu, 16);
00141 w25.Add(w26);
00142
00143 Gtk.Label w28 = new Gtk.Label();
00144 w28.LabelProp = Mono.Unix.Catalog.GetString("Save");
00145 w28.UseUnderline = true;
00146 w25.Add(w28);
00147 w24.Add(w25);
00148 this.buttonSave.Add(w24);
00149 this.AddActionWidget(this.buttonSave, -10);
00150 Gtk.ButtonBox.ButtonBoxChild w32 = ((Gtk.ButtonBox.ButtonBoxChild)(w5[this.buttonSave]));
00151 w32.Position = 2;
00152 w32.Expand = false;
00153 w32.Fill = false;
00154 if ((this.Child != null)) {
00155 this.Child.ShowAll();
00156 }
00157 this.DefaultWidth = 430;
00158 this.DefaultHeight = 131;
00159 this.Show();
00160 }
00161 }
00162 }