Browse Source

Added python class library project template.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@3903 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Matt Ward 17 years ago
parent
commit
bae236b7f6
  1. 1
      data/resources/image/BitmapResources/BitmapResources.res
  2. BIN
      data/resources/image/BitmapResources/backendicons/Python/Python.Template.LibraryProject.png
  3. 3
      src/AddIns/BackendBindings/Python/PythonBinding/Project/PythonBinding.csproj
  4. 38
      src/AddIns/BackendBindings/Python/PythonBinding/Project/Templates/LibraryProject.xpt
  5. BIN
      src/Main/StartUp/Project/Resources/BitmapResources.resources
  6. 3
      src/Setup/Files.wxs
  7. 1
      src/Setup/Setup.wxs

1
data/resources/image/BitmapResources/BitmapResources.res

@ -502,3 +502,4 @@ Python.Template.EmptyFile = backendicons\Python\Pyt @@ -502,3 +502,4 @@ Python.Template.EmptyFile = backendicons\Python\Pyt
Python.Template.Form = backendicons\Python\Python.Template.Form.png
Python.Template.ConsoleProject = backendicons\Python\Python.Template.ConsoleProject.png
Python.Template.WinFormsProject = backendicons\Python\Python.Template.WinFormsProject.png
Python.Template.LibraryProject = backendicons\Python\Python.Template.LibraryProject.png

BIN
data/resources/image/BitmapResources/backendicons/Python/Python.Template.LibraryProject.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

3
src/AddIns/BackendBindings/Python/PythonBinding/Project/PythonBinding.csproj

@ -136,6 +136,9 @@ @@ -136,6 +136,9 @@
<None Include="Templates\FormsProject.xpt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="Templates\LibraryProject.xpt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<EmbeddedResource Include="Resources\Python.xshd" />
</ItemGroup>
<ItemGroup>

38
src/AddIns/BackendBindings/Python/PythonBinding/Project/Templates/LibraryProject.xpt

@ -0,0 +1,38 @@ @@ -0,0 +1,38 @@
<?xml version="1.0"?>
<Template originator="Matt Ward">
<TemplateConfiguration>
<Name>${res:Templates.Project.ClassLibrary.Name}</Name>
<Category>Python</Category>
<Icon>Python.Template.LibraryProject</Icon>
<Description>${res:Templates.Project.ClassLibrary.Description}</Description>
</TemplateConfiguration>
<!-- Actions -->
<Actions>
<Open filename="MyClass.py"/>
</Actions>
<!-- Template Content -->
<Project language="Python">
<PropertyGroup>
<OutputType>Library</OutputType>
<DebugInfo>True</DebugInfo>
</PropertyGroup>
<ProjectItems>
<Reference Include="mscorlib"/>
<Reference Include="System"/>
<Reference Include="System.Data"/>
<Reference Include="System.Xml"/>
<Reference Include="$(PythonBinPath)\IronPython.dll"/>
</ProjectItems>
<Files>
<File name="MyClass.py"><![CDATA[
class MyClass:
def __init__(self):
pass
]]></File>
</Files>
</Project>
</Template>

BIN
src/Main/StartUp/Project/Resources/BitmapResources.resources

Binary file not shown.

3
src/Setup/Files.wxs

@ -1297,6 +1297,9 @@ @@ -1297,6 +1297,9 @@
<Component Guid="C077D46F-D6EF-4187-9715-3EAD8A43A1EC" Id="PythonFormsProjectTemplate" DiskId="1">
<File Source="..\..\AddIns\AddIns\BackendBindings\PythonBinding\Templates\FormsProject.xpt" Id="Templates.FormsProject.xpt" Name="FormsProject.xpt" KeyPath="yes" />
</Component>
<Component Guid="6AE9C385-3B6A-4DD6-9CB9-92EDEEEF3FCF" Id="PythonLibraryProjectTemplate" DiskId="1">
<File Source="..\..\AddIns\AddIns\BackendBindings\PythonBinding\Templates\LibraryProject.xpt" Id="Templates.LibraryProject.xpt" Name="LibraryProject.xpt" KeyPath="yes" />
</Component>
</Directory>
<Component Guid="DE04B306-0C6D-434C-A6DC-6F450AAFB108" Id="IronPythonModulesDll" DiskId="1">
<File Source="..\..\AddIns\AddIns\BackendBindings\PythonBinding\IronPython.Modules.dll" Name="IronPython.Modules.dll" Id="IronPython.Modules.dll" KeyPath="yes" Assembly=".net" AssemblyApplication="IronPython.Modules.dll" AssemblyManifest="IronPython.Modules.dll" />

1
src/Setup/Setup.wxs

@ -413,6 +413,7 @@ @@ -413,6 +413,7 @@
<ComponentRef Id="PythonEmptyUserControlTemplate"/>
<ComponentRef Id="PythonEmptyFileTemplate"/>
<ComponentRef Id="PythonFormsProjectTemplate"/>
<ComponentRef Id="PythonLibraryProjectTemplate"/>
<ComponentRef Id="IpyExe"/>
<ComponentRef Id="IronPythonModulesDll"/>
<ComponentRef Id="IronPythonDll"/>

Loading…
Cancel
Save