00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 namespace Foodolini.Activities {
00012
00013
00014 public partial class UserSelector {
00015
00016 private Gtk.VBox vbox3;
00017
00018 private Gtk.Label label4;
00019
00020 private Gtk.HBox hbox1;
00021
00022 private Gtk.VBox bxUnselected;
00023
00024 private Gtk.HBox hbox3;
00025
00026 private Gtk.Label label3;
00027
00028 private Gtk.SpinButton sbProcentageEaten;
00029
00030 private Gtk.Label label2;
00031
00032 private Gtk.Button btnAddUser;
00033
00034 private Gtk.ScrolledWindow GtkScrolledWindow1;
00035
00036 private Gtk.NodeView nvUsers;
00037
00038 private Gtk.VSeparator vseparator1;
00039
00040 private Gtk.VBox bxSelected;
00041
00042 private Gtk.HBox hbox2;
00043
00044 private Gtk.Label label5;
00045
00046 private Gtk.Button btnRemoveUser;
00047
00048 private Gtk.ScrolledWindow GtkScrolledWindow;
00049
00050 private Gtk.NodeView nvSelectedUsers;
00051
00052 private Gtk.Button buttonCancel;
00053
00054 private Gtk.Button buttonOk;
00055
00056 protected virtual void Build() {
00057 Stetic.Gui.Initialize(this);
00058
00059 this.Name = "Foodolini.Activities.UserSelector";
00060 this.Title = Mono.Unix.Catalog.GetString("Consume recipe as a food item");
00061 this.WindowPosition = ((Gtk.WindowPosition)(4));
00062
00063 Gtk.VBox w1 = this.VBox;
00064 w1.Name = "dialog1_VBox";
00065 w1.BorderWidth = ((uint)(2));
00066
00067 this.vbox3 = new Gtk.VBox();
00068 this.vbox3.Name = "vbox3";
00069 this.vbox3.Spacing = 6;
00070
00071 this.label4 = new Gtk.Label();
00072 this.label4.Name = "label4";
00073 this.label4.LabelProp = Mono.Unix.Catalog.GetString("Select the people who attended the dinner, and a percentage of how much they have eaten, from the left table");
00074 this.vbox3.Add(this.label4);
00075 Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox3[this.label4]));
00076 w2.Position = 0;
00077 w2.Expand = false;
00078 w2.Fill = false;
00079
00080 this.hbox1 = new Gtk.HBox();
00081 this.hbox1.Name = "hbox1";
00082 this.hbox1.Spacing = 6;
00083
00084 this.bxUnselected = new Gtk.VBox();
00085 this.bxUnselected.Name = "bxUnselected";
00086 this.bxUnselected.Spacing = 6;
00087
00088 this.hbox3 = new Gtk.HBox();
00089 this.hbox3.Name = "hbox3";
00090 this.hbox3.Spacing = 6;
00091
00092 this.label3 = new Gtk.Label();
00093 this.label3.Name = "label3";
00094 this.label3.LabelProp = Mono.Unix.Catalog.GetString("Percentage eaten:");
00095 this.hbox3.Add(this.label3);
00096 Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox3[this.label3]));
00097 w3.Position = 0;
00098 w3.Expand = false;
00099 w3.Fill = false;
00100
00101 this.sbProcentageEaten = new Gtk.SpinButton(0, 100, 5);
00102 this.sbProcentageEaten.CanFocus = true;
00103 this.sbProcentageEaten.Name = "sbProcentageEaten";
00104 this.sbProcentageEaten.Adjustment.PageIncrement = 10;
00105 this.sbProcentageEaten.ClimbRate = 5;
00106 this.sbProcentageEaten.Numeric = true;
00107 this.hbox3.Add(this.sbProcentageEaten);
00108 Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox3[this.sbProcentageEaten]));
00109 w4.Position = 1;
00110 w4.Expand = false;
00111 w4.Fill = false;
00112
00113 this.label2 = new Gtk.Label();
00114 this.label2.Name = "label2";
00115 this.label2.LabelProp = Mono.Unix.Catalog.GetString("%");
00116 this.hbox3.Add(this.label2);
00117 Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox3[this.label2]));
00118 w5.Position = 2;
00119 w5.Expand = false;
00120 w5.Fill = false;
00121
00122 this.btnAddUser = new Gtk.Button();
00123 this.btnAddUser.CanFocus = true;
00124 this.btnAddUser.Name = "btnAddUser";
00125 this.btnAddUser.UseUnderline = true;
00126
00127 Gtk.Alignment w6 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00128
00129 Gtk.HBox w7 = new Gtk.HBox();
00130 w7.Spacing = 2;
00131
00132 Gtk.Image w8 = new Gtk.Image();
00133 w8.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-add", Gtk.IconSize.Menu, 16);
00134 w7.Add(w8);
00135
00136 Gtk.Label w10 = new Gtk.Label();
00137 w10.LabelProp = Mono.Unix.Catalog.GetString("_Add user");
00138 w10.UseUnderline = true;
00139 w7.Add(w10);
00140 w6.Add(w7);
00141 this.btnAddUser.Add(w6);
00142 this.hbox3.Add(this.btnAddUser);
00143 Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.hbox3[this.btnAddUser]));
00144 w14.Position = 3;
00145 w14.Expand = false;
00146 w14.Fill = false;
00147 this.bxUnselected.Add(this.hbox3);
00148 Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.bxUnselected[this.hbox3]));
00149 w15.Position = 0;
00150 w15.Expand = false;
00151 w15.Fill = false;
00152
00153 this.GtkScrolledWindow1 = new Gtk.ScrolledWindow();
00154 this.GtkScrolledWindow1.Name = "GtkScrolledWindow1";
00155 this.GtkScrolledWindow1.ShadowType = ((Gtk.ShadowType)(1));
00156
00157 this.nvUsers = new Gtk.NodeView();
00158 this.nvUsers.CanFocus = true;
00159 this.nvUsers.Name = "nvUsers";
00160 this.GtkScrolledWindow1.Add(this.nvUsers);
00161 this.bxUnselected.Add(this.GtkScrolledWindow1);
00162 Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.bxUnselected[this.GtkScrolledWindow1]));
00163 w17.Position = 1;
00164 this.hbox1.Add(this.bxUnselected);
00165 Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.hbox1[this.bxUnselected]));
00166 w18.Position = 0;
00167 w18.Expand = false;
00168 w18.Fill = false;
00169
00170 this.vseparator1 = new Gtk.VSeparator();
00171 this.vseparator1.Name = "vseparator1";
00172 this.hbox1.Add(this.vseparator1);
00173 Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.hbox1[this.vseparator1]));
00174 w19.Position = 1;
00175 w19.Expand = false;
00176 w19.Fill = false;
00177
00178 this.bxSelected = new Gtk.VBox();
00179 this.bxSelected.Name = "bxSelected";
00180 this.bxSelected.Spacing = 6;
00181
00182 this.hbox2 = new Gtk.HBox();
00183 this.hbox2.Name = "hbox2";
00184 this.hbox2.Spacing = 6;
00185
00186 this.label5 = new Gtk.Label();
00187 this.label5.Name = "label5";
00188 this.hbox2.Add(this.label5);
00189 Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.hbox2[this.label5]));
00190 w20.Position = 0;
00191 w20.Expand = false;
00192
00193 this.btnRemoveUser = new Gtk.Button();
00194 this.btnRemoveUser.CanFocus = true;
00195 this.btnRemoveUser.Name = "btnRemoveUser";
00196 this.btnRemoveUser.UseUnderline = true;
00197
00198 Gtk.Alignment w21 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00199
00200 Gtk.HBox w22 = new Gtk.HBox();
00201 w22.Spacing = 2;
00202
00203 Gtk.Image w23 = new Gtk.Image();
00204 w23.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-remove", Gtk.IconSize.Menu, 16);
00205 w22.Add(w23);
00206
00207 Gtk.Label w25 = new Gtk.Label();
00208 w25.LabelProp = Mono.Unix.Catalog.GetString("_Remove user");
00209 w25.UseUnderline = true;
00210 w22.Add(w25);
00211 w21.Add(w22);
00212 this.btnRemoveUser.Add(w21);
00213 this.hbox2.Add(this.btnRemoveUser);
00214 Gtk.Box.BoxChild w29 = ((Gtk.Box.BoxChild)(this.hbox2[this.btnRemoveUser]));
00215 w29.Position = 1;
00216 w29.Expand = false;
00217 w29.Fill = false;
00218 this.bxSelected.Add(this.hbox2);
00219 Gtk.Box.BoxChild w30 = ((Gtk.Box.BoxChild)(this.bxSelected[this.hbox2]));
00220 w30.Position = 0;
00221 w30.Expand = false;
00222 w30.Fill = false;
00223
00224 this.GtkScrolledWindow = new Gtk.ScrolledWindow();
00225 this.GtkScrolledWindow.Name = "GtkScrolledWindow";
00226 this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
00227
00228 this.nvSelectedUsers = new Gtk.NodeView();
00229 this.nvSelectedUsers.CanFocus = true;
00230 this.nvSelectedUsers.Name = "nvSelectedUsers";
00231 this.GtkScrolledWindow.Add(this.nvSelectedUsers);
00232 this.bxSelected.Add(this.GtkScrolledWindow);
00233 Gtk.Box.BoxChild w32 = ((Gtk.Box.BoxChild)(this.bxSelected[this.GtkScrolledWindow]));
00234 w32.Position = 1;
00235 this.hbox1.Add(this.bxSelected);
00236 Gtk.Box.BoxChild w33 = ((Gtk.Box.BoxChild)(this.hbox1[this.bxSelected]));
00237 w33.Position = 2;
00238 this.vbox3.Add(this.hbox1);
00239 Gtk.Box.BoxChild w34 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox1]));
00240 w34.Position = 1;
00241 w1.Add(this.vbox3);
00242 Gtk.Box.BoxChild w35 = ((Gtk.Box.BoxChild)(w1[this.vbox3]));
00243 w35.Position = 0;
00244
00245 Gtk.HButtonBox w36 = this.ActionArea;
00246 w36.Name = "dialog1_ActionArea";
00247 w36.Spacing = 6;
00248 w36.BorderWidth = ((uint)(5));
00249 w36.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
00250
00251 this.buttonCancel = new Gtk.Button();
00252 this.buttonCancel.CanDefault = true;
00253 this.buttonCancel.CanFocus = true;
00254 this.buttonCancel.Name = "buttonCancel";
00255 this.buttonCancel.UseUnderline = true;
00256
00257 Gtk.Alignment w37 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00258
00259 Gtk.HBox w38 = new Gtk.HBox();
00260 w38.Spacing = 2;
00261
00262 Gtk.Image w39 = new Gtk.Image();
00263 w39.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-cancel", Gtk.IconSize.Menu, 16);
00264 w38.Add(w39);
00265
00266 Gtk.Label w41 = new Gtk.Label();
00267 w41.LabelProp = Mono.Unix.Catalog.GetString("_Cancel");
00268 w41.UseUnderline = true;
00269 w38.Add(w41);
00270 w37.Add(w38);
00271 this.buttonCancel.Add(w37);
00272 this.AddActionWidget(this.buttonCancel, -6);
00273 Gtk.ButtonBox.ButtonBoxChild w45 = ((Gtk.ButtonBox.ButtonBoxChild)(w36[this.buttonCancel]));
00274 w45.Expand = false;
00275 w45.Fill = false;
00276
00277 this.buttonOk = new Gtk.Button();
00278 this.buttonOk.CanDefault = true;
00279 this.buttonOk.CanFocus = true;
00280 this.buttonOk.Name = "buttonOk";
00281 this.buttonOk.UseUnderline = true;
00282
00283 Gtk.Alignment w46 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00284
00285 Gtk.HBox w47 = new Gtk.HBox();
00286 w47.Spacing = 2;
00287
00288 Gtk.Image w48 = new Gtk.Image();
00289 w48.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-ok", Gtk.IconSize.Menu, 16);
00290 w47.Add(w48);
00291
00292 Gtk.Label w50 = new Gtk.Label();
00293 w50.LabelProp = Mono.Unix.Catalog.GetString("_O.k.");
00294 w50.UseUnderline = true;
00295 w47.Add(w50);
00296 w46.Add(w47);
00297 this.buttonOk.Add(w46);
00298 this.AddActionWidget(this.buttonOk, -5);
00299 Gtk.ButtonBox.ButtonBoxChild w54 = ((Gtk.ButtonBox.ButtonBoxChild)(w36[this.buttonOk]));
00300 w54.Position = 1;
00301 w54.Expand = false;
00302 w54.Fill = false;
00303 if ((this.Child != null)) {
00304 this.Child.ShowAll();
00305 }
00306 this.DefaultWidth = 728;
00307 this.DefaultHeight = 300;
00308 this.Show();
00309 this.btnAddUser.Clicked += new System.EventHandler(this.OnAddUserClick);
00310 this.btnRemoveUser.Clicked += new System.EventHandler(this.OnBtnRemoveUserClicked);
00311 }
00312 }
00313 }