IdeIntf: procedure DoAfterComponentAdded does not need to be virtual. Formatting.

This commit is contained in:
Juha 2022-11-21 09:19:41 +02:00
parent ecdb59db7c
commit fa711164a9
2 changed files with 4 additions and 4 deletions

View File

@ -276,7 +276,7 @@ type
procedure SetSelectedComp(AComponent: TRegisteredComponent; AMulti: Boolean); procedure SetSelectedComp(AComponent: TRegisteredComponent; AMulti: Boolean);
// Registered handlers // Registered handlers
procedure DoAfterComponentAdded(ALookupRoot, AComponent: TComponent; procedure DoAfterComponentAdded(ALookupRoot, AComponent: TComponent;
ARegisteredComponent: TRegisteredComponent); virtual; ARegisteredComponent: TRegisteredComponent);
procedure DoAfterSelectionChanged; procedure DoAfterSelectionChanged;
procedure DoAfterUpdate; procedure DoAfterUpdate;
procedure RemoveAllHandlersOfObject(AnObject: TObject); procedure RemoveAllHandlersOfObject(AnObject: TObject);

View File

@ -13430,10 +13430,10 @@ begin
AComponent.ClassName, ' not registered'); AComponent.ClassName, ' not registered');
exit; exit;
end; end;
//debugln('TMainIDE.PropHookPersistentAdded B ',AComponent.Name,':',AComponent.ClassName); //DebugLn('TMainIDE.PropHookPersistentAdded B ',AComponent.Name,':',AComponent.ClassName);
// set component into design mode // set component into design mode
SetDesigning(AComponent,true); SetDesigning(AComponent,true);
//debugln('TMainIDE.PropHookPersistentAdded C ',AComponent.Name,':',AComponent.ClassName); //DebugLn('TMainIDE.PropHookPersistentAdded C ',AComponent.Name,':',AComponent.ClassName);
// add to source // add to source
FComponentAddedDesigner:=FindRootDesigner(AComponent) as TDesigner; FComponentAddedDesigner:=FindRootDesigner(AComponent) as TDesigner;
if FComponentAddedDesigner<>nil then if FComponentAddedDesigner<>nil then
@ -13467,7 +13467,7 @@ begin
// Update Object Inspector // Update Object Inspector
if ObjectInspector1<>nil then // Moving this to Idle handler somehow removes if ObjectInspector1<>nil then // Moving this to Idle handler somehow removes
ObjectInspector1.FillComponentList(False); // selection of pasted components! ObjectInspector1.FillComponentList(False); // selection of pasted components!
//debugln('TMainIDE.PropHookPersistentAdded END ',dbgsName(APersistent),' Select=',Select); //DebugLn(['TMainIDE.PropHookPersistentAdded END ',dbgsName(APersistent),' Select=',Select]);
end; end;
procedure TMainIDE.PropHookPersistentDeleting(APersistent: TPersistent); procedure TMainIDE.PropHookPersistentDeleting(APersistent: TPersistent);