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