[svn] r7361: vs-plugin/trunk/Nemerle.VsIntegration: Project/NemerleProjectNode.cs Resources/Nemerle.ico Re...

Nuald svnadmin at nemerle.org
Tue Jan 30 11:35:38 CET 2007


Log:
Change icon for projects.

Author: Nuald
Date: Tue Jan 30 11:33:51 2007
New Revision: 7361

Modified:
   vs-plugin/trunk/Nemerle.VsIntegration/Project/NemerleProjectNode.cs
   vs-plugin/trunk/Nemerle.VsIntegration/Resources/Nemerle.ico
   vs-plugin/trunk/Nemerle.VsIntegration/Resources/NemerleImageList.bmp
   vs-plugin/trunk/Nemerle.VsIntegration/Templates/ProjectItems/Class/Class.ico
   vs-plugin/trunk/Nemerle.VsIntegration/Templates/Projects/ClassLibrary/Nemerle.ico
   vs-plugin/trunk/Nemerle.VsIntegration/Templates/Projects/ConsoleApplication/Console.ico
   vs-plugin/trunk/Nemerle.VsIntegration/Templates/Projects/MacroLibrary/Nemerle.ico
   vs-plugin/trunk/Nemerle.VsIntegration/Templates/Projects/WindowsApplication/Nemerle.ico

Modified: vs-plugin/trunk/Nemerle.VsIntegration/Project/NemerleProjectNode.cs
==============================================================================
--- vs-plugin/trunk/Nemerle.VsIntegration/Project/NemerleProjectNode.cs	(original)
+++ vs-plugin/trunk/Nemerle.VsIntegration/Project/NemerleProjectNode.cs	Tue Jan 30 11:33:51 2007
@@ -18,6 +18,7 @@
 using Nemerle.VisualStudio.LanguageService;
 
 using PkgUtils = Microsoft.VisualStudio.Package.Utilities;
+using System.Drawing;
 
 namespace Nemerle.VisualStudio.Project
 {
@@ -39,6 +40,12 @@
 
 			OleServiceProvider.AddService(typeof(VSLangProj.VSProject), VSProject, false);
 
+			//Store the number of images in ProjectNode so we know the offset of the Nemerle icons.
+			_imageOffset = this.ImageList.Images.Count;
+			foreach (Image img in NemerleImageList.Images) {
+				this.ImageList.Images.Add(img);
+			}
+
 			InitializeCATIDs();
 		}
 
@@ -146,6 +153,9 @@
 		}
 
 		private static ImageList _nemerleImageList = LoadProjectImageList();
+		
+		static int _imageOffset;
+
 		public  static ImageList  NemerleImageList
 		{
 			get { return _nemerleImageList; }
@@ -155,7 +165,7 @@
 
 		#region Overridden Properties
 
-		public   override int    ImageIndex  { get { return NemerleConstants.ImageListIndex.NemerleProject; } }
+		public override int ImageIndex { get { return _imageOffset + NemerleConstants.ImageListIndex.NemerleProject; } }
 		public   override Guid   ProjectGuid { get { return typeof(NemerleProjectFactory).GUID; } }
 		public   override string ProjectType { get { return NemerleConstants.LanguageName;      } }
 		internal override object Object      { get { return VSProject;                          } }

Modified: vs-plugin/trunk/Nemerle.VsIntegration/Resources/Nemerle.ico
==============================================================================
Binary files. No diff available.

Modified: vs-plugin/trunk/Nemerle.VsIntegration/Resources/NemerleImageList.bmp
==============================================================================
Binary files. No diff available.

Modified: vs-plugin/trunk/Nemerle.VsIntegration/Templates/ProjectItems/Class/Class.ico
==============================================================================
Binary files. No diff available.

Modified: vs-plugin/trunk/Nemerle.VsIntegration/Templates/Projects/ClassLibrary/Nemerle.ico
==============================================================================
Binary files. No diff available.

Modified: vs-plugin/trunk/Nemerle.VsIntegration/Templates/Projects/ConsoleApplication/Console.ico
==============================================================================
Binary files. No diff available.

Modified: vs-plugin/trunk/Nemerle.VsIntegration/Templates/Projects/MacroLibrary/Nemerle.ico
==============================================================================
Binary files. No diff available.

Modified: vs-plugin/trunk/Nemerle.VsIntegration/Templates/Projects/WindowsApplication/Nemerle.ico
==============================================================================
Binary files. No diff available.



More information about the svn mailing list