changeset 1:4ff09911ef64

Re #242: Create Qt# UI for WarFoundry * Convert to Visual Studio 2005 project * Add Solution file * Update compile script to be more readable and to check whether rebuilds are needed
author IBBoard <dev@ibboard.co.uk>
date Sat, 23 Jan 2010 19:55:54 +0000
parents 620c62ba4d07
children cf68a996b3f1
files IBBoard.WarFoundry.GUI.QtSharp.csproj IBBoard.WarFoundry.GUI.QtSharp.mdp IBBoard.WarFoundry.GUI.QtSharp.pidb IBBoard.WarFoundry.GUI.QtSharp.sln compile-ui.sh qt-gui/MainWindowLayout.cs
diffstat 6 files changed, 115 insertions(+), 39 deletions(-) [+]
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/IBBoard.WarFoundry.GUI.QtSharp.csproj	Sat Jan 23 19:55:54 2010 +0000
     1.3 @@ -0,0 +1,64 @@
     1.4 +<?xml version="1.0" encoding="utf-8"?>
     1.5 +<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
     1.6 +  <PropertyGroup>
     1.7 +    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
     1.8 +    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
     1.9 +    <ProductVersion>8.0.50727</ProductVersion>
    1.10 +    <SchemaVersion>2.0</SchemaVersion>
    1.11 +    <ProjectGuid>{299D84D6-C84A-45CD-B709-AF536FCBA937}</ProjectGuid>
    1.12 +    <OutputType>Exe</OutputType>
    1.13 +    <RootNamespace>IBBoard.WarFoundry.GUI.QtSharp</RootNamespace>
    1.14 +    <AssemblyName>IBBoard.WarFoundry.GUI.QtSharp</AssemblyName>
    1.15 +  </PropertyGroup>
    1.16 +  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    1.17 +    <DebugSymbols>true</DebugSymbols>
    1.18 +    <DebugType>full</DebugType>
    1.19 +    <Optimize>false</Optimize>
    1.20 +    <OutputPath>bin\Debug</OutputPath>
    1.21 +    <DefineConstants>DEBUG</DefineConstants>
    1.22 +    <ErrorReport>prompt</ErrorReport>
    1.23 +    <WarningLevel>4</WarningLevel>
    1.24 +    <CustomCommands>
    1.25 +      <CustomCommands>
    1.26 +        <Command type="BeforeBuild" command="compile-ui.sh" workingdir="${ProjectDir}" />
    1.27 +      </CustomCommands>
    1.28 +    </CustomCommands>
    1.29 +  </PropertyGroup>
    1.30 +  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    1.31 +    <DebugType>none</DebugType>
    1.32 +    <Optimize>false</Optimize>
    1.33 +    <OutputPath>bin\Release</OutputPath>
    1.34 +    <ErrorReport>prompt</ErrorReport>
    1.35 +    <WarningLevel>4</WarningLevel>
    1.36 +  </PropertyGroup>
    1.37 +  <ItemGroup>
    1.38 +    <Compile Include="AssemblyInfo.cs" />
    1.39 +    <Compile Include="MainWindow.cs" />
    1.40 +    <Compile Include="Main.cs" />
    1.41 +    <Compile Include="qt-gui\MainWindowLayout.cs" />
    1.42 +  </ItemGroup>
    1.43 +  <ItemGroup>
    1.44 +    <None Include="compile-ui.sh" />
    1.45 +    <None Include="qt-gui\MainWindowLayout.ui" />
    1.46 +  </ItemGroup>
    1.47 +  <ItemGroup>
    1.48 +    <Folder Include="qt-gui\" />
    1.49 +    <Folder Include="icons\" />
    1.50 +  </ItemGroup>
    1.51 +  <ItemGroup>
    1.52 +    <Content Include="icons\App.png">
    1.53 +      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
    1.54 +    </Content>
    1.55 +  </ItemGroup>
    1.56 +  <ItemGroup>
    1.57 +    <Reference Include="System" />
    1.58 +    <Reference Include="qt-dotnet, Version=4.5.0.0, Culture=neutral, PublicKeyToken=194a23ba31c08164" />
    1.59 +  </ItemGroup>
    1.60 +  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
    1.61 +  <ItemGroup>
    1.62 +    <ProjectReference Include="..\IBBoard.WarFoundry.API\IBBoard.WarFoundry.API.csproj">
    1.63 +      <Project>{951E6C7A-7FBA-4F68-9D9E-F48618BB9626}</Project>
    1.64 +      <Name>IBBoard.WarFoundry.API</Name>
    1.65 +    </ProjectReference>
    1.66 +  </ItemGroup>
    1.67 +</Project>
    1.68 \ No newline at end of file
     2.1 --- a/IBBoard.WarFoundry.GUI.QtSharp.mdp	Sat Jan 23 17:05:18 2010 +0000
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,34 +0,0 @@
     2.4 -<Project name="IBBoard.WarFoundry.GUI.QtSharp" fileversion="2.0" DefaultNamespace="IBBoard.WarFoundry.GUI.QtSharp" language="C#" targetFramework="2.0" ctype="DotNetProject">
     2.5 -  <Configurations active="Debug">
     2.6 -    <Configuration name="Debug" ctype="DotNetProjectConfiguration">
     2.7 -      <CustomCommands>
     2.8 -        <Command type="BeforeBuild" command="compile-ui.sh" workingdir="${ProjectDir}" />
     2.9 -      </CustomCommands>
    2.10 -      <Output directory="bin/Debug" assembly="IBBoard.WarFoundry.GUI.QtSharp" />
    2.11 -      <Build debugmode="True" target="Exe" />
    2.12 -      <Execution consolepause="True" runwithwarnings="True" runtime="MsNet" />
    2.13 -      <CodeGeneration compiler="Mcs" warninglevel="4" optimize="False" unsafecodeallowed="False" generateoverflowchecks="False" definesymbols="DEBUG" generatexmldocumentation="False" ctype="CSharpCompilerParameters" />
    2.14 -    </Configuration>
    2.15 -    <Configuration name="Release" ctype="DotNetProjectConfiguration">
    2.16 -      <Output directory="bin/Release" assembly="IBBoard.WarFoundry.GUI.QtSharp" />
    2.17 -      <Build debugmode="False" target="Exe" />
    2.18 -      <Execution consolepause="True" runwithwarnings="True" runtime="MsNet" />
    2.19 -      <CodeGeneration compiler="Mcs" warninglevel="4" optimize="False" unsafecodeallowed="False" generateoverflowchecks="False" generatexmldocumentation="False" ctype="CSharpCompilerParameters" />
    2.20 -    </Configuration>
    2.21 -  </Configurations>
    2.22 -  <Contents>
    2.23 -    <File subtype="Code" buildaction="Compile" name="AssemblyInfo.cs" />
    2.24 -    <File subtype="Code" buildaction="Compile" name="MainWindow.cs" />
    2.25 -    <File subtype="Code" buildaction="Compile" name="Main.cs" />
    2.26 -    <File subtype="Code" buildaction="Nothing" name="compile-ui.sh" />
    2.27 -    <File subtype="Directory" buildaction="Compile" name="qt-gui" />
    2.28 -    <File subtype="Code" buildaction="Compile" name="qt-gui/MainWindowLayout.cs" />
    2.29 -    <File subtype="Code" buildaction="Nothing" name="qt-gui/MainWindowLayout.ui" />
    2.30 -    <File subtype="Directory" buildaction="Compile" name="icons" />
    2.31 -    <File subtype="Code" name="icons/App.png" buildaction="FileCopy" />
    2.32 -  </Contents>
    2.33 -  <References>
    2.34 -    <ProjectReference type="Gac" localcopy="True" refto="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
    2.35 -    <ProjectReference type="Gac" localcopy="True" refto="qt-dotnet, Version=4.5.0.0, Culture=neutral, PublicKeyToken=194a23ba31c08164" />
    2.36 -  </References>
    2.37 -</Project>
    2.38 \ No newline at end of file
     3.1 Binary file IBBoard.WarFoundry.GUI.QtSharp.pidb has changed
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/IBBoard.WarFoundry.GUI.QtSharp.sln	Sat Jan 23 19:55:54 2010 +0000
     4.3 @@ -0,0 +1,38 @@
     4.4 +
     4.5 +Microsoft Visual Studio Solution File, Format Version 9.00
     4.6 +# Visual Studio 2005
     4.7 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IBBoard.WarFoundry.GUI.QtSharp", "IBBoard.WarFoundry.GUI.QtSharp.csproj", "{299D84D6-C84A-45CD-B709-AF536FCBA937}"
     4.8 +EndProject
     4.9 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IBBoard", "..\IBBoard\IBBoard.csproj", "{5DFD64F6-FC2B-4B4F-B92E-483BAC468105}"
    4.10 +EndProject
    4.11 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IBBoard.WarFoundry.API", "..\IBBoard.WarFoundry.API\IBBoard.WarFoundry.API.csproj", "{951E6C7A-7FBA-4F68-9D9E-F48618BB9626}"
    4.12 +EndProject
    4.13 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IBBoard.WarFoundry.API.Tests", "..\IBBoard.WarFoundry.API.Tests\IBBoard.WarFoundry.API.Tests.csproj", "{B20E808D-878E-4F6D-B1E3-84A9A49905CB}"
    4.14 +EndProject
    4.15 +Global
    4.16 +	GlobalSection(SolutionConfigurationPlatforms) = preSolution
    4.17 +		Debug|Any CPU = Debug|Any CPU
    4.18 +		Release|Any CPU = Release|Any CPU
    4.19 +	EndGlobalSection
    4.20 +	GlobalSection(ProjectConfigurationPlatforms) = postSolution
    4.21 +		{299D84D6-C84A-45CD-B709-AF536FCBA937}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
    4.22 +		{299D84D6-C84A-45CD-B709-AF536FCBA937}.Debug|Any CPU.Build.0 = Debug|Any CPU
    4.23 +		{299D84D6-C84A-45CD-B709-AF536FCBA937}.Release|Any CPU.ActiveCfg = Release|Any CPU
    4.24 +		{299D84D6-C84A-45CD-B709-AF536FCBA937}.Release|Any CPU.Build.0 = Release|Any CPU
    4.25 +		{5DFD64F6-FC2B-4B4F-B92E-483BAC468105}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
    4.26 +		{5DFD64F6-FC2B-4B4F-B92E-483BAC468105}.Debug|Any CPU.Build.0 = Debug|Any CPU
    4.27 +		{5DFD64F6-FC2B-4B4F-B92E-483BAC468105}.Release|Any CPU.ActiveCfg = Release|Any CPU
    4.28 +		{5DFD64F6-FC2B-4B4F-B92E-483BAC468105}.Release|Any CPU.Build.0 = Release|Any CPU
    4.29 +		{951E6C7A-7FBA-4F68-9D9E-F48618BB9626}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
    4.30 +		{951E6C7A-7FBA-4F68-9D9E-F48618BB9626}.Debug|Any CPU.Build.0 = Debug|Any CPU
    4.31 +		{951E6C7A-7FBA-4F68-9D9E-F48618BB9626}.Release|Any CPU.ActiveCfg = Release|Any CPU
    4.32 +		{951E6C7A-7FBA-4F68-9D9E-F48618BB9626}.Release|Any CPU.Build.0 = Release|Any CPU
    4.33 +		{B20E808D-878E-4F6D-B1E3-84A9A49905CB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
    4.34 +		{B20E808D-878E-4F6D-B1E3-84A9A49905CB}.Debug|Any CPU.Build.0 = Debug|Any CPU
    4.35 +		{B20E808D-878E-4F6D-B1E3-84A9A49905CB}.Release|Any CPU.ActiveCfg = Release|Any CPU
    4.36 +		{B20E808D-878E-4F6D-B1E3-84A9A49905CB}.Release|Any CPU.Build.0 = Release|Any CPU
    4.37 +	EndGlobalSection
    4.38 +	GlobalSection(MonoDevelopProperties) = preSolution
    4.39 +		StartupItem = IBBoard.WarFoundry.GUI.QtSharp.csproj
    4.40 +	EndGlobalSection
    4.41 +EndGlobal
     5.1 --- a/compile-ui.sh	Sat Jan 23 17:05:18 2010 +0000
     5.2 +++ b/compile-ui.sh	Sat Jan 23 19:55:54 2010 +0000
     5.3 @@ -2,11 +2,19 @@
     5.4  
     5.5  echo "Compiling .ui files to C#"
     5.6  
     5.7 -for f in qt-gui/*.ui
     5.8 +for uiFile in qt-gui/*.ui
     5.9  do
    5.10 -	echo -ne "  * Compiling $f..."
    5.11 -	uics -o ${f/.ui/.cs} $f
    5.12 -	echo "...compiled."
    5.13 +	csFile=${uiFile/.ui/.cs}
    5.14 +	
    5.15 +	# Only update if file has changed
    5.16 +	if test $uiFile -nt $csFile
    5.17 +	then
    5.18 +		echo -ne "  * Compiling $uiFile..."
    5.19 +		uics -o $csFile $uiFile
    5.20 +		echo "...compiled."
    5.21 +	else
    5.22 +		echo "  * Skipping $uiFile - no update needed"
    5.23 +	fi
    5.24  done
    5.25  
    5.26  echo
     6.1 --- a/qt-gui/MainWindowLayout.cs	Sat Jan 23 17:05:18 2010 +0000
     6.2 +++ b/qt-gui/MainWindowLayout.cs	Sat Jan 23 19:55:54 2010 +0000
     6.3 @@ -1,7 +1,7 @@
     6.4  /********************************************************************************
     6.5  ** Form generated from reading ui file 'MainWindowLayout.ui'
     6.6  **
     6.7 -** Created: Sat Jan 23 16:57:44 2010
     6.8 +** Created: Sat Jan 23 19:54:08 2010
     6.9  **      by: Qt User Interface Compiler for C# version 4.5.3
    6.10  **
    6.11  ** WARNING! All changes made in this file will be lost when recompiling ui file!