mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-29 14:40:25 +02:00
rtl: classes: added parameter aName to TFindComponentClassExEvent
This commit is contained in:
parent
aaf356ba9f
commit
e8546a9e41
@ -1503,8 +1503,8 @@ type
|
|||||||
PropInfo: PPropInfo; const TheMethodName: string;
|
PropInfo: PPropInfo; const TheMethodName: string;
|
||||||
var Handled: boolean) of object;
|
var Handled: boolean) of object;
|
||||||
TSetNameEvent = procedure(Reader: TReader; Component: TComponent;
|
TSetNameEvent = procedure(Reader: TReader; Component: TComponent;
|
||||||
var Name: string) of object;
|
var aName: string) of object;
|
||||||
TReferenceNameEvent = procedure(Reader: TReader; var Name: string) of object;
|
TReferenceNameEvent = procedure(Reader: TReader; var aName: string) of object;
|
||||||
TAncestorNotFoundEvent = procedure(Reader: TReader; const ComponentName: string;
|
TAncestorNotFoundEvent = procedure(Reader: TReader; const ComponentName: string;
|
||||||
ComponentClass: TPersistentClass; var Component: TComponent) of object;
|
ComponentClass: TPersistentClass; var Component: TComponent) of object;
|
||||||
TReadComponentsProc = procedure(Component: TComponent) of object;
|
TReadComponentsProc = procedure(Component: TComponent) of object;
|
||||||
@ -1512,9 +1512,10 @@ type
|
|||||||
var Handled: Boolean) of object;
|
var Handled: Boolean) of object;
|
||||||
TPropertyNotFoundEvent = procedure(Reader: TReader; Instance: TPersistent;
|
TPropertyNotFoundEvent = procedure(Reader: TReader; Instance: TPersistent;
|
||||||
var PropName: string; IsPath: boolean; var Handled, Skip: Boolean) of object;
|
var PropName: string; IsPath: boolean; var Handled, Skip: Boolean) of object;
|
||||||
TFindComponentClassEvent = procedure(Reader: TReader; const ClassName: string;
|
TFindComponentClassEvent = procedure(Reader: TReader; const aClassName: string;
|
||||||
var ComponentClass: TComponentClass) of object;
|
var ComponentClass: TComponentClass) of object;
|
||||||
TFindComponentClassExEvent = procedure(Reader: TReader; const anUnitname, ClassName: string;
|
TFindComponentClassExEvent = procedure(Reader: TReader;
|
||||||
|
const aName, anUnitname, aClassName: string;
|
||||||
var ComponentClass: TComponentClass) of object;
|
var ComponentClass: TComponentClass) of object;
|
||||||
TCreateComponentEvent = procedure(Reader: TReader;
|
TCreateComponentEvent = procedure(Reader: TReader;
|
||||||
ComponentClass: TComponentClass; var Component: TComponent) of object;
|
ComponentClass: TComponentClass; var Component: TComponent) of object;
|
||||||
|
@ -1844,7 +1844,7 @@ begin
|
|||||||
FindInFieldTable(LookupRoot);
|
FindInFieldTable(LookupRoot);
|
||||||
|
|
||||||
if (Result=nil) and assigned(OnFindComponentClassEx) then
|
if (Result=nil) and assigned(OnFindComponentClassEx) then
|
||||||
OnFindComponentClassEx(Self, anUnitName, AClassName, Result);
|
OnFindComponentClassEx(Self, AName, anUnitName, AClassName, Result);
|
||||||
|
|
||||||
if (Result=nil) then begin
|
if (Result=nil) then begin
|
||||||
if anUnitName<>'' then
|
if anUnitName<>'' then
|
||||||
|
Loading…
Reference in New Issue
Block a user