00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 namespace Foodolini.Activities {
00012
00013
00014 public partial class ConfirmDialog {
00015
00016 private Gtk.HBox hbox1;
00017
00018 private Gtk.Image image18;
00019
00020 private Gtk.Label label2;
00021
00022 private Gtk.Button buttonCancel;
00023
00024 private Gtk.Button btDelete;
00025
00026 protected virtual void Build() {
00027 Stetic.Gui.Initialize(this);
00028
00029 this.Name = "Foodolini.Activities.ConfirmDialog";
00030 this.WindowPosition = ((Gtk.WindowPosition)(4));
00031 this.HasSeparator = false;
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.image18 = new Gtk.Image();
00042 this.image18.Name = "image18";
00043 this.image18.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-delete", Gtk.IconSize.Menu, 16);
00044 this.hbox1.Add(this.image18);
00045 Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.image18]));
00046 w2.Position = 0;
00047
00048 this.label2 = new Gtk.Label();
00049 this.label2.Name = "label2";
00050 this.label2.LabelProp = Mono.Unix.Catalog.GetString("Are you sure you want to delete?");
00051 this.hbox1.Add(this.label2);
00052 Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.label2]));
00053 w3.Position = 1;
00054 w3.Expand = false;
00055 w3.Fill = false;
00056 w1.Add(this.hbox1);
00057 Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(w1[this.hbox1]));
00058 w4.Position = 0;
00059 w4.Expand = false;
00060 w4.Fill = false;
00061
00062 Gtk.HButtonBox w5 = this.ActionArea;
00063 w5.Name = "dialog1_ActionArea";
00064 w5.Spacing = 6;
00065 w5.BorderWidth = ((uint)(5));
00066 w5.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
00067
00068 this.buttonCancel = new Gtk.Button();
00069 this.buttonCancel.CanDefault = true;
00070 this.buttonCancel.CanFocus = true;
00071 this.buttonCancel.Name = "buttonCancel";
00072 this.buttonCancel.UseStock = true;
00073 this.buttonCancel.UseUnderline = true;
00074 this.buttonCancel.Label = "gtk-cancel";
00075 this.AddActionWidget(this.buttonCancel, -6);
00076 Gtk.ButtonBox.ButtonBoxChild w6 = ((Gtk.ButtonBox.ButtonBoxChild)(w5[this.buttonCancel]));
00077 w6.Expand = false;
00078 w6.Fill = false;
00079
00080 this.btDelete = new Gtk.Button();
00081 this.btDelete.CanDefault = true;
00082 this.btDelete.CanFocus = true;
00083 this.btDelete.Name = "btDelete";
00084 this.btDelete.UseUnderline = true;
00085 this.btDelete.Label = Mono.Unix.Catalog.GetString("Delete");
00086 this.AddActionWidget(this.btDelete, -5);
00087 Gtk.ButtonBox.ButtonBoxChild w7 = ((Gtk.ButtonBox.ButtonBoxChild)(w5[this.btDelete]));
00088 w7.Position = 1;
00089 w7.Expand = false;
00090 w7.Fill = false;
00091 if ((this.Child != null)) {
00092 this.Child.ShowAll();
00093 }
00094 this.DefaultWidth = 400;
00095 this.DefaultHeight = 300;
00096 this.Show();
00097 this.btDelete.Clicked += new System.EventHandler(this.OnBtDeleteClicked);
00098 }
00099 }
00100 }