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 diff
     1.1 --- a/FrmMainWindow.cs	Wed Mar 09 20:45:35 2011 +0000
     1.2 +++ b/FrmMainWindow.cs	Wed Mar 30 19:37:33 2011 +0000
     1.3 @@ -29,6 +29,7 @@
     1.4  using IBBoard.Xml;
     1.5  using log4net;
     1.6  using WFObjects = IBBoard.WarFoundry.API.Objects;
     1.7 +using IBBoard.WarFoundry.API.Savers.Xml;
     1.8  
     1.9  namespace IBBoard.WarFoundry.GUI.GTK
    1.10  {
    1.11 @@ -158,8 +159,7 @@
    1.12  			WarFoundryLoader.GetDefault().AddLoadDirectory(new DirectoryInfo(Constants.ExecutablePath + Constants.DirectoryString + "data"));
    1.13  			WarFoundryLoader.GetDefault().RegisterFactory(WarFoundryXmlFactory.GetFactory());
    1.14  			WarFoundryLoader.GetDefault().FileLoadingFinished += FileLoadingFinished;
    1.15 -			//TODO: Replace with a new saver using the "lots of files in one" interface
    1.16 -			//WarFoundrySaver.SetFileSaver(new WarFoundryXmlArmySaver());
    1.17 +			WarFoundrySaver.SetFileSaver(new WarFoundryXmlFileSaver());
    1.18  
    1.19  			logger.Debug("Initialising complete - seeing if we can load default army or system");
    1.20  
     2.1 --- a/IBBoard.WarFoundry.GUI.GTK.csproj	Wed Mar 09 20:45:35 2011 +0000
     2.2 +++ b/IBBoard.WarFoundry.GUI.GTK.csproj	Wed Mar 30 19:37:33 2011 +0000
     2.3 @@ -104,6 +104,7 @@
     2.4      <Reference Include="Mono.Posix" />
     2.5      <Reference Include="System" />
     2.6      <Reference Include="glib-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
     2.7 +    <Reference Include="atk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
     2.8    </ItemGroup>
     2.9    <ItemGroup>
    2.10      <ProjectReference Include="..\IBBoard.WarFoundry.API\IBBoard.WarFoundry.API.csproj">
    2.11 @@ -118,6 +119,10 @@
    2.12        <Project>{06605A63-E433-42FE-93CF-0DA6630A7DF5}</Project>
    2.13        <Name>IBBoard.GtkSharp</Name>
    2.14      </ProjectReference>
    2.15 +    <ProjectReference Include="..\SharpZipLib\ICSharpCode.SharpZLib.csproj">
    2.16 +      <Project>{0E7413FF-EB9E-4714-ACF2-BE3A6A7B2FFD}</Project>
    2.17 +      <Name>ICSharpCode.SharpZLib</Name>
    2.18 +    </ProjectReference>
    2.19    </ItemGroup>
    2.20    <ItemGroup>
    2.21      <EmbeddedResource Include="App.ico">
     3.1 --- a/IBBoard.WarFoundry.GUI.GTK.sln	Wed Mar 09 20:45:35 2011 +0000
     3.2 +++ b/IBBoard.WarFoundry.GUI.GTK.sln	Wed Mar 30 19:37:33 2011 +0000
     3.3 @@ -112,5 +112,15 @@
     3.4  		$2.inheritsSet = Mono
     3.5  		$2.inheritsScope = text/x-csharp
     3.6  		$2.scope = text/x-csharp
     3.7 +		$0.TextStylePolicy = $3
     3.8 +		$3.FileWidth = 120
     3.9 +		$3.TabWidth = 4
    3.10 +		$3.RemoveTrailingWhitespace = True
    3.11 +		$3.inheritsSet = Mono
    3.12 +		$3.inheritsScope = text/plain
    3.13 +		$3.scope = text/plain
    3.14 +		$0.StandardHeader = $4
    3.15 +		$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.
    3.16 +		$4.IncludeInNewFiles = True
    3.17  	EndGlobalSection
    3.18  EndGlobal