00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 public partial class MainWindow {
00014
00015 private Gtk.UIManager UIManager;
00016
00017 private Gtk.VBox vbox2;
00018
00019 private Gtk.HBox hbox1;
00020
00021 private Gtk.Button HomeButton;
00022
00023 private Gtk.Label label1;
00024
00025 private Gtk.ComboBox userCombobox;
00026
00027 private Gtk.Label label2;
00028
00029 private Gtk.ComboBox activityCombobox;
00030
00031 private Gtk.Fixed fixed1;
00032
00033 private Gtk.HBox hbox2;
00034
00035 private Gtk.HBox contentbox;
00036
00037 private Gtk.VBox vbox3;
00038
00039 private Gtk.Button btnShowHideShoppingList;
00040
00041 private Gtk.Table ShoppingListHandleTable;
00042
00043 private Gtk.Arrow ShoppingListArrow;
00044
00045 private Gtk.Label ShoppingListLabel;
00046
00047 private Gtk.VBox ShoppingListBox;
00048
00049 private Gtk.HButtonBox hbuttonbox1;
00050
00051 private Gtk.Statusbar statusbar2;
00052
00053 protected virtual void Build() {
00054 Stetic.Gui.Initialize(this);
00055
00056 this.UIManager = new Gtk.UIManager();
00057 Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
00058 this.UIManager.InsertActionGroup(w1, 0);
00059 this.AddAccelGroup(this.UIManager.AccelGroup);
00060 this.Name = "MainWindow";
00061 this.Title = Mono.Unix.Catalog.GetString("Foodolini");
00062 this.WindowPosition = ((Gtk.WindowPosition)(4));
00063
00064 this.vbox2 = new Gtk.VBox();
00065 this.vbox2.Name = "vbox2";
00066 this.vbox2.Spacing = 6;
00067
00068 this.hbox1 = new Gtk.HBox();
00069 this.hbox1.Name = "hbox1";
00070 this.hbox1.Spacing = 6;
00071
00072 this.HomeButton = new Gtk.Button();
00073 this.HomeButton.CanFocus = true;
00074 this.HomeButton.Name = "HomeButton";
00075 this.HomeButton.UseUnderline = true;
00076
00077 Gtk.Alignment w2 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
00078
00079 Gtk.HBox w3 = new Gtk.HBox();
00080 w3.Spacing = 2;
00081
00082 Gtk.Image w4 = new Gtk.Image();
00083 w4.Pixbuf = Gdk.Pixbuf.LoadFromResource("home.png");
00084 w3.Add(w4);
00085
00086 Gtk.Label w6 = new Gtk.Label();
00087 w6.LabelProp = Mono.Unix.Catalog.GetString("Home");
00088 w6.UseUnderline = true;
00089 w3.Add(w6);
00090 w2.Add(w3);
00091 this.HomeButton.Add(w2);
00092 this.hbox1.Add(this.HomeButton);
00093 Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hbox1[this.HomeButton]));
00094 w10.Position = 0;
00095 w10.Expand = false;
00096 w10.Fill = false;
00097
00098 this.label1 = new Gtk.Label();
00099 this.label1.Name = "label1";
00100 this.label1.LabelProp = Mono.Unix.Catalog.GetString("<b>User:</b>");
00101 this.label1.UseMarkup = true;
00102 this.hbox1.Add(this.label1);
00103 Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.hbox1[this.label1]));
00104 w11.Position = 1;
00105 w11.Expand = false;
00106 w11.Fill = false;
00107
00108 this.userCombobox = Gtk.ComboBox.NewText();
00109 this.userCombobox.Name = "userCombobox";
00110 this.hbox1.Add(this.userCombobox);
00111 Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.hbox1[this.userCombobox]));
00112 w12.Position = 2;
00113 w12.Expand = false;
00114 w12.Fill = false;
00115
00116 this.label2 = new Gtk.Label();
00117 this.label2.Name = "label2";
00118 this.label2.LabelProp = Mono.Unix.Catalog.GetString("<b>Activity:</b>");
00119 this.label2.UseMarkup = true;
00120 this.hbox1.Add(this.label2);
00121 Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.hbox1[this.label2]));
00122 w13.Position = 3;
00123 w13.Expand = false;
00124 w13.Fill = false;
00125
00126 this.activityCombobox = Gtk.ComboBox.NewText();
00127 this.activityCombobox.Name = "activityCombobox";
00128 this.hbox1.Add(this.activityCombobox);
00129 Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.hbox1[this.activityCombobox]));
00130 w14.Position = 4;
00131 w14.Expand = false;
00132 w14.Fill = false;
00133
00134 this.fixed1 = new Gtk.Fixed();
00135 this.fixed1.Name = "fixed1";
00136 this.fixed1.HasWindow = false;
00137 this.hbox1.Add(this.fixed1);
00138 Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.hbox1[this.fixed1]));
00139 w15.Position = 5;
00140 this.vbox2.Add(this.hbox1);
00141 Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox1]));
00142 w16.Position = 0;
00143 w16.Expand = false;
00144 w16.Fill = false;
00145
00146 this.hbox2 = new Gtk.HBox();
00147 this.hbox2.Name = "hbox2";
00148 this.hbox2.Spacing = 6;
00149
00150 this.contentbox = new Gtk.HBox();
00151 this.contentbox.Name = "contentbox";
00152 this.contentbox.Spacing = 6;
00153 this.hbox2.Add(this.contentbox);
00154 Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.hbox2[this.contentbox]));
00155 w17.Position = 0;
00156
00157 this.vbox3 = new Gtk.VBox();
00158 this.vbox3.Name = "vbox3";
00159 this.vbox3.Spacing = 6;
00160
00161 this.btnShowHideShoppingList = new Gtk.Button();
00162 this.btnShowHideShoppingList.CanFocus = true;
00163 this.btnShowHideShoppingList.Name = "btnShowHideShoppingList";
00164 this.btnShowHideShoppingList.FocusOnClick = false;
00165 this.btnShowHideShoppingList.Relief = ((Gtk.ReliefStyle)(1));
00166
00167 this.ShoppingListHandleTable = new Gtk.Table(((uint)(2)), ((uint)(2)), false);
00168 this.ShoppingListHandleTable.Name = "ShoppingListHandleTable";
00169
00170 this.ShoppingListArrow = new Gtk.Arrow(((Gtk.ArrowType)(1)), ((Gtk.ShadowType)(2)));
00171 this.ShoppingListArrow.Name = "ShoppingListArrow";
00172 this.ShoppingListHandleTable.Add(this.ShoppingListArrow);
00173 Gtk.Table.TableChild w18 = ((Gtk.Table.TableChild)(this.ShoppingListHandleTable[this.ShoppingListArrow]));
00174 w18.XOptions = ((Gtk.AttachOptions)(4));
00175 w18.YOptions = ((Gtk.AttachOptions)(4));
00176
00177 this.ShoppingListLabel = new Gtk.Label();
00178 this.ShoppingListLabel.Name = "ShoppingListLabel";
00179 this.ShoppingListLabel.Xalign = 0F;
00180 this.ShoppingListLabel.LabelProp = Mono.Unix.Catalog.GetString("Shopping list");
00181 this.ShoppingListLabel.UseMarkup = true;
00182 this.ShoppingListHandleTable.Add(this.ShoppingListLabel);
00183 Gtk.Table.TableChild w19 = ((Gtk.Table.TableChild)(this.ShoppingListHandleTable[this.ShoppingListLabel]));
00184 w19.LeftAttach = ((uint)(1));
00185 w19.RightAttach = ((uint)(2));
00186 w19.YOptions = ((Gtk.AttachOptions)(4));
00187 this.btnShowHideShoppingList.Add(this.ShoppingListHandleTable);
00188 this.btnShowHideShoppingList.Label = null;
00189 this.vbox3.Add(this.btnShowHideShoppingList);
00190 Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.vbox3[this.btnShowHideShoppingList]));
00191 w21.Position = 0;
00192 w21.Expand = false;
00193
00194 this.ShoppingListBox = new Gtk.VBox();
00195 this.ShoppingListBox.Name = "ShoppingListBox";
00196 this.ShoppingListBox.Spacing = 6;
00197
00198 this.hbuttonbox1 = new Gtk.HButtonBox();
00199 this.ShoppingListBox.Add(this.hbuttonbox1);
00200 Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.ShoppingListBox[this.hbuttonbox1]));
00201 w22.Position = 1;
00202 w22.Expand = false;
00203 w22.Fill = false;
00204 this.vbox3.Add(this.ShoppingListBox);
00205 Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(this.vbox3[this.ShoppingListBox]));
00206 w23.Position = 1;
00207 this.hbox2.Add(this.vbox3);
00208 Gtk.Box.BoxChild w24 = ((Gtk.Box.BoxChild)(this.hbox2[this.vbox3]));
00209 w24.Position = 1;
00210 w24.Expand = false;
00211 w24.Fill = false;
00212 this.vbox2.Add(this.hbox2);
00213 Gtk.Box.BoxChild w25 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox2]));
00214 w25.Position = 1;
00215
00216 this.statusbar2 = new Gtk.Statusbar();
00217 this.statusbar2.Name = "statusbar2";
00218 this.statusbar2.Spacing = 6;
00219 this.vbox2.Add(this.statusbar2);
00220 Gtk.Box.BoxChild w26 = ((Gtk.Box.BoxChild)(this.vbox2[this.statusbar2]));
00221 w26.Position = 2;
00222 w26.Expand = false;
00223 w26.Fill = false;
00224 this.Add(this.vbox2);
00225 if ((this.Child != null)) {
00226 this.Child.ShowAll();
00227 }
00228 this.DefaultWidth = 975;
00229 this.DefaultHeight = 719;
00230 this.Show();
00231 this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
00232 this.HomeButton.Clicked += new System.EventHandler(this.OnHomeButtonClicked);
00233 this.btnShowHideShoppingList.Clicked += new System.EventHandler(this.OnBtnShowHideShoppingListClicked);
00234 }
00235 }