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