00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 namespace Foodolini.Activities {
00012
00013
00014 public partial class DeleteDialog {
00015
00016 private Gtk.HBox hbox1;
00017
00018 private Gtk.Image image252;
00019
00020 private Gtk.Label label2;
00021
00022 private Gtk.Button buttonCancel;
00023
00024 private Gtk.Button buttonOk;
00025
00026 protected virtual void Build() {
00027 Stetic.Gui.Initialize(this);
00028
00029 this.Name = "Foodolini.Activities.DeleteDialog";
00030 this.Title = "";
00031 this.WindowPosition = ((Gtk.WindowPosition)(4));
00032
00033 Gtk.VBox w1 = this.VBox;
00034 w1.Name = "dialog1_VBox";
00035 w1.BorderWidth = ((uint)(2));
00036
00037 this.hbox1 = new Gtk.HBox();
00038 this.hbox1.Name = "hbox1";
00039 this.hbox1.Spacing = 6;
00040
00041 this.image252 = new Gtk.Image();
00042 this.image252.Name = "image252";
00043 this.image252.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-dialog-question", Gtk.IconSize.Dialog, 48);
00044 this.hbox1.Add(this.image252);
00045 Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.image252]));
00046 w2.Position = 0;
00047 w2.Fill = false;
00048
00049 this.label2 = new Gtk.Label();
00050 this.label2.Name = "label2";
00051 this.label2.LabelProp = Mono.Unix.Catalog.GetString("Do you want to delete this FoodItem ?");
00052 this.label2.Wrap = true;
00053 this.hbox1.Add(this.label2);
00054 Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.label2]));
00055 w3.Position = 1;
00056 w3.Expand = false;
00057 w1.Add(this.hbox1);
00058 Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(w1[this.hbox1]));
00059 w4.Position = 0;
00060 w4.Expand = false;
00061 w4.Fill = false;
00062
00063 Gtk.HButtonBox w5 = this.ActionArea;
00064 w5.Name = "dialog1_ActionArea";
00065 w5.Spacing = 6;
00066 w5.BorderWidth = ((uint)(5));
00067 w5.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
00068
00069 this.buttonCancel = new Gtk.Button();
00070 this.buttonCancel.CanDefault = true;
00071 this.buttonCancel.CanFocus = true;
00072 this.buttonCancel.Name = "buttonCancel";
00073 this.buttonCancel.UseUnderline = true;
00074
00075 Gtk.Alignment w6 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00076
00077 Gtk.HBox w7 = new Gtk.HBox();
00078 w7.Spacing = 2;
00079
00080 Gtk.Image w8 = new Gtk.Image();
00081 w8.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-cancel", Gtk.IconSize.Menu, 16);
00082 w7.Add(w8);
00083
00084 Gtk.Label w10 = new Gtk.Label();
00085 w10.LabelProp = Mono.Unix.Catalog.GetString("Cancel");
00086 w10.UseUnderline = true;
00087 w7.Add(w10);
00088 w6.Add(w7);
00089 this.buttonCancel.Add(w6);
00090 this.AddActionWidget(this.buttonCancel, -6);
00091 Gtk.ButtonBox.ButtonBoxChild w14 = ((Gtk.ButtonBox.ButtonBoxChild)(w5[this.buttonCancel]));
00092 w14.Expand = false;
00093 w14.Fill = false;
00094
00095 this.buttonOk = new Gtk.Button();
00096 this.buttonOk.CanDefault = true;
00097 this.buttonOk.CanFocus = true;
00098 this.buttonOk.Name = "buttonOk";
00099 this.buttonOk.UseUnderline = true;
00100
00101 Gtk.Alignment w15 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00102
00103 Gtk.HBox w16 = new Gtk.HBox();
00104 w16.Spacing = 2;
00105
00106 Gtk.Image w17 = new Gtk.Image();
00107 w17.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-delete", Gtk.IconSize.Menu, 16);
00108 w16.Add(w17);
00109
00110 Gtk.Label w19 = new Gtk.Label();
00111 w19.LabelProp = Mono.Unix.Catalog.GetString("Delete");
00112 w19.UseUnderline = true;
00113 w16.Add(w19);
00114 w15.Add(w16);
00115 this.buttonOk.Add(w15);
00116 this.AddActionWidget(this.buttonOk, -5);
00117 Gtk.ButtonBox.ButtonBoxChild w23 = ((Gtk.ButtonBox.ButtonBoxChild)(w5[this.buttonOk]));
00118 w23.Position = 1;
00119 w23.Expand = false;
00120 w23.Fill = false;
00121 if ((this.Child != null)) {
00122 this.Child.ShowAll();
00123 }
00124 this.DefaultWidth = 313;
00125 this.DefaultHeight = 119;
00126 this.Show();
00127 }
00128 }
00129 }