Browse Source

added new icon for extension methods

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@6268 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
pull/1/head
Siegfried Pammer 15 years ago
parent
commit
db08b353a0
  1. 4
      data/resources/image/BitmapResources/BitmapResources.res
  2. BIN
      data/resources/image/BitmapResources/ClassBrowserIcons/Icons.16x16.Method.xcf
  3. 30
      src/Main/Base/Project/Src/Services/ClassBrowserIcons/ClassBrowserIconService.cs
  4. BIN
      src/Main/StartUp/Project/Resources/BitmapResources.resources

4
data/resources/image/BitmapResources/BitmapResources.res

@ -277,6 +277,7 @@ Icons.16x16.Enum = ClassBrowserIcons\Icons.16x1 @@ -277,6 +277,7 @@ Icons.16x16.Enum = ClassBrowserIcons\Icons.16x1
Icons.16x16.Interface = ClassBrowserIcons\Icons.16x16.Interface.png
Icons.16x16.Delegate = ClassBrowserIcons\Icons.16x16.Delegate.png
Icons.16x16.Method = ClassBrowserIcons\Icons.16x16.Method.png
Icons.16x16.ExtensionMethod = ClassBrowserIcons\Icons.16x16.ExtensionMethod.png
Icons.16x16.Operator = ClassBrowserIcons\Icons.16x16.Operator.png
Icons.16x16.Property = ClassBrowserIcons\Icons.16x16.Property.png
Icons.16x16.Indexer = ClassBrowserIcons\Icons.16x16.Indexer.png
@ -292,6 +293,7 @@ Icons.16x16.PrivateEnum = ClassBrowserIcons\Icons.16x1 @@ -292,6 +293,7 @@ Icons.16x16.PrivateEnum = ClassBrowserIcons\Icons.16x1
Icons.16x16.PrivateInterface = ClassBrowserIcons\Icons.16x16.PrivateInterface.png
Icons.16x16.PrivateDelegate = ClassBrowserIcons\Icons.16x16.PrivateDelegate.png
Icons.16x16.PrivateMethod = ClassBrowserIcons\Icons.16x16.PrivateMethod.png
Icons.16x16.PrivateExtensionMethod = ClassBrowserIcons\Icons.16x16.PrivateExtensionMethod.png
Icons.16x16.PrivateProperty = ClassBrowserIcons\Icons.16x16.PrivateProperty.png
Icons.16x16.PrivateIndexer = ClassBrowserIcons\Icons.16x16.PrivateIndexer.png
Icons.16x16.PrivateField = ClassBrowserIcons\Icons.16x16.PrivateField.png
@ -303,6 +305,7 @@ Icons.16x16.ProtectedEnum = ClassBrowserIcons\Icons.16x1 @@ -303,6 +305,7 @@ Icons.16x16.ProtectedEnum = ClassBrowserIcons\Icons.16x1
Icons.16x16.ProtectedInterface = ClassBrowserIcons\Icons.16x16.ProtectedInterface.png
Icons.16x16.ProtectedDelegate = ClassBrowserIcons\Icons.16x16.ProtectedDelegate.png
Icons.16x16.ProtectedMethod = ClassBrowserIcons\Icons.16x16.ProtectedMethod.png
Icons.16x16.ProtectedExtensionMethod = ClassBrowserIcons\Icons.16x16.ProtectedExtensionMethod.png
Icons.16x16.ProtectedProperty = ClassBrowserIcons\Icons.16x16.ProtectedProperty.png
Icons.16x16.ProtectedIndexer = ClassBrowserIcons\Icons.16x16.ProtectedIndexer.png
Icons.16x16.ProtectedField = ClassBrowserIcons\Icons.16x16.ProtectedField.png
@ -314,6 +317,7 @@ Icons.16x16.InternalEnum = ClassBrowserIcons\Icons.16x1 @@ -314,6 +317,7 @@ Icons.16x16.InternalEnum = ClassBrowserIcons\Icons.16x1
Icons.16x16.InternalInterface = ClassBrowserIcons\Icons.16x16.InternalInterface.png
Icons.16x16.InternalDelegate = ClassBrowserIcons\Icons.16x16.InternalDelegate.png
Icons.16x16.InternalMethod = ClassBrowserIcons\Icons.16x16.InternalMethod.png
Icons.16x16.InternalExtensionMethod = ClassBrowserIcons\Icons.16x16.InternalExtensionMethod.png
Icons.16x16.InternalProperty = ClassBrowserIcons\Icons.16x16.InternalProperty.png
Icons.16x16.InternalIndexer = ClassBrowserIcons\Icons.16x16.InternalIndexer.png
Icons.16x16.InternalField = ClassBrowserIcons\Icons.16x16.InternalField.png

BIN
data/resources/image/BitmapResources/ClassBrowserIcons/Icons.16x16.Method.xcf

Binary file not shown.

30
src/Main/Base/Project/Src/Services/ClassBrowserIcons/ClassBrowserIconService.cs

@ -164,19 +164,25 @@ namespace ICSharpCode.SharpDevelop @@ -164,19 +164,25 @@ namespace ICSharpCode.SharpDevelop
AddImage("Icons.16x16.Indexer"),
AddImage("Icons.16x16.InternalIndexer"),
AddImage("Icons.16x16.ProtectedIndexer"),
AddImage("Icons.16x16.PrivateIndexer")
AddImage("Icons.16x16.PrivateIndexer"),
AddImage("Icons.16x16.ExtensionMethod"),
AddImage("Icons.16x16.InternalExtensionMethod"),
AddImage("Icons.16x16.ProtectedExtensionMethod"),
AddImage("Icons.16x16.PrivateExtensionMethod")
};
const int ClassIndex = 0;
const int StructIndex = ClassIndex + 1 * 4;
const int InterfaceIndex = ClassIndex + 2 * 4;
const int EnumIndex = ClassIndex + 3 * 4;
const int MethodIndex = ClassIndex + 4 * 4;
const int PropertyIndex = ClassIndex + 5 * 4;
const int FieldIndex = ClassIndex + 6 * 4;
const int DelegateIndex = ClassIndex + 7 * 4;
const int EventIndex = ClassIndex + 8 * 4;
const int IndexerIndex = ClassIndex + 9 * 4;
const int ClassIndex = 0;
const int StructIndex = ClassIndex + 1 * 4;
const int InterfaceIndex = ClassIndex + 2 * 4;
const int EnumIndex = ClassIndex + 3 * 4;
const int MethodIndex = ClassIndex + 4 * 4;
const int PropertyIndex = ClassIndex + 5 * 4;
const int FieldIndex = ClassIndex + 6 * 4;
const int DelegateIndex = ClassIndex + 7 * 4;
const int EventIndex = ClassIndex + 8 * 4;
const int IndexerIndex = ClassIndex + 9 * 4;
const int ExtensionMethodIndex = ClassIndex + 10 * 4;
const int internalModifierOffset = 1;
const int protectedModifierOffset = 2;
@ -230,6 +236,8 @@ namespace ICSharpCode.SharpDevelop @@ -230,6 +236,8 @@ namespace ICSharpCode.SharpDevelop
{
if (method.IsOperator)
return Operator;
else if (method.IsExtensionMethod)
return entityImages[ExtensionMethodIndex + GetModifierOffset(method.Modifiers)];
else
return entityImages[MethodIndex + GetModifierOffset(method.Modifiers)];
}

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

Binary file not shown.
Loading…
Cancel
Save