changeset 40:0bd9c85d3c5d

Re #86: Complete initial GTK# UI * Add sln to make solution loading easier * Commit rebuild UI files
author IBBoard <dev@ibboard.co.uk>
date Sat, 07 Aug 2010 19:56:05 +0000
parents 146b7a893a01
children a32b6bb7f1eb
files IBBoard.WarFoundry.GUI.GTK.sln gtk-gui/IBBoard.WarFoundry.GTK.FrmMainWindow.cs gtk-gui/IBBoard.WarFoundry.GTK.FrmNewArmy.cs gtk-gui/IBBoard.WarFoundry.GTK.FrmNewUnit.cs gtk-gui/IBBoard.WarFoundry.GTK.Widgets.UnitDisplayWidget.cs gtk-gui/generated.cs
diffstat 6 files changed, 1051 insertions(+), 994 deletions(-) [+]
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/IBBoard.WarFoundry.GUI.GTK.sln	Sat Aug 07 19:56:05 2010 +0000
     1.3 @@ -0,0 +1,68 @@
     1.4 +
     1.5 +Microsoft Visual Studio Solution File, Format Version 9.00
     1.6 +# Visual Studio 2005
     1.7 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IBBoard.WarFoundry.GUI.GTK", "IBBoard.WarFoundry.GUI.GTK.csproj", "{4B435E40-7FA2-41C5-96F6-5735396D2D5F}"
     1.8 +EndProject
     1.9 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IBBoard", "..\IBBoard\IBBoard.csproj", "{5DFD64F6-FC2B-4B4F-B92E-483BAC468105}"
    1.10 +EndProject
    1.11 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IBBoard.WarFoundry.API", "..\IBBoard.WarFoundry.API\IBBoard.WarFoundry.API.csproj", "{951E6C7A-7FBA-4F68-9D9E-F48618BB9626}"
    1.12 +EndProject
    1.13 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IBBoard.GtkSharp", "..\IBBoard.GtkSharp\IBBoard.GtkSharp.csproj", "{06605A63-E433-42FE-93CF-0DA6630A7DF5}"
    1.14 +EndProject
    1.15 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IBBoard.WarFoundry.Plugin.Rollcall", "..\IBBoard.WarFoundry.Plugin.Rollcall\IBBoard.WarFoundry.Plugin.Rollcall.csproj", "{182E4A7C-7CFB-4337-A9AD-AB2DCA054A53}"
    1.16 +EndProject
    1.17 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IBBoard.Ini", "..\IBBoard.Ini\IBBoard.Ini.csproj", "{3BBDF326-7128-406C-85DF-EF049633E602}"
    1.18 +EndProject
    1.19 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IBBoard.Ini.Tests", "..\IBBoard.Ini.Tests\IBBoard.Ini.Tests.csproj", "{47FA6D87-4A97-4019-880B-CD713B8D4C15}"
    1.20 +EndProject
    1.21 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IBBoard.WarFoundry.API.Tests", "..\IBBoard.WarFoundry.API.Tests\IBBoard.WarFoundry.API.Tests.csproj", "{B20E808D-878E-4F6D-B1E3-84A9A49905CB}"
    1.22 +EndProject
    1.23 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IBBoard.Tests", "..\IBBoard.Tests\IBBoard.Tests.csproj", "{4160F7B6-4CFA-41FC-B5D7-5C9AE06FEBA7}"
    1.24 +EndProject
    1.25 +Global
    1.26 +	GlobalSection(SolutionConfigurationPlatforms) = preSolution
    1.27 +		Debug|x86 = Debug|x86
    1.28 +		Release|x86 = Release|x86
    1.29 +	EndGlobalSection
    1.30 +	GlobalSection(ProjectConfigurationPlatforms) = postSolution
    1.31 +		{06605A63-E433-42FE-93CF-0DA6630A7DF5}.Debug|x86.ActiveCfg = Debug|Any CPU
    1.32 +		{06605A63-E433-42FE-93CF-0DA6630A7DF5}.Debug|x86.Build.0 = Debug|Any CPU
    1.33 +		{06605A63-E433-42FE-93CF-0DA6630A7DF5}.Release|x86.ActiveCfg = Release|Any CPU
    1.34 +		{06605A63-E433-42FE-93CF-0DA6630A7DF5}.Release|x86.Build.0 = Release|Any CPU
    1.35 +		{182E4A7C-7CFB-4337-A9AD-AB2DCA054A53}.Debug|x86.ActiveCfg = Debug|Any CPU
    1.36 +		{182E4A7C-7CFB-4337-A9AD-AB2DCA054A53}.Debug|x86.Build.0 = Debug|Any CPU
    1.37 +		{182E4A7C-7CFB-4337-A9AD-AB2DCA054A53}.Release|x86.ActiveCfg = Release|Any CPU
    1.38 +		{182E4A7C-7CFB-4337-A9AD-AB2DCA054A53}.Release|x86.Build.0 = Release|Any CPU
    1.39 +		{3BBDF326-7128-406C-85DF-EF049633E602}.Debug|x86.ActiveCfg = Debug|Any CPU
    1.40 +		{3BBDF326-7128-406C-85DF-EF049633E602}.Debug|x86.Build.0 = Debug|Any CPU
    1.41 +		{3BBDF326-7128-406C-85DF-EF049633E602}.Release|x86.ActiveCfg = Release|Any CPU
    1.42 +		{3BBDF326-7128-406C-85DF-EF049633E602}.Release|x86.Build.0 = Release|Any CPU
    1.43 +		{4160F7B6-4CFA-41FC-B5D7-5C9AE06FEBA7}.Debug|x86.ActiveCfg = Debug|Any CPU
    1.44 +		{4160F7B6-4CFA-41FC-B5D7-5C9AE06FEBA7}.Debug|x86.Build.0 = Debug|Any CPU
    1.45 +		{4160F7B6-4CFA-41FC-B5D7-5C9AE06FEBA7}.Release|x86.ActiveCfg = Release|Any CPU
    1.46 +		{4160F7B6-4CFA-41FC-B5D7-5C9AE06FEBA7}.Release|x86.Build.0 = Release|Any CPU
    1.47 +		{47FA6D87-4A97-4019-880B-CD713B8D4C15}.Debug|x86.ActiveCfg = Debug|Any CPU
    1.48 +		{47FA6D87-4A97-4019-880B-CD713B8D4C15}.Debug|x86.Build.0 = Debug|Any CPU
    1.49 +		{47FA6D87-4A97-4019-880B-CD713B8D4C15}.Release|x86.ActiveCfg = Release|Any CPU
    1.50 +		{47FA6D87-4A97-4019-880B-CD713B8D4C15}.Release|x86.Build.0 = Release|Any CPU
    1.51 +		{4B435E40-7FA2-41C5-96F6-5735396D2D5F}.Debug|x86.ActiveCfg = Debug|Any CPU
    1.52 +		{4B435E40-7FA2-41C5-96F6-5735396D2D5F}.Debug|x86.Build.0 = Debug|Any CPU
    1.53 +		{4B435E40-7FA2-41C5-96F6-5735396D2D5F}.Release|x86.ActiveCfg = Release|Any CPU
    1.54 +		{4B435E40-7FA2-41C5-96F6-5735396D2D5F}.Release|x86.Build.0 = Release|Any CPU
    1.55 +		{5DFD64F6-FC2B-4B4F-B92E-483BAC468105}.Debug|x86.ActiveCfg = Debug|Any CPU
    1.56 +		{5DFD64F6-FC2B-4B4F-B92E-483BAC468105}.Debug|x86.Build.0 = Debug|Any CPU
    1.57 +		{5DFD64F6-FC2B-4B4F-B92E-483BAC468105}.Release|x86.ActiveCfg = Release|Any CPU
    1.58 +		{5DFD64F6-FC2B-4B4F-B92E-483BAC468105}.Release|x86.Build.0 = Release|Any CPU
    1.59 +		{951E6C7A-7FBA-4F68-9D9E-F48618BB9626}.Debug|x86.ActiveCfg = Debug|Any CPU
    1.60 +		{951E6C7A-7FBA-4F68-9D9E-F48618BB9626}.Debug|x86.Build.0 = Debug|Any CPU
    1.61 +		{951E6C7A-7FBA-4F68-9D9E-F48618BB9626}.Release|x86.ActiveCfg = Release|Any CPU
    1.62 +		{951E6C7A-7FBA-4F68-9D9E-F48618BB9626}.Release|x86.Build.0 = Release|Any CPU
    1.63 +		{B20E808D-878E-4F6D-B1E3-84A9A49905CB}.Debug|x86.ActiveCfg = Debug|Any CPU
    1.64 +		{B20E808D-878E-4F6D-B1E3-84A9A49905CB}.Debug|x86.Build.0 = Debug|Any CPU
    1.65 +		{B20E808D-878E-4F6D-B1E3-84A9A49905CB}.Release|x86.ActiveCfg = Release|Any CPU
    1.66 +		{B20E808D-878E-4F6D-B1E3-84A9A49905CB}.Release|x86.Build.0 = Release|Any CPU
    1.67 +	EndGlobalSection
    1.68 +	GlobalSection(MonoDevelopProperties) = preSolution
    1.69 +		StartupItem = IBBoard.WarFoundry.GUI.GTK.csproj
    1.70 +	EndGlobalSection
    1.71 +EndGlobal
     2.1 --- a/gtk-gui/IBBoard.WarFoundry.GTK.FrmMainWindow.cs	Sun Jan 31 20:46:06 2010 +0000
     2.2 +++ b/gtk-gui/IBBoard.WarFoundry.GTK.FrmMainWindow.cs	Sat Aug 07 19:56:05 2010 +0000
     2.3 @@ -1,240 +1,233 @@
     2.4 -// ------------------------------------------------------------------------------
     2.5 -//  <autogenerated>
     2.6 -//      This code was generated by a tool.
     2.7 -//      
     2.8 -// 
     2.9 -//      Changes to this file may cause incorrect behavior and will be lost if 
    2.10 -//      the code is regenerated.
    2.11 -//  </autogenerated>
    2.12 -// ------------------------------------------------------------------------------
    2.13  
    2.14 -namespace IBBoard.WarFoundry.GTK {
    2.15 -    
    2.16 -    
    2.17 -    public partial class FrmMainWindow {
    2.18 -        
    2.19 -        private Gtk.UIManager UIManager;
    2.20 -        
    2.21 -        private Gtk.Action menuFile;
    2.22 -        
    2.23 -        private Gtk.Action miCreateArmy;
    2.24 -        
    2.25 -        private Gtk.Action miOpenArmy;
    2.26 -        
    2.27 -        private Gtk.Action miSaveArmy;
    2.28 -        
    2.29 -        private Gtk.Action miSaveArmyAs;
    2.30 -        
    2.31 -        private Gtk.Action miCloseArmy;
    2.32 -        
    2.33 -        private Gtk.Action miReloadFiles;
    2.34 -        
    2.35 -        private Gtk.Action miExit;
    2.36 -        
    2.37 -        private Gtk.Action menuEdit;
    2.38 -        
    2.39 -        private Gtk.Action miUndo;
    2.40 -        
    2.41 -        private Gtk.Action miRedo;
    2.42 -        
    2.43 -        private Gtk.Action menuHelp;
    2.44 -        
    2.45 -        private Gtk.Action miAbout;
    2.46 -        
    2.47 -        private Gtk.Action miDebugInformation;
    2.48 -        
    2.49 -        private Gtk.Action newArmyButton;
    2.50 -        
    2.51 -        private Gtk.Action openArmyButton;
    2.52 -        
    2.53 -        private Gtk.Action saveArmyButton;
    2.54 -        
    2.55 -        private Gtk.Action undoActionButton;
    2.56 -        
    2.57 -        private Gtk.Action redoActionButton;
    2.58 -        
    2.59 -        private Gtk.Action goDown;
    2.60 -        
    2.61 -        private Gtk.Action add;
    2.62 -        
    2.63 -        private Gtk.Action miExportArmy;
    2.64 -        
    2.65 -        private Gtk.Action miExportAsBasicHtml;
    2.66 -        
    2.67 -        private Gtk.VBox vbox1;
    2.68 -        
    2.69 -        private Gtk.MenuBar menubar1;
    2.70 -        
    2.71 -        private Gtk.Toolbar toolbar;
    2.72 -        
    2.73 -        private Gtk.HPaned hpaned2;
    2.74 -        
    2.75 -        private Gtk.TreeView treeUnits;
    2.76 -        
    2.77 -        private Gtk.Notebook unitsNotebook;
    2.78 -        
    2.79 -        private Gtk.Statusbar statusbar1;
    2.80 -        
    2.81 -        protected virtual void Build() {
    2.82 -            Stetic.Gui.Initialize(this);
    2.83 -            // Widget IBBoard.WarFoundry.GTK.FrmMainWindow
    2.84 -            this.UIManager = new Gtk.UIManager();
    2.85 -            Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
    2.86 -            this.menuFile = new Gtk.Action("menuFile", Mono.Unix.Catalog.GetString("File"), null, null);
    2.87 -            this.menuFile.ShortLabel = Mono.Unix.Catalog.GetString("File");
    2.88 -            w1.Add(this.menuFile, null);
    2.89 -            this.miCreateArmy = new Gtk.Action("miCreateArmy", Mono.Unix.Catalog.GetString("Create army"), null, "gtk-new");
    2.90 -            this.miCreateArmy.ShortLabel = Mono.Unix.Catalog.GetString("Create army");
    2.91 -            w1.Add(this.miCreateArmy, null);
    2.92 -            this.miOpenArmy = new Gtk.Action("miOpenArmy", Mono.Unix.Catalog.GetString("Open army"), null, "gtk-open");
    2.93 -            this.miOpenArmy.ShortLabel = Mono.Unix.Catalog.GetString("Open army");
    2.94 -            w1.Add(this.miOpenArmy, null);
    2.95 -            this.miSaveArmy = new Gtk.Action("miSaveArmy", Mono.Unix.Catalog.GetString("Save army"), null, "gtk-save");
    2.96 -            this.miSaveArmy.Sensitive = false;
    2.97 -            this.miSaveArmy.ShortLabel = Mono.Unix.Catalog.GetString("Save army");
    2.98 -            w1.Add(this.miSaveArmy, null);
    2.99 -            this.miSaveArmyAs = new Gtk.Action("miSaveArmyAs", Mono.Unix.Catalog.GetString("Save army as"), null, "gtk-save-as");
   2.100 -            this.miSaveArmyAs.Sensitive = false;
   2.101 -            this.miSaveArmyAs.ShortLabel = Mono.Unix.Catalog.GetString("Save army as");
   2.102 -            w1.Add(this.miSaveArmyAs, null);
   2.103 -            this.miCloseArmy = new Gtk.Action("miCloseArmy", Mono.Unix.Catalog.GetString("Close army"), null, "gtk-close");
   2.104 -            this.miCloseArmy.Sensitive = false;
   2.105 -            this.miCloseArmy.ShortLabel = Mono.Unix.Catalog.GetString("Close army");
   2.106 -            w1.Add(this.miCloseArmy, null);
   2.107 -            this.miReloadFiles = new Gtk.Action("miReloadFiles", Mono.Unix.Catalog.GetString("Reload files"), null, "gtk-refresh");
   2.108 -            this.miReloadFiles.Sensitive = false;
   2.109 -            this.miReloadFiles.ShortLabel = Mono.Unix.Catalog.GetString("Reload files");
   2.110 -            w1.Add(this.miReloadFiles, null);
   2.111 -            this.miExit = new Gtk.Action("miExit", Mono.Unix.Catalog.GetString("Exit"), null, "gtk-quit");
   2.112 -            this.miExit.ShortLabel = Mono.Unix.Catalog.GetString("Exit");
   2.113 -            w1.Add(this.miExit, null);
   2.114 -            this.menuEdit = new Gtk.Action("menuEdit", Mono.Unix.Catalog.GetString("Edit"), null, null);
   2.115 -            this.menuEdit.ShortLabel = Mono.Unix.Catalog.GetString("Edit");
   2.116 -            w1.Add(this.menuEdit, null);
   2.117 -            this.miUndo = new Gtk.Action("miUndo", Mono.Unix.Catalog.GetString("Undo"), null, "gtk-undo");
   2.118 -            this.miUndo.Sensitive = false;
   2.119 -            this.miUndo.ShortLabel = Mono.Unix.Catalog.GetString("Undo");
   2.120 -            w1.Add(this.miUndo, null);
   2.121 -            this.miRedo = new Gtk.Action("miRedo", Mono.Unix.Catalog.GetString("Redo"), null, "gtk-redo");
   2.122 -            this.miRedo.Sensitive = false;
   2.123 -            this.miRedo.ShortLabel = Mono.Unix.Catalog.GetString("Redo");
   2.124 -            w1.Add(this.miRedo, null);
   2.125 -            this.menuHelp = new Gtk.Action("menuHelp", Mono.Unix.Catalog.GetString("Help"), null, null);
   2.126 -            this.menuHelp.ShortLabel = Mono.Unix.Catalog.GetString("Help");
   2.127 -            w1.Add(this.menuHelp, null);
   2.128 -            this.miAbout = new Gtk.Action("miAbout", Mono.Unix.Catalog.GetString("About"), null, "gtk-about");
   2.129 -            this.miAbout.ShortLabel = Mono.Unix.Catalog.GetString("About");
   2.130 -            w1.Add(this.miAbout, null);
   2.131 -            this.miDebugInformation = new Gtk.Action("miDebugInformation", Mono.Unix.Catalog.GetString("Debug Information"), null, null);
   2.132 -            this.miDebugInformation.ShortLabel = Mono.Unix.Catalog.GetString("Debug Information");
   2.133 -            w1.Add(this.miDebugInformation, null);
   2.134 -            this.newArmyButton = new Gtk.Action("newArmyButton", null, null, "gtk-new");
   2.135 -            w1.Add(this.newArmyButton, null);
   2.136 -            this.openArmyButton = new Gtk.Action("openArmyButton", null, null, "gtk-open");
   2.137 -            w1.Add(this.openArmyButton, null);
   2.138 -            this.saveArmyButton = new Gtk.Action("saveArmyButton", null, null, "gtk-save");
   2.139 -            this.saveArmyButton.Sensitive = false;
   2.140 -            w1.Add(this.saveArmyButton, null);
   2.141 -            this.undoActionButton = new Gtk.Action("undoActionButton", null, null, "gtk-undo");
   2.142 -            this.undoActionButton.Sensitive = false;
   2.143 -            w1.Add(this.undoActionButton, null);
   2.144 -            this.redoActionButton = new Gtk.Action("redoActionButton", null, null, "gtk-redo");
   2.145 -            this.redoActionButton.Sensitive = false;
   2.146 -            w1.Add(this.redoActionButton, null);
   2.147 -            this.goDown = new Gtk.Action("goDown", null, null, null);
   2.148 -            w1.Add(this.goDown, null);
   2.149 -            this.add = new Gtk.Action("add", null, null, "gtk-add");
   2.150 -            w1.Add(this.add, null);
   2.151 -            this.miExportArmy = new Gtk.Action("miExportArmy", Mono.Unix.Catalog.GetString("Export army as..."), null, "gtk-convert");
   2.152 -            this.miExportArmy.Sensitive = false;
   2.153 -            this.miExportArmy.ShortLabel = Mono.Unix.Catalog.GetString("Export army");
   2.154 -            w1.Add(this.miExportArmy, null);
   2.155 -            this.miExportAsBasicHtml = new Gtk.Action("miExportAsBasicHtml", Mono.Unix.Catalog.GetString("Basic HTML"), null, null);
   2.156 -            this.miExportAsBasicHtml.ShortLabel = Mono.Unix.Catalog.GetString("Basic HTML");
   2.157 -            w1.Add(this.miExportAsBasicHtml, null);
   2.158 -            this.UIManager.InsertActionGroup(w1, 0);
   2.159 -            this.AddAccelGroup(this.UIManager.AccelGroup);
   2.160 -            this.Name = "IBBoard.WarFoundry.GTK.FrmMainWindow";
   2.161 -            this.Title = Mono.Unix.Catalog.GetString("MainWindow");
   2.162 -            this.Icon = Gdk.Pixbuf.LoadFromResource("App.ico");
   2.163 -            // Container child IBBoard.WarFoundry.GTK.FrmMainWindow.Gtk.Container+ContainerChild
   2.164 -            this.vbox1 = new Gtk.VBox();
   2.165 -            this.vbox1.Name = "vbox1";
   2.166 -            // Container child vbox1.Gtk.Box+BoxChild
   2.167 -            this.UIManager.AddUiFromString("<ui><menubar name='menubar1'><menu name='menuFile' action='menuFile'><menuitem name='miCreateArmy' action='miCreateArmy'/><menuitem name='miOpenArmy' action='miOpenArmy'/><menuitem name='miSaveArmy' action='miSaveArmy'/><menuitem name='miSaveArmyAs' action='miSaveArmyAs'/><menu name='miExportArmy' action='miExportArmy'><menuitem name='miExportAsBasicHtml' action='miExportAsBasicHtml'/></menu><menuitem name='miCloseArmy' action='miCloseArmy'/><separator/><menuitem name='miReloadFiles' action='miReloadFiles'/><separator/><menuitem name='miExit' action='miExit'/></menu><menu name='menuEdit' action='menuEdit'><menuitem name='miUndo' action='miUndo'/><menuitem name='miRedo' action='miRedo'/></menu><menu name='menuHelp' action='menuHelp'><menuitem name='miAbout' action='miAbout'/><menuitem name='miDebugInformation' action='miDebugInformation'/></menu></menubar></ui>");
   2.168 -            this.menubar1 = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar1")));
   2.169 -            this.menubar1.Name = "menubar1";
   2.170 -            this.vbox1.Add(this.menubar1);
   2.171 -            Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar1]));
   2.172 -            w2.Position = 0;
   2.173 -            w2.Expand = false;
   2.174 -            w2.Fill = false;
   2.175 -            // Container child vbox1.Gtk.Box+BoxChild
   2.176 -            this.UIManager.AddUiFromString("<ui><toolbar name='toolbar'><toolitem name='newArmyButton' action='newArmyButton'/><toolitem name='openArmyButton' action='openArmyButton'/><toolitem name='saveArmyButton' action='saveArmyButton'/><separator/><toolitem name='undoActionButton' action='undoActionButton'/><toolitem name='redoActionButton' action='redoActionButton'/><separator/></toolbar></ui>");
   2.177 -            this.toolbar = ((Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar")));
   2.178 -            this.toolbar.HeightRequest = 36;
   2.179 -            this.toolbar.Name = "toolbar";
   2.180 -            this.toolbar.ShowArrow = false;
   2.181 -            this.toolbar.ToolbarStyle = ((Gtk.ToolbarStyle)(0));
   2.182 -            this.toolbar.IconSize = ((Gtk.IconSize)(3));
   2.183 -            this.vbox1.Add(this.toolbar);
   2.184 -            Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.toolbar]));
   2.185 -            w3.Position = 1;
   2.186 -            w3.Expand = false;
   2.187 -            w3.Fill = false;
   2.188 -            // Container child vbox1.Gtk.Box+BoxChild
   2.189 -            this.hpaned2 = new Gtk.HPaned();
   2.190 -            this.hpaned2.CanFocus = true;
   2.191 -            this.hpaned2.Name = "hpaned2";
   2.192 -            this.hpaned2.Position = 178;
   2.193 -            // Container child hpaned2.Gtk.Paned+PanedChild
   2.194 -            this.treeUnits = new Gtk.TreeView();
   2.195 -            this.treeUnits.CanFocus = true;
   2.196 -            this.treeUnits.Name = "treeUnits";
   2.197 -            this.hpaned2.Add(this.treeUnits);
   2.198 -            Gtk.Paned.PanedChild w4 = ((Gtk.Paned.PanedChild)(this.hpaned2[this.treeUnits]));
   2.199 -            w4.Resize = false;
   2.200 -            // Container child hpaned2.Gtk.Paned+PanedChild
   2.201 -            this.unitsNotebook = new Gtk.Notebook();
   2.202 -            this.unitsNotebook.CanFocus = true;
   2.203 -            this.unitsNotebook.Name = "unitsNotebook";
   2.204 -            this.unitsNotebook.CurrentPage = -1;
   2.205 -            this.hpaned2.Add(this.unitsNotebook);
   2.206 -            this.vbox1.Add(this.hpaned2);
   2.207 -            Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox1[this.hpaned2]));
   2.208 -            w6.Position = 2;
   2.209 -            // Container child vbox1.Gtk.Box+BoxChild
   2.210 -            this.statusbar1 = new Gtk.Statusbar();
   2.211 -            this.statusbar1.Name = "statusbar1";
   2.212 -            this.statusbar1.Spacing = 2;
   2.213 -            this.vbox1.Add(this.statusbar1);
   2.214 -            Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox1[this.statusbar1]));
   2.215 -            w7.Position = 3;
   2.216 -            w7.Expand = false;
   2.217 -            w7.Fill = false;
   2.218 -            this.Add(this.vbox1);
   2.219 -            if ((this.Child != null)) {
   2.220 -                this.Child.ShowAll();
   2.221 -            }
   2.222 -            this.DefaultWidth = 832;
   2.223 -            this.DefaultHeight = 659;
   2.224 -            this.Show();
   2.225 -            this.miCreateArmy.Activated += new System.EventHandler(this.OnCreateArmyActivated);
   2.226 -            this.miOpenArmy.Activated += new System.EventHandler(this.OnOpenArmyActivated);
   2.227 -            this.miSaveArmy.Activated += new System.EventHandler(this.OnSaveArmyActivated);
   2.228 -            this.miSaveArmyAs.Activated += new System.EventHandler(this.OnSaveArmyAsActivated);
   2.229 -            this.miCloseArmy.Activated += new System.EventHandler(this.OnCloseArmyActivated);
   2.230 -            this.miReloadFiles.Activated += new System.EventHandler(this.OnReloadFilesActivated);
   2.231 -            this.miExit.Activated += new System.EventHandler(this.OnExitActivated);
   2.232 -            this.newArmyButton.Activated += new System.EventHandler(this.newTBButtonActivated);
   2.233 -            this.openArmyButton.Activated += new System.EventHandler(this.openTBButtonActivated);
   2.234 -            this.saveArmyButton.Activated += new System.EventHandler(this.saveTBButtonActivated);
   2.235 -            this.undoActionButton.Activated += new System.EventHandler(this.undoTBButtonActivated);
   2.236 -            this.redoActionButton.Activated += new System.EventHandler(this.redoTBButtonActivated);
   2.237 -            this.miExportAsBasicHtml.Activated += new System.EventHandler(this.OnMiExportAsBasicHtmlActivated);
   2.238 -            this.treeUnits.RowActivated += new Gtk.RowActivatedHandler(this.ArmyRowActivated);
   2.239 -            this.treeUnits.PopupMenu += new Gtk.PopupMenuHandler(this.OnTreeUnitsPopupMenu);
   2.240 -            this.treeUnits.ButtonPressEvent += new Gtk.ButtonPressEventHandler(this.UnitTreeButtonPressed);
   2.241 -        }
   2.242 -    }
   2.243 +// This file has been generated by the GUI designer. Do not modify.
   2.244 +namespace IBBoard.WarFoundry.GTK
   2.245 +{
   2.246 +	public partial class FrmMainWindow
   2.247 +	{
   2.248 +		private global::Gtk.UIManager UIManager;
   2.249 +
   2.250 +		private global::Gtk.Action menuFile;
   2.251 +
   2.252 +		private global::Gtk.Action miCreateArmy;
   2.253 +
   2.254 +		private global::Gtk.Action miOpenArmy;
   2.255 +
   2.256 +		private global::Gtk.Action miSaveArmy;
   2.257 +
   2.258 +		private global::Gtk.Action miSaveArmyAs;
   2.259 +
   2.260 +		private global::Gtk.Action miCloseArmy;
   2.261 +
   2.262 +		private global::Gtk.Action miReloadFiles;
   2.263 +
   2.264 +		private global::Gtk.Action miExit;
   2.265 +
   2.266 +		private global::Gtk.Action menuEdit;
   2.267 +
   2.268 +		private global::Gtk.Action miUndo;
   2.269 +
   2.270 +		private global::Gtk.Action miRedo;
   2.271 +
   2.272 +		private global::Gtk.Action menuHelp;
   2.273 +
   2.274 +		private global::Gtk.Action miAbout;
   2.275 +
   2.276 +		private global::Gtk.Action miDebugInformation;
   2.277 +
   2.278 +		private global::Gtk.Action newArmyButton;
   2.279 +
   2.280 +		private global::Gtk.Action openArmyButton;
   2.281 +
   2.282 +		private global::Gtk.Action saveArmyButton;
   2.283 +
   2.284 +		private global::Gtk.Action undoActionButton;
   2.285 +
   2.286 +		private global::Gtk.Action redoActionButton;
   2.287 +
   2.288 +		private global::Gtk.Action goDown;
   2.289 +
   2.290 +		private global::Gtk.Action @add;
   2.291 +
   2.292 +		private global::Gtk.Action miExportArmy;
   2.293 +
   2.294 +		private global::Gtk.Action miExportAsBasicHtml;
   2.295 +
   2.296 +		private global::Gtk.VBox vbox1;
   2.297 +
   2.298 +		private global::Gtk.MenuBar menubar1;
   2.299 +
   2.300 +		private global::Gtk.Toolbar toolbar;
   2.301 +
   2.302 +		private global::Gtk.HPaned hpaned2;
   2.303 +
   2.304 +		private global::Gtk.TreeView treeUnits;
   2.305 +
   2.306 +		private global::Gtk.Notebook unitsNotebook;
   2.307 +
   2.308 +		private global::Gtk.Statusbar statusbar1;
   2.309 +
   2.310 +		protected virtual void Build()
   2.311 +		{
   2.312 +			global::Stetic.Gui.Initialize(this);
   2.313 +			// Widget IBBoard.WarFoundry.GTK.FrmMainWindow
   2.314 +			this.UIManager = new global::Gtk.UIManager();
   2.315 +			global::Gtk.ActionGroup w1 = new global::Gtk.ActionGroup("Default");
   2.316 +			this.menuFile = new global::Gtk.Action("menuFile", global::Mono.Unix.Catalog.GetString("File"), null, null);
   2.317 +			this.menuFile.ShortLabel = global::Mono.Unix.Catalog.GetString("File");
   2.318 +			w1.Add(this.menuFile, null);
   2.319 +			this.miCreateArmy = new global::Gtk.Action("miCreateArmy", global::Mono.Unix.Catalog.GetString("Create army"), null, "gtk-new");
   2.320 +			this.miCreateArmy.ShortLabel = global::Mono.Unix.Catalog.GetString("Create army");
   2.321 +			w1.Add(this.miCreateArmy, null);
   2.322 +			this.miOpenArmy = new global::Gtk.Action("miOpenArmy", global::Mono.Unix.Catalog.GetString("Open army"), null, "gtk-open");
   2.323 +			this.miOpenArmy.ShortLabel = global::Mono.Unix.Catalog.GetString("Open army");
   2.324 +			w1.Add(this.miOpenArmy, null);
   2.325 +			this.miSaveArmy = new global::Gtk.Action("miSaveArmy", global::Mono.Unix.Catalog.GetString("Save army"), null, "gtk-save");
   2.326 +			this.miSaveArmy.Sensitive = false;
   2.327 +			this.miSaveArmy.ShortLabel = global::Mono.Unix.Catalog.GetString("Save army");
   2.328 +			w1.Add(this.miSaveArmy, null);
   2.329 +			this.miSaveArmyAs = new global::Gtk.Action("miSaveArmyAs", global::Mono.Unix.Catalog.GetString("Save army as"), null, "gtk-save-as");
   2.330 +			this.miSaveArmyAs.Sensitive = false;
   2.331 +			this.miSaveArmyAs.ShortLabel = global::Mono.Unix.Catalog.GetString("Save army as");
   2.332 +			w1.Add(this.miSaveArmyAs, null);
   2.333 +			this.miCloseArmy = new global::Gtk.Action("miCloseArmy", global::Mono.Unix.Catalog.GetString("Close army"), null, "gtk-close");
   2.334 +			this.miCloseArmy.Sensitive = false;
   2.335 +			this.miCloseArmy.ShortLabel = global::Mono.Unix.Catalog.GetString("Close army");
   2.336 +			w1.Add(this.miCloseArmy, null);
   2.337 +			this.miReloadFiles = new global::Gtk.Action("miReloadFiles", global::Mono.Unix.Catalog.GetString("Reload files"), null, "gtk-refresh");
   2.338 +			this.miReloadFiles.Sensitive = false;
   2.339 +			this.miReloadFiles.ShortLabel = global::Mono.Unix.Catalog.GetString("Reload files");
   2.340 +			w1.Add(this.miReloadFiles, null);
   2.341 +			this.miExit = new global::Gtk.Action("miExit", global::Mono.Unix.Catalog.GetString("Exit"), null, "gtk-quit");
   2.342 +			this.miExit.ShortLabel = global::Mono.Unix.Catalog.GetString("Exit");
   2.343 +			w1.Add(this.miExit, null);
   2.344 +			this.menuEdit = new global::Gtk.Action("menuEdit", global::Mono.Unix.Catalog.GetString("Edit"), null, null);
   2.345 +			this.menuEdit.ShortLabel = global::Mono.Unix.Catalog.GetString("Edit");
   2.346 +			w1.Add(this.menuEdit, null);
   2.347 +			this.miUndo = new global::Gtk.Action("miUndo", global::Mono.Unix.Catalog.GetString("Undo"), null, "gtk-undo");
   2.348 +			this.miUndo.Sensitive = false;
   2.349 +			this.miUndo.ShortLabel = global::Mono.Unix.Catalog.GetString("Undo");
   2.350 +			w1.Add(this.miUndo, null);
   2.351 +			this.miRedo = new global::Gtk.Action("miRedo", global::Mono.Unix.Catalog.GetString("Redo"), null, "gtk-redo");
   2.352 +			this.miRedo.Sensitive = false;
   2.353 +			this.miRedo.ShortLabel = global::Mono.Unix.Catalog.GetString("Redo");
   2.354 +			w1.Add(this.miRedo, null);
   2.355 +			this.menuHelp = new global::Gtk.Action("menuHelp", global::Mono.Unix.Catalog.GetString("Help"), null, null);
   2.356 +			this.menuHelp.ShortLabel = global::Mono.Unix.Catalog.GetString("Help");
   2.357 +			w1.Add(this.menuHelp, null);
   2.358 +			this.miAbout = new global::Gtk.Action("miAbout", global::Mono.Unix.Catalog.GetString("About"), null, "gtk-about");
   2.359 +			this.miAbout.ShortLabel = global::Mono.Unix.Catalog.GetString("About");
   2.360 +			w1.Add(this.miAbout, null);
   2.361 +			this.miDebugInformation = new global::Gtk.Action("miDebugInformation", global::Mono.Unix.Catalog.GetString("Debug Information"), null, null);
   2.362 +			this.miDebugInformation.ShortLabel = global::Mono.Unix.Catalog.GetString("Debug Information");
   2.363 +			w1.Add(this.miDebugInformation, null);
   2.364 +			this.newArmyButton = new global::Gtk.Action("newArmyButton", null, null, "gtk-new");
   2.365 +			w1.Add(this.newArmyButton, null);
   2.366 +			this.openArmyButton = new global::Gtk.Action("openArmyButton", null, null, "gtk-open");
   2.367 +			w1.Add(this.openArmyButton, null);
   2.368 +			this.saveArmyButton = new global::Gtk.Action("saveArmyButton", null, null, "gtk-save");
   2.369 +			this.saveArmyButton.Sensitive = false;
   2.370 +			w1.Add(this.saveArmyButton, null);
   2.371 +			this.undoActionButton = new global::Gtk.Action("undoActionButton", null, null, "gtk-undo");
   2.372 +			this.undoActionButton.Sensitive = false;
   2.373 +			w1.Add(this.undoActionButton, null);
   2.374 +			this.redoActionButton = new global::Gtk.Action("redoActionButton", null, null, "gtk-redo");
   2.375 +			this.redoActionButton.Sensitive = false;
   2.376 +			w1.Add(this.redoActionButton, null);
   2.377 +			this.goDown = new global::Gtk.Action("goDown", null, null, null);
   2.378 +			w1.Add(this.goDown, null);
   2.379 +			this.@add = new global::Gtk.Action("add", null, null, "gtk-add");
   2.380 +			w1.Add(this.@add, null);
   2.381 +			this.miExportArmy = new global::Gtk.Action("miExportArmy", global::Mono.Unix.Catalog.GetString("Export army as..."), null, "gtk-convert");
   2.382 +			this.miExportArmy.Sensitive = false;
   2.383 +			this.miExportArmy.ShortLabel = global::Mono.Unix.Catalog.GetString("Export army");
   2.384 +			w1.Add(this.miExportArmy, null);
   2.385 +			this.miExportAsBasicHtml = new global::Gtk.Action("miExportAsBasicHtml", global::Mono.Unix.Catalog.GetString("Basic HTML"), null, null);
   2.386 +			this.miExportAsBasicHtml.ShortLabel = global::Mono.Unix.Catalog.GetString("Basic HTML");
   2.387 +			w1.Add(this.miExportAsBasicHtml, null);
   2.388 +			this.UIManager.InsertActionGroup(w1, 0);
   2.389 +			this.AddAccelGroup(this.UIManager.AccelGroup);
   2.390 +			this.Name = "IBBoard.WarFoundry.GTK.FrmMainWindow";
   2.391 +			this.Title = global::Mono.Unix.Catalog.GetString("MainWindow");
   2.392 +			this.Icon = global::Gdk.Pixbuf.LoadFromResource("App.ico");
   2.393 +			// Container child IBBoard.WarFoundry.GTK.FrmMainWindow.Gtk.Container+ContainerChild
   2.394 +			this.vbox1 = new global::Gtk.VBox();
   2.395 +			this.vbox1.Name = "vbox1";
   2.396 +			// Container child vbox1.Gtk.Box+BoxChild
   2.397 +			this.UIManager.AddUiFromString("<ui><menubar name='menubar1'><menu name='menuFile' action='menuFile'><menuitem name='miCreateArmy' action='miCreateArmy'/><menuitem name='miOpenArmy' action='miOpenArmy'/><menuitem name='miSaveArmy' action='miSaveArmy'/><menuitem name='miSaveArmyAs' action='miSaveArmyAs'/><menu name='miExportArmy' action='miExportArmy'><menuitem name='miExportAsBasicHtml' action='miExportAsBasicHtml'/></menu><menuitem name='miCloseArmy' action='miCloseArmy'/><separator/><menuitem name='miReloadFiles' action='miReloadFiles'/><separator/><menuitem name='miExit' action='miExit'/></menu><menu name='menuEdit' action='menuEdit'><menuitem name='miUndo' action='miUndo'/><menuitem name='miRedo' action='miRedo'/></menu><menu name='menuHelp' action='menuHelp'><menuitem name='miAbout' action='miAbout'/><menuitem name='miDebugInformation' action='miDebugInformation'/></menu></menubar></ui>");
   2.398 +			this.menubar1 = ((global::Gtk.MenuBar)(this.UIManager.GetWidget("/menubar1")));
   2.399 +			this.menubar1.Name = "menubar1";
   2.400 +			this.vbox1.Add(this.menubar1);
   2.401 +			global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.menubar1]));
   2.402 +			w2.Position = 0;
   2.403 +			w2.Expand = false;
   2.404 +			w2.Fill = false;
   2.405 +			// Container child vbox1.Gtk.Box+BoxChild
   2.406 +			this.UIManager.AddUiFromString("<ui><toolbar name='toolbar'><toolitem name='newArmyButton' action='newArmyButton'/><toolitem name='openArmyButton' action='openArmyButton'/><toolitem name='saveArmyButton' action='saveArmyButton'/><separator/><toolitem name='undoActionButton' action='undoActionButton'/><toolitem name='redoActionButton' action='redoActionButton'/><separator/></toolbar></ui>");
   2.407 +			this.toolbar = ((global::Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar")));
   2.408 +			this.toolbar.HeightRequest = 36;
   2.409 +			this.toolbar.Name = "toolbar";
   2.410 +			this.toolbar.ShowArrow = false;
   2.411 +			this.toolbar.ToolbarStyle = ((global::Gtk.ToolbarStyle)(0));
   2.412 +			this.toolbar.IconSize = ((global::Gtk.IconSize)(3));
   2.413 +			this.vbox1.Add(this.toolbar);
   2.414 +			global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.toolbar]));
   2.415 +			w3.Position = 1;
   2.416 +			w3.Expand = false;
   2.417 +			w3.Fill = false;
   2.418 +			// Container child vbox1.Gtk.Box+BoxChild
   2.419 +			this.hpaned2 = new global::Gtk.HPaned();
   2.420 +			this.hpaned2.CanFocus = true;
   2.421 +			this.hpaned2.Name = "hpaned2";
   2.422 +			this.hpaned2.Position = 178;
   2.423 +			// Container child hpaned2.Gtk.Paned+PanedChild
   2.424 +			this.treeUnits = new global::Gtk.TreeView();
   2.425 +			this.treeUnits.CanFocus = true;
   2.426 +			this.treeUnits.Name = "treeUnits";
   2.427 +			this.hpaned2.Add(this.treeUnits);
   2.428 +			global::Gtk.Paned.PanedChild w4 = ((global::Gtk.Paned.PanedChild)(this.hpaned2[this.treeUnits]));
   2.429 +			w4.Resize = false;
   2.430 +			// Container child hpaned2.Gtk.Paned+PanedChild
   2.431 +			this.unitsNotebook = new global::Gtk.Notebook();
   2.432 +			this.unitsNotebook.CanFocus = true;
   2.433 +			this.unitsNotebook.Name = "unitsNotebook";
   2.434 +			this.unitsNotebook.CurrentPage = -1;
   2.435 +			this.hpaned2.Add(this.unitsNotebook);
   2.436 +			this.vbox1.Add(this.hpaned2);
   2.437 +			global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.hpaned2]));
   2.438 +			w6.Position = 2;
   2.439 +			// Container child vbox1.Gtk.Box+BoxChild
   2.440 +			this.statusbar1 = new global::Gtk.Statusbar();
   2.441 +			this.statusbar1.Name = "statusbar1";
   2.442 +			this.statusbar1.Spacing = 2;
   2.443 +			this.vbox1.Add(this.statusbar1);
   2.444 +			global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.statusbar1]));
   2.445 +			w7.Position = 3;
   2.446 +			w7.Expand = false;
   2.447 +			w7.Fill = false;
   2.448 +			this.Add(this.vbox1);
   2.449 +			if ((this.Child != null))
   2.450 +			{
   2.451 +				this.Child.ShowAll();
   2.452 +			}
   2.453 +			this.DefaultWidth = 832;
   2.454 +			this.DefaultHeight = 659;
   2.455 +			this.Show();
   2.456 +			this.miCreateArmy.Activated += new global::System.EventHandler(this.OnCreateArmyActivated);
   2.457 +			this.miOpenArmy.Activated += new global::System.EventHandler(this.OnOpenArmyActivated);
   2.458 +			this.miSaveArmy.Activated += new global::System.EventHandler(this.OnSaveArmyActivated);
   2.459 +			this.miSaveArmyAs.Activated += new global::System.EventHandler(this.OnSaveArmyAsActivated);
   2.460 +			this.miCloseArmy.Activated += new global::System.EventHandler(this.OnCloseArmyActivated);
   2.461 +			this.miReloadFiles.Activated += new global::System.EventHandler(this.OnReloadFilesActivated);
   2.462 +			this.miExit.Activated += new global::System.EventHandler(this.OnExitActivated);
   2.463 +			this.newArmyButton.Activated += new global::System.EventHandler(this.newTBButtonActivated);
   2.464 +			this.openArmyButton.Activated += new global::System.EventHandler(this.openTBButtonActivated);
   2.465 +			this.saveArmyButton.Activated += new global::System.EventHandler(this.saveTBButtonActivated);
   2.466 +			this.undoActionButton.Activated += new global::System.EventHandler(this.undoTBButtonActivated);
   2.467 +			this.redoActionButton.Activated += new global::System.EventHandler(this.redoTBButtonActivated);
   2.468 +			this.miExportAsBasicHtml.Activated += new global::System.EventHandler(this.OnMiExportAsBasicHtmlActivated);
   2.469 +			this.treeUnits.RowActivated += new global::Gtk.RowActivatedHandler(this.ArmyRowActivated);
   2.470 +			this.treeUnits.PopupMenu += new global::Gtk.PopupMenuHandler(this.OnTreeUnitsPopupMenu);
   2.471 +			this.treeUnits.ButtonPressEvent += new global::Gtk.ButtonPressEventHandler(this.UnitTreeButtonPressed);
   2.472 +		}
   2.473 +	}
   2.474  }
     3.1 --- a/gtk-gui/IBBoard.WarFoundry.GTK.FrmNewArmy.cs	Sun Jan 31 20:46:06 2010 +0000
     3.2 +++ b/gtk-gui/IBBoard.WarFoundry.GTK.FrmNewArmy.cs	Sat Aug 07 19:56:05 2010 +0000
     3.3 @@ -1,236 +1,229 @@
     3.4 -// ------------------------------------------------------------------------------
     3.5 -//  <autogenerated>
     3.6 -//      This code was generated by a tool.
     3.7 -//      
     3.8 -// 
     3.9 -//      Changes to this file may cause incorrect behavior and will be lost if 
    3.10 -//      the code is regenerated.
    3.11 -//  </autogenerated>
    3.12 -// ------------------------------------------------------------------------------
    3.13  
    3.14 -namespace IBBoard.WarFoundry.GTK {
    3.15 -    
    3.16 -    
    3.17 -    public partial class FrmNewArmy {
    3.18 -        
    3.19 -        private Gtk.Table table1;
    3.20 -        
    3.21 -        private Gtk.ScrolledWindow GtkScrolledWindow;
    3.22 -        
    3.23 -        private Gtk.TreeView lstRaces;
    3.24 -        
    3.25 -        private Gtk.HBox hbox2;
    3.26 -        
    3.27 -        private Gtk.SpinButton sbPointsValue;
    3.28 -        
    3.29 -        private Gtk.Label label1;
    3.30 -        
    3.31 -        private Gtk.Label label2;
    3.32 -        
    3.33 -        private Gtk.Label label3;
    3.34 -        
    3.35 -        private Gtk.Label label4;
    3.36 -        
    3.37 -        private Gtk.ComboBoxEntry systemCombo;
    3.38 -        
    3.39 -        private Gtk.Entry txtArmyName;
    3.40 -        
    3.41 -        private Gtk.Button bttnCancel;
    3.42 -        
    3.43 -        private Gtk.Button bttnCreate;
    3.44 -        
    3.45 -        protected virtual void Build() {
    3.46 -            Stetic.Gui.Initialize(this);
    3.47 -            // Widget IBBoard.WarFoundry.GTK.FrmNewArmy
    3.48 -            this.Events = ((Gdk.EventMask)(256));
    3.49 -            this.Name = "IBBoard.WarFoundry.GTK.FrmNewArmy";
    3.50 -            this.Title = Mono.Unix.Catalog.GetString("Create new army");
    3.51 -            this.Icon = Stetic.IconLoader.LoadIcon(this, "gtk-new", Gtk.IconSize.Menu, 16);
    3.52 -            this.WindowPosition = ((Gtk.WindowPosition)(4));
    3.53 -            this.SkipPagerHint = true;
    3.54 -            this.SkipTaskbarHint = true;
    3.55 -            // Internal child IBBoard.WarFoundry.GTK.FrmNewArmy.VBox
    3.56 -            Gtk.VBox w1 = this.VBox;
    3.57 -            w1.CanFocus = true;
    3.58 -            w1.Events = ((Gdk.EventMask)(256));
    3.59 -            w1.Name = "dialog_VBox";
    3.60 -            w1.BorderWidth = ((uint)(2));
    3.61 -            // Container child dialog_VBox.Gtk.Box+BoxChild
    3.62 -            this.table1 = new Gtk.Table(((uint)(4)), ((uint)(2)), false);
    3.63 -            this.table1.Name = "table1";
    3.64 -            this.table1.RowSpacing = ((uint)(6));
    3.65 -            this.table1.ColumnSpacing = ((uint)(6));
    3.66 -            // Container child table1.Gtk.Table+TableChild
    3.67 -            this.GtkScrolledWindow = new Gtk.ScrolledWindow();
    3.68 -            this.GtkScrolledWindow.Name = "GtkScrolledWindow";
    3.69 -            this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
    3.70 -            // Container child GtkScrolledWindow.Gtk.Container+ContainerChild
    3.71 -            this.lstRaces = new Gtk.TreeView();
    3.72 -            this.lstRaces.HeightRequest = 150;
    3.73 -            this.lstRaces.CanFocus = true;
    3.74 -            this.lstRaces.Name = "lstRaces";
    3.75 -            this.lstRaces.HeadersVisible = false;
    3.76 -            this.lstRaces.RulesHint = true;
    3.77 -            this.GtkScrolledWindow.Add(this.lstRaces);
    3.78 -            this.table1.Add(this.GtkScrolledWindow);
    3.79 -            Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table1[this.GtkScrolledWindow]));
    3.80 -            w3.TopAttach = ((uint)(1));
    3.81 -            w3.BottomAttach = ((uint)(2));
    3.82 -            w3.LeftAttach = ((uint)(1));
    3.83 -            w3.RightAttach = ((uint)(2));
    3.84 -            w3.XOptions = ((Gtk.AttachOptions)(4));
    3.85 -            w3.YOptions = ((Gtk.AttachOptions)(4));
    3.86 -            // Container child table1.Gtk.Table+TableChild
    3.87 -            this.hbox2 = new Gtk.HBox();
    3.88 -            this.hbox2.Name = "hbox2";
    3.89 -            // Container child hbox2.Gtk.Box+BoxChild
    3.90 -            this.sbPointsValue = new Gtk.SpinButton(0, 2000000000, 100);
    3.91 -            this.sbPointsValue.WidthRequest = 150;
    3.92 -            this.sbPointsValue.CanFocus = true;
    3.93 -            this.sbPointsValue.Name = "sbPointsValue";
    3.94 -            this.sbPointsValue.Adjustment.PageIncrement = 1000;
    3.95 -            this.sbPointsValue.ClimbRate = 100;
    3.96 -            this.sbPointsValue.Numeric = true;
    3.97 -            this.sbPointsValue.Value = 1000;
    3.98 -            this.hbox2.Add(this.sbPointsValue);
    3.99 -            Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox2[this.sbPointsValue]));
   3.100 -            w4.Position = 0;
   3.101 -            w4.Expand = false;
   3.102 -            w4.Fill = false;
   3.103 -            this.table1.Add(this.hbox2);
   3.104 -            Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table1[this.hbox2]));
   3.105 -            w5.TopAttach = ((uint)(3));
   3.106 -            w5.BottomAttach = ((uint)(4));
   3.107 -            w5.LeftAttach = ((uint)(1));
   3.108 -            w5.RightAttach = ((uint)(2));
   3.109 -            w5.XOptions = ((Gtk.AttachOptions)(4));
   3.110 -            w5.YOptions = ((Gtk.AttachOptions)(4));
   3.111 -            // Container child table1.Gtk.Table+TableChild
   3.112 -            this.label1 = new Gtk.Label();
   3.113 -            this.label1.Name = "label1";
   3.114 -            this.label1.LabelProp = Mono.Unix.Catalog.GetString("Race");
   3.115 -            this.table1.Add(this.label1);
   3.116 -            Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table1[this.label1]));
   3.117 -            w6.TopAttach = ((uint)(1));
   3.118 -            w6.BottomAttach = ((uint)(2));
   3.119 -            w6.XOptions = ((Gtk.AttachOptions)(4));
   3.120 -            w6.YOptions = ((Gtk.AttachOptions)(4));
   3.121 -            // Container child table1.Gtk.Table+TableChild
   3.122 -            this.label2 = new Gtk.Label();
   3.123 -            this.label2.Name = "label2";
   3.124 -            this.label2.LabelProp = Mono.Unix.Catalog.GetString("Army name");
   3.125 -            this.table1.Add(this.label2);
   3.126 -            Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.label2]));
   3.127 -            w7.TopAttach = ((uint)(2));
   3.128 -            w7.BottomAttach = ((uint)(3));
   3.129 -            w7.XOptions = ((Gtk.AttachOptions)(4));
   3.130 -            w7.YOptions = ((Gtk.AttachOptions)(4));
   3.131 -            // Container child table1.Gtk.Table+TableChild
   3.132 -            this.label3 = new Gtk.Label();
   3.133 -            this.label3.Name = "label3";
   3.134 -            this.label3.LabelProp = Mono.Unix.Catalog.GetString("Points value");
   3.135 -            this.table1.Add(this.label3);
   3.136 -            Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table1[this.label3]));
   3.137 -            w8.TopAttach = ((uint)(3));
   3.138 -            w8.BottomAttach = ((uint)(4));
   3.139 -            w8.XOptions = ((Gtk.AttachOptions)(4));
   3.140 -            w8.YOptions = ((Gtk.AttachOptions)(4));
   3.141 -            // Container child table1.Gtk.Table+TableChild
   3.142 -            this.label4 = new Gtk.Label();
   3.143 -            this.label4.Name = "label4";
   3.144 -            this.label4.LabelProp = Mono.Unix.Catalog.GetString("game system");
   3.145 -            this.table1.Add(this.label4);
   3.146 -            Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table1[this.label4]));
   3.147 -            w9.XOptions = ((Gtk.AttachOptions)(4));
   3.148 -            w9.YOptions = ((Gtk.AttachOptions)(4));
   3.149 -            // Container child table1.Gtk.Table+TableChild
   3.150 -            this.systemCombo = Gtk.ComboBoxEntry.NewText();
   3.151 -            this.systemCombo.Name = "systemCombo";
   3.152 -            this.table1.Add(this.systemCombo);
   3.153 -            Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table1[this.systemCombo]));
   3.154 -            w10.LeftAttach = ((uint)(1));
   3.155 -            w10.RightAttach = ((uint)(2));
   3.156 -            w10.YOptions = ((Gtk.AttachOptions)(4));
   3.157 -            // Container child table1.Gtk.Table+TableChild
   3.158 -            this.txtArmyName = new Gtk.Entry();
   3.159 -            this.txtArmyName.CanFocus = true;
   3.160 -            this.txtArmyName.Name = "txtArmyName";
   3.161 -            this.txtArmyName.IsEditable = true;
   3.162 -            this.txtArmyName.InvisibleChar = '•';
   3.163 -            this.table1.Add(this.txtArmyName);
   3.164 -            Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table1[this.txtArmyName]));
   3.165 -            w11.TopAttach = ((uint)(2));
   3.166 -            w11.BottomAttach = ((uint)(3));
   3.167 -            w11.LeftAttach = ((uint)(1));
   3.168 -            w11.RightAttach = ((uint)(2));
   3.169 -            w11.XOptions = ((Gtk.AttachOptions)(4));
   3.170 -            w11.YOptions = ((Gtk.AttachOptions)(4));
   3.171 -            w1.Add(this.table1);
   3.172 -            Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(w1[this.table1]));
   3.173 -            w12.Position = 0;
   3.174 -            w12.Expand = false;
   3.175 -            w12.Fill = false;
   3.176 -            w12.Padding = ((uint)(6));
   3.177 -            // Internal child IBBoard.WarFoundry.GTK.FrmNewArmy.ActionArea
   3.178 -            Gtk.HButtonBox w13 = this.ActionArea;
   3.179 -            w13.CanFocus = true;
   3.180 -            w13.Events = ((Gdk.EventMask)(256));
   3.181 -            w13.Name = "WarFoundrySharp.FrmNewArmy_ActionArea";
   3.182 -            w13.Spacing = 6;
   3.183 -            w13.BorderWidth = ((uint)(5));
   3.184 -            w13.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
   3.185 -            // Container child WarFoundrySharp.FrmNewArmy_ActionArea.Gtk.ButtonBox+ButtonBoxChild
   3.186 -            this.bttnCancel = new Gtk.Button();
   3.187 -            this.bttnCancel.CanFocus = true;
   3.188 -            this.bttnCancel.Name = "bttnCancel";
   3.189 -            this.bttnCancel.UseStock = true;
   3.190 -            this.bttnCancel.UseUnderline = true;
   3.191 -            this.bttnCancel.Label = "gtk-cancel";
   3.192 -            this.AddActionWidget(this.bttnCancel, -6);
   3.193 -            Gtk.ButtonBox.ButtonBoxChild w14 = ((Gtk.ButtonBox.ButtonBoxChild)(w13[this.bttnCancel]));
   3.194 -            w14.Expand = false;
   3.195 -            w14.Fill = false;
   3.196 -            // Container child WarFoundrySharp.FrmNewArmy_ActionArea.Gtk.ButtonBox+ButtonBoxChild
   3.197 -            this.bttnCreate = new Gtk.Button();
   3.198 -            this.bttnCreate.Sensitive = false;
   3.199 -            this.bttnCreate.CanDefault = true;
   3.200 -            this.bttnCreate.CanFocus = true;
   3.201 -            this.bttnCreate.Name = "bttnCreate";
   3.202 -            this.bttnCreate.UseUnderline = true;
   3.203 -            // Container child bttnCreate.Gtk.Container+ContainerChild
   3.204 -            Gtk.Alignment w15 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
   3.205 -            // Container child GtkAlignment.Gtk.Container+ContainerChild
   3.206 -            Gtk.HBox w16 = new Gtk.HBox();
   3.207 -            w16.Spacing = 2;
   3.208 -            // Container child GtkHBox.Gtk.Container+ContainerChild
   3.209 -            Gtk.Image w17 = new Gtk.Image();
   3.210 -            w17.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-ok", Gtk.IconSize.Menu, 16);
   3.211 -            w16.Add(w17);
   3.212 -            // Container child GtkHBox.Gtk.Container+ContainerChild
   3.213 -            Gtk.Label w19 = new Gtk.Label();
   3.214 -            w19.LabelProp = Mono.Unix.Catalog.GetString("C_reate");
   3.215 -            w19.UseUnderline = true;
   3.216 -            w16.Add(w19);
   3.217 -            w15.Add(w16);
   3.218 -            this.bttnCreate.Add(w15);
   3.219 -            this.AddActionWidget(this.bttnCreate, -5);
   3.220 -            Gtk.ButtonBox.ButtonBoxChild w23 = ((Gtk.ButtonBox.ButtonBoxChild)(w13[this.bttnCreate]));
   3.221 -            w23.Position = 1;
   3.222 -            w23.Expand = false;
   3.223 -            w23.Fill = false;
   3.224 -            if ((this.Child != null)) {
   3.225 -                this.Child.ShowAll();
   3.226 -            }
   3.227 -            this.DefaultWidth = 370;
   3.228 -            this.DefaultHeight = 348;
   3.229 -            this.Show();
   3.230 -            this.txtArmyName.Changed += new System.EventHandler(this.OnTextChanged);
   3.231 -            this.systemCombo.Changed += new System.EventHandler(this.OnSystemComboChanged);
   3.232 -            this.sbPointsValue.ChangeValue += new Gtk.ChangeValueHandler(this.OnSpinChangeValue);
   3.233 -            this.sbPointsValue.ValueChanged += new System.EventHandler(this.OnSpinValueChanged);
   3.234 -            this.sbPointsValue.Changed += new System.EventHandler(this.OnSpinValueChanged);
   3.235 -            this.bttnCancel.Clicked += new System.EventHandler(this.OnCancelClicked);
   3.236 -            this.bttnCreate.Clicked += new System.EventHandler(this.OnCreateClicked);
   3.237 -        }
   3.238 -    }
   3.239 +// This file has been generated by the GUI designer. Do not modify.
   3.240 +namespace IBBoard.WarFoundry.GTK
   3.241 +{
   3.242 +	public partial class FrmNewArmy
   3.243 +	{
   3.244 +		private global::Gtk.Table table1;
   3.245 +
   3.246 +		private global::Gtk.ScrolledWindow GtkScrolledWindow;
   3.247 +
   3.248 +		private global::Gtk.TreeView lstRaces;
   3.249 +
   3.250 +		private global::Gtk.HBox hbox2;
   3.251 +
   3.252 +		private global::Gtk.SpinButton sbPointsValue;
   3.253 +
   3.254 +		private global::Gtk.Label label1;
   3.255 +
   3.256 +		private global::Gtk.Label label2;
   3.257 +
   3.258 +		private global::Gtk.Label label3;
   3.259 +
   3.260 +		private global::Gtk.Label label4;
   3.261 +
   3.262 +		private global::Gtk.ComboBoxEntry systemCombo;
   3.263 +
   3.264 +		private global::Gtk.Entry txtArmyName;
   3.265 +
   3.266 +		private global::Gtk.Button bttnCancel;
   3.267 +
   3.268 +		private global::Gtk.Button bttnCreate;
   3.269 +
   3.270 +		protected virtual void Build()
   3.271 +		{
   3.272 +			global::Stetic.Gui.Initialize(this);
   3.273 +			// Widget IBBoard.WarFoundry.GTK.FrmNewArmy
   3.274 +			this.Events = ((global::Gdk.EventMask)(256));
   3.275 +			this.Name = "IBBoard.WarFoundry.GTK.FrmNewArmy";
   3.276 +			this.Title = global::Mono.Unix.Catalog.GetString("Create new army");
   3.277 +			this.Icon = global::Stetic.IconLoader.LoadIcon(this, "gtk-new", global::Gtk.IconSize.Menu);
   3.278 +			this.WindowPosition = ((global::Gtk.WindowPosition)(4));
   3.279 +			this.SkipPagerHint = true;
   3.280 +			this.SkipTaskbarHint = true;
   3.281 +			// Internal child IBBoard.WarFoundry.GTK.FrmNewArmy.VBox
   3.282 +			global::Gtk.VBox w1 = this.VBox;
   3.283 +			w1.CanFocus = true;
   3.284 +			w1.Events = ((global::Gdk.EventMask)(256));
   3.285 +			w1.Name = "dialog_VBox";
   3.286 +			w1.BorderWidth = ((uint)(2));
   3.287 +			// Container child dialog_VBox.Gtk.Box+BoxChild
   3.288 +			this.table1 = new global::Gtk.Table(((uint)(4)), ((uint)(2)), false);
   3.289 +			this.table1.Name = "table1";
   3.290 +			this.table1.RowSpacing = ((uint)(6));
   3.291 +			this.table1.ColumnSpacing = ((uint)(6));
   3.292 +			// Container child table1.Gtk.Table+TableChild
   3.293 +			this.GtkScrolledWindow = new global::Gtk.ScrolledWindow();
   3.294 +			this.GtkScrolledWindow.Name = "GtkScrolledWindow";
   3.295 +			this.GtkScrolledWindow.ShadowType = ((global::Gtk.ShadowType)(1));
   3.296 +			// Container child GtkScrolledWindow.Gtk.Container+ContainerChild
   3.297 +			this.lstRaces = new global::Gtk.TreeView();
   3.298 +			this.lstRaces.HeightRequest = 150;
   3.299 +			this.lstRaces.CanFocus = true;
   3.300 +			this.lstRaces.Name = "lstRaces";
   3.301 +			this.lstRaces.HeadersVisible = false;
   3.302 +			this.lstRaces.RulesHint = true;
   3.303 +			this.GtkScrolledWindow.Add(this.lstRaces);
   3.304 +			this.table1.Add(this.GtkScrolledWindow);
   3.305 +			global::Gtk.Table.TableChild w3 = ((global::Gtk.Table.TableChild)(this.table1[this.GtkScrolledWindow]));
   3.306 +			w3.TopAttach = ((uint)(1));
   3.307 +			w3.BottomAttach = ((uint)(2));
   3.308 +			w3.LeftAttach = ((uint)(1));
   3.309 +			w3.RightAttach = ((uint)(2));
   3.310 +			w3.XOptions = ((global::Gtk.AttachOptions)(4));
   3.311 +			w3.YOptions = ((global::Gtk.AttachOptions)(4));
   3.312 +			// Container child table1.Gtk.Table+TableChild
   3.313 +			this.hbox2 = new global::Gtk.HBox();
   3.314 +			this.hbox2.Name = "hbox2";
   3.315 +			// Container child hbox2.Gtk.Box+BoxChild
   3.316 +			this.sbPointsValue = new global::Gtk.SpinButton(0, 2000000000, 100);
   3.317 +			this.sbPointsValue.WidthRequest = 150;
   3.318 +			this.sbPointsValue.CanFocus = true;
   3.319 +			this.sbPointsValue.Name = "sbPointsValue";
   3.320 +			this.sbPointsValue.Adjustment.PageIncrement = 1000;
   3.321 +			this.sbPointsValue.ClimbRate = 100;
   3.322 +			this.sbPointsValue.Numeric = true;
   3.323 +			this.sbPointsValue.Value = 1000;
   3.324 +			this.hbox2.Add(this.sbPointsValue);
   3.325 +			global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.hbox2[this.sbPointsValue]));
   3.326 +			w4.Position = 0;
   3.327 +			w4.Expand = false;
   3.328 +			w4.Fill = false;
   3.329 +			this.table1.Add(this.hbox2);
   3.330 +			global::Gtk.Table.TableChild w5 = ((global::Gtk.Table.TableChild)(this.table1[this.hbox2]));
   3.331 +			w5.TopAttach = ((uint)(3));
   3.332 +			w5.BottomAttach = ((uint)(4));
   3.333 +			w5.LeftAttach = ((uint)(1));
   3.334 +			w5.RightAttach = ((uint)(2));
   3.335 +			w5.XOptions = ((global::Gtk.AttachOptions)(4));
   3.336 +			w5.YOptions = ((global::Gtk.AttachOptions)(4));
   3.337 +			// Container child table1.Gtk.Table+TableChild
   3.338 +			this.label1 = new global::Gtk.Label();
   3.339 +			this.label1.Name = "label1";
   3.340 +			this.label1.LabelProp = global::Mono.Unix.Catalog.GetString("Race");
   3.341 +			this.table1.Add(this.label1);
   3.342 +			global::Gtk.Table.TableChild w6 = ((global::Gtk.Table.TableChild)(this.table1[this.label1]));
   3.343 +			w6.TopAttach = ((uint)(1));
   3.344 +			w6.BottomAttach = ((uint)(2));
   3.345 +			w6.XOptions = ((global::Gtk.AttachOptions)(4));
   3.346 +			w6.YOptions = ((global::Gtk.AttachOptions)(4));
   3.347 +			// Container child table1.Gtk.Table+TableChild
   3.348 +			this.label2 = new global::Gtk.Label();
   3.349 +			this.label2.Name = "label2";
   3.350 +			this.label2.LabelProp = global::Mono.Unix.Catalog.GetString("Army name");
   3.351 +			this.table1.Add(this.label2);
   3.352 +			global::Gtk.Table.TableChild w7 = ((global::Gtk.Table.TableChild)(this.table1[this.label2]));
   3.353 +			w7.TopAttach = ((uint)(2));
   3.354 +			w7.BottomAttach = ((uint)(3));
   3.355 +			w7.XOptions = ((global::Gtk.AttachOptions)(4));
   3.356 +			w7.YOptions = ((global::Gtk.AttachOptions)(4));
   3.357 +			// Container child table1.Gtk.Table+TableChild
   3.358 +			this.label3 = new global::Gtk.Label();
   3.359 +			this.label3.Name = "label3";
   3.360 +			this.label3.LabelProp = global::Mono.Unix.Catalog.GetString("Points value");
   3.361 +			this.table1.Add(this.label3);
   3.362 +			global::Gtk.Table.TableChild w8 = ((global::Gtk.Table.TableChild)(this.table1[this.label3]));
   3.363 +			w8.TopAttach = ((uint)(3));
   3.364 +			w8.BottomAttach = ((uint)(4));
   3.365 +			w8.XOptions = ((global::Gtk.AttachOptions)(4));
   3.366 +			w8.YOptions = ((global::Gtk.AttachOptions)(4));
   3.367 +			// Container child table1.Gtk.Table+TableChild
   3.368 +			this.label4 = new global::Gtk.Label();
   3.369 +			this.label4.Name = "label4";
   3.370 +			this.label4.LabelProp = global::Mono.Unix.Catalog.GetString("game system");
   3.371 +			this.table1.Add(this.label4);
   3.372 +			global::Gtk.Table.TableChild w9 = ((global::Gtk.Table.TableChild)(this.table1[this.label4]));
   3.373 +			w9.XOptions = ((global::Gtk.AttachOptions)(4));
   3.374 +			w9.YOptions = ((global::Gtk.AttachOptions)(4));
   3.375 +			// Container child table1.Gtk.Table+TableChild
   3.376 +			this.systemCombo = global::Gtk.ComboBoxEntry.NewText();
   3.377 +			this.systemCombo.Name = "systemCombo";
   3.378 +			this.table1.Add(this.systemCombo);
   3.379 +			global::Gtk.Table.TableChild w10 = ((global::Gtk.Table.TableChild)(this.table1[this.systemCombo]));
   3.380 +			w10.LeftAttach = ((uint)(1));
   3.381 +			w10.RightAttach = ((uint)(2));
   3.382 +			w10.YOptions = ((global::Gtk.AttachOptions)(4));
   3.383 +			// Container child table1.Gtk.Table+TableChild
   3.384 +			this.txtArmyName = new global::Gtk.Entry();
   3.385 +			this.txtArmyName.CanFocus = true;
   3.386 +			this.txtArmyName.Name = "txtArmyName";
   3.387 +			this.txtArmyName.IsEditable = true;
   3.388 +			this.txtArmyName.InvisibleChar = '•';
   3.389 +			this.table1.Add(this.txtArmyName);
   3.390 +			global::Gtk.Table.TableChild w11 = ((global::Gtk.Table.TableChild)(this.table1[this.txtArmyName]));
   3.391 +			w11.TopAttach = ((uint)(2));
   3.392 +			w11.BottomAttach = ((uint)(3));
   3.393 +			w11.LeftAttach = ((uint)(1));
   3.394 +			w11.RightAttach = ((uint)(2));
   3.395 +			w11.XOptions = ((global::Gtk.AttachOptions)(4));
   3.396 +			w11.YOptions = ((global::Gtk.AttachOptions)(4));
   3.397 +			w1.Add(this.table1);
   3.398 +			global::Gtk.Box.BoxChild w12 = ((global::Gtk.Box.BoxChild)(w1[this.table1]));
   3.399 +			w12.Position = 0;
   3.400 +			w12.Expand = false;
   3.401 +			w12.Fill = false;
   3.402 +			w12.Padding = ((uint)(6));
   3.403 +			// Internal child IBBoard.WarFoundry.GTK.FrmNewArmy.ActionArea
   3.404 +			global::Gtk.HButtonBox w13 = this.ActionArea;
   3.405 +			w13.CanFocus = true;
   3.406 +			w13.Events = ((global::Gdk.EventMask)(256));
   3.407 +			w13.Name = "WarFoundrySharp.FrmNewArmy_ActionArea";
   3.408 +			w13.Spacing = 6;
   3.409 +			w13.BorderWidth = ((uint)(5));
   3.410 +			w13.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4));
   3.411 +			// Container child WarFoundrySharp.FrmNewArmy_ActionArea.Gtk.ButtonBox+ButtonBoxChild
   3.412 +			this.bttnCancel = new global::Gtk.Button();
   3.413 +			this.bttnCancel.CanFocus = true;
   3.414 +			this.bttnCancel.Name = "bttnCancel";
   3.415 +			this.bttnCancel.UseStock = true;
   3.416 +			this.bttnCancel.UseUnderline = true;
   3.417 +			this.bttnCancel.Label = "gtk-cancel";
   3.418 +			this.AddActionWidget(this.bttnCancel, -6);
   3.419 +			global::Gtk.ButtonBox.ButtonBoxChild w14 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w13[this.bttnCancel]));
   3.420 +			w14.Expand = false;
   3.421 +			w14.Fill = false;
   3.422 +			// Container child WarFoundrySharp.FrmNewArmy_ActionArea.Gtk.ButtonBox+ButtonBoxChild
   3.423 +			this.bttnCreate = new global::Gtk.Button();
   3.424 +			this.bttnCreate.Sensitive = false;
   3.425 +			this.bttnCreate.CanDefault = true;
   3.426 +			this.bttnCreate.CanFocus = true;
   3.427 +			this.bttnCreate.Name = "bttnCreate";
   3.428 +			this.bttnCreate.UseUnderline = true;
   3.429 +			// Container child bttnCreate.Gtk.Container+ContainerChild
   3.430 +			global::Gtk.Alignment w15 = new global::Gtk.Alignment(0.5f, 0.5f, 0f, 0f);
   3.431 +			// Container child GtkAlignment.Gtk.Container+ContainerChild
   3.432 +			global::Gtk.HBox w16 = new global::Gtk.HBox();
   3.433 +			w16.Spacing = 2;
   3.434 +			// Container child GtkHBox.Gtk.Container+ContainerChild
   3.435 +			global::Gtk.Image w17 = new global::Gtk.Image();
   3.436 +			w17.Pixbuf = global::Stetic.IconLoader.LoadIcon(this, "gtk-ok", global::Gtk.IconSize.Menu);
   3.437 +			w16.Add(w17);
   3.438 +			// Container child GtkHBox.Gtk.Container+ContainerChild
   3.439 +			global::Gtk.Label w19 = new global::Gtk.Label();
   3.440 +			w19.LabelProp = global::Mono.Unix.Catalog.GetString("C_reate");
   3.441 +			w19.UseUnderline = true;
   3.442 +			w16.Add(w19);
   3.443 +			w15.Add(w16);
   3.444 +			this.bttnCreate.Add(w15);
   3.445 +			this.AddActionWidget(this.bttnCreate, -5);
   3.446 +			global::Gtk.ButtonBox.ButtonBoxChild w23 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w13[this.bttnCreate]));
   3.447 +			w23.Position = 1;
   3.448 +			w23.Expand = false;
   3.449 +			w23.Fill = false;
   3.450 +			if ((this.Child != null))
   3.451 +			{
   3.452 +				this.Child.ShowAll();
   3.453 +			}
   3.454 +			this.DefaultWidth = 370;
   3.455 +			this.DefaultHeight = 348;
   3.456 +			this.Show();
   3.457 +			this.txtArmyName.Changed += new global::System.EventHandler(this.OnTextChanged);
   3.458 +			this.systemCombo.Changed += new global::System.EventHandler(this.OnSystemComboChanged);
   3.459 +			this.sbPointsValue.ChangeValue += new global::Gtk.ChangeValueHandler(this.OnSpinChangeValue);
   3.460 +			this.sbPointsValue.ValueChanged += new global::System.EventHandler(this.OnSpinValueChanged);
   3.461 +			this.sbPointsValue.Changed += new global::System.EventHandler(this.OnSpinValueChanged);
   3.462 +			this.bttnCancel.Clicked += new global::System.EventHandler(this.OnCancelClicked);
   3.463 +			this.bttnCreate.Clicked += new global::System.EventHandler(this.OnCreateClicked);
   3.464 +		}
   3.465 +	}
   3.466  }
     4.1 --- a/gtk-gui/IBBoard.WarFoundry.GTK.FrmNewUnit.cs	Sun Jan 31 20:46:06 2010 +0000
     4.2 +++ b/gtk-gui/IBBoard.WarFoundry.GTK.FrmNewUnit.cs	Sat Aug 07 19:56:05 2010 +0000
     4.3 @@ -1,140 +1,133 @@
     4.4 -// ------------------------------------------------------------------------------
     4.5 -//  <autogenerated>
     4.6 -//      This code was generated by a tool.
     4.7 -//      
     4.8 -// 
     4.9 -//      Changes to this file may cause incorrect behavior and will be lost if 
    4.10 -//      the code is regenerated.
    4.11 -//  </autogenerated>
    4.12 -// ------------------------------------------------------------------------------
    4.13  
    4.14 -namespace IBBoard.WarFoundry.GTK {
    4.15 -    
    4.16 -    
    4.17 -    public partial class FrmNewUnit {
    4.18 -        
    4.19 -        private Gtk.VBox vbox2;
    4.20 -        
    4.21 -        private Gtk.HBox hbox1;
    4.22 -        
    4.23 -        private Gtk.Label label1;
    4.24 -        
    4.25 -        private Gtk.ScrolledWindow GtkScrolledWindow;
    4.26 -        
    4.27 -        private Gtk.TreeView lstUnitTypes;
    4.28 -        
    4.29 -        private Gtk.Label lblNewUnitWarning;
    4.30 -        
    4.31 -        private Gtk.Button buttonCancel;
    4.32 -        
    4.33 -        private Gtk.Button buttonOk;
    4.34 -        
    4.35 -        protected virtual void Build() {
    4.36 -            Stetic.Gui.Initialize(this);
    4.37 -            // Widget IBBoard.WarFoundry.GTK.FrmNewUnit
    4.38 -            this.Name = "IBBoard.WarFoundry.GTK.FrmNewUnit";
    4.39 -            this.Title = Mono.Unix.Catalog.GetString("Add new unit");
    4.40 -            this.Icon = Stetic.IconLoader.LoadIcon(this, "gtk-new", Gtk.IconSize.Menu, 16);
    4.41 -            this.WindowPosition = ((Gtk.WindowPosition)(4));
    4.42 -            this.Modal = true;
    4.43 -            this.SkipPagerHint = true;
    4.44 -            this.SkipTaskbarHint = true;
    4.45 -            // Internal child IBBoard.WarFoundry.GTK.FrmNewUnit.VBox
    4.46 -            Gtk.VBox w1 = this.VBox;
    4.47 -            w1.Name = "dialog1_VBox";
    4.48 -            w1.BorderWidth = ((uint)(2));
    4.49 -            // Container child dialog1_VBox.Gtk.Box+BoxChild
    4.50 -            this.vbox2 = new Gtk.VBox();
    4.51 -            this.vbox2.Name = "vbox2";
    4.52 -            this.vbox2.Spacing = 6;
    4.53 -            // Container child vbox2.Gtk.Box+BoxChild
    4.54 -            this.hbox1 = new Gtk.HBox();
    4.55 -            this.hbox1.Name = "hbox1";
    4.56 -            this.hbox1.Spacing = 6;
    4.57 -            // Container child hbox1.Gtk.Box+BoxChild
    4.58 -            this.label1 = new Gtk.Label();
    4.59 -            this.label1.Name = "label1";
    4.60 -            this.label1.LabelProp = Mono.Unix.Catalog.GetString("Unit Type:");
    4.61 -            this.hbox1.Add(this.label1);
    4.62 -            Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.label1]));
    4.63 -            w2.Position = 0;
    4.64 -            w2.Expand = false;
    4.65 -            w2.Fill = false;
    4.66 -            // Container child hbox1.Gtk.Box+BoxChild
    4.67 -            this.GtkScrolledWindow = new Gtk.ScrolledWindow();
    4.68 -            this.GtkScrolledWindow.Name = "GtkScrolledWindow";
    4.69 -            this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
    4.70 -            // Container child GtkScrolledWindow.Gtk.Container+ContainerChild
    4.71 -            this.lstUnitTypes = new Gtk.TreeView();
    4.72 -            this.lstUnitTypes.HeightRequest = 150;
    4.73 -            this.lstUnitTypes.CanFocus = true;
    4.74 -            this.lstUnitTypes.Name = "lstUnitTypes";
    4.75 -            this.lstUnitTypes.HeadersVisible = false;
    4.76 -            this.GtkScrolledWindow.Add(this.lstUnitTypes);
    4.77 -            this.hbox1.Add(this.GtkScrolledWindow);
    4.78 -            Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox1[this.GtkScrolledWindow]));
    4.79 -            w4.Position = 1;
    4.80 -            this.vbox2.Add(this.hbox1);
    4.81 -            Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox1]));
    4.82 -            w5.Position = 0;
    4.83 -            w5.Expand = false;
    4.84 -            w5.Fill = false;
    4.85 -            // Container child vbox2.Gtk.Box+BoxChild
    4.86 -            this.lblNewUnitWarning = new Gtk.Label();
    4.87 -            this.lblNewUnitWarning.Name = "lblNewUnitWarning";
    4.88 -            this.lblNewUnitWarning.Xalign = 0F;
    4.89 -            this.lblNewUnitWarning.Yalign = 0F;
    4.90 -            this.vbox2.Add(this.lblNewUnitWarning);
    4.91 -            Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox2[this.lblNewUnitWarning]));
    4.92 -            w6.Position = 1;
    4.93 -            w6.Expand = false;
    4.94 -            w6.Fill = false;
    4.95 -            w1.Add(this.vbox2);
    4.96 -            Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(w1[this.vbox2]));
    4.97 -            w7.Position = 0;
    4.98 -            w7.Expand = false;
    4.99 -            w7.Fill = false;
   4.100 -            // Internal child IBBoard.WarFoundry.GTK.FrmNewUnit.ActionArea
   4.101 -            Gtk.HButtonBox w8 = this.ActionArea;
   4.102 -            w8.Name = "dialog1_ActionArea";
   4.103 -            w8.Spacing = 6;
   4.104 -            w8.BorderWidth = ((uint)(5));
   4.105 -            w8.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
   4.106 -            // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
   4.107 -            this.buttonCancel = new Gtk.Button();
   4.108 -            this.buttonCancel.CanDefault = true;
   4.109 -            this.buttonCancel.CanFocus = true;
   4.110 -            this.buttonCancel.Name = "buttonCancel";
   4.111 -            this.buttonCancel.UseStock = true;
   4.112 -            this.buttonCancel.UseUnderline = true;
   4.113 -            this.buttonCancel.Label = "gtk-cancel";
   4.114 -            this.AddActionWidget(this.buttonCancel, -6);
   4.115 -            Gtk.ButtonBox.ButtonBoxChild w9 = ((Gtk.ButtonBox.ButtonBoxChild)(w8[this.buttonCancel]));
   4.116 -            w9.Expand = false;
   4.117 -            w9.Fill = false;
   4.118 -            // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
   4.119 -            this.buttonOk = new Gtk.Button();
   4.120 -            this.buttonOk.Sensitive = false;
   4.121 -            this.buttonOk.CanDefault = true;
   4.122 -            this.buttonOk.CanFocus = true;
   4.123 -            this.buttonOk.Name = "buttonOk";
   4.124 -            this.buttonOk.UseStock = true;
   4.125 -            this.buttonOk.UseUnderline = true;
   4.126 -            this.buttonOk.Label = "gtk-ok";
   4.127 -            this.AddActionWidget(this.buttonOk, -5);
   4.128 -            Gtk.ButtonBox.ButtonBoxChild w10 = ((Gtk.ButtonBox.ButtonBoxChild)(w8[this.buttonOk]));
   4.129 -            w10.Position = 1;
   4.130 -            w10.Expand = false;
   4.131 -            w10.Fill = false;
   4.132 -            if ((this.Child != null)) {
   4.133 -                this.Child.ShowAll();
   4.134 -            }
   4.135 -            this.DefaultWidth = 400;
   4.136 -            this.DefaultHeight = 318;
   4.137 -            this.Show();
   4.138 -            this.lstUnitTypes.RowActivated += new Gtk.RowActivatedHandler(this.OnRowActivated);
   4.139 -            this.buttonCancel.Activated += new System.EventHandler(this.OnButtonCancelActivated);
   4.140 -            this.buttonOk.Clicked += new System.EventHandler(this.OnButtonOkClicked);
   4.141 -        }
   4.142 -    }
   4.143 +// This file has been generated by the GUI designer. Do not modify.
   4.144 +namespace IBBoard.WarFoundry.GTK
   4.145 +{
   4.146 +	public partial class FrmNewUnit
   4.147 +	{
   4.148 +		private global::Gtk.VBox vbox2;
   4.149 +
   4.150 +		private global::Gtk.HBox hbox1;
   4.151 +
   4.152 +		private global::Gtk.Label label1;
   4.153 +
   4.154 +		private global::Gtk.ScrolledWindow GtkScrolledWindow;
   4.155 +
   4.156 +		private global::Gtk.TreeView lstUnitTypes;
   4.157 +
   4.158 +		private global::Gtk.Label lblNewUnitWarning;
   4.159 +
   4.160 +		private global::Gtk.Button buttonCancel;
   4.161 +
   4.162 +		private global::Gtk.Button buttonOk;
   4.163 +
   4.164 +		protected virtual void Build()
   4.165 +		{
   4.166 +			global::Stetic.Gui.Initialize(this);
   4.167 +			// Widget IBBoard.WarFoundry.GTK.FrmNewUnit
   4.168 +			this.Name = "IBBoard.WarFoundry.GTK.FrmNewUnit";
   4.169 +			this.Title = global::Mono.Unix.Catalog.GetString("Add new unit");
   4.170 +			this.Icon = global::Stetic.IconLoader.LoadIcon(this, "gtk-new", global::Gtk.IconSize.Menu);
   4.171 +			this.WindowPosition = ((global::Gtk.WindowPosition)(4));
   4.172 +			this.Modal = true;
   4.173 +			this.SkipPagerHint = true;
   4.174 +			this.SkipTaskbarHint = true;
   4.175 +			// Internal child IBBoard.WarFoundry.GTK.FrmNewUnit.VBox
   4.176 +			global::Gtk.VBox w1 = this.VBox;
   4.177 +			w1.Name = "dialog1_VBox";
   4.178 +			w1.BorderWidth = ((uint)(2));
   4.179 +			// Container child dialog1_VBox.Gtk.Box+BoxChild
   4.180 +			this.vbox2 = new global::Gtk.VBox();
   4.181 +			this.vbox2.Name = "vbox2";
   4.182 +			this.vbox2.Spacing = 6;
   4.183 +			// Container child vbox2.Gtk.Box+BoxChild
   4.184 +			this.hbox1 = new global::Gtk.HBox();
   4.185 +			this.hbox1.Name = "hbox1";
   4.186 +			this.hbox1.Spacing = 6;
   4.187 +			// Container child hbox1.Gtk.Box+BoxChild
   4.188 +			this.label1 = new global::Gtk.Label();
   4.189 +			this.label1.Name = "label1";
   4.190 +			this.label1.LabelProp = global::Mono.Unix.Catalog.GetString("Unit Type:");
   4.191 +			this.hbox1.Add(this.label1);
   4.192 +			global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.label1]));
   4.193 +			w2.Position = 0;
   4.194 +			w2.Expand = false;
   4.195 +			w2.Fill = false;
   4.196 +			// Container child hbox1.Gtk.Box+BoxChild
   4.197 +			this.GtkScrolledWindow = new global::Gtk.ScrolledWindow();
   4.198 +			this.GtkScrolledWindow.Name = "GtkScrolledWindow";
   4.199 +			this.GtkScrolledWindow.ShadowType = ((global::Gtk.ShadowType)(1));
   4.200 +			// Container child GtkScrolledWindow.Gtk.Container+ContainerChild
   4.201 +			this.lstUnitTypes = new global::Gtk.TreeView();
   4.202 +			this.lstUnitTypes.HeightRequest = 150;
   4.203 +			this.lstUnitTypes.CanFocus = true;
   4.204 +			this.lstUnitTypes.Name = "lstUnitTypes";
   4.205 +			this.lstUnitTypes.HeadersVisible = false;
   4.206 +			this.GtkScrolledWindow.Add(this.lstUnitTypes);
   4.207 +			this.hbox1.Add(this.GtkScrolledWindow);
   4.208 +			global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.GtkScrolledWindow]));
   4.209 +			w4.Position = 1;
   4.210 +			this.vbox2.Add(this.hbox1);
   4.211 +			global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.hbox1]));
   4.212 +			w5.Position = 0;
   4.213 +			w5.Expand = false;
   4.214 +			w5.Fill = false;
   4.215 +			// Container child vbox2.Gtk.Box+BoxChild
   4.216 +			this.lblNewUnitWarning = new global::Gtk.Label();
   4.217 +			this.lblNewUnitWarning.Name = "lblNewUnitWarning";
   4.218 +			this.lblNewUnitWarning.Xalign = 0f;
   4.219 +			this.lblNewUnitWarning.Yalign = 0f;
   4.220 +			this.vbox2.Add(this.lblNewUnitWarning);
   4.221 +			global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.lblNewUnitWarning]));
   4.222 +			w6.Position = 1;
   4.223 +			w6.Expand = false;
   4.224 +			w6.Fill = false;
   4.225 +			w1.Add(this.vbox2);
   4.226 +			global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(w1[this.vbox2]));
   4.227 +			w7.Position = 0;
   4.228 +			w7.Expand = false;
   4.229 +			w7.Fill = false;
   4.230 +			// Internal child IBBoard.WarFoundry.GTK.FrmNewUnit.ActionArea
   4.231 +			global::Gtk.HButtonBox w8 = this.ActionArea;
   4.232 +			w8.Name = "dialog1_ActionArea";
   4.233 +			w8.Spacing = 6;
   4.234 +			w8.BorderWidth = ((uint)(5));
   4.235 +			w8.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4));
   4.236 +			// Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
   4.237 +			this.buttonCancel = new global::Gtk.Button();
   4.238 +			this.buttonCancel.CanDefault = true;
   4.239 +			this.buttonCancel.CanFocus = true;
   4.240 +			this.buttonCancel.Name = "buttonCancel";
   4.241 +			this.buttonCancel.UseStock = true;
   4.242 +			this.buttonCancel.UseUnderline = true;
   4.243 +			this.buttonCancel.Label = "gtk-cancel";
   4.244 +			this.AddActionWidget(this.buttonCancel, -6);
   4.245 +			global::Gtk.ButtonBox.ButtonBoxChild w9 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w8[this.buttonCancel]));
   4.246 +			w9.Expand = false;
   4.247 +			w9.Fill = false;
   4.248 +			// Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
   4.249 +			this.buttonOk = new global::Gtk.Button();
   4.250 +			this.buttonOk.Sensitive = false;
   4.251 +			this.buttonOk.CanDefault = true;
   4.252 +			this.buttonOk.CanFocus = true;
   4.253 +			this.buttonOk.Name = "buttonOk";
   4.254 +			this.buttonOk.UseStock = true;
   4.255 +			this.buttonOk.UseUnderline = true;
   4.256 +			this.buttonOk.Label = "gtk-ok";
   4.257 +			this.AddActionWidget(this.buttonOk, -5);
   4.258 +			global::Gtk.ButtonBox.ButtonBoxChild w10 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w8[this.buttonOk]));
   4.259 +			w10.Position = 1;
   4.260 +			w10.Expand = false;
   4.261 +			w10.Fill = false;
   4.262 +			if ((this.Child != null))
   4.263 +			{
   4.264 +				this.Child.ShowAll();
   4.265 +			}
   4.266 +			this.DefaultWidth = 400;
   4.267 +			this.DefaultHeight = 318;
   4.268 +			this.Show();
   4.269 +			this.lstUnitTypes.RowActivated += new global::Gtk.RowActivatedHandler(this.OnRowActivated);
   4.270 +			this.buttonCancel.Activated += new global::System.EventHandler(this.OnButtonCancelActivated);
   4.271 +			this.buttonOk.Clicked += new global::System.EventHandler(this.OnButtonOkClicked);
   4.272 +		}
   4.273 +	}
   4.274  }
     5.1 --- a/gtk-gui/IBBoard.WarFoundry.GTK.Widgets.UnitDisplayWidget.cs	Sun Jan 31 20:46:06 2010 +0000
     5.2 +++ b/gtk-gui/IBBoard.WarFoundry.GTK.Widgets.UnitDisplayWidget.cs	Sat Aug 07 19:56:05 2010 +0000
     5.3 @@ -1,273 +1,266 @@
     5.4 -// ------------------------------------------------------------------------------
     5.5 -//  <autogenerated>
     5.6 -//      This code was generated by a tool.
     5.7 -//      
     5.8 -// 
     5.9 -//      Changes to this file may cause incorrect behavior and will be lost if 
    5.10 -//      the code is regenerated.
    5.11 -//  </autogenerated>
    5.12 -// ------------------------------------------------------------------------------
    5.13  
    5.14 -namespace IBBoard.WarFoundry.GTK.Widgets {
    5.15 -    
    5.16 -    
    5.17 -    public partial class UnitDisplayWidget {
    5.18 -        
    5.19 -        private Gtk.VBox vbox1;
    5.20 -        
    5.21 -        private Gtk.HBox hbox1;
    5.22 -        
    5.23 -        private Gtk.Entry unitName;
    5.24 -        
    5.25 -        private Gtk.SpinButton unitSize;
    5.26 -        
    5.27 -        private Gtk.ScrolledWindow GtkScrolledWindow;
    5.28 -        
    5.29 -        private Gtk.NodeView unitStats;
    5.30 -        
    5.31 -        private Gtk.HSeparator hseparator1;
    5.32 -        
    5.33 -        private Gtk.Table table1;
    5.34 -        
    5.35 -        private Gtk.ScrolledWindow GtkScrolledWindow1;
    5.36 -        
    5.37 -        private Gtk.NodeView optionalEquipment;
    5.38 -        
    5.39 -        private Gtk.ScrolledWindow GtkScrolledWindow2;
    5.40 -        
    5.41 -        private Gtk.NodeView requiredEquipment;
    5.42 -        
    5.43 -        private Gtk.Label optionalEquipmentLabel;
    5.44 -        
    5.45 -        private Gtk.Label requiredEquipmentLabel;
    5.46 -        
    5.47 -        private Gtk.VBox vbox2;
    5.48 -        
    5.49 -        private Gtk.Button bttnReplaceRequired;
    5.50 -        
    5.51 -        private Gtk.Button bttnEditRequired;
    5.52 -        
    5.53 -        private Gtk.VBox vbox3;
    5.54 -        
    5.55 -        private Gtk.Button bttnAddOptional;
    5.56 -        
    5.57 -        private Gtk.Button bttnEditOptional;
    5.58 -        
    5.59 -        private Gtk.Button bttnRemove;
    5.60 -        
    5.61 -        private Gtk.HBox hbox2;
    5.62 -        
    5.63 -        protected virtual void Build() {
    5.64 -            Stetic.Gui.Initialize(this);
    5.65 -            // Widget IBBoard.WarFoundry.GTK.Widgets.UnitDisplayWidget
    5.66 -            Stetic.BinContainer.Attach(this);
    5.67 -            this.Name = "IBBoard.WarFoundry.GTK.Widgets.UnitDisplayWidget";
    5.68 -            // Container child IBBoard.WarFoundry.GTK.Widgets.UnitDisplayWidget.Gtk.Container+ContainerChild
    5.69 -            this.vbox1 = new Gtk.VBox();
    5.70 -            this.vbox1.Name = "vbox1";
    5.71 -            this.vbox1.Spacing = 6;
    5.72 -            // Container child vbox1.Gtk.Box+BoxChild
    5.73 -            this.hbox1 = new Gtk.HBox();
    5.74 -            this.hbox1.Name = "hbox1";
    5.75 -            this.hbox1.Spacing = 6;
    5.76 -            // Container child hbox1.Gtk.Box+BoxChild
    5.77 -            this.unitName = new Gtk.Entry();
    5.78 -            this.unitName.CanFocus = true;
    5.79 -            this.unitName.Name = "unitName";
    5.80 -            this.unitName.IsEditable = true;
    5.81 -            this.unitName.InvisibleChar = '•';
    5.82 -            this.hbox1.Add(this.unitName);
    5.83 -            Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.hbox1[this.unitName]));
    5.84 -            w1.Position = 0;
    5.85 -            // Container child hbox1.Gtk.Box+BoxChild
    5.86 -            this.unitSize = new Gtk.SpinButton(0, 100, 1);
    5.87 -            this.unitSize.CanFocus = true;
    5.88 -            this.unitSize.Name = "unitSize";
    5.89 -            this.unitSize.Adjustment.PageIncrement = 10;
    5.90 -            this.unitSize.ClimbRate = 1;
    5.91 -            this.unitSize.Numeric = true;
    5.92 -            this.hbox1.Add(this.unitSize);
    5.93 -            Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.unitSize]));
    5.94 -            w2.Position = 1;
    5.95 -            w2.Expand = false;
    5.96 -            w2.Fill = false;
    5.97 -            this.vbox1.Add(this.hbox1);
    5.98 -            Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
    5.99 -            w3.Position = 0;
   5.100 -            w3.Expand = false;
   5.101 -            w3.Fill = false;
   5.102 -            // Container child vbox1.Gtk.Box+BoxChild
   5.103 -            this.GtkScrolledWindow = new Gtk.ScrolledWindow();
   5.104 -            this.GtkScrolledWindow.Name = "GtkScrolledWindow";
   5.105 -            this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
   5.106 -            // Container child GtkScrolledWindow.Gtk.Container+ContainerChild
   5.107 -            this.unitStats = new Gtk.NodeView();
   5.108 -            this.unitStats.HeightRequest = 75;
   5.109 -            this.unitStats.CanFocus = true;
   5.110 -            this.unitStats.Name = "unitStats";
   5.111 -            this.GtkScrolledWindow.Add(this.unitStats);
   5.112 -            this.vbox1.Add(this.GtkScrolledWindow);
   5.113 -            Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox1[this.GtkScrolledWindow]));
   5.114 -            w5.Position = 1;
   5.115 -            // Container child vbox1.Gtk.Box+BoxChild
   5.116 -            this.hseparator1 = new Gtk.HSeparator();
   5.117 -            this.hseparator1.Name = "hseparator1";
   5.118 -            this.vbox1.Add(this.hseparator1);
   5.119 -            Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox1[this.hseparator1]));
   5.120 -            w6.Position = 2;
   5.121 -            w6.Expand = false;
   5.122 -            w6.Fill = false;
   5.123 -            // Container child vbox1.Gtk.Box+BoxChild
   5.124 -            this.table1 = new Gtk.Table(((uint)(2)), ((uint)(3)), false);
   5.125 -            this.table1.Name = "table1";
   5.126 -            this.table1.RowSpacing = ((uint)(6));
   5.127 -            this.table1.ColumnSpacing = ((uint)(6));
   5.128 -            // Container child table1.Gtk.Table+TableChild
   5.129 -            this.GtkScrolledWindow1 = new Gtk.ScrolledWindow();
   5.130 -            this.GtkScrolledWindow1.Name = "GtkScrolledWindow1";
   5.131 -            this.GtkScrolledWindow1.ShadowType = ((Gtk.ShadowType)(1));
   5.132 -            // Container child GtkScrolledWindow1.Gtk.Container+ContainerChild
   5.133 -            this.optionalEquipment = new Gtk.NodeView();
   5.134 -            this.optionalEquipment.CanFocus = true;
   5.135 -            this.optionalEquipment.Name = "optionalEquipment";
   5.136 -            this.GtkScrolledWindow1.Add(this.optionalEquipment);
   5.137 -            this.table1.Add(this.GtkScrolledWindow1);
   5.138 -            Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table1[this.GtkScrolledWindow1]));
   5.139 -            w8.TopAttach = ((uint)(1));
   5.140 -            w8.BottomAttach = ((uint)(2));
   5.141 -            w8.LeftAttach = ((uint)(1));
   5.142 -            w8.RightAttach = ((uint)(2));
   5.143 -            w8.YOptions = ((Gtk.AttachOptions)(4));
   5.144 -            // Container child table1.Gtk.Table+TableChild
   5.145 -            this.GtkScrolledWindow2 = new Gtk.ScrolledWindow();
   5.146 -            this.GtkScrolledWindow2.Name = "GtkScrolledWindow2";
   5.147 -            this.GtkScrolledWindow2.ShadowType = ((Gtk.ShadowType)(1));
   5.148 -            // Container child GtkScrolledWindow2.Gtk.Container+ContainerChild
   5.149 -            this.requiredEquipment = new Gtk.NodeView();
   5.150 -            this.requiredEquipment.CanFocus = true;
   5.151 -            this.requiredEquipment.Name = "requiredEquipment";
   5.152 -            this.GtkScrolledWindow2.Add(this.requiredEquipment);
   5.153 -            this.table1.Add(this.GtkScrolledWindow2);
   5.154 -            Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table1[this.GtkScrolledWindow2]));
   5.155 -            w10.LeftAttach = ((uint)(1));
   5.156 -            w10.RightAttach = ((uint)(2));
   5.157 -            w10.YOptions = ((Gtk.AttachOptions)(4));
   5.158 -            // Container child table1.Gtk.Table+TableChild
   5.159 -            this.optionalEquipmentLabel = new Gtk.Label();
   5.160 -            this.optionalEquipmentLabel.Name = "optionalEquipmentLabel";
   5.161 -            this.optionalEquipmentLabel.LabelProp = Mono.Unix.Catalog.GetString("Optional Equipment:");
   5.162 -            this.table1.Add(this.optionalEquipmentLabel);
   5.163 -            Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table1[this.optionalEquipmentLabel]));
   5.164 -            w11.TopAttach = ((uint)(1));
   5.165 -            w11.BottomAttach = ((uint)(2));
   5.166 -            w11.XOptions = ((Gtk.AttachOptions)(4));
   5.167 -            w11.YOptions = ((Gtk.AttachOptions)(4));
   5.168 -            // Container child table1.Gtk.Table+TableChild
   5.169 -            this.requiredEquipmentLabel = new Gtk.Label();
   5.170 -            this.requiredEquipmentLabel.Name = "requiredEquipmentLabel";
   5.171 -            this.requiredEquipmentLabel.LabelProp = Mono.Unix.Catalog.GetString("Required Equipment:");
   5.172 -            this.table1.Add(this.requiredEquipmentLabel);
   5.173 -            Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table1[this.requiredEquipmentLabel]));
   5.174 -            w12.XOptions = ((Gtk.AttachOptions)(4));
   5.175 -            w12.YOptions = ((Gtk.AttachOptions)(4));
   5.176 -            // Container child table1.Gtk.Table+TableChild
   5.177 -            this.vbox2 = new Gtk.VBox();
   5.178 -            this.vbox2.Name = "vbox2";
   5.179 -            this.vbox2.Spacing = 6;
   5.180 -            // Container child vbox2.Gtk.Box+BoxChild
   5.181 -            this.bttnReplaceRequired = new Gtk.Button();
   5.182 -            this.bttnReplaceRequired.CanFocus = true;
   5.183 -            this.bttnReplaceRequired.Name = "bttnReplaceRequired";
   5.184 -            this.bttnReplaceRequired.UseUnderline = true;
   5.185 -            this.bttnReplaceRequired.Label = Mono.Unix.Catalog.GetString("Replace");
   5.186 -            this.vbox2.Add(this.bttnReplaceRequired);
   5.187 -            Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.vbox2[this.bttnReplaceRequired]));
   5.188 -            w13.Position = 0;
   5.189 -            w13.Expand = false;
   5.190 -            w13.Fill = false;
   5.191 -            // Container child vbox2.Gtk.Box+BoxChild
   5.192 -            this.bttnEditRequired = new Gtk.Button();
   5.193 -            this.bttnEditRequired.CanFocus = true;
   5.194 -            this.bttnEditRequired.Name = "bttnEditRequired";
   5.195 -            this.bttnEditRequired.UseUnderline = true;
   5.196 -            this.bttnEditRequired.Label = Mono.Unix.Catalog.GetString("Edit");
   5.197 -            this.vbox2.Add(this.bttnEditRequired);
   5.198 -            Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox2[this.bttnEditRequired]));
   5.199 -            w14.Position = 1;
   5.200 -            w14.Expand = false;
   5.201 -            w14.Fill = false;
   5.202 -            this.table1.Add(this.vbox2);
   5.203 -            Gtk.Table.TableChild w15 = ((Gtk.Table.TableChild)(this.table1[this.vbox2]));
   5.204 -            w15.LeftAttach = ((uint)(2));
   5.205 -            w15.RightAttach = ((uint)(3));
   5.206 -            w15.XOptions = ((Gtk.AttachOptions)(4));
   5.207 -            w15.YOptions = ((Gtk.AttachOptions)(4));
   5.208 -            // Container child table1.Gtk.Table+TableChild
   5.209 -            this.vbox3 = new Gtk.VBox();
   5.210 -            this.vbox3.Name = "vbox3";
   5.211 -            this.vbox3.Spacing = 6;
   5.212 -            // Container child vbox3.Gtk.Box+BoxChild
   5.213 -            this.bttnAddOptional = new Gtk.Button();
   5.214 -            this.bttnAddOptional.CanFocus = true;
   5.215 -            this.bttnAddOptional.Name = "bttnAddOptional";
   5.216 -            this.bttnAddOptional.UseUnderline = true;
   5.217 -            this.bttnAddOptional.Label = Mono.Unix.Catalog.GetString("Add");
   5.218 -            this.vbox3.Add(this.bttnAddOptional);
   5.219 -            Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox3[this.bttnAddOptional]));
   5.220 -            w16.Position = 0;
   5.221 -            w16.Expand = false;
   5.222 -            w16.Fill = false;
   5.223 -            // Container child vbox3.Gtk.Box+BoxChild
   5.224 -            this.bttnEditOptional = new Gtk.Button();
   5.225 -            this.bttnEditOptional.CanFocus = true;
   5.226 -            this.bttnEditOptional.Name = "bttnEditOptional";
   5.227 -            this.bttnEditOptional.UseUnderline = true;
   5.228 -            this.bttnEditOptional.Label = Mono.Unix.Catalog.GetString("Edit");
   5.229 -            this.vbox3.Add(this.bttnEditOptional);
   5.230 -            Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.vbox3[this.bttnEditOptional]));
   5.231 -            w17.Position = 1;
   5.232 -            w17.Expand = false;
   5.233 -            w17.Fill = false;
   5.234 -            // Container child vbox3.Gtk.Box+BoxChild
   5.235 -            this.bttnRemove = new Gtk.Button();
   5.236 -            this.bttnRemove.CanFocus = true;
   5.237 -            this.bttnRemove.Name = "bttnRemove";
   5.238 -            this.bttnRemove.UseUnderline = true;
   5.239 -            this.bttnRemove.Label = Mono.Unix.Catalog.GetString("Remove");
   5.240 -            this.vbox3.Add(this.bttnRemove);
   5.241 -            Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.vbox3[this.bttnRemove]));
   5.242 -            w18.Position = 2;
   5.243 -            w18.Expand = false;
   5.244 -            w18.Fill = false;
   5.245 -            this.table1.Add(this.vbox3);
   5.246 -            Gtk.Table.TableChild w19 = ((Gtk.Table.TableChild)(this.table1[this.vbox3]));
   5.247 -            w19.TopAttach = ((uint)(1));
   5.248 -            w19.BottomAttach = ((uint)(2));
   5.249 -            w19.LeftAttach = ((uint)(2));
   5.250 -            w19.RightAttach = ((uint)(3));
   5.251 -            w19.XOptions = ((Gtk.AttachOptions)(4));
   5.252 -            w19.YOptions = ((Gtk.AttachOptions)(4));
   5.253 -            this.vbox1.Add(this.table1);
   5.254 -            Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.vbox1[this.table1]));
   5.255 -            w20.Position = 3;
   5.256 -            w20.Expand = false;
   5.257 -            w20.Fill = false;
   5.258 -            // Container child vbox1.Gtk.Box+BoxChild
   5.259 -            this.hbox2 = new Gtk.HBox();
   5.260 -            this.hbox2.Name = "hbox2";
   5.261 -            this.hbox2.Spacing = 6;
   5.262 -            this.vbox1.Add(this.hbox2);
   5.263 -            Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox2]));
   5.264 -            w21.Position = 4;
   5.265 -            this.Add(this.vbox1);
   5.266 -            if ((this.Child != null)) {
   5.267 -                this.Child.ShowAll();
   5.268 -            }
   5.269 -            this.Show();
   5.270 -            this.unitName.FocusOutEvent += new Gtk.FocusOutEventHandler(this.OnUnitNameFocusOut);
   5.271 -            this.unitName.KeyPressEvent += new Gtk.KeyPressEventHandler(this.OnUnitNameKeyPress);
   5.272 -            this.unitSize.FocusOutEvent += new Gtk.FocusOutEventHandler(this.OnUnitSizeFocusOut);
   5.273 -            this.unitSize.KeyPressEvent += new Gtk.KeyPressEventHandler(this.OnUnitSizeKeyPress);
   5.274 -        }
   5.275 -    }
   5.276 +// This file has been generated by the GUI designer. Do not modify.
   5.277 +namespace IBBoard.WarFoundry.GTK.Widgets
   5.278 +{
   5.279 +	public partial class UnitDisplayWidget
   5.280 +	{
   5.281 +		private global::Gtk.VBox vbox1;
   5.282 +
   5.283 +		private global::Gtk.HBox hbox1;
   5.284 +
   5.285 +		private global::Gtk.Entry unitName;
   5.286 +
   5.287 +		private global::Gtk.SpinButton unitSize;
   5.288 +
   5.289 +		private global::Gtk.ScrolledWindow GtkScrolledWindow;
   5.290 +
   5.291 +		private global::Gtk.NodeView unitStats;
   5.292 +
   5.293 +		private global::Gtk.HSeparator hseparator1;
   5.294 +
   5.295 +		private global::Gtk.Table table1;
   5.296 +
   5.297 +		private global::Gtk.ScrolledWindow GtkScrolledWindow1;
   5.298 +
   5.299 +		private global::Gtk.NodeView optionalEquipment;
   5.300 +
   5.301 +		private global::Gtk.ScrolledWindow GtkScrolledWindow2;
   5.302 +
   5.303 +		private global::Gtk.NodeView requiredEquipment;
   5.304 +
   5.305 +		private global::Gtk.Label optionalEquipmentLabel;
   5.306 +
   5.307 +		private global::Gtk.Label requiredEquipmentLabel;
   5.308 +
   5.309 +		private global::Gtk.VBox vbox2;
   5.310 +
   5.311 +		private global::Gtk.Button bttnReplaceRequired;
   5.312 +
   5.313 +		private global::Gtk.Button bttnEditRequired;
   5.314 +
   5.315 +		private global::Gtk.VBox vbox3;
   5.316 +
   5.317 +		private global::Gtk.Button bttnAddOptional;
   5.318 +
   5.319 +		private global::Gtk.Button bttnEditOptional;
   5.320 +
   5.321 +		private global::Gtk.Button bttnRemove;
   5.322 +
   5.323 +		private global::Gtk.HBox hbox2;
   5.324 +
   5.325 +		protected virtual void Build()
   5.326 +		{
   5.327 +			global::Stetic.Gui.Initialize(this);
   5.328 +			// Widget IBBoard.WarFoundry.GTK.Widgets.UnitDisplayWidget
   5.329 +			global::Stetic.BinContainer.Attach(this);
   5.330 +			this.Name = "IBBoard.WarFoundry.GTK.Widgets.UnitDisplayWidget";
   5.331 +			// Container child IBBoard.WarFoundry.GTK.Widgets.UnitDisplayWidget.Gtk.Container+ContainerChild
   5.332 +			this.vbox1 = new global::Gtk.VBox();
   5.333 +			this.vbox1.Name = "vbox1";
   5.334 +			this.vbox1.Spacing = 6;
   5.335 +			// Container child vbox1.Gtk.Box+BoxChild
   5.336 +			this.hbox1 = new global::Gtk.HBox();
   5.337 +			this.hbox1.Name = "hbox1";
   5.338 +			this.hbox1.Spacing = 6;
   5.339 +			// Container child hbox1.Gtk.Box+BoxChild
   5.340 +			this.unitName = new global::Gtk.Entry();
   5.341 +			this.unitName.CanFocus = true;
   5.342 +			this.unitName.Name = "unitName";
   5.343 +			this.unitName.IsEditable = true;
   5.344 +			this.unitName.InvisibleChar = '•';
   5.345 +			this.hbox1.Add(this.unitName);
   5.346 +			global::Gtk.Box.BoxChild w1 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.unitName]));
   5.347 +			w1.Position = 0;
   5.348 +			// Container child hbox1.Gtk.Box+BoxChild
   5.349 +			this.unitSize = new global::Gtk.SpinButton(0, 100, 1);
   5.350 +			this.unitSize.CanFocus = true;
   5.351 +			this.unitSize.Name = "unitSize";
   5.352 +			this.unitSize.Adjustment.PageIncrement = 10;
   5.353 +			this.unitSize.ClimbRate = 1;
   5.354 +			this.unitSize.Numeric = true;
   5.355 +			this.hbox1.Add(this.unitSize);
   5.356 +			global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.unitSize]));
   5.357 +			w2.Position = 1;
   5.358 +			w2.Expand = false;
   5.359 +			w2.Fill = false;
   5.360 +			this.vbox1.Add(this.hbox1);
   5.361 +			global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
   5.362 +			w3.Position = 0;
   5.363 +			w3.Expand = false;
   5.364 +			w3.Fill = false;
   5.365 +			// Container child vbox1.Gtk.Box+BoxChild
   5.366 +			this.GtkScrolledWindow = new global::Gtk.ScrolledWindow();
   5.367 +			this.GtkScrolledWindow.Name = "GtkScrolledWindow";
   5.368 +			this.GtkScrolledWindow.ShadowType = ((global::Gtk.ShadowType)(1));
   5.369 +			// Container child GtkScrolledWindow.Gtk.Container+ContainerChild
   5.370 +			this.unitStats = new global::Gtk.NodeView();
   5.371 +			this.unitStats.HeightRequest = 75;
   5.372 +			this.unitStats.CanFocus = true;
   5.373 +			this.unitStats.Name = "unitStats";
   5.374 +			this.GtkScrolledWindow.Add(this.unitStats);
   5.375 +			this.vbox1.Add(this.GtkScrolledWindow);
   5.376 +			global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.GtkScrolledWindow]));
   5.377 +			w5.Position = 1;
   5.378 +			// Container child vbox1.Gtk.Box+BoxChild
   5.379 +			this.hseparator1 = new global::Gtk.HSeparator();
   5.380 +			this.hseparator1.Name = "hseparator1";
   5.381 +			this.vbox1.Add(this.hseparator1);
   5.382 +			global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.hseparator1]));
   5.383 +			w6.Position = 2;
   5.384 +			w6.Expand = false;
   5.385 +			w6.Fill = false;
   5.386 +			// Container child vbox1.Gtk.Box+BoxChild
   5.387 +			this.table1 = new global::Gtk.Table(((uint)(2)), ((uint)(3)), false);
   5.388 +			this.table1.Name = "table1";
   5.389 +			this.table1.RowSpacing = ((uint)(6));
   5.390 +			this.table1.ColumnSpacing = ((uint)(6));
   5.391 +			// Container child table1.Gtk.Table+TableChild
   5.392 +			this.GtkScrolledWindow1 = new global::Gtk.ScrolledWindow();
   5.393 +			this.GtkScrolledWindow1.Name = "GtkScrolledWindow1";
   5.394 +			this.GtkScrolledWindow1.ShadowType = ((global::Gtk.ShadowType)(1));
   5.395 +			// Container child GtkScrolledWindow1.Gtk.Container+ContainerChild
   5.396 +			this.optionalEquipment = new global::Gtk.NodeView();
   5.397 +			this.optionalEquipment.CanFocus = true;
   5.398 +			this.optionalEquipment.Name = "optionalEquipment";
   5.399 +			this.GtkScrolledWindow1.Add(this.optionalEquipment);
   5.400 +			this.table1.Add(this.GtkScrolledWindow1);
   5.401 +			global::Gtk.Table.TableChild w8 = ((global::Gtk.Table.TableChild)(this.table1[this.GtkScrolledWindow1]));
   5.402 +			w8.TopAttach = ((uint)(1));
   5.403 +			w8.BottomAttach = ((uint)(2));
   5.404 +			w8.LeftAttach = ((uint)(1));
   5.405 +			w8.RightAttach = ((uint)(2));
   5.406 +			w8.YOptions = ((global::Gtk.AttachOptions)(4));
   5.407 +			// Container child table1.Gtk.Table+TableChild
   5.408 +			this.GtkScrolledWindow2 = new global::Gtk.ScrolledWindow();
   5.409 +			this.GtkScrolledWindow2.Name = "GtkScrolledWindow2";
   5.410 +			this.GtkScrolledWindow2.ShadowType = ((global::Gtk.ShadowType)(1));
   5.411 +			// Container child GtkScrolledWindow2.Gtk.Container+ContainerChild
   5.412 +			this.requiredEquipment = new global::Gtk.NodeView();
   5.413 +			this.requiredEquipment.CanFocus = true;
   5.414 +			this.requiredEquipment.Name = "requiredEquipment";
   5.415 +			this.GtkScrolledWindow2.Add(this.requiredEquipment);
   5.416 +			this.table1.Add(this.GtkScrolledWindow2);
   5.417 +			global::Gtk.Table.TableChild w10 = ((global::Gtk.Table.TableChild)(this.table1[this.GtkScrolledWindow2]));
   5.418 +			w10.LeftAttach = ((uint)(1));
   5.419 +			w10.RightAttach = ((uint)(2));
   5.420 +			w10.YOptions = ((global::Gtk.AttachOptions)(4));
   5.421 +			// Container child table1.Gtk.Table+TableChild
   5.422 +			this.optionalEquipmentLabel = new global::Gtk.Label();
   5.423 +			this.optionalEquipmentLabel.Name = "optionalEquipmentLabel";
   5.424 +			this.optionalEquipmentLabel.LabelProp = global::Mono.Unix.Catalog.GetString("Optional Equipment:");
   5.425 +			this.table1.Add(this.optionalEquipmentLabel);
   5.426 +			global::Gtk.Table.TableChild w11 = ((global::Gtk.Table.TableChild)(this.table1[this.optionalEquipmentLabel]));
   5.427 +			w11.TopAttach = ((uint)(1));
   5.428 +			w11.BottomAttach = ((uint)(2));
   5.429 +			w11.XOptions = ((global::Gtk.AttachOptions)(4));
   5.430 +			w11.YOptions = ((global::Gtk.AttachOptions)(4));
   5.431 +			// Container child table1.Gtk.Table+TableChild
   5.432 +			this.requiredEquipmentLabel = new global::Gtk.Label();
   5.433 +			this.requiredEquipmentLabel.Name = "requiredEquipmentLabel";
   5.434 +			this.requiredEquipmentLabel.LabelProp = global::Mono.Unix.Catalog.GetString("Required Equipment:");
   5.435 +			this.table1.Add(this.requiredEquipmentLabel);
   5.436 +			global::Gtk.Table.TableChild w12 = ((global::Gtk.Table.TableChild)(this.table1[this.requiredEquipmentLabel]));
   5.437 +			w12.XOptions = ((global::Gtk.AttachOptions)(4));
   5.438 +			w12.YOptions = ((global::Gtk.AttachOptions)(4));
   5.439 +			// Container child table1.Gtk.Table+TableChild
   5.440 +			this.vbox2 = new global::Gtk.VBox();
   5.441 +			this.vbox2.Name = "vbox2";
   5.442 +			this.vbox2.Spacing = 6;
   5.443 +			// Container child vbox2.Gtk.Box+BoxChild
   5.444 +			this.bttnReplaceRequired = new global::Gtk.Button();
   5.445 +			this.bttnReplaceRequired.CanFocus = true;
   5.446 +			this.bttnReplaceRequired.Name = "bttnReplaceRequired";
   5.447 +			this.bttnReplaceRequired.UseUnderline = true;
   5.448 +			this.bttnReplaceRequired.Label = global::Mono.Unix.Catalog.GetString("Replace");
   5.449 +			this.vbox2.Add(this.bttnReplaceRequired);
   5.450 +			global::Gtk.Box.BoxChild w13 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.bttnReplaceRequired]));
   5.451 +			w13.Position = 0;
   5.452 +			w13.Expand = false;
   5.453 +			w13.Fill = false;
   5.454 +			// Container child vbox2.Gtk.Box+BoxChild
   5.455 +			this.bttnEditRequired = new global::Gtk.Button();
   5.456 +			this.bttnEditRequired.CanFocus = true;
   5.457 +			this.bttnEditRequired.Name = "bttnEditRequired";
   5.458 +			this.bttnEditRequired.UseUnderline = true;
   5.459 +			this.bttnEditRequired.Label = global::Mono.Unix.Catalog.GetString("Edit");
   5.460 +			this.vbox2.Add(this.bttnEditRequired);
   5.461 +			global::Gtk.Box.BoxChild w14 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.bttnEditRequired]));
   5.462 +			w14.Position = 1;
   5.463 +			w14.Expand = false;
   5.464 +			w14.Fill = false;
   5.465 +			this.table1.Add(this.vbox2);
   5.466 +			global::Gtk.Table.TableChild w15 = ((global::Gtk.Table.TableChild)(this.table1[this.vbox2]));
   5.467 +			w15.LeftAttach = ((uint)(2));
   5.468 +			w15.RightAttach = ((uint)(3));
   5.469 +			w15.XOptions = ((global::Gtk.AttachOptions)(4));
   5.470 +			w15.YOptions = ((global::Gtk.AttachOptions)(4));
   5.471 +			// Container child table1.Gtk.Table+TableChild
   5.472 +			this.vbox3 = new global::Gtk.VBox();
   5.473 +			this.vbox3.Name = "vbox3";
   5.474 +			this.vbox3.Spacing = 6;
   5.475 +			// Container child vbox3.Gtk.Box+BoxChild
   5.476 +			this.bttnAddOptional = new global::Gtk.Button();
   5.477 +			this.bttnAddOptional.CanFocus = true;
   5.478 +			this.bttnAddOptional.Name = "bttnAddOptional";
   5.479 +			this.bttnAddOptional.UseUnderline = true;
   5.480 +			this.bttnAddOptional.Label = global::Mono.Unix.Catalog.GetString("Add");
   5.481 +			this.vbox3.Add(this.bttnAddOptional);
   5.482 +			global::Gtk.Box.BoxChild w16 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.bttnAddOptional]));
   5.483 +			w16.Position = 0;
   5.484 +			w16.Expand = false;
   5.485 +			w16.Fill = false;
   5.486 +			// Container child vbox3.Gtk.Box+BoxChild
   5.487 +			this.bttnEditOptional = new global::Gtk.Button();
   5.488 +			this.bttnEditOptional.CanFocus = true;
   5.489 +			this.bttnEditOptional.Name = "bttnEditOptional";
   5.490 +			this.bttnEditOptional.UseUnderline = true;
   5.491 +			this.bttnEditOptional.Label = global::Mono.Unix.Catalog.GetString("Edit");
   5.492 +			this.vbox3.Add(this.bttnEditOptional);
   5.493 +			global::Gtk.Box.BoxChild w17 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.bttnEditOptional]));
   5.494 +			w17.Position = 1;
   5.495 +			w17.Expand = false;
   5.496 +			w17.Fill = false;
   5.497 +			// Container child vbox3.Gtk.Box+BoxChild
   5.498 +			this.bttnRemove = new global::Gtk.Button();
   5.499 +			this.bttnRemove.CanFocus = true;
   5.500 +			this.bttnRemove.Name = "bttnRemove";
   5.501 +			this.bttnRemove.UseUnderline = true;
   5.502 +			this.bttnRemove.Label = global::Mono.Unix.Catalog.GetString("Remove");
   5.503 +			this.vbox3.Add(this.bttnRemove);
   5.504 +			global::Gtk.Box.BoxChild w18 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.bttnRemove]));
   5.505 +			w18.Position = 2;
   5.506 +			w18.Expand = false;
   5.507 +			w18.Fill = false;
   5.508 +			this.table1.Add(this.vbox3);
   5.509 +			global::Gtk.Table.TableChild w19 = ((global::Gtk.Table.TableChild)(this.table1[this.vbox3]));
   5.510 +			w19.TopAttach = ((uint)(1));
   5.511 +			w19.BottomAttach = ((uint)(2));
   5.512 +			w19.LeftAttach = ((uint)(2));
   5.513 +			w19.RightAttach = ((uint)(3));
   5.514 +			w19.XOptions = ((global::Gtk.AttachOptions)(4));
   5.515 +			w19.YOptions = ((global::Gtk.AttachOptions)(4));
   5.516 +			this.vbox1.Add(this.table1);
   5.517 +			global::Gtk.Box.BoxChild w20 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.table1]));
   5.518 +			w20.Position = 3;
   5.519 +			w20.Expand = false;
   5.520 +			w20.Fill = false;
   5.521 +			// Container child vbox1.Gtk.Box+BoxChild
   5.522 +			this.hbox2 = new global::Gtk.HBox();
   5.523 +			this.hbox2.Name = "hbox2";
   5.524 +			this.hbox2.Spacing = 6;
   5.525 +			this.vbox1.Add(this.hbox2);
   5.526 +			global::Gtk.Box.BoxChild w21 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.hbox2]));
   5.527 +			w21.Position = 4;
   5.528 +			this.Add(this.vbox1);
   5.529 +			if ((this.Child != null))
   5.530 +			{
   5.531 +				this.Child.ShowAll();
   5.532 +			}
   5.533 +			this.Show();
   5.534 +			this.unitName.FocusOutEvent += new global::Gtk.FocusOutEventHandler(this.OnUnitNameFocusOut);
   5.535 +			this.unitName.KeyPressEvent += new global::Gtk.KeyPressEventHandler(this.OnUnitNameKeyPress);
   5.536 +			this.unitSize.FocusOutEvent += new global::Gtk.FocusOutEventHandler(this.OnUnitSizeFocusOut);
   5.537 +			this.unitSize.KeyPressEvent += new global::Gtk.KeyPressEventHandler(this.OnUnitSizeKeyPress);
   5.538 +		}
   5.539 +	}
   5.540  }
     6.1 --- a/gtk-gui/generated.cs	Sun Jan 31 20:46:06 2010 +0000
     6.2 +++ b/gtk-gui/generated.cs	Sat Aug 07 19:56:05 2010 +0000
     6.3 @@ -1,115 +1,132 @@
     6.4 -// ------------------------------------------------------------------------------
     6.5 -//  <autogenerated>
     6.6 -//      This code was generated by a tool.
     6.7 -//      
     6.8 -// 
     6.9 -//      Changes to this file may cause incorrect behavior and will be lost if 
    6.10 -//      the code is regenerated.
    6.11 -//  </autogenerated>
    6.12 -// ------------------------------------------------------------------------------
    6.13  
    6.14 -namespace Stetic {
    6.15 -    
    6.16 -    
    6.17 -    internal class Gui {
    6.18 -        
    6.19 -        private static bool initialized;
    6.20 -        
    6.21 -        internal static void Initialize(Gtk.Widget iconRenderer) {
    6.22 -            if ((Stetic.Gui.initialized == false)) {
    6.23 -                Stetic.Gui.initialized = true;
    6.24 -            }
    6.25 -        }
    6.26 -    }
    6.27 -    
    6.28 -    internal class IconLoader {
    6.29 -        
    6.30 -        public static Gdk.Pixbuf LoadIcon(Gtk.Widget widget, string name, Gtk.IconSize size, int sz) {
    6.31 -            Gdk.Pixbuf res = widget.RenderIcon(name, size, null);
    6.32 -            if ((res != null)) {
    6.33 -                return res;
    6.34 -            }
    6.35 -            else {
    6.36 -                try {
    6.37 -                    return Gtk.IconTheme.Default.LoadIcon(name, sz, 0);
    6.38 -                }
    6.39 -                catch (System.Exception ) {
    6.40 -                    if ((name != "gtk-missing-image")) {
    6.41 -                        return Stetic.IconLoader.LoadIcon(widget, "gtk-missing-image", size, sz);
    6.42 -                    }
    6.43 -                    else {
    6.44 -                        Gdk.Pixmap pmap = new Gdk.Pixmap(Gdk.Screen.Default.RootWindow, sz, sz);
    6.45 -                        Gdk.GC gc = new Gdk.GC(pmap);
    6.46 -                        gc.RgbFgColor = new Gdk.Color(255, 255, 255);
    6.47 -                        pmap.DrawRectangle(gc, true, 0, 0, sz, sz);
    6.48 -                        gc.RgbFgColor = new Gdk.Color(0, 0, 0);
    6.49 -                        pmap.DrawRectangle(gc, false, 0, 0, (sz - 1), (sz - 1));
    6.50 -                        gc.SetLineAttributes(3, Gdk.LineStyle.Solid, Gdk.CapStyle.Round, Gdk.JoinStyle.Round);
    6.51 -                        gc.RgbFgColor = new Gdk.Color(255, 0, 0);
    6.52 -                        pmap.DrawLine(gc, (sz / 4), (sz / 4), ((sz - 1) - (sz / 4)), ((sz - 1) - (sz / 4)));
    6.53 -                        pmap.DrawLine(gc, ((sz - 1) - (sz / 4)), (sz / 4), (sz / 4), ((sz - 1) - (sz / 4)));
    6.54 -                        return Gdk.Pixbuf.FromDrawable(pmap, pmap.Colormap, 0, 0, 0, 0, sz, sz);
    6.55 -                    }
    6.56 -                }
    6.57 -            }
    6.58 -        }
    6.59 -    }
    6.60 -    
    6.61 -    internal class BinContainer {
    6.62 -        
    6.63 -        private Gtk.Widget child;
    6.64 -        
    6.65 -        private Gtk.UIManager uimanager;
    6.66 -        
    6.67 -        public static BinContainer Attach(Gtk.Bin bin) {
    6.68 -            BinContainer bc = new BinContainer();
    6.69 -            bin.SizeRequested += new Gtk.SizeRequestedHandler(bc.OnSizeRequested);
    6.70 -            bin.SizeAllocated += new Gtk.SizeAllocatedHandler(bc.OnSizeAllocated);
    6.71 -            bin.Added += new Gtk.AddedHandler(bc.OnAdded);
    6.72 -            return bc;
    6.73 -        }
    6.74 -        
    6.75 -        private void OnSizeRequested(object sender, Gtk.SizeRequestedArgs args) {
    6.76 -            if ((this.child != null)) {
    6.77 -                args.Requisition = this.child.SizeRequest();
    6.78 -            }
    6.79 -        }
    6.80 -        
    6.81 -        private void OnSizeAllocated(object sender, Gtk.SizeAllocatedArgs args) {
    6.82 -            if ((this.child != null)) {
    6.83 -                this.child.Allocation = args.Allocation;
    6.84 -            }
    6.85 -        }
    6.86 -        
    6.87 -        private void OnAdded(object sender, Gtk.AddedArgs args) {
    6.88 -            this.child = args.Widget;
    6.89 -        }
    6.90 -        
    6.91 -        public void SetUiManager(Gtk.UIManager uim) {
    6.92 -            this.uimanager = uim;
    6.93 -            this.child.Realized += new System.EventHandler(this.OnRealized);
    6.94 -        }
    6.95 -        
    6.96 -        private void OnRealized(object sender, System.EventArgs args) {
    6.97 -            if ((this.uimanager != null)) {
    6.98 -                Gtk.Widget w;
    6.99 -                w = this.child.Toplevel;
   6.100 -                if (((w != null) && typeof(Gtk.Window).IsInstanceOfType(w))) {
   6.101 -                    ((Gtk.Window)(w)).AddAccelGroup(this.uimanager.AccelGroup);
   6.102 -                    this.uimanager = null;
   6.103 -                }
   6.104 -            }
   6.105 -        }
   6.106 -    }
   6.107 -    
   6.108 -    internal class ActionGroups {
   6.109 -        
   6.110 -        public static Gtk.ActionGroup GetActionGroup(System.Type type) {
   6.111 -            return Stetic.ActionGroups.GetActionGroup(type.FullName);
   6.112 -        }
   6.113 -        
   6.114 -        public static Gtk.ActionGroup GetActionGroup(string name) {
   6.115 -            return null;
   6.116 -        }
   6.117 -    }
   6.118 +// This file has been generated by the GUI designer. Do not modify.
   6.119 +namespace Stetic
   6.120 +{
   6.121 +	internal class Gui
   6.122 +	{
   6.123 +		private static bool initialized;
   6.124 +
   6.125 +		static internal void Initialize(Gtk.Widget iconRenderer)
   6.126 +		{
   6.127 +			if ((Stetic.Gui.initialized == false))
   6.128 +			{
   6.129 +				Stetic.Gui.initialized = true;
   6.130 +			}
   6.131 +		}
   6.132 +	}
   6.133 +
   6.134 +	internal class IconLoader
   6.135 +	{
   6.136 +		public static Gdk.Pixbuf LoadIcon(Gtk.Widget widget, string name, Gtk.IconSize size)
   6.137 +		{
   6.138 +			Gdk.Pixbuf res = widget.RenderIcon(name, size, null);
   6.139 +			if ((res != null))
   6.140 +			{
   6.141 +				return res;
   6.142 +			}
   6.143 +
   6.144 +			else
   6.145 +			{
   6.146 +				int sz;
   6.147 +				int sy;
   6.148 +				global::Gtk.Icon.SizeLookup(size, out sz, out sy);
   6.149 +				try
   6.150 +				{
   6.151 +					return Gtk.IconTheme.Default.LoadIcon(name, sz, 0);
   6.152 +				}
   6.153 +				catch (System.Exception)
   6.154 +				{
   6.155 +					if ((name != "gtk-missing-image"))
   6.156 +					{
   6.157 +						return Stetic.IconLoader.LoadIcon(widget, "gtk-missing-image", size);
   6.158 +					}
   6.159 +
   6.160 +					else
   6.161 +					{
   6.162 +						Gdk.Pixmap pmap = new Gdk.Pixmap(Gdk.Screen.Default.RootWindow, sz, sz);
   6.163 +						Gdk.GC gc = new Gdk.GC(pmap);
   6.164 +						gc.RgbFgColor = new Gdk.Color(255, 255, 255);
   6.165 +						pmap.DrawRectangle(gc, true, 0, 0, sz, sz);
   6.166 +						gc.RgbFgColor = new Gdk.Color(0, 0, 0);
   6.167 +						pmap.DrawRectangle(gc, false, 0, 0, (sz - 1), (sz - 1));
   6.168 +						gc.SetLineAttributes(3, Gdk.LineStyle.Solid, Gdk.CapStyle.Round, Gdk.JoinStyle.Round);
   6.169 +						gc.RgbFgColor = new Gdk.Color(255, 0, 0);
   6.170 +						pmap.DrawLine(gc, (sz / 4), (sz / 4), ((sz - 1) - (sz / 4)), ((sz - 1) - (sz / 4)));
   6.171 +						pmap.DrawLine(gc, ((sz - 1) - (sz / 4)), (sz / 4), (sz / 4), ((sz - 1) - (sz / 4)));
   6.172 +						return Gdk.Pixbuf.FromDrawable(pmap, pmap.Colormap, 0, 0, 0, 0, sz, sz);
   6.173 +					}
   6.174 +				}
   6.175 +			}
   6.176 +		}
   6.177 +	}
   6.178 +
   6.179 +	internal class BinContainer
   6.180 +	{
   6.181 +		private Gtk.Widget child;
   6.182 +
   6.183 +		private Gtk.UIManager uimanager;
   6.184 +
   6.185 +		public static BinContainer Attach(Gtk.Bin bin)
   6.186 +		{
   6.187 +			BinContainer bc = new BinContainer();
   6.188 +			bin.SizeRequested += new Gtk.SizeRequestedHandler(bc.OnSizeRequested);
   6.189 +			bin.SizeAllocated += new Gtk.SizeAllocatedHandler(bc.OnSizeAllocated);
   6.190 +			bin.Added += new Gtk.AddedHandler(bc.OnAdded);
   6.191 +			return bc;
   6.192 +		}
   6.193 +
   6.194 +		private void OnSizeRequested(object sender, Gtk.SizeRequestedArgs args)
   6.195 +		{
   6.196 +			if ((this.child != null))
   6.197 +			{
   6.198 +				args.Requisition = this.child.SizeRequest();
   6.199 +			}
   6.200 +		}
   6.201 +
   6.202 +		private void OnSizeAllocated(object sender, Gtk.SizeAllocatedArgs args)
   6.203 +		{
   6.204 +			if ((this.child != null))
   6.205 +			{
   6.206 +				this.child.Allocation = args.Allocation;
   6.207 +			}
   6.208 +		}
   6.209 +
   6.210 +		private void OnAdded(object sender, Gtk.AddedArgs args)
   6.211 +		{
   6.212 +			this.child = args.Widget;
   6.213 +		}
   6.214 +
   6.215 +		public void SetUiManager(Gtk.UIManager uim)
   6.216 +		{
   6.217 +			this.uimanager = uim;
   6.218 +			this.child.Realized += new System.EventHandler(this.OnRealized);
   6.219 +		}
   6.220 +
   6.221 +		private void OnRealized(object sender, System.EventArgs args)
   6.222 +		{
   6.223 +			if ((this.uimanager != null))
   6.224 +			{
   6.225 +				Gtk.Widget w;
   6.226 +				w = this.child.Toplevel;
   6.227 +				if (((w != null) && typeof(Gtk.Window).IsInstanceOfType(w)))
   6.228 +				{
   6.229 +					((Gtk.Window)(w)).AddAccelGroup(this.uimanager.AccelGroup);
   6.230 +					this.uimanager = null;
   6.231 +				}
   6.232 +			}
   6.233 +		}
   6.234 +	}
   6.235 +
   6.236 +	internal class ActionGroups
   6.237 +	{
   6.238 +		public static Gtk.ActionGroup GetActionGroup(System.Type type)
   6.239 +		{
   6.240 +			return Stetic.ActionGroups.GetActionGroup(type.FullName);
   6.241 +		}
   6.242 +
   6.243 +		public static Gtk.ActionGroup GetActionGroup(string name)
   6.244 +		{
   6.245 +			return null;
   6.246 +		}
   6.247 +	}
   6.248  }