comparison gtk-gui/IBBoard.WarFoundry.GUI.GTK.ValidationFailureWidget.cs @ 142:f23e5b40ca9d

Re #344: Show unit requirement failures * Add new widget for displaying failures nicely * Use widget for displaying failures in main window * Use widget for displaying failures in new unit dialog
author IBBoard <dev@ibboard.co.uk>
date Tue, 18 Oct 2011 21:03:35 +0100
parents
children 929ef50c3919
comparison
equal deleted inserted replaced
141:1ce4fe9ae3c1 142:f23e5b40ca9d
1
2 // This file has been generated by the GUI designer. Do not modify.
3 namespace IBBoard.WarFoundry.GUI.GTK
4 {
5 public partial class ValidationFailureWidget
6 {
7 private global::Gtk.HBox hbox1;
8 private global::Gtk.Image image1;
9 private global::Gtk.ScrolledWindow scrolledwindow1;
10 private global::Gtk.Label validationMessages;
11
12 protected virtual void Build ()
13 {
14 global::Stetic.Gui.Initialize (this);
15 // Widget IBBoard.WarFoundry.GUI.GTK.ValidationFailureWidget
16 global::Stetic.BinContainer.Attach (this);
17 this.Name = "IBBoard.WarFoundry.GUI.GTK.ValidationFailureWidget";
18 // Container child IBBoard.WarFoundry.GUI.GTK.ValidationFailureWidget.Gtk.Container+ContainerChild
19 this.hbox1 = new global::Gtk.HBox ();
20 this.hbox1.Name = "hbox1";
21 this.hbox1.Spacing = 6;
22 // Container child hbox1.Gtk.Box+BoxChild
23 this.image1 = new global::Gtk.Image ();
24 this.image1.Name = "image1";
25 this.image1.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-dialog-warning", global::Gtk.IconSize.Dialog);
26 this.hbox1.Add (this.image1);
27 global::Gtk.Box.BoxChild w1 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.image1]));
28 w1.Position = 0;
29 w1.Expand = false;
30 w1.Fill = false;
31 // Container child hbox1.Gtk.Box+BoxChild
32 this.scrolledwindow1 = new global::Gtk.ScrolledWindow ();
33 this.scrolledwindow1.CanFocus = true;
34 this.scrolledwindow1.Name = "scrolledwindow1";
35 this.scrolledwindow1.HscrollbarPolicy = ((global::Gtk.PolicyType)(2));
36 this.scrolledwindow1.ShadowType = ((global::Gtk.ShadowType)(1));
37 // Container child scrolledwindow1.Gtk.Container+ContainerChild
38 global::Gtk.Viewport w2 = new global::Gtk.Viewport ();
39 w2.ShadowType = ((global::Gtk.ShadowType)(0));
40 // Container child GtkViewport.Gtk.Container+ContainerChild
41 this.validationMessages = new global::Gtk.Label ();
42 this.validationMessages.Name = "validationMessages";
43 this.validationMessages.Xalign = 0F;
44 this.validationMessages.Yalign = 0F;
45 this.validationMessages.LabelProp = global::Mono.Unix.Catalog.GetString ("Fibble");
46 this.validationMessages.Wrap = true;
47 w2.Add (this.validationMessages);
48 this.scrolledwindow1.Add (w2);
49 this.hbox1.Add (this.scrolledwindow1);
50 global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.scrolledwindow1]));
51 w5.Position = 1;
52 this.Add (this.hbox1);
53 if ((this.Child != null)) {
54 this.Child.ShowAll ();
55 }
56 this.Hide ();
57 }
58 }
59 }