mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 21:39:49 +02:00
ide: set correct imageindex for uses section and used unit nodes
git-svn-id: trunk@19594 -
This commit is contained in:
parent
841d9ef2fb
commit
2da1e36c1c
@ -577,13 +577,13 @@ function TCodeExplorerView.GetCodeNodeImage(Tool: TFindDeclarationTool;
|
||||
CodeNode: TCodeTreeNode): integer;
|
||||
begin
|
||||
case CodeNode.Desc of
|
||||
ctnProgram,ctnLibrary,ctnPackage: Result:=ImgIDProgram;
|
||||
ctnUnit: Result:=ImgIDUnit;
|
||||
ctnInterface: Result:=ImgIDInterface;
|
||||
ctnImplementation: Result:=ImgIDImplementation;
|
||||
ctnInitialization: Result:=ImgIDInitialization;
|
||||
ctnFinalization: Result:=ImgIDFinalization;
|
||||
ctnTypeSection: Result:=ImgIDSection;
|
||||
ctnProgram,ctnLibrary,ctnPackage: Result:=ImgIDProgram;
|
||||
ctnUnit: Result:=ImgIDUnit;
|
||||
ctnInterface: Result:=ImgIDInterface;
|
||||
ctnImplementation: Result:=ImgIDImplementation;
|
||||
ctnInitialization: Result:=ImgIDInitialization;
|
||||
ctnFinalization: Result:=ImgIDFinalization;
|
||||
ctnTypeSection: Result:=ImgIDSection;
|
||||
ctnTypeDefinition:
|
||||
begin
|
||||
if (CodeNode.FirstChild <> nil) and (CodeNode.FirstChild.Desc = ctnClass) then
|
||||
@ -591,16 +591,18 @@ begin
|
||||
else
|
||||
Result := ImgIDType;
|
||||
end;
|
||||
ctnVarSection: Result:=ImgIDSection;
|
||||
ctnVarDefinition: Result:=ImgIDVariable;
|
||||
ctnConstSection,ctnResStrSection: Result:=ImgIDSection;
|
||||
ctnConstDefinition: Result:=ImgIDConst;
|
||||
ctnClass: Result:=ImgIDClass;
|
||||
ctnProcedure: if Tool.NodeIsFunction(CodeNode) then
|
||||
Result:=ImgIDFunction
|
||||
else
|
||||
Result:=ImgIDProcedure;
|
||||
ctnProperty: Result:=ImgIDProperty;
|
||||
ctnVarSection: Result:=ImgIDSection;
|
||||
ctnVarDefinition: Result:=ImgIDVariable;
|
||||
ctnConstSection,ctnResStrSection: Result:=ImgIDSection;
|
||||
ctnConstDefinition: Result:=ImgIDConst;
|
||||
ctnClass: Result:=ImgIDClass;
|
||||
ctnProcedure: if Tool.NodeIsFunction(CodeNode) then
|
||||
Result:=ImgIDFunction
|
||||
else
|
||||
Result:=ImgIDProcedure;
|
||||
ctnProperty: Result:=ImgIDProperty;
|
||||
ctnUsesSection: Result:= ImgIDSection;
|
||||
ctnUseUnit: Result:=ImgIDUnit;
|
||||
else
|
||||
Result:=ImgIDDefault;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user