Added Windows 8 support.

This commit is contained in:
Lorenz Cuno Klopfenstein 2012-10-13 15:37:28 +02:00
parent 529f9eaf9e
commit c2a61665d6
4 changed files with 30 additions and 67 deletions

View file

@ -137,7 +137,18 @@
<Compile Include="Native\HotKeyMethods.cs" />
<Compile Include="Native\HT.cs" />
<Compile Include="Platforms\DebugPlatform.cs" />
<Compile Include="Platforms\WindowsEight.cs" />
<Compile Include="PluginRegionLocator.cs" />
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
<DependentUpon>Settings.settings</DependentUpon>
</Compile>
<Compile Include="SidePanelContainer.cs">
<SubType>Form</SubType>
</Compile>
@ -168,66 +179,11 @@
<Compile Include="SidePanels\GroupSwitchPanel.Designer.cs">
<DependentUpon>GroupSwitchPanel.cs</DependentUpon>
</Compile>
<Compile Include="Strings.cs.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Strings.cs.resx</DependentUpon>
</Compile>
<Compile Include="Strings.da.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Strings.da.resx</DependentUpon>
</Compile>
<Compile Include="Strings.de.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Strings.de.resx</DependentUpon>
</Compile>
<Compile Include="Strings.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Strings.resx</DependentUpon>
</Compile>
<Compile Include="Strings.es.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Strings.es.resx</DependentUpon>
</Compile>
<Compile Include="Strings.fi.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Strings.fi.resx</DependentUpon>
</Compile>
<Compile Include="Strings.it.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Strings.it.resx</DependentUpon>
</Compile>
<Compile Include="Strings.no.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Strings.no.resx</DependentUpon>
</Compile>
<Compile Include="Strings.pl.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Strings.pl.resx</DependentUpon>
</Compile>
<Compile Include="Strings.pt-BR.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Strings.pt-BR.resx</DependentUpon>
</Compile>
<Compile Include="Strings.pt.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Strings.pt.resx</DependentUpon>
</Compile>
<Compile Include="Strings.ru.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Strings.ru.resx</DependentUpon>
</Compile>
<Compile Include="WindowListMenuManager.cs" />
<Compile Include="WindowSeekers\BaseWindowSeeker.cs" />
<Compile Include="WindowSeekers\ByClassWindowSeeker.cs" />
@ -365,21 +321,11 @@
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Strings.pt.Designer.cs</LastGenOutput>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<None Include="OnTopReplica.exe.manifest" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
<Compile Include="SidePanels\RegionPanel.cs">
<SubType>UserControl</SubType>
</Compile>

View file

@ -18,7 +18,9 @@ namespace OnTopReplica {
return new Other();
if (os.Version.Major == 6) {
if (os.Version.Minor >= 1)
if (os.Version.Minor >= 2)
return new WindowsEight();
else if (os.Version.Minor == 1)
return new WindowsSeven();
else
return new WindowsVista();

View file

@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using OnTopReplica.Native;
namespace OnTopReplica.Platforms {
class WindowsEight : WindowsSeven {
public override void PostHandleFormInit(MainForm form) {
//Noop
}
}
}

View file

@ -56,7 +56,6 @@ namespace OnTopReplica.Platforms {
}
}
}
}