abstract plugin interface

This commit is contained in:
Paddy Xu
2018-01-27 16:22:48 +02:00
parent d50d757022
commit 56af2311b9
87 changed files with 2844 additions and 2703 deletions

View File

@@ -23,8 +23,8 @@ using System.Linq;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
using System.Windows.Controls;
using QuickLook.Annotations;
using QuickLook.ExtensionMethods;
using QuickLook.Common.Annotations;
using QuickLook.Common.ExtensionMethods;
using SharpCompress.Archives;
using SharpCompress.Common;
using SharpCompress.Readers;

View File

@@ -19,7 +19,7 @@ using System;
using System.Globalization;
using System.Windows;
using System.Windows.Data;
using QuickLook.ExtensionMethods;
using QuickLook.Common.ExtensionMethods;
namespace QuickLook.Plugin.ArchiveViewer
{

View File

@@ -47,6 +47,7 @@ namespace QuickLook.Plugin.ArchiveViewer
if (foundElement != null)
break;
}
return foundElement;
}
}

View File

@@ -211,8 +211,10 @@ namespace QuickLook.Plugin.ArchiveViewer
public readonly IntPtr hIcon;
private readonly int iIcon;
private readonly uint dwAttributes;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = MaxPath)] private readonly string szDisplayName;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = Namesize)] private readonly string szTypeName;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = MaxPath)]
private readonly string szDisplayName;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = Namesize)]
private readonly string szTypeName;
}
}

View File

@@ -19,6 +19,7 @@ using System;
using System.IO;
using System.Linq;
using System.Windows;
using QuickLook.Common;
namespace QuickLook.Plugin.ArchiveViewer
{

View File

@@ -90,9 +90,9 @@
</Compile>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\QuickLook\QuickLook.csproj">
<Project>{8b4a9ce5-67b5-4a94-81cb-3771f688fdeb}</Project>
<Name>QuickLook</Name>
<ProjectReference Include="..\..\QuickLook.Plugin.IViewerPlugin\QuickLook.Common.csproj">
<Project>{85FDD6BA-871D-46C8-BD64-F6BB0CB5EA95}</Project>
<Name>QuickLook.Common</Name>
<Private>False</Private>
</ProjectReference>
</ItemGroup>

View File

@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="SharpCompress" version="0.19.2" targetFramework="net462" />
<package id="UTF.Unknown" version="1.0.0-beta1" targetFramework="net462" />