00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 namespace Foodolini.Activities.Administration {
00012
00013
00014 public partial class LoginDialog {
00015
00016 private Gtk.VBox vbox4;
00017
00018 private Gtk.HBox hbox1;
00019
00020 private Gtk.Image image31;
00021
00022 private Gtk.Label label11;
00023
00024 private Gtk.HBox hbox2;
00025
00026 private Gtk.Label label10;
00027
00028 private Gtk.Entry passwordEntry;
00029
00030 private Gtk.Button buttonCancel;
00031
00032 private Gtk.Button buttonOk;
00033
00034 protected virtual void Build() {
00035 Stetic.Gui.Initialize(this);
00036
00037 this.Name = "Foodolini.Activities.Administration.LoginDialog";
00038 this.Title = Mono.Unix.Catalog.GetString("Administration login");
00039 this.Icon = Stetic.IconLoader.LoadIcon(this, "gtk-dialog-authentication", Gtk.IconSize.Menu, 16);
00040 this.WindowPosition = ((Gtk.WindowPosition)(4));
00041 this.Modal = true;
00042 this.Resizable = false;
00043 this.AllowGrow = false;
00044
00045 Gtk.VBox w1 = this.VBox;
00046 w1.Name = "dialog1_VBox";
00047 w1.BorderWidth = ((uint)(2));
00048
00049 this.vbox4 = new Gtk.VBox();
00050 this.vbox4.Name = "vbox4";
00051 this.vbox4.Spacing = 6;
00052
00053 this.hbox1 = new Gtk.HBox();
00054 this.hbox1.Name = "hbox1";
00055 this.hbox1.Spacing = 6;
00056
00057 this.image31 = new Gtk.Image();
00058 this.image31.Name = "image31";
00059 this.image31.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-dialog-authentication", Gtk.IconSize.Dialog, 48);
00060 this.hbox1.Add(this.image31);
00061 Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.image31]));
00062 w2.Position = 0;
00063 w2.Expand = false;
00064 w2.Fill = false;
00065
00066 this.label11 = new Gtk.Label();
00067 this.label11.Name = "label11";
00068 this.label11.LabelProp = Mono.Unix.Catalog.GetString("<span size=\"xx-large\">Authendication required!</span>");
00069 this.label11.UseMarkup = true;
00070 this.hbox1.Add(this.label11);
00071 Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.label11]));
00072 w3.Position = 1;
00073 this.vbox4.Add(this.hbox1);
00074 Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox4[this.hbox1]));
00075 w4.Position = 0;
00076 w4.Expand = false;
00077 w4.Fill = false;
00078
00079 this.hbox2 = new Gtk.HBox();
00080 this.hbox2.Name = "hbox2";
00081 this.hbox2.Spacing = 6;
00082
00083 this.label10 = new Gtk.Label();
00084 this.label10.Name = "label10";
00085 this.label10.LabelProp = Mono.Unix.Catalog.GetString("Enter password:");
00086 this.hbox2.Add(this.label10);
00087 Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox2[this.label10]));
00088 w5.Position = 0;
00089 w5.Expand = false;
00090 w5.Fill = false;
00091
00092 this.passwordEntry = new Gtk.Entry();
00093 this.passwordEntry.CanFocus = true;
00094 this.passwordEntry.Name = "passwordEntry";
00095 this.passwordEntry.IsEditable = true;
00096 this.passwordEntry.Visibility = false;
00097 this.passwordEntry.InvisibleChar = '●';
00098 this.hbox2.Add(this.passwordEntry);
00099 Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox2[this.passwordEntry]));
00100 w6.Position = 1;
00101 this.vbox4.Add(this.hbox2);
00102 Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox4[this.hbox2]));
00103 w7.Position = 1;
00104 w7.Expand = false;
00105 w7.Fill = false;
00106 w1.Add(this.vbox4);
00107 Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(w1[this.vbox4]));
00108 w8.Position = 0;
00109 w8.Expand = false;
00110 w8.Fill = false;
00111
00112 Gtk.HButtonBox w9 = this.ActionArea;
00113 w9.Name = "dialog1_ActionArea";
00114 w9.Spacing = 10;
00115 w9.BorderWidth = ((uint)(5));
00116 w9.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
00117
00118 this.buttonCancel = new Gtk.Button();
00119 this.buttonCancel.TooltipMarkup = "Cancel login";
00120 this.buttonCancel.CanDefault = true;
00121 this.buttonCancel.CanFocus = true;
00122 this.buttonCancel.Name = "buttonCancel";
00123 this.buttonCancel.UseUnderline = true;
00124
00125 Gtk.Alignment w10 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00126
00127 Gtk.HBox w11 = new Gtk.HBox();
00128 w11.Spacing = 2;
00129
00130 Gtk.Image w12 = new Gtk.Image();
00131 w12.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-cancel", Gtk.IconSize.Menu, 16);
00132 w11.Add(w12);
00133
00134 Gtk.Label w14 = new Gtk.Label();
00135 w14.LabelProp = Mono.Unix.Catalog.GetString("_Cancel");
00136 w14.UseUnderline = true;
00137 w11.Add(w14);
00138 w10.Add(w11);
00139 this.buttonCancel.Add(w10);
00140 this.AddActionWidget(this.buttonCancel, -6);
00141 Gtk.ButtonBox.ButtonBoxChild w18 = ((Gtk.ButtonBox.ButtonBoxChild)(w9[this.buttonCancel]));
00142 w18.Expand = false;
00143 w18.Fill = false;
00144
00145 this.buttonOk = new Gtk.Button();
00146 this.buttonOk.TooltipMarkup = "Log in with the entered password";
00147 this.buttonOk.CanDefault = true;
00148 this.buttonOk.CanFocus = true;
00149 this.buttonOk.Name = "buttonOk";
00150 this.buttonOk.UseUnderline = true;
00151
00152 Gtk.Alignment w19 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00153
00154 Gtk.HBox w20 = new Gtk.HBox();
00155 w20.Spacing = 2;
00156
00157 Gtk.Image w21 = new Gtk.Image();
00158 w21.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-apply", Gtk.IconSize.Menu, 16);
00159 w20.Add(w21);
00160
00161 Gtk.Label w23 = new Gtk.Label();
00162 w23.LabelProp = Mono.Unix.Catalog.GetString("_Login");
00163 w23.UseUnderline = true;
00164 w20.Add(w23);
00165 w19.Add(w20);
00166 this.buttonOk.Add(w19);
00167 this.AddActionWidget(this.buttonOk, -5);
00168 Gtk.ButtonBox.ButtonBoxChild w27 = ((Gtk.ButtonBox.ButtonBoxChild)(w9[this.buttonOk]));
00169 w27.Position = 1;
00170 w27.Expand = false;
00171 w27.Fill = false;
00172 if ((this.Child != null)) {
00173 this.Child.ShowAll();
00174 }
00175 this.DefaultWidth = 400;
00176 this.DefaultHeight = 169;
00177 this.Show();
00178 this.passwordEntry.Activated += new System.EventHandler(this.OnPasswordEntryActivated);
00179 }
00180 }
00181 }