Skip to content

Commit

Permalink
тест2
Browse files Browse the repository at this point in the history
  • Loading branch information
zamtmn committed Sep 14, 2024
1 parent 0d0f4ab commit 507e6e9
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions cad_source/zengine/core/entities/uzeentsubordinated.pas
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}

unit uzeentsubordinated;
{$Mode delphi}{$H+}
{$Mode objfpc}{$H+}
{$INCLUDE zengineconfig.inc}

interface
Expand All @@ -32,7 +32,7 @@ interface
EntExtensions:{-}TEntityExtensions{/Pointer/};
procedure AddExtension(ExtObj:TAbstractEntityExtender);
procedure RemoveExtension(ExtType:TMetaEntityExtender);
function GetExtension<GEntityExtenderType>:GEntityExtenderType;overload;
generic function GetExtension<GEntityExtenderType>:GEntityExtenderType;overload;
function GetExtension(ExtType:TMetaEntityExtender):TAbstractEntityExtender;overload;
function GetExtension(n:Integer):TAbstractEntityExtender;overload;
function GetExtensionsCount:Integer;
Expand Down Expand Up @@ -122,10 +122,10 @@ procedure GDBObjExtendable.RemoveExtension(ExtType:TMetaEntityExtender);
if assigned(EntExtensions) then
EntExtensions.RemoveExtension(ExtType);
end;
function GDBObjExtendable.GetExtension<GEntityExtenderType>:GEntityExtenderType;
generic function GDBObjExtendable.GetExtension<GEntityExtenderType>:GEntityExtenderType;
begin
if assigned(EntExtensions) then
result:=EntExtensions.GetExtensionOf<GEntityExtenderType>
result:=EntExtensions. specialize GetExtensionOf<GEntityExtenderType>
else
result:=nil;
end;
Expand Down Expand Up @@ -163,7 +163,7 @@ procedure GDBObjExtendable.CopyExtensionsTo(var Dest:GDBObjExtendable);
for i:=0 to GetExtensionsCount-1 do begin
SourceExt:=GetExtension(i);
if SourceExt<>nil then begin
DestExt:=Dest.GetExtension(TypeOf(SourceExt));
DestExt:=Dest.GetExtension(TMetaEntityExtender(TypeOf(SourceExt)));
if not Assigned(DestExt) then begin
DestExt:=TMetaEntityExtender(SourceExt.ClassType).Create(@Dest);
DestExt.Assign(SourceExt);
Expand Down Expand Up @@ -206,7 +206,7 @@ destructor GDBObjGenericWithSubordinated.done;
//ou.done;
inherited;
end;
procedure GDBObjGenericWithSubordinated.FormatAfterDXFLoad;
procedure GDBObjGenericWithSubordinated.FormatAfterDXFLoad(var drawing:TDrawingDef;var DC:TDrawContext);
begin
//format;
//CalcObjMatrix;
Expand Down Expand Up @@ -395,7 +395,7 @@ procedure OldVersVarRename(var vn,vt,vv,vun:String);
end;

end;
procedure GDBObjGenericWithSubordinated.Build;
procedure GDBObjGenericWithSubordinated.Build(var drawing:TDrawingDef);
begin

end;
Expand Down Expand Up @@ -424,13 +424,13 @@ function GDBObjSubordinated.FindVariable;
result:=self.bp.ListPos.Owner.FindVariable(varname);
end;}
procedure GDBObjGenericWithSubordinated.ImEdited;
procedure GDBObjGenericWithSubordinated.ImEdited(pobj:PGDBObjSubordinated;pobjinarray:Integer;var drawing:TDrawingDef);
begin
end;
procedure GDBObjGenericWithSubordinated.ImSelected;
procedure GDBObjGenericWithSubordinated.ImSelected(pobj:PGDBObjSubordinated;pobjinarray:Integer);
begin
end;
procedure GDBObjGenericWithSubordinated.DelSelectedSubitem;
procedure GDBObjGenericWithSubordinated.DelSelectedSubitem(var drawing:TDrawingDef);
begin
end;
begin
Expand Down

0 comments on commit 507e6e9

Please sign in to comment.