diff --git a/ide/codebrowser.pas b/ide/codebrowser.pas index b08cc247c3..834967154b 100644 --- a/ide/codebrowser.pas +++ b/ide/codebrowser.pas @@ -86,6 +86,7 @@ type FFilename: string; FScanned: boolean; FScannedBytes: integer; + FScannedIdentifiers: integer; FScannedLines: integer; FUnitList: TCodeBrowserUnitList; procedure SetScanned(const AValue: boolean); @@ -101,6 +102,7 @@ type property ChildNodes: TAvgLvlTree read FChildNodes; property ScannedLines: integer read FScannedLines write FScannedLines; property ScannedBytes: integer read FScannedBytes write FScannedBytes; + property ScannedIdentifiers: integer read FScannedIdentifiers write FScannedIdentifiers; property Scanned: boolean read FScanned write SetScanned; end; @@ -249,6 +251,7 @@ type FProjectAlias: string; FRoot: TCodeBrowserUnitList; FScannedBytes: PtrInt; + FScannedIdentifiers: PtrInt; FScannedLines: PtrInt; FScannedPackages: integer; FScannedUnits: integer; @@ -265,6 +268,7 @@ type procedure RemoveSortItem; procedure FillScopeComboBox; procedure SetScannedBytes(const AValue: PtrInt); + procedure SetScannedIdentifiers(const AValue: PtrInt); procedure SetScannedLines(const AValue: PtrInt); procedure SetScannedPackages(const AValue: integer); procedure SetScannedUnits(const AValue: integer); @@ -280,7 +284,9 @@ type procedure WorkUpdateUnit(AnUnit: TCodeBrowserUnit); procedure FreeUnitList(List: TCodeBrowserUnitList); procedure UpdateStatusBar(Lazy: boolean); + procedure UpdateTreeView; procedure RemoveUnit(AnUnit: TCodeBrowserUnit); + function CountIdentifiers(Tool: TCodeTool): integer; public procedure BeginUpdate; procedure EndUpdate; @@ -293,6 +299,7 @@ type property ScannedUnits: integer read FScannedUnits write SetScannedUnits; property ScannedLines: PtrInt read FScannedLines write SetScannedLines; property ScannedBytes: PtrInt read FScannedBytes write SetScannedBytes; + property ScannedIdentifiers: PtrInt read FScannedIdentifiers write SetScannedIdentifiers; end; var @@ -563,6 +570,12 @@ begin FScannedBytes:=AValue; end; +procedure TCodeBrowserView.SetScannedIdentifiers(const AValue: PtrInt); +begin + if FScannedIdentifiers=AValue then exit; + FScannedIdentifiers:=AValue; +end; + procedure TCodeBrowserView.SetScannedLines(const AValue: PtrInt); begin if FScannedLines=AValue then exit; @@ -601,6 +614,8 @@ begin end; if ord(OldStage)