Browse Source

make PInvoke.addin a sample

newNRvisualizers
Siegfried Pammer 13 years ago
parent
commit
2003389db9
  1. 40
      SharpDevelop.sln
  2. 0
      samples/PInvokeAddIn/Doc/readme.txt
  3. 0
      samples/PInvokeAddIn/PInvokeAddIn.sln
  4. 0
      samples/PInvokeAddIn/Project/Configuration/AssemblyInfo.cs
  5. 0
      samples/PInvokeAddIn/Project/PInvoke.addin
  6. 24
      samples/PInvokeAddIn/Project/PInvokeAddIn.csproj
  7. 7
      samples/PInvokeAddIn/Project/PInvokeAddIn.csproj.user
  8. 0
      samples/PInvokeAddIn/Project/Resources/InsertPInvokeSignaturesForm.xfrm
  9. 0
      samples/PInvokeAddIn/Project/Src/InsertPInvokeSignaturesCommand.cs
  10. 0
      samples/PInvokeAddIn/Project/Src/InsertPInvokeSignaturesForm.cs
  11. 4
      samples/PInvokeAddIn/Project/Src/PInvokeCodeGenerator.cs
  12. 0
      samples/PInvokeAddIn/Project/Src/PInvokeRepository.cs
  13. 0
      samples/PInvokeAddIn/Project/Src/WebReferences/PInvokeService.cs
  14. 4
      samples/PInvokeAddIn/Project/Src/WebReferences/ProxyGenerator.cmd
  15. 0
      samples/PInvokeAddIn/Project/signatures.xml

40
SharpDevelop.sln

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
# SharpDevelop 4.2.0.8649-Beta 2
# SharpDevelop 4.2.0.8658-Beta 2
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Main", "Main", "{256F5C28-532C-44C0-8AB8-D8EC5E492E01}"
ProjectSection(SolutionItems) = postProject
EndProjectSection
@ -142,6 +142,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FiletypeRegisterer", "src\A @@ -142,6 +142,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FiletypeRegisterer", "src\A
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HelpViewer", "src\AddIns\Misc\HelpViewer\HelpViewer.csproj", "{80F76D10-0B44-4D55-B4BD-DAEB5464090C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AddInManager", "src\AddIns\Misc\AddInManager\Project\AddInManager.csproj", "{F93E52FD-DA66-4CE5-A0CB-BCD902811122}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RegExpTk", "src\AddIns\Misc\RegExpTk\Project\RegExpTk.csproj", "{64A3E5E6-90BF-47F6-94DF-68C94B62C817}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Display Bindings", "Display Bindings", "{11BF9245-88A3-4A0A-9A8A-EC9D98036B0F}"
ProjectSection(SolutionItems) = postProject
EndProjectSection
@ -451,6 +455,38 @@ Global @@ -451,6 +455,38 @@ Global
{80F76D10-0B44-4D55-B4BD-DAEB5464090C}.Release|x86.ActiveCfg = Release|x86
{80F76D10-0B44-4D55-B4BD-DAEB5464090C}.Release|Debug.Build.0 = Release|x86
{80F76D10-0B44-4D55-B4BD-DAEB5464090C}.Release|Debug.ActiveCfg = Release|x86
{F93E52FD-DA66-4CE5-A0CB-BCD902811122}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F93E52FD-DA66-4CE5-A0CB-BCD902811122}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F93E52FD-DA66-4CE5-A0CB-BCD902811122}.Debug|Win32.Build.0 = Debug|Any CPU
{F93E52FD-DA66-4CE5-A0CB-BCD902811122}.Debug|Win32.ActiveCfg = Debug|Any CPU
{F93E52FD-DA66-4CE5-A0CB-BCD902811122}.Debug|x86.Build.0 = Debug|Any CPU
{F93E52FD-DA66-4CE5-A0CB-BCD902811122}.Debug|x86.ActiveCfg = Debug|Any CPU
{F93E52FD-DA66-4CE5-A0CB-BCD902811122}.Debug|Debug.Build.0 = Debug|Any CPU
{F93E52FD-DA66-4CE5-A0CB-BCD902811122}.Debug|Debug.ActiveCfg = Debug|Any CPU
{F93E52FD-DA66-4CE5-A0CB-BCD902811122}.Release|Any CPU.Build.0 = Release|Any CPU
{F93E52FD-DA66-4CE5-A0CB-BCD902811122}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F93E52FD-DA66-4CE5-A0CB-BCD902811122}.Release|Win32.Build.0 = Release|Any CPU
{F93E52FD-DA66-4CE5-A0CB-BCD902811122}.Release|Win32.ActiveCfg = Release|Any CPU
{F93E52FD-DA66-4CE5-A0CB-BCD902811122}.Release|x86.Build.0 = Release|Any CPU
{F93E52FD-DA66-4CE5-A0CB-BCD902811122}.Release|x86.ActiveCfg = Release|Any CPU
{F93E52FD-DA66-4CE5-A0CB-BCD902811122}.Release|Debug.Build.0 = Release|Any CPU
{F93E52FD-DA66-4CE5-A0CB-BCD902811122}.Release|Debug.ActiveCfg = Release|Any CPU
{64A3E5E6-90BF-47F6-94DF-68C94B62C817}.Debug|Any CPU.Build.0 = Debug|Any CPU
{64A3E5E6-90BF-47F6-94DF-68C94B62C817}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{64A3E5E6-90BF-47F6-94DF-68C94B62C817}.Debug|Win32.Build.0 = Debug|Any CPU
{64A3E5E6-90BF-47F6-94DF-68C94B62C817}.Debug|Win32.ActiveCfg = Debug|Any CPU
{64A3E5E6-90BF-47F6-94DF-68C94B62C817}.Debug|x86.Build.0 = Debug|Any CPU
{64A3E5E6-90BF-47F6-94DF-68C94B62C817}.Debug|x86.ActiveCfg = Debug|Any CPU
{64A3E5E6-90BF-47F6-94DF-68C94B62C817}.Debug|Debug.Build.0 = Debug|Any CPU
{64A3E5E6-90BF-47F6-94DF-68C94B62C817}.Debug|Debug.ActiveCfg = Debug|Any CPU
{64A3E5E6-90BF-47F6-94DF-68C94B62C817}.Release|Any CPU.Build.0 = Release|Any CPU
{64A3E5E6-90BF-47F6-94DF-68C94B62C817}.Release|Any CPU.ActiveCfg = Release|Any CPU
{64A3E5E6-90BF-47F6-94DF-68C94B62C817}.Release|Win32.Build.0 = Release|Any CPU
{64A3E5E6-90BF-47F6-94DF-68C94B62C817}.Release|Win32.ActiveCfg = Release|Any CPU
{64A3E5E6-90BF-47F6-94DF-68C94B62C817}.Release|x86.Build.0 = Release|Any CPU
{64A3E5E6-90BF-47F6-94DF-68C94B62C817}.Release|x86.ActiveCfg = Release|Any CPU
{64A3E5E6-90BF-47F6-94DF-68C94B62C817}.Release|Debug.Build.0 = Release|Any CPU
{64A3E5E6-90BF-47F6-94DF-68C94B62C817}.Release|Debug.ActiveCfg = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@ -488,6 +524,8 @@ Global @@ -488,6 +524,8 @@ Global
{59A30AA6-D600-41AB-B7A1-9543469DBE36} = {F3662720-9EA2-4591-BBC6-97361DCE50A9}
{D022A6CE-7438-41E8-AC64-F2DE18EC54C6} = {F3662720-9EA2-4591-BBC6-97361DCE50A9}
{80F76D10-0B44-4D55-B4BD-DAEB5464090C} = {F3662720-9EA2-4591-BBC6-97361DCE50A9}
{F93E52FD-DA66-4CE5-A0CB-BCD902811122} = {F3662720-9EA2-4591-BBC6-97361DCE50A9}
{64A3E5E6-90BF-47F6-94DF-68C94B62C817} = {F3662720-9EA2-4591-BBC6-97361DCE50A9}
{6B1CFE35-DA17-4DEB-9C6E-227E5E251DA0} = {59A30AA6-D600-41AB-B7A1-9543469DBE36}
{0008FCE9-9EB4-4E2E-979B-553278E5BBA6} = {59A30AA6-D600-41AB-B7A1-9543469DBE36}
{0162E499-42D0-409B-AA25-EED21F75336B} = {11BF9245-88A3-4A0A-9A8A-EC9D98036B0F}

0
src/AddIns/Misc/PInvokeAddIn/Doc/readme.txt → samples/PInvokeAddIn/Doc/readme.txt

0
src/AddIns/Misc/PInvokeAddIn/PInvokeAddIn.sln → samples/PInvokeAddIn/PInvokeAddIn.sln

0
src/AddIns/Misc/PInvokeAddIn/Project/Configuration/AssemblyInfo.cs → samples/PInvokeAddIn/Project/Configuration/AssemblyInfo.cs

0
src/AddIns/Misc/PInvokeAddIn/Project/PInvoke.addin → samples/PInvokeAddIn/Project/PInvoke.addin

24
src/AddIns/Misc/PInvokeAddIn/Project/PInvokeAddIn.csproj → samples/PInvokeAddIn/Project/PInvokeAddIn.csproj

@ -39,6 +39,15 @@ @@ -39,6 +39,15 @@
<DebugType>None</DebugType>
</PropertyGroup>
<ItemGroup>
<Reference Include="ICSharpCode.Core">
<HintPath>..\..\..\bin\ICSharpCode.Core.dll</HintPath>
</Reference>
<Reference Include="ICSharpCode.NRefactory">
<HintPath>..\..\..\bin\ICSharpCode.NRefactory.dll</HintPath>
</Reference>
<Reference Include="ICSharpCode.SharpDevelop">
<HintPath>..\..\..\bin\ICSharpCode.SharpDevelop.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
@ -59,21 +68,6 @@ @@ -59,21 +68,6 @@
<None Include="PInvoke.addin">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<Compile Include="..\..\..\..\Main\GlobalAssemblyInfo.cs">
<Link>Configuration\GlobalAssemblyInfo.cs</Link>
</Compile>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\..\Main\Base\Project\ICSharpCode.SharpDevelop.csproj">
<Project>{2748AD25-9C63-4E12-877B-4DCE96FBED54}</Project>
<Name>ICSharpCode.SharpDevelop</Name>
<Private>False</Private>
</ProjectReference>
<ProjectReference Include="..\..\..\..\Main\Core\Project\ICSharpCode.Core.csproj">
<Project>{35CEF10F-2D4C-45F2-9DD1-161E0FEC583C}</Project>
<Name>ICSharpCode.Core</Name>
<Private>False</Private>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.Targets" />
</Project>

7
samples/PInvokeAddIn/Project/PInvokeAddIn.csproj.user

@ -0,0 +1,7 @@ @@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<StartAction>Program</StartAction>
<StartProgram>..\..\..\bin\SharpDevelop.exe</StartProgram>
</PropertyGroup>
</Project>

0
src/AddIns/Misc/PInvokeAddIn/Project/Resources/InsertPInvokeSignaturesForm.xfrm → samples/PInvokeAddIn/Project/Resources/InsertPInvokeSignaturesForm.xfrm

0
src/AddIns/Misc/PInvokeAddIn/Project/Src/InsertPInvokeSignaturesCommand.cs → samples/PInvokeAddIn/Project/Src/InsertPInvokeSignaturesCommand.cs

0
src/AddIns/Misc/PInvokeAddIn/Project/Src/InsertPInvokeSignaturesForm.cs → samples/PInvokeAddIn/Project/Src/InsertPInvokeSignaturesForm.cs

4
src/AddIns/Misc/PInvokeAddIn/Project/Src/PInvokeCodeGenerator.cs → samples/PInvokeAddIn/Project/Src/PInvokeCodeGenerator.cs

@ -20,9 +20,9 @@ namespace ICSharpCode.PInvokeAddIn @@ -20,9 +20,9 @@ namespace ICSharpCode.PInvokeAddIn
public void Generate(ITextEditor editor, string signature)
{
using (editor.Document.OpenUndoGroup()) {
int startLine = editor.Document.GetLineForOffset(editor.SelectionStart).LineNumber;
int startLine = editor.Document.GetLineByOffset(editor.SelectionStart).LineNumber;
editor.SelectedText = DocumentUtilitites.NormalizeNewLines(signature, editor.Document, startLine);
int endLine = editor.Document.GetLineForOffset(editor.SelectionStart + editor.SelectionLength).LineNumber;
int endLine = editor.Document.GetLineByOffset(editor.SelectionStart + editor.SelectionLength).LineNumber;
editor.Language.FormattingStrategy.IndentLines(editor, startLine, endLine);
}
}

0
src/AddIns/Misc/PInvokeAddIn/Project/Src/PInvokeRepository.cs → samples/PInvokeAddIn/Project/Src/PInvokeRepository.cs

0
src/AddIns/Misc/PInvokeAddIn/Project/Src/WebReferences/PInvokeService.cs → samples/PInvokeAddIn/Project/Src/WebReferences/PInvokeService.cs

4
src/AddIns/Misc/PInvokeAddIn/Project/Src/WebReferences/ProxyGenerator.cmd → samples/PInvokeAddIn/Project/Src/WebReferences/ProxyGenerator.cmd

@ -1,2 +1,2 @@ @@ -1,2 +1,2 @@
SET wsdlapp=wsdl /l:CS /n:ICSharpCode.PInvokeAddIn.WebServices /nologo
%wsdlapp% http://www.pinvoke.net/pinvokeservice.asmx?WSDL
SET wsdlapp=wsdl /l:CS /n:ICSharpCode.PInvokeAddIn.WebServices /nologo
%wsdlapp% http://www.pinvoke.net/pinvokeservice.asmx?WSDL

0
src/AddIns/Misc/PInvokeAddIn/Project/signatures.xml → samples/PInvokeAddIn/Project/signatures.xml

Loading…
Cancel
Save