Skip to content
Prev Previous commit
Next Next commit
Changing registration class name according to the standard nomenclature
  • Loading branch information
lmbelo committed Mar 26, 2022
commit 06ca1c073952bbc5fc721e75b03918ecbfa62662
12 changes: 7 additions & 5 deletions Source/fmx/WrapFmxStdActns.pas
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ TPyDelphiValueRangeAction = class(TPyDelphiCustomValueRangeAction)
implementation

type
TFMXStdActns = class(TRegisteredUnit)
TStdActnsRegistration = class(TRegisteredUnit)
public
function Name: string; override;
procedure RegisterWrappers(APyDelphiWrapper: TPyDelphiWrapper); override;
Expand All @@ -174,17 +174,17 @@ TFMXStdActns = class(TRegisteredUnit)

{ TFMXStdActns }

function TFMXStdActns.Name: string;
function TStdActnsRegistration.Name: string;
begin
Result := 'StdActns';
end;

procedure TFMXStdActns.DefineVars(APyDelphiWrapper: TPyDelphiWrapper);
procedure TStdActnsRegistration.DefineVars(APyDelphiWrapper: TPyDelphiWrapper);
begin
inherited;
end;

procedure TFMXStdActns.RegisterWrappers(APyDelphiWrapper: TPyDelphiWrapper);
procedure TStdActnsRegistration.RegisterWrappers(APyDelphiWrapper: TPyDelphiWrapper);
begin
inherited;
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiHintAction);
Expand All @@ -201,7 +201,6 @@ procedure TFMXStdActns.RegisterWrappers(APyDelphiWrapper: TPyDelphiWrapper);
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiValueRange);
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiCustomValueRangeAction);
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiValueRangeAction);

end;

{ TPyDelphiHintAction }
Expand Down Expand Up @@ -449,4 +448,7 @@ procedure TPyDelphiValueRangeAction.SetDelphiObject(
inherited DelphiObject := Value;
end;

initialization
RegisteredUnits.Add(TStdActnsRegistration.Create);

end.