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