Browse Source

Add boo file templates and icons.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@583 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Daniel Grunwald 20 years ago
parent
commit
2848336602
  1. 7
      data/resources/image/BitmapResources/BitmapResources.res
  2. BIN
      data/resources/image/BitmapResources/backendicons/Boo/Boo.File.EmptyFile.png
  3. BIN
      data/resources/image/BitmapResources/backendicons/Boo/Boo.File.Form.png
  4. BIN
      data/resources/image/BitmapResources/backendicons/Boo/Boo.FileIcon.png
  5. BIN
      data/resources/image/BitmapResources/backendicons/Boo/Boo.Project.EmptyProject.png
  6. BIN
      data/resources/image/BitmapResources/backendicons/Boo/Boo.Project.Form.png
  7. BIN
      data/resources/image/BitmapResources/backendicons/Boo/Boo.ProjectIcon.png
  8. 10
      src/AddIns/BackendBindings/Boo/BooBinding/Project/BooBinding.addin
  9. 9
      src/AddIns/BackendBindings/Boo/BooBinding/Project/BooBinding.csproj
  10. 2
      src/AddIns/BackendBindings/Boo/BooBinding/Project/Templates/ConsoleProject.xpt
  11. 19
      src/AddIns/BackendBindings/Boo/BooBinding/Project/Templates/Empty.xft
  12. 38
      src/AddIns/BackendBindings/Boo/BooBinding/Project/Templates/EmptyClass.xft
  13. 56
      src/AddIns/BackendBindings/Boo/BooBinding/Project/Templates/Form.xft
  14. 4
      src/AddIns/BackendBindings/Boo/BooBinding/Project/Templates/FormsProject.xpt
  15. 4
      src/AddIns/BackendBindings/Boo/BooBinding/Project/Templates/Library.xpt
  16. BIN
      src/Main/StartUp/Project/Resources/BitmapResources.resources

7
data/resources/image/BitmapResources/BitmapResources.res

@ -400,6 +400,13 @@ C++.Project.WebProject = backendicons\cpp\project\Web @@ -400,6 +400,13 @@ C++.Project.WebProject = backendicons\cpp\project\Web
C++.Project.Library = backendicons\cpp\project\Library.png
C++.Project.ControlLibrary = backendicons\cpp\project\ControlLibrary.png
Boo.FileIcon = backendicons\boo\Boo.FileIcon.png
Boo.File.EmptyFile = backendicons\boo\Boo.File.EmptyFile.png
Boo.File.Form = backendicons\boo\Boo.File.Form.png
Boo.Project.EmptyProject = backendicons\boo\Boo.Project.EmptyProject.png
Boo.Project.Form = backendicons\boo\Boo.Project.Form.png
Boo.ProjectIcon = backendicons\boo\Boo.ProjectIcon.png
# misc backend icons
FileIcons.XmlIcon = backendicons\miscFiles\Icons.16x16.XMLFileIcon.png
Icons.16x16.ResourceFileIcon = backendicons\miscFiles\Icons.16x16.ResourceFileIcon.png

BIN
data/resources/image/BitmapResources/backendicons/Boo/Boo.File.EmptyFile.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
data/resources/image/BitmapResources/backendicons/Boo/Boo.File.Form.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
data/resources/image/BitmapResources/backendicons/Boo/Boo.FileIcon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 687 B

BIN
data/resources/image/BitmapResources/backendicons/Boo/Boo.Project.EmptyProject.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
data/resources/image/BitmapResources/backendicons/Boo/Boo.Project.Form.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
data/resources/image/BitmapResources/backendicons/Boo/Boo.ProjectIcon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 636 B

10
src/AddIns/BackendBindings/Boo/BooBinding/Project/BooBinding.addin

@ -18,6 +18,16 @@ @@ -18,6 +18,16 @@
extensions = "*.boo"/>
</Path>
<Path name = "/Workspace/Icons">
<Icon id = "BooPrj"
language = "Boo"
resource = "Boo.ProjectIcon"/>
<Icon id = "BooFile"
extensions = ".boo"
resource = "Boo.FileIcon"/>
</Path>
<Path name = "/SharpDevelop/BackendBindings/Templates">
<Directory id = "Boo" path = "./Templates" />
</Path>

9
src/AddIns/BackendBindings/Boo/BooBinding/Project/BooBinding.csproj

@ -125,6 +125,15 @@ @@ -125,6 +125,15 @@
<Private>False</Private>
</ProjectReference>
<Folder Include="Src\Designer" />
<Content Include="Templates\Empty.xft">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="Templates\EmptyClass.xft">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="Templates\Form.xft">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.Targets" />
</Project>

2
src/AddIns/BackendBindings/Boo/BooBinding/Project/Templates/ConsoleProject.xpt

@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
<TemplateConfiguration>
<Name>${res:Templates.Project.ConsoleProject.Name}</Name>
<Category>Boo</Category>
<Icon>C#.Project.DOSProject</Icon>
<Icon>Boo.Project.EmptyProject</Icon>
<LanguageName>Boo</LanguageName>
<Description>${res:Templates.Project.ConsoleProject.Description}</Description>
</TemplateConfiguration>

19
src/AddIns/BackendBindings/Boo/BooBinding/Project/Templates/Empty.xft

@ -0,0 +1,19 @@ @@ -0,0 +1,19 @@
<?xml version="1.0"?>
<Template author="Daniel Grunwald" version="1.0">
<Config
name = "${res:Templates.File.EmptyFile.Name}"
icon = "Boo.File.EmptyFile"
category = "Boo"
defaultname = "Empty${Number}.boo"
language = "Boo"/>
<Description>${res:Templates.File.EmptyFile.Description}</Description>
<Files>
<File name="${FullName}" language="Boo">
</File>
</Files>
<AdditionalOptions/>
</Template>

38
src/AddIns/BackendBindings/Boo/BooBinding/Project/Templates/EmptyClass.xft

@ -0,0 +1,38 @@ @@ -0,0 +1,38 @@
<?xml version="1.0"?>
<Template author="Daniel Grunwald" version="1.0">
<Config
name = "${res:Templates.File.EmptyClass.Name}"
icon = "Boo.File.EmptyFile"
category = "Boo"
defaultname = "Class${Number}.boo"
language = "Boo"/>
<Description>${res:Templates.File.EmptyClass.Description}</Description>
<!--
Special new file templates:
${StandardNamespace} -> Standardnamespace of the current project or FileNameWithoutExtension
${FullName} -> Full generated path name
${FileName} -> File name with extension
${FileNameWithoutExtension} -> File name without extension
${Extension} -> Extension in the form ".cs"
${Path} -> Full path of the file
${ClassName} -> Class name (generally FileNameWithoutExtension w/o 'bad' characters)
-->
<Files>
<File name="${FullName}" language="Boo"><![CDATA[namespace ${StandardNamespace}
import System
class ${ClassName}:
"""Description of ${ClassName}"""
def constructor():
pass
]]></File>
</Files>
<AdditionalOptions/>
</Template>

56
src/AddIns/BackendBindings/Boo/BooBinding/Project/Templates/Form.xft

@ -0,0 +1,56 @@ @@ -0,0 +1,56 @@
<?xml version="1.0"?>
<Template author="Daniel Grunwald" version="1.0">
<Config
name = "${res:Templates.File.WindowsForm.Name}"
icon = "Boo.File.Form"
category = "Boo"
defaultname = "Form${Number}.boo"
language = "Boo"/>
<Description>${res:Templates.File.WindowsForm.Description}</Description>
<!--
Special new file templates:
${StandardNamespace} -> Standardnamespace of the current project or FileNameWithoutExtension
${FullName} -> Full generated path name
${FileName} -> File name with extension
${FileNameWithoutExtension} -> File name without extension
${Extension} -> Extension in the form ".cs"
${Path} -> Full path of the file
${ClassName} -> Class name (generally FileNameWithoutExtension w/o 'bad' characters)
-->
<Files>
<File name="${FullName}" language="Boo"><![CDATA[namespace ${StandardNamespace}
import System
import System.Collections
import System.Drawing
import System.Windows.Forms
class MainForm(System.Windows.Forms.Form):
"""Description of MainForm."""
def constructor():
// The InitializeComponent() call is required for Windows Forms designer support.
InitializeComponent()
// TODO: Add constructor code after the InitializeComponent() call.
#region Windows Forms Designer generated code
// This method is required for Windows Forms designer support.
// Do not change the method contents inside the source code editor. The Forms designer might
// not be able to load this method if it was changed manually.
def InitializeComponent():
// Form1
self.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
self.ClientSize = System.Drawing.Size(292, 266)
self.Text = 'MainForm'
self.Name = 'MainForm'
#endregion
]]></File>
</Files>
<AdditionalOptions/>
</Template>

4
src/AddIns/BackendBindings/Boo/BooBinding/Project/Templates/FormsProject.xpt

@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
<TemplateConfiguration>
<Name>${res:Templates.Project.WindowsApplication.Name}</Name>
<Category>Boo</Category>
<Icon>C#.Project.Form</Icon>
<Icon>Boo.Project.Form</Icon>
<LanguageName>Boo</LanguageName>
<Description>${res:Templates.Project.WindowsApplication.Description}</Description>
</TemplateConfiguration>
@ -60,7 +60,7 @@ Application.EnableVisualStyles() @@ -60,7 +60,7 @@ Application.EnableVisualStyles()
Application.Run(MainForm())
]]></File>
<File name="AssemblyInfo.cs">
<File name="AssemblyInfo.boo">
<![CDATA[import System.Reflection
import System.Runtime.CompilerServices

4
src/AddIns/BackendBindings/Boo/BooBinding/Project/Templates/Library.xpt

@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
<TemplateConfiguration>
<Name>${res:Templates.Project.ClassLibrary.Name}</Name>
<Category>Boo</Category>
<Icon>C#.Project.Library</Icon>
<Icon>Boo.Project.EmptyProject</Icon>
<LanguageName>Boo</LanguageName>
<Description>${res:Templates.Project.ClassLibrary.Description}</Description>
</TemplateConfiguration>
@ -37,7 +37,7 @@ class MyClass: @@ -37,7 +37,7 @@ class MyClass:
pass
}]]></File>
<File name="AssemblyInfo.cs">
<File name="AssemblyInfo.boo">
<![CDATA[import System.Reflection
import System.Runtime.CompilerServices

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

Binary file not shown.
Loading…
Cancel
Save