Browse Source

Moved some more strings to translation database. Windows Service template now contains installer class.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.0@1487 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Daniel Grunwald 19 years ago
parent
commit
6050a6bda4
  1. 8
      AddIns/ICSharpCode.SharpDevelop.addin
  2. BIN
      data/resources/StringResources.cz.resources
  3. BIN
      data/resources/StringResources.es-mx.resources
  4. BIN
      data/resources/StringResources.es.resources
  5. BIN
      data/resources/StringResources.hu.resources
  6. BIN
      data/resources/StringResources.it.resources
  7. BIN
      data/resources/StringResources.kr.resources
  8. BIN
      data/resources/StringResources.nl.resources
  9. BIN
      data/resources/StringResources.pt-br.resources
  10. BIN
      data/resources/StringResources.ro.resources
  11. 29
      data/templates/project/CSharp/ConsoleProject.xpt
  12. 30
      data/templates/project/CSharp/ControlLibrary.xpt
  13. 31
      data/templates/project/CSharp/DefaultAssemblyInfo.cs
  14. 29
      data/templates/project/CSharp/Direct3DProject.xpt
  15. 30
      data/templates/project/CSharp/FormsProject.xpt
  16. 30
      data/templates/project/CSharp/GladeProject.xpt
  17. 30
      data/templates/project/CSharp/GtkProject.xpt
  18. 30
      data/templates/project/CSharp/Library.xpt
  19. 65
      data/templates/project/CSharp/Service.xpt
  20. 30
      data/templates/project/CSharp/SharpDevelopAddin.xpt
  21. 25
      data/templates/project/CSharp/SharpDevelopMacro.xpt
  22. 1
      data/templates/project/VBNet/ConsoleProject.xpt
  23. 30
      data/templates/project/VBNet/ControlLibrary.xpt
  24. 31
      data/templates/project/VBNet/DefaultAssemblyInfo.vb
  25. 28
      data/templates/project/VBNet/Direct3DProject.xpt
  26. 29
      data/templates/project/VBNet/FormsProject.xpt
  27. 29
      data/templates/project/VBNet/Library.xpt
  28. 52
      data/templates/project/VBNet/Service.xpt
  29. 31
      data/templates/project/VBNet/SharpDevelopAddin.xpt
  30. 31
      data/templates/project/VBNet/SharpDevelopMacro.xpt
  31. 4
      src/Main/Base/Project/Src/Gui/Components/StatusBar/SdStatusBar.cs
  32. 3
      src/Main/Base/Project/Src/Gui/Dialogs/AbstractOptionPanel.cs
  33. 4
      src/Main/Base/Project/Src/Gui/Pads/CompilerMessageView/CompilerMessageView.cs
  34. 21
      src/Main/Base/Project/Src/Gui/Pads/FileScout.cs
  35. 1
      src/Main/Base/Project/Src/Gui/Pads/ProjectBrowser/ProjectBrowserPanel.cs
  36. 13
      src/Main/Base/Project/Src/Gui/Pads/ProjectBrowser/TreeNodes/SolutionNode.cs
  37. 2
      src/Main/Base/Project/Src/Services/ParserService/ParseProjectContent.cs
  38. 30
      src/Main/Base/Project/Src/Services/ParserService/ParserService.cs
  39. 1
      src/Main/Core/Project/Src/AddInTree/AddIn/DefaultDoozers/MenuItem/Gui/Menu.cs
  40. BIN
      src/Main/StartUp/Project/Resources/StringResources.resources

8
AddIns/ICSharpCode.SharpDevelop.addin

@ -271,9 +271,9 @@
<MenuItem id = "Clean project" <MenuItem id = "Clean project"
label = "${res:ProjectComponent.ContextMenu.Clean}" label = "${res:ProjectComponent.ContextMenu.Clean}"
class = "ICSharpCode.SharpDevelop.Project.Commands.CleanProject"/> class = "ICSharpCode.SharpDevelop.Project.Commands.CleanProject"/>
<MenuItem id = "Publish project" <!--<MenuItem id = "Publish project"
label = "${res:XML.MainMenu.BuildMenu.PublishProject}" label = "${res:XML.MainMenu.BuildMenu.PublishProject}"
class = "ICSharpCode.SharpDevelop.Project.Commands.PublishProject"/> class = "ICSharpCode.SharpDevelop.Project.Commands.PublishProject"/>-->
<MenuItem id = "CombineBuildGroupSeparator" type = "Separator"/> <MenuItem id = "CombineBuildGroupSeparator" type = "Separator"/>
<MenuItem id = "ProjectAddMenu" label = "${res:ProjectComponent.ContextMenu.AddMenu}" type = "Menu" > <MenuItem id = "ProjectAddMenu" label = "${res:ProjectComponent.ContextMenu.AddMenu}" type = "Menu" >
@ -1327,9 +1327,9 @@
<MenuItem id = "Clean project" <MenuItem id = "Clean project"
label = "${res:XML.MainMenu.BuildMenu.CleanProject}" label = "${res:XML.MainMenu.BuildMenu.CleanProject}"
class = "ICSharpCode.SharpDevelop.Project.Commands.CleanProject"/> class = "ICSharpCode.SharpDevelop.Project.Commands.CleanProject"/>
<MenuItem id = "Publish project" <!--<MenuItem id = "Publish project"
label = "${res:XML.MainMenu.BuildMenu.PublishProject}" label = "${res:XML.MainMenu.BuildMenu.PublishProject}"
class = "ICSharpCode.SharpDevelop.Project.Commands.PublishProject"/> class = "ICSharpCode.SharpDevelop.Project.Commands.PublishProject"/>-->
</Condition> </Condition>
<MenuItem id = "Separator2" type = "Separator" /> <MenuItem id = "Separator2" type = "Separator" />
<MenuItem id = "SetConfiguration" <MenuItem id = "SetConfiguration"

BIN
data/resources/StringResources.cz.resources

Binary file not shown.

BIN
data/resources/StringResources.es-mx.resources

Binary file not shown.

BIN
data/resources/StringResources.es.resources

Binary file not shown.

BIN
data/resources/StringResources.hu.resources

Binary file not shown.

BIN
data/resources/StringResources.it.resources

Binary file not shown.

BIN
data/resources/StringResources.kr.resources

Binary file not shown.

BIN
data/resources/StringResources.nl.resources

Binary file not shown.

BIN
data/resources/StringResources.pt-br.resources

Binary file not shown.

BIN
data/resources/StringResources.ro.resources

Binary file not shown.

29
data/templates/project/CSharp/ConsoleProject.xpt

@ -47,34 +47,7 @@ namespace ${StandardNamespace}
} }
} }
}]]></File> }]]></File>
<File name="AssemblyInfo.cs"><![CDATA[using System.Reflection; <File name="AssemblyInfo.cs" src="DefaultAssemblyInfo.cs"/>
using 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("")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("")]
[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> </Files>
</Project> </Project>
</Combine> </Combine>

30
data/templates/project/CSharp/ControlLibrary.xpt

@ -102,35 +102,7 @@ namespace ${StandardNamespace}
} }
} }
]]></File> ]]></File>
<File name="AssemblyInfo.cs"> <File name="AssemblyInfo.cs" src="DefaultAssemblyInfo.cs"/>
<![CDATA[using System.Reflection;
using 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("")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("")]
[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> </Files>
</Project> </Project>
</Combine> </Combine>

31
data/templates/project/CSharp/DefaultAssemblyInfo.cs

@ -0,0 +1,31 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 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("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("${ProjectName}")]
[assembly: AssemblyCopyright("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// This sets the default COM visibility of types in the assembly to invisible.
// If you need to expose a type to COM, use [ComVisible(true)] on that type.
[assembly: ComVisible(false)]
// 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.*")]

29
data/templates/project/CSharp/Direct3DProject.xpt

@ -171,34 +171,7 @@ namespace ${StandardNamespace}
} }
} }
]]></File> ]]></File>
<File name="AssemblyInfo.cs"><![CDATA[using System.Reflection; <File name="AssemblyInfo.cs" src="DefaultAssemblyInfo.cs"/>
using 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("")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("")]
[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> </Files>
</Project> </Project>
</Combine> </Combine>

30
data/templates/project/CSharp/FormsProject.xpt

@ -112,35 +112,7 @@ namespace ${StandardNamespace}
} }
} }
]]></File> ]]></File>
<File name="AssemblyInfo.cs" language="C#"> <File name="AssemblyInfo.cs" src="DefaultAssemblyInfo.cs"/>
<![CDATA[using System.Reflection;
using 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("")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("")]
[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> </Files>
</Project> </Project>
</Combine> </Combine>

30
data/templates/project/CSharp/GladeProject.xpt

@ -105,35 +105,7 @@ namespace ${StandardNamespace}
</glade-interface> </glade-interface>
]]></File> ]]></File>
<File name="AssemblyInfo.cs"> <File name="AssemblyInfo.cs" src="DefaultAssemblyInfo.cs"/>
<![CDATA[using System.Reflection;
using 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("")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("")]
[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> </Files>
</Project> </Project>
</Solution> </Solution>

30
data/templates/project/CSharp/GtkProject.xpt

@ -76,35 +76,7 @@ namespace ${StandardNamespace}
} }
} }
}]]></File> }]]></File>
<File name="AssemblyInfo.cs"> <File name="AssemblyInfo.cs" src="DefaultAssemblyInfo.cs"/>
<![CDATA[using System.Reflection;
using 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("")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("")]
[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> </Files>
</Project> </Project>
</Solution> </Solution>

30
data/templates/project/CSharp/Library.xpt

@ -46,35 +46,7 @@ namespace ${StandardNamespace}
} }
}]]></File> }]]></File>
<File name="AssemblyInfo.cs"> <File name="AssemblyInfo.cs" src="DefaultAssemblyInfo.cs"/>
<![CDATA[using System.Reflection;
using 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("")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("")]
[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> </Files>
</Project> </Project>
</Combine> </Combine>

65
data/templates/project/CSharp/Service.xpt

@ -1,7 +1,7 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<Template originator = "Mike Krueger" <Template originator = "Mike Krueger"
created = "02/01/2003" created = "02/01/2003"
lastModified = "14/01/2006"> lastModified = "16/06/2006">
<!-- Template Header --> <!-- Template Header -->
<TemplateConfiguration> <TemplateConfiguration>
@ -29,6 +29,7 @@
<ProjectItems> <ProjectItems>
<Reference Include="System" /> <Reference Include="System" />
<Reference Include="System.Configuration.Install" />
<Reference Include="System.Data" /> <Reference Include="System.Data" />
<Reference Include="System.ServiceProcess" /> <Reference Include="System.ServiceProcess" />
<Reference Include="System.Xml" /> <Reference Include="System.Xml" />
@ -49,6 +50,8 @@ namespace ${StandardNamespace}
{ {
public class ${ProjectName} : ServiceBase public class ${ProjectName} : ServiceBase
{ {
public const string MyServiceName = "${ProjectName}";
public ${ProjectName}() public ${ProjectName}()
{ {
InitializeComponent(); InitializeComponent();
@ -56,7 +59,7 @@ namespace ${StandardNamespace}
private void InitializeComponent() private void InitializeComponent()
{ {
this.ServiceName = "${ProjectName}"; this.ServiceName = MyServiceName;
} }
/// <summary> /// <summary>
@ -85,6 +88,35 @@ namespace ${StandardNamespace}
} }
} }
} }
]]></File>
<File name="ProjectInstaller.cs"><![CDATA[${StandardHeader.C#}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration.Install;
using System.ServiceProcess;
namespace ${StandardNamespace}
{
[RunInstaller(true)]
public class ProjectInstaller : Installer
{
private ServiceProcessInstaller serviceProcessInstaller;
private ServiceInstaller serviceInstaller;
public ProjectInstaller()
{
serviceProcessInstaller = new ServiceProcessInstaller();
serviceInstaller = new ServiceInstaller();
// Here you can set properties on serviceProcessInstaller or register event handlers
serviceProcessInstaller.Account = ServiceAccount.LocalService;
serviceInstaller.ServiceName = ${ProjectName}.MyServiceName;
this.Installers.AddRange(new Installer[] { serviceProcessInstaller, serviceInstaller });
}
}
}
]]></File> ]]></File>
<File name="Program.cs"><![CDATA[${StandardHeader.C#} <File name="Program.cs"><![CDATA[${StandardHeader.C#}
@ -108,34 +140,7 @@ namespace ${ProjectName}
} }
} }
]]></File> ]]></File>
<File name="AssemblyInfo.cs"><![CDATA[using System.Reflection; <File name="AssemblyInfo.cs" src="DefaultAssemblyInfo.cs"/>
using 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("")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("")]
[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> </Files>
</Project> </Project>
</Combine> </Combine>

30
data/templates/project/CSharp/SharpDevelopAddin.xpt

@ -157,35 +157,7 @@ namespace ${ProjectName}
} }
} }
]]></File> ]]></File>
<File name="Configuration/AssemblyInfo.cs"> <File name="Configuration/AssemblyInfo.cs" src="DefaultAssemblyInfo.cs"/>
<![CDATA[using System.Reflection;
using 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> </Files>
</Project> </Project>
</Combine> </Combine>

25
data/templates/project/CSharp/SharpDevelopMacro.xpt

@ -100,30 +100,7 @@ namespace ${StandardNamespace}
} }
} }
]]></File> ]]></File>
<File name="Configuration/AssemblyInfo.cs"> <File name="Configuration/AssemblyInfo.cs" src="DefaultAssemblyInfo.cs"/>
<![CDATA[${StandardHeader.C#}
using System.Reflection;
[assembly: AssemblyTitle("${ProjectName}")]
[assembly: AssemblyDescription("Macro 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> </Files>
</Project> </Project>
</Combine> </Combine>

1
data/templates/project/VBNet/ConsoleProject.xpt

@ -51,6 +51,7 @@ Module Main
End Sub End Sub
End Module End Module
]]></File> ]]></File>
<File name="AssemblyInfo.vb" src="DefaultAssemblyInfo.vb"/>
</Files> </Files>
</Project> </Project>
</Combine> </Combine>

30
data/templates/project/VBNet/ControlLibrary.xpt

@ -92,35 +92,7 @@ Partial Class UserControl1
End Sub End Sub
End Class End Class
]]></File> ]]></File>
<File name="AssemblyInfo.vb"> <File name="AssemblyInfo.vb" src="DefaultAssemblyInfo.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("")>
<assembly: AssemblyDescription("")>
<assembly: AssemblyConfiguration("")>
<assembly: AssemblyCompany("")>
<assembly: AssemblyProduct("")>
<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> </Files>
</Project> </Project>
</Combine> </Combine>

31
data/templates/project/VBNet/DefaultAssemblyInfo.vb

@ -0,0 +1,31 @@
Imports System.Reflection
Imports System.Runtime.CompilerServices
Imports System.Runtime.InteropServices
' 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("")>
<assembly: AssemblyConfiguration("")>
<assembly: AssemblyCompany("")>
<assembly: AssemblyProduct("${ProjectName}")>
<assembly: AssemblyCopyright("")>
<assembly: AssemblyTrademark("")>
<assembly: AssemblyCulture("")>
' This sets the default COM visibility of types in the assembly to invisible.
' If you need to expose a type to COM, use <ComVisible(true)> on that type.
<assembly: ComVisible(False)>
' 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.*")>

28
data/templates/project/VBNet/Direct3DProject.xpt

@ -154,33 +154,7 @@ Public Class MainClass
End Sub End Sub
End Class End Class
]]></File> ]]></File>
<File name="AssemblyInfo.vb"><![CDATA[Imports System.Reflection <File name="AssemblyInfo.vb" src="DefaultAssemblyInfo.vb"/>
Imports System.Runtime.CompilerServices
' Information about this assembly is defined by the following
' attributes.
' <ProjectOptions Target = "WinExe" PauseConsoleOutput = "False" />
' change them to the information which is associated with the assembly
' you compile.
<assembly: AssemblyTitle("")>
<assembly: AssemblyDescription("")>
<assembly: AssemblyConfiguration("")>
<assembly: AssemblyCompany("")>
<assembly: AssemblyProduct("")>
<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> </Files>
</Project> </Project>
</Combine> </Combine>

29
data/templates/project/VBNet/FormsProject.xpt

@ -116,34 +116,7 @@ Namespace My
End Class End Class
End Namespace End Namespace
]]></File> ]]></File>
<File name="AssemblyInfo.vb"> <File name="AssemblyInfo.vb" src="DefaultAssemblyInfo.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("")>
<assembly: AssemblyDescription("")>
<assembly: AssemblyConfiguration("")>
<assembly: AssemblyCompany("")>
<assembly: AssemblyProduct("")>
<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> </Files>
</Project> </Project>
</Combine> </Combine>

29
data/templates/project/VBNet/Library.xpt

@ -46,34 +46,7 @@ Public Class NewClass
End Class End Class
]]></File> ]]></File>
<File name="AssemblyInfo.vb"> <File name="AssemblyInfo.vb" src="DefaultAssemblyInfo.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("")>
<assembly: AssemblyDescription("")>
<assembly: AssemblyConfiguration("")>
<assembly: AssemblyCompany("")>
<assembly: AssemblyProduct("")>
<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> </Files>
</Project> </Project>
</Combine> </Combine>

52
data/templates/project/VBNet/Service.xpt

@ -27,8 +27,8 @@
<ProjectItems> <ProjectItems>
<Reference Include="System" /> <Reference Include="System" />
<Reference Include="System.Configuration.Install" />
<Reference Include="System.Data" /> <Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.ServiceProcess" /> <Reference Include="System.ServiceProcess" />
<Reference Include="System.Xml" /> <Reference Include="System.Xml" />
@ -49,6 +49,8 @@ Imports System.ServiceProcess
Public Class ${ProjectName} Public Class ${ProjectName}
Inherits ServiceBase Inherits ServiceBase
Public Const MyServiceName As String = "${ProjectName}"
' The main entry point for the process ' The main entry point for the process
<MTAThread()> _ <MTAThread()> _
Shared Sub Main() Shared Sub Main()
@ -56,6 +58,10 @@ Public Class ${ProjectName}
ServiceBase.Run(New ServiceBase() {New ${ProjectName}}) ServiceBase.Run(New ServiceBase() {New ${ProjectName}})
End Sub End Sub
Public Sub New()
Me.ServiceName = MyServiceName
End Sub
Protected Overrides Sub OnStart(ByVal args() As String) Protected Overrides Sub OnStart(ByVal args() As String)
' TODO: Add start code here to start your service. ' TODO: Add start code here to start your service.
End Sub End Sub
@ -66,34 +72,30 @@ Public Class ${ProjectName}
End Class End Class
]]></File> ]]></File>
<File name="AssemblyInfo.vb"> <File name="ProjectInstaller.vb"><![CDATA[${StandardHeader.VBNET}
<![CDATA[Imports System.Reflection
Imports System.Runtime.CompilerServices
' Information about this assembly is defined by the following Imports System.ComponentModel
' attributes. Imports System.Configuration.Install
' Imports System.ServiceProcess
' change them to the information which is associated with the assembly
' you compile.
<assembly: AssemblyTitle("")>
<assembly: AssemblyDescription("")>
<assembly: AssemblyConfiguration("")>
<assembly: AssemblyCompany("")>
<assembly: AssemblyProduct("")>
<assembly: AssemblyCopyright("")>
<assembly: AssemblyTrademark("")>
<assembly: AssemblyCulture("")>
' The assembly version has following format : <RunInstaller(True)> _
' Public Class ProjectInstaller
' Major.Minor.Build.Revision Inherits Installer
'
' You can specify all values by your own or you can build default build and revision Private serviceProcessInstaller As New ServiceProcessInstaller
' numbers with the '*' character (the default): Private serviceInstaller As New ServiceInstaller
Public Sub New()
' Here you can set properties on serviceProcessInstaller or register event handlers
serviceProcessInstaller.Account = ServiceAccount.LocalService
serviceInstaller.ServiceName = ${ProjectName}.MyServiceName
Me.Installers.AddRange(New Installer() { serviceProcessInstaller, serviceInstaller })
End Sub
End Class
<assembly: AssemblyVersion("1.0.*")>
]]></File> ]]></File>
<File name="AssemblyInfo.vb" src="DefaultAssemblyInfo.vb"/>
</Files> </Files>
</Project> </Project>
</Combine> </Combine>

31
data/templates/project/VBNet/SharpDevelopAddin.xpt

@ -146,36 +146,7 @@ Public Class TestPad
End Sub End Sub
End Class End Class
]]></File> ]]></File>
<File name="Configuration/AssemblyInfo.vb"> <File name="Configuration/AssemblyInfo.vb" src="DefaultAssemblyInfo.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> </Files>
</Project> </Project>
</Combine> </Combine>

31
data/templates/project/VBNet/SharpDevelopMacro.xpt

@ -98,36 +98,7 @@ Inherits AbstractMenuCommand
End Sub End Sub
End Class End Class
]]></File> ]]></File>
<File name="Configuration/AssemblyInfo.vb"> <File name="Configuration/AssemblyInfo.vb" src="DefaultAssemblyInfo.vb"/>
<![CDATA[${StandardHeader.VBNET}
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> </Files>
</Project> </Project>
</Combine> </Combine>

4
src/Main/Base/Project/Src/Gui/Components/StatusBar/SdStatusBar.cs

@ -132,7 +132,7 @@ namespace ICSharpCode.SharpDevelop.Gui
{ {
statusProgressBar.Value = 0; statusProgressBar.Value = 0;
statusProgressBar.Maximum = totalWork; statusProgressBar.Maximum = totalWork;
jobNamePanel.Text = taskName; SetTaskName();
jobNamePanel.Visible = true; jobNamePanel.Visible = true;
statusProgressBar.Visible = true; statusProgressBar.Visible = true;
} }
@ -187,7 +187,7 @@ namespace ICSharpCode.SharpDevelop.Gui
void SetTaskName() void SetTaskName()
{ {
jobNamePanel.Text = taskName; jobNamePanel.Text = StringParser.Parse(taskName);
} }
} }
} }

3
src/Main/Base/Project/Src/Gui/Dialogs/AbstractOptionPanel.cs

@ -115,8 +115,7 @@ namespace ICSharpCode.SharpDevelop.Gui
protected void ConnectBrowseFolder(string browseButton, string target) protected void ConnectBrowseFolder(string browseButton, string target)
{ {
// TODO: Translation: ConnectBrowseFolder(browseButton, target, "${res:Dialog.ProjectOptions.SelectFolderTitle}");
ConnectBrowseFolder(browseButton, target, "Select folder");
} }
protected void ConnectBrowseFolder(string browseButton, string target, string description) protected void ConnectBrowseFolder(string browseButton, string target, string description)
{ {

4
src/Main/Base/Project/Src/Gui/Pads/CompilerMessageView/CompilerMessageView.cs

@ -149,9 +149,9 @@ namespace ICSharpCode.SharpDevelop.Gui
bool wordWrap = this.WordWrap; bool wordWrap = this.WordWrap;
textEditorControl.WordWrap = wordWrap; textEditorControl.WordWrap = wordWrap;
if (wordWrap) { if (wordWrap) {
textEditorControl.ScrollBars = RichTextBoxScrollBars.ForcedBoth;
} else {
textEditorControl.ScrollBars = RichTextBoxScrollBars.ForcedVertical; textEditorControl.ScrollBars = RichTextBoxScrollBars.ForcedVertical;
} else {
textEditorControl.ScrollBars = RichTextBoxScrollBars.ForcedBoth;
} }
} }

21
src/Main/Base/Project/Src/Gui/Pads/FileScout.cs

@ -146,18 +146,19 @@ namespace ICSharpCode.SharpDevelop.Gui
switch(GetDriveType(drive)) { switch(GetDriveType(drive)) {
case DriveType.Removeable: case DriveType.Removeable:
text += " (Removeable)"; text += " (${res:MainWindow.Windows.FileScout.DriveType.Removeable})";
break; break;
case DriveType.Fixed: case DriveType.Fixed:
text += " (Fixed)"; text += " (${res:MainWindow.Windows.FileScout.DriveType.Fixed})";
break; break;
case DriveType.Cdrom: case DriveType.Cdrom:
text += " (CD)"; text += " (${res:MainWindow.Windows.FileScout.DriveType.CD})";
break; break;
case DriveType.Remote: case DriveType.Remote:
text += " (Remote)"; text += " (${res:MainWindow.Windows.FileScout.DriveType.Remote})";
break; break;
} }
text = StringParser.Parse(text);
} }
public override string ToString() public override string ToString()
@ -330,7 +331,13 @@ namespace ICSharpCode.SharpDevelop.Gui
void deleteFiles(object sender, EventArgs e) void deleteFiles(object sender, EventArgs e)
{ {
if (MessageService.AskQuestion("Are you sure ?", "Delete files")) { string fileName = "";
foreach(FileListItem fileItem in SelectedItems) {
fileName = fileItem.FullName;
break;
}
if (MessageService.AskQuestion(StringParser.Parse("${res:ProjectComponent.ContextMenu.Delete.Question}", new string[,] {{"FileName", fileName}}),
"${Global.Delete}")) {
foreach(FileListItem fileItem in SelectedItems) foreach(FileListItem fileItem in SelectedItems)
{ {
try { try {
@ -521,7 +528,7 @@ namespace ICSharpCode.SharpDevelop.Gui
rootNode.SelectedImageIndex = 6; rootNode.SelectedImageIndex = 6;
rootNode.Tag = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory); rootNode.Tag = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory);
TreeNode myFilesNode = rootNode.Nodes.Add("My Documents"); TreeNode myFilesNode = rootNode.Nodes.Add("${res:MainWindow.Windows.FileScout.MyDocuments}");
myFilesNode.ImageIndex = 7; myFilesNode.ImageIndex = 7;
myFilesNode.SelectedImageIndex = 7; myFilesNode.SelectedImageIndex = 7;
try { try {
@ -532,7 +539,7 @@ namespace ICSharpCode.SharpDevelop.Gui
myFilesNode.Nodes.Add(""); myFilesNode.Nodes.Add("");
TreeNode computerNode = rootNode.Nodes.Add("My Computer"); TreeNode computerNode = rootNode.Nodes.Add("${res:MainWindow.Windows.FileScout.MyComputer}");
computerNode.ImageIndex = 8; computerNode.ImageIndex = 8;
computerNode.SelectedImageIndex = 8; computerNode.SelectedImageIndex = 8;
try { try {

1
src/Main/Base/Project/Src/Gui/Pads/ProjectBrowser/ProjectBrowserPanel.cs

@ -105,6 +105,7 @@ namespace ICSharpCode.SharpDevelop.Project
// -> nodes whose text contains '[' can not be saved // -> nodes whose text contains '[' can not be saved
public static string GetViewStateString(TreeView treeView) public static string GetViewStateString(TreeView treeView)
{ {
if (treeView.Nodes.Count == 0) return "";
StringBuilder b = new StringBuilder(); StringBuilder b = new StringBuilder();
WriteViewStateString(b, treeView.Nodes[0]); WriteViewStateString(b, treeView.Nodes[0]);
return b.ToString(); return b.ToString();

13
src/Main/Base/Project/Src/Gui/Pads/ProjectBrowser/TreeNodes/SolutionNode.cs

@ -37,7 +37,7 @@ namespace ICSharpCode.SharpDevelop.Project
{ {
sortOrder = -1; sortOrder = -1;
this.solution = solution; this.solution = solution;
Text = "Solution " + solution.Name; UpdateText();;
autoClearNodes = false; autoClearNodes = false;
canLabelEdit = true; canLabelEdit = true;
@ -61,20 +61,25 @@ namespace ICSharpCode.SharpDevelop.Project
return; return;
string newFileName = Path.Combine(solution.Directory, newName + ".sln"); string newFileName = Path.Combine(solution.Directory, newName + ".sln");
if (File.Exists(newFileName)) { if (File.Exists(newFileName)) {
MessageService.ShowError("The file " + newFileName + " already exists."); MessageService.ShowErrorFormatted("${res:Global.FileAlreadyExists}", newFileName);
return; return;
} }
FileService.RenameFile(solution.FileName, newFileName, false); FileService.RenameFile(solution.FileName, newFileName, false);
solution.FileName = newFileName; solution.FileName = newFileName;
solution.Name = newName; solution.Name = newName;
} finally { } finally {
Text = "Solution " + solution.Name; UpdateText();
} }
} }
void UpdateText()
{
Text = ResourceService.GetString("ICSharpCode.SharpDevelop.Commands.ProjectBrowser.SolutionNodeText") + " " + solution.Name;
}
public void AddItem(string fileName) public void AddItem(string fileName)
{ {
const string folderName = "Solution Items"; string folderName = ResourceService.GetString("ICSharpCode.SharpDevelop.Commands.ProjectBrowser.SolutionItemsNodeText");
SolutionFolderNode node = null; SolutionFolderNode node = null;
foreach (TreeNode n in Nodes) { foreach (TreeNode n in Nodes) {
node = n as SolutionFolderNode; node = n as SolutionFolderNode;

2
src/Main/Base/Project/Src/Services/ParserService/ParseProjectContent.cs

@ -198,7 +198,7 @@ namespace ICSharpCode.Core
int progressStart = StatusBarService.ProgressMonitor.WorkDone; int progressStart = StatusBarService.ProgressMonitor.WorkDone;
ParseableFileContentEnumerator enumerator = new ParseableFileContentEnumerator(project); ParseableFileContentEnumerator enumerator = new ParseableFileContentEnumerator(project);
try { try {
StatusBarService.ProgressMonitor.TaskName = "Parsing " + project.Name + "..."; StatusBarService.ProgressMonitor.TaskName = "${res:ICSharpCode.SharpDevelop.Internal.ParserService.Parsing} " + project.Name + "...";
IProjectContent[] referencedContents; IProjectContent[] referencedContents;
lock (this.referencedContents) { lock (this.referencedContents) {

30
src/Main/Base/Project/Src/Services/ParserService/ParserService.cs

@ -6,26 +6,16 @@
// </file> // </file>
using System; using System;
using System.IO;
using System.Threading;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using System.Reflection; using System.IO;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters;
using System.Runtime.Serialization.Formatters.Binary;
using System.Security;
using System.Security.Permissions;
using System.Security.Policy;
using System.Xml;
using System.Text; using System.Text;
using System.Threading;
using ICSharpCode.Core;
using ICSharpCode.SharpDevelop.Project;
using ICSharpCode.SharpDevelop.Gui;
using ICSharpCode.SharpDevelop.Dom; using ICSharpCode.SharpDevelop.Dom;
using ICSharpCode.SharpDevelop.Gui;
using ICSharpCode.SharpDevelop.Project;
namespace ICSharpCode.Core namespace ICSharpCode.Core
{ {
@ -152,7 +142,7 @@ namespace ICSharpCode.Core
} }
createdContents.Add(newContent); createdContents.Add(newContent);
} catch (Exception e) { } catch (Exception e) {
ICSharpCode.Core.MessageService.ShowError(e, "Error while retrieving project contents from " + project); MessageService.ShowError(e, "Error while retrieving project contents from " + project);
} }
} }
WorkbenchSingleton.SafeThreadAsyncCall((ThreadStart)ProjectService.ParserServiceCreatedProjectContents); WorkbenchSingleton.SafeThreadAsyncCall((ThreadStart)ProjectService.ParserServiceCreatedProjectContents);
@ -163,16 +153,16 @@ namespace ICSharpCode.Core
newContent.Initialize1(); newContent.Initialize1();
workAmount += newContent.GetInitializationWorkAmount(); workAmount += newContent.GetInitializationWorkAmount();
} catch (Exception e) { } catch (Exception e) {
ICSharpCode.Core.MessageService.ShowError(e, "Error while initializing project references:" + newContent); MessageService.ShowError(e, "Error while initializing project references:" + newContent);
} }
} }
StatusBarService.ProgressMonitor.BeginTask("Parsing...", workAmount); StatusBarService.ProgressMonitor.BeginTask("${res:ICSharpCode.SharpDevelop.Internal.ParserService.Parsing}...", workAmount);
foreach (ParseProjectContent newContent in createdContents) { foreach (ParseProjectContent newContent in createdContents) {
if (abortLoadSolutionProjectsThread) break; if (abortLoadSolutionProjectsThread) break;
try { try {
newContent.Initialize2(); newContent.Initialize2();
} catch (Exception e) { } catch (Exception e) {
ICSharpCode.Core.MessageService.ShowError(e, "Error while initializing project contents:" + newContent); MessageService.ShowError(e, "Error while initializing project contents:" + newContent);
} }
} }
StatusBarService.ProgressMonitor.Done(); StatusBarService.ProgressMonitor.Done();
@ -182,7 +172,7 @@ namespace ICSharpCode.Core
{ {
ParseProjectContent newContent = (ParseProjectContent)state; ParseProjectContent newContent = (ParseProjectContent)state;
newContent.Initialize1(); newContent.Initialize1();
StatusBarService.ProgressMonitor.BeginTask("Parsing...", newContent.GetInitializationWorkAmount()); StatusBarService.ProgressMonitor.BeginTask("${res:ICSharpCode.SharpDevelop.Internal.ParserService.Parsing}...", newContent.GetInitializationWorkAmount());
newContent.Initialize2(); newContent.Initialize2();
StatusBarService.ProgressMonitor.Done(); StatusBarService.ProgressMonitor.Done();
} }
@ -190,7 +180,7 @@ namespace ICSharpCode.Core
static void ReparseProject(object state) static void ReparseProject(object state)
{ {
ParseProjectContent newContent = (ParseProjectContent)state; ParseProjectContent newContent = (ParseProjectContent)state;
StatusBarService.ProgressMonitor.BeginTask("Parsing...", newContent.GetInitializationWorkAmount()); StatusBarService.ProgressMonitor.BeginTask("${res:ICSharpCode.SharpDevelop.Internal.ParserService.Parsing}...", newContent.GetInitializationWorkAmount());
newContent.ReInitialize2(); newContent.ReInitialize2();
StatusBarService.ProgressMonitor.Done(); StatusBarService.ProgressMonitor.Done();
} }

1
src/Main/Core/Project/Src/AddInTree/AddIn/DefaultDoozers/MenuItem/Gui/Menu.cs

@ -24,6 +24,7 @@ namespace ICSharpCode.Core
public Menu(Codon codon, object caller, ArrayList subItems) public Menu(Codon codon, object caller, ArrayList subItems)
{ {
if (subItems == null) subItems = new ArrayList(); // don't crash when item has no children
this.codon = codon; this.codon = codon;
this.caller = caller; this.caller = caller;
this.subItems = subItems; this.subItems = subItems;

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

Binary file not shown.
Loading…
Cancel
Save