Mercurial > repos > IBDev-IBBoard.WarFoundry.GUI.GTK
changeset 108:b51935854587
* Use new saver
* Add new dependency requirements for GUI projects
* Update default header in files
no-open-ticket
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Wed, 30 Mar 2011 19:37:33 +0000 |
parents | f7e02b1d96e1 |
children | 4ae69806bb2d |
files | FrmMainWindow.cs IBBoard.WarFoundry.GUI.GTK.csproj IBBoard.WarFoundry.GUI.GTK.sln |
diffstat | 3 files changed, 17 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/FrmMainWindow.cs Wed Mar 09 20:45:35 2011 +0000 +++ b/FrmMainWindow.cs Wed Mar 30 19:37:33 2011 +0000 @@ -29,6 +29,7 @@ using IBBoard.Xml; using log4net; using WFObjects = IBBoard.WarFoundry.API.Objects; +using IBBoard.WarFoundry.API.Savers.Xml; namespace IBBoard.WarFoundry.GUI.GTK { @@ -158,8 +159,7 @@ WarFoundryLoader.GetDefault().AddLoadDirectory(new DirectoryInfo(Constants.ExecutablePath + Constants.DirectoryString + "data")); WarFoundryLoader.GetDefault().RegisterFactory(WarFoundryXmlFactory.GetFactory()); WarFoundryLoader.GetDefault().FileLoadingFinished += FileLoadingFinished; - //TODO: Replace with a new saver using the "lots of files in one" interface - //WarFoundrySaver.SetFileSaver(new WarFoundryXmlArmySaver()); + WarFoundrySaver.SetFileSaver(new WarFoundryXmlFileSaver()); logger.Debug("Initialising complete - seeing if we can load default army or system");
--- a/IBBoard.WarFoundry.GUI.GTK.csproj Wed Mar 09 20:45:35 2011 +0000 +++ b/IBBoard.WarFoundry.GUI.GTK.csproj Wed Mar 30 19:37:33 2011 +0000 @@ -104,6 +104,7 @@ <Reference Include="Mono.Posix" /> <Reference Include="System" /> <Reference Include="glib-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" /> + <Reference Include="atk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" /> </ItemGroup> <ItemGroup> <ProjectReference Include="..\IBBoard.WarFoundry.API\IBBoard.WarFoundry.API.csproj"> @@ -118,6 +119,10 @@ <Project>{06605A63-E433-42FE-93CF-0DA6630A7DF5}</Project> <Name>IBBoard.GtkSharp</Name> </ProjectReference> + <ProjectReference Include="..\SharpZipLib\ICSharpCode.SharpZLib.csproj"> + <Project>{0E7413FF-EB9E-4714-ACF2-BE3A6A7B2FFD}</Project> + <Name>ICSharpCode.SharpZLib</Name> + </ProjectReference> </ItemGroup> <ItemGroup> <EmbeddedResource Include="App.ico">
--- a/IBBoard.WarFoundry.GUI.GTK.sln Wed Mar 09 20:45:35 2011 +0000 +++ b/IBBoard.WarFoundry.GUI.GTK.sln Wed Mar 30 19:37:33 2011 +0000 @@ -112,5 +112,15 @@ $2.inheritsSet = Mono $2.inheritsScope = text/x-csharp $2.scope = text/x-csharp + $0.TextStylePolicy = $3 + $3.FileWidth = 120 + $3.TabWidth = 4 + $3.RemoveTrailingWhitespace = True + $3.inheritsSet = Mono + $3.inheritsScope = text/plain + $3.scope = text/plain + $0.StandardHeader = $4 + $4.Text = @This file (${FileName}) is a part of the ${ProjectName} project and is copyright ${Year} ${CopyrightHolder}\r\n\nThe file and the library/program it is in are licensed and distributed, without warranty, under the GNU Affero GPL license, either version 3 of the License or (at your option) any later version. Please see COPYING for more information and the full license. + $4.IncludeInNewFiles = True EndGlobalSection EndGlobal