Browse Source

Created tree nodes.

pull/15/head
Eusebiu Marcu 15 years ago
parent
commit
f8d5fe6eb7
  1. 4
      src/Main/Base/Project/ICSharpCode.SharpDevelop.csproj
  2. 152
      src/Main/Base/Project/Src/Gui/Pads/ProjectBrowser/TreeNodes/InnerExpand/MemberNodes.cs
  3. 22
      src/Main/Base/Project/Src/Gui/Pads/ProjectBrowser/TreeNodes/InnerExpand/NamespaceNode.cs
  4. 186
      src/Main/Base/Project/Src/Gui/Pads/ProjectBrowser/TreeNodes/InnerExpand/TypeNodes.cs

4
src/Main/Base/Project/ICSharpCode.SharpDevelop.csproj

@ -273,6 +273,9 @@
<Compile Include="Src\Gui\Pads\BaseWatchBox.cs" /> <Compile Include="Src\Gui\Pads\BaseWatchBox.cs" />
<Compile Include="Src\Gui\Pads\OutlinePad.cs" /> <Compile Include="Src\Gui\Pads\OutlinePad.cs" />
<Compile Include="Src\Gui\Pads\ProjectBrowser\TreeNodes\DirectoryNodeFactory.cs" /> <Compile Include="Src\Gui\Pads\ProjectBrowser\TreeNodes\DirectoryNodeFactory.cs" />
<Compile Include="Src\Gui\Pads\ProjectBrowser\TreeNodes\InnerExpand\NamespaceNode.cs" />
<Compile Include="Src\Gui\Pads\ProjectBrowser\TreeNodes\InnerExpand\MemberNodes.cs" />
<Compile Include="Src\Gui\Pads\ProjectBrowser\TreeNodes\InnerExpand\TypeNodes.cs" />
<Compile Include="Src\Gui\Pads\TaskList\TaskListPadCommands.cs" /> <Compile Include="Src\Gui\Pads\TaskList\TaskListPadCommands.cs" />
<Compile Include="Src\Gui\Pads\ToolsPad.cs" /> <Compile Include="Src\Gui\Pads\ToolsPad.cs" />
<Compile Include="Src\Gui\ProgressCollector.cs" /> <Compile Include="Src\Gui\ProgressCollector.cs" />
@ -849,6 +852,7 @@
<Folder Include="Src\Editor\Commands" /> <Folder Include="Src\Editor\Commands" />
<Folder Include="Src\Editor\Search" /> <Folder Include="Src\Editor\Search" />
<Folder Include="Src\Gui\Dialogs\OptionPanels\ProjectOptions\WebProjectOptions" /> <Folder Include="Src\Gui\Dialogs\OptionPanels\ProjectOptions\WebProjectOptions" />
<Folder Include="Src\Gui\Pads\ProjectBrowser\TreeNodes\InnerExpand" />
<Folder Include="Src\Gui\Pads\TaskList" /> <Folder Include="Src\Gui\Pads\TaskList" />
<Folder Include="Src\Services\Debugger\Tooltips" /> <Folder Include="Src\Services\Debugger\Tooltips" />
<Folder Include="Src\Services\RefactoringService\ContextActions" /> <Folder Include="Src\Services\RefactoringService\ContextActions" />

152
src/Main/Base/Project/Src/Gui/Pads/ProjectBrowser/TreeNodes/InnerExpand/MemberNodes.cs

@ -0,0 +1,152 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
namespace ICSharpCode.SharpDevelop.Project.InnerExpand
{
public abstract class MemberNode : AbstractProjectBrowserTreeNode
{
public override object AcceptVisitor(ProjectBrowserTreeNodeVisitor visitor, object data)
{
throw new NotImplementedException();
}
}
#region Field nodes
public class PublicFieldNode : MemberNode
{
public PublicFieldNode()
{
SetIcon("Icons.16x16.Field");
}
}
public class InternalFieldNode : MemberNode
{
public InternalFieldNode()
{
SetIcon("Icons.16x16.InteralField");
}
}
public class ProtectedFieldNode : MemberNode
{
public ProtectedFieldNode()
{
SetIcon("Icons.16x16.ProtectedField");
}
}
public class PrivateFieldNode : MemberNode
{
public PrivateFieldNode()
{
SetIcon("Icons.16x16.PrivateField");
}
}
#endregion
#region Properties nodes
public class PublicPropertyNode : MemberNode
{
public PublicPropertyNode()
{
SetIcon("Icons.16x16.Property");
}
}
public class InternalPropertyNode : MemberNode
{
public InternalPropertyNode()
{
SetIcon("Icons.16x16.InteralProperty");
}
}
public class ProtectedPropertyNode : MemberNode
{
public ProtectedPropertyNode()
{
SetIcon("Icons.16x16.ProtectedProperty");
}
}
public class PrivatePropertyNode : MemberNode
{
public PrivatePropertyNode()
{
SetIcon("Icons.16x16.PrivateProperty");
}
}
#endregion
#region Method nodes
public class PublicMethodNode : MemberNode
{
public PublicMethodNode()
{
SetIcon("Icons.16x16.Method");
}
}
public class InternalMethodNode : MemberNode
{
public InternalMethodNode()
{
SetIcon("Icons.16x16.InternalMethod");
}
}
public class ProtectedMethodNode : MemberNode
{
public ProtectedMethodNode()
{
SetIcon("Icons.16x16.ProtectedMethod");
}
}
public class PrivateMethodNode : MemberNode
{
public PrivateMethodNode()
{
SetIcon("Icons.16x16.PrivateMethod");
}
}
#endregion
#region Event node
public class PublicEventNode : MemberNode
{
public PublicEventNode()
{
SetIcon("Icons.16x16.Event");
}
}
public class InternalEventNode : MemberNode
{
public InternalEventNode()
{
SetIcon("Icons.16x16.InternalEvent");
}
}
public class ProtectedEventNode : MemberNode
{
public ProtectedEventNode()
{
SetIcon("Icons.16x16.ProtectedEvent");
}
}
public class PrivateEventNode : MemberNode
{
public PrivateEventNode()
{
SetIcon("Icons.16x16.PrivateEvent");
}
}
#endregion
}

22
src/Main/Base/Project/Src/Gui/Pads/ProjectBrowser/TreeNodes/InnerExpand/NamespaceNode.cs

@ -0,0 +1,22 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
using System.Windows.Forms;
using ICSharpCode.Core;
namespace ICSharpCode.SharpDevelop.Project.InnerExpand
{
public class NamespaceNode : AbstractProjectBrowserTreeNode
{
public NamespaceNode()
{
SetIcon("Icons.16x16.NameSpace");
}
public override object AcceptVisitor(ProjectBrowserTreeNodeVisitor visitor, object data)
{
throw new NotImplementedException();
}
}
}

186
src/Main/Base/Project/Src/Gui/Pads/ProjectBrowser/TreeNodes/InnerExpand/TypeNodes.cs

@ -0,0 +1,186 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
namespace ICSharpCode.SharpDevelop.Project.InnerExpand
{
public abstract class TypeNode : AbstractProjectBrowserTreeNode
{
public override object AcceptVisitor(ProjectBrowserTreeNodeVisitor visitor, object data)
{
throw new NotImplementedException();
}
}
#region Classes
public class PublicClassNode : TypeNode
{
public PublicClassNode()
{
SetIcon("Icons.16x16.Class");
}
}
public class InternalClassNode : TypeNode
{
public InternalClassNode()
{
SetIcon("Icons.16x16.InternalClass");
}
}
public class ProtectedClassNode : TypeNode
{
public ProtectedClassNode()
{
SetIcon("Icons.16x16.ProtectedClass");
}
}
public class PrivateClassNode : TypeNode
{
public PrivateClassNode()
{
SetIcon("Icons.16x16.PrivateClass");
}
}
#endregion
#region Interfaces
public class PublicInterfaceNode : TypeNode
{
public PublicInterfaceNode()
{
SetIcon("Icons.16x16.Interface");
}
}
public class InternalInterfaceNode : TypeNode
{
public InternalInterfaceNode()
{
SetIcon("Icons.16x16.InternalInterface");
}
}
public class ProtectedInterfaceNode : TypeNode
{
public ProtectedInterfaceNode()
{
SetIcon("Icons.16x16.ProtectedInterface");
}
}
public class PrivateInterfaceNode : TypeNode
{
public PrivateInterfaceNode()
{
SetIcon("Icons.16x16.PrivateInterface");
}
}
#endregion
#region Structs
public class PublicStructNode : TypeNode
{
public PublicStructNode()
{
SetIcon("Icons.16x16.Struct");
}
}
public class InternalStructNode : TypeNode
{
public InternalStructNode()
{
SetIcon("Icons.16x16.InternalStruct");
}
}
public class ProtectedStructNode : TypeNode
{
public ProtectedStructNode()
{
SetIcon("Icons.16x16.ProtectedStruct");
}
}
public class PrivateStructNode : TypeNode
{
public PrivateStructNode()
{
SetIcon("Icons.16x16.PrivateStruct");
}
}
#endregion
#region Enums
public class PublicEnumNode : TypeNode
{
public PublicEnumNode()
{
SetIcon("Icons.16x16.Enum");
}
}
public class IntenalEnumNode : TypeNode
{
public IntenalEnumNode()
{
SetIcon("Icons.16x16.InternalEnum");
}
}
public class ProtectedEnumNode : TypeNode
{
public ProtectedEnumNode()
{
SetIcon("Icons.16x16.ProtectedEnum");
}
}
public class PrivateEnumNode : TypeNode
{
public PrivateEnumNode()
{
SetIcon("Icons.16x16.PrivateEnum");
}
}
#endregion
#region Delegates
public class PublicDelegateNode : TypeNode
{
public PublicDelegateNode()
{
SetIcon("Icons.16x16.Delegate");
}
}
public class InternalDelegateNode : TypeNode
{
public InternalDelegateNode()
{
SetIcon("Icons.16x16.InternalDelegate");
}
}
public class ProtectedDelegateNode : TypeNode
{
public ProtectedDelegateNode()
{
SetIcon("Icons.16x16.ProtectedDelegate");
}
}
public class PrivateDelegateNode : TypeNode
{
public PrivateDelegateNode()
{
SetIcon("Icons.16x16.PrivateDelegate");
}
}
#endregion
}
Loading…
Cancel
Save