You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
182 lines
5.1 KiB
182 lines
5.1 KiB
<?xml version="1.0"?> |
|
<Template originator = "Markus Palme" |
|
created = "23/01/2006" |
|
lastModified = "23/01/2006"> |
|
|
|
<!-- Template Header --> |
|
<TemplateConfiguration> |
|
<Name>${res:Templates.Project.SharpDevelopAddin.Name}</Name> |
|
<Category>SharpDevelop</Category> |
|
<Icon>VBNet.Project.ControlLibrary</Icon> |
|
<LanguageName>VBNet</LanguageName> |
|
<Description>${res:Templates.Project.SharpDevelopAddin.Description}</Description> |
|
</TemplateConfiguration> |
|
|
|
<!-- Actions --> |
|
<Actions> |
|
<Open filename = "${ProjectName}.addin"/> |
|
</Actions> |
|
|
|
<Combine name = "${ProjectName}" directory = "."> |
|
<Options> |
|
<StartupProject>${ProjectName}</StartupProject> |
|
</Options> |
|
|
|
<Project name = "${ProjectName}" directory = "."> |
|
<Options OutputType = "Library" /> |
|
<ProjectItems> |
|
<Reference Include="System" /> |
|
<Reference Include="System.Data" /> |
|
<Reference Include="System.Drawing" /> |
|
<Reference Include="System.Windows.Forms" /> |
|
<Reference Include="System.Xml" /> |
|
<Import Include="System" /> |
|
<Import Include="System.Collections" /> |
|
<Import Include="System.Windows.Forms" /> |
|
</ProjectItems> |
|
<Files> |
|
<File name="${ProjectName}.addin" copyToOutputDirectory="Always"><![CDATA[<AddIn name = "${ProjectName}" |
|
author = "${USER}" |
|
url = "" |
|
description = "TODO: Put description here"> |
|
|
|
<Runtime> |
|
<Import assembly = "${ProjectName}.dll"/> |
|
</Runtime> |
|
|
|
<Path name = "/SharpDevelop/Workbench/Pads"> |
|
<Pad id = "${ProjectName}Pad" |
|
category = "Main" |
|
title = "${ProjectName}Pad" |
|
icon = "PadIcons.Output" |
|
shortcut = "Control|Alt|T" |
|
class = "${ProjectName}.TestPad"/> |
|
</Path> |
|
</AddIn> |
|
]]></File> |
|
<File name="Resources/MyUserControl.xfrm" buildAction="EmbeddedResource"> |
|
<![CDATA[<?xml version="1.0" encoding="utf-8"?> |
|
<Components version="1.0"> |
|
<System.Windows.Forms.UserControl> |
|
<Name value="MyUserControl" /> |
|
<ClientSize value="{Width=230, Height=160}" /> |
|
<Controls> |
|
<System.Windows.Forms.Button> |
|
<Name value="testButton" /> |
|
<Location value="{X=63,Y=97}" /> |
|
<Text value="A button" /> |
|
<Size value="{Width=75, Height=23}" /> |
|
<Anchor value="None" /> |
|
<FlatAppearance value="System.Windows.Forms.FlatButtonAppearance" /> |
|
<TabIndex value="1" /> |
|
</System.Windows.Forms.Button> |
|
<System.Windows.Forms.Label> |
|
<Name value="label1" /> |
|
<Location value="{X=38,Y=19}" /> |
|
<Text value="Hello, World!" /> |
|
<Size value="{Width=100, Height=23}" /> |
|
<TabIndex value="0" /> |
|
</System.Windows.Forms.Label> |
|
</Controls> |
|
</System.Windows.Forms.UserControl> |
|
</Components> |
|
]]></File> |
|
<File name="Src/MyUserControl.vb"> |
|
<![CDATA[${StandardHeader.VBNET} |
|
|
|
Imports System |
|
Imports System.Windows.Forms |
|
Imports ICSharpCode.SharpDevelop.Gui.XmlForms |
|
|
|
Public Class MyUserControl |
|
Inherits BaseSharpDevelopUserControl |
|
Public Sub New |
|
SetupFromXmlStream(Me.GetType().Assembly.GetManifestResourceStream("${ProjectName}.Resources.MyUserControl.xfrm")) |
|
AddHandler (Me.Get(Of Button)("test")).Click, AddressOf ButtonClick |
|
End Sub |
|
|
|
Sub ButtonClick(sender As Object, e As EventArgs) |
|
System.Windows.Forms.MessageBox.Show("The button was clicked!") |
|
End Sub |
|
End Class |
|
]]> |
|
</File> |
|
<File name="Src/TestPad.vb"> |
|
<![CDATA[${StandardHeader.VBNET} |
|
|
|
Imports ICSharpCode.Core |
|
Imports ICSharpCode.SharpDevelop.Gui |
|
|
|
''' <summary> |
|
''' Description of the pad content |
|
''' </summary> |
|
Public Class TestPad |
|
Inherits AbstractPadContent |
|
Private ctl As MyUserControl |
|
|
|
''' <summary> |
|
''' Creates a new TestPad object |
|
''' </summary> |
|
Public Sub New |
|
ctl = new MyUserControl() |
|
End Sub |
|
|
|
''' <summary> |
|
''' The <see cref="System.Windows.Forms.Control"/> representing the pad |
|
''' </summary> |
|
Public Overrides ReadOnly Property Control As Control |
|
Get |
|
return ctl |
|
End Get |
|
End Property |
|
|
|
''' <summary> |
|
''' Refreshes the pad |
|
''' </summary> |
|
Public Overrides Sub RedrawContent() |
|
' TODO: Refresh the whole pad control here, renew all resource strings whatever |
|
' Note that you do not need to recreate the control. |
|
End Sub |
|
|
|
''' <summary> |
|
''' Cleans up all used resources |
|
''' </summary> |
|
Public Overrides Sub Dispose() |
|
ctl.Dispose() |
|
End Sub |
|
End Class |
|
]]></File> |
|
<File name="Configuration/AssemblyInfo.vb"> |
|
<![CDATA[Imports System.Reflection |
|
Imports System.Runtime.CompilerServices |
|
|
|
'Information about this assembly is defined by the following |
|
'attributes. |
|
|
|
'change them to the information which is associated with the assembly |
|
'you compile. |
|
|
|
<assembly: AssemblyTitle("${ProjectName}")> |
|
<assembly: AssemblyDescription("Addin for SharpDevelop 2.0")> |
|
<assembly: AssemblyConfiguration("")> |
|
<assembly: AssemblyCompany("")> |
|
<assembly: AssemblyProduct("SharpDevelop")> |
|
<assembly: AssemblyCopyright("")> |
|
<assembly: AssemblyTrademark("")> |
|
<assembly: AssemblyCulture("")> |
|
|
|
'The assembly version has following format : |
|
|
|
'Major.Minor.Build.Revision |
|
|
|
'You can specify all values by your own or you can build default build and revision |
|
'numbers with the '*' character (the default): |
|
|
|
<assembly: AssemblyVersion("1.0.*")> |
|
|
|
]]> |
|
</File> |
|
</Files> |
|
</Project> |
|
</Combine> |
|
</Template>
|
|
|