|
@@ -48,12 +48,11 @@ type
|
|
|
procedure InvalidateRect(Sender: TObject; ARect: TRect; Erase: boolean);
|
|
|
property DsgnForm: TFresnelForm read FDsgnForm;
|
|
|
public
|
|
|
- procedure GetObjInspNodeImageIndex(APersistent: TPersistent; var AIndex: integer); override;
|
|
|
end;
|
|
|
|
|
|
- { TFileDescPascalUnitWithMyForm }
|
|
|
+ { TFileDescPascalUnitWithFresnelForm }
|
|
|
|
|
|
- TFileDescPascalUnitWithMyForm = class(TFileDescPascalUnitWithResource)
|
|
|
+ TFileDescPascalUnitWithFresnelForm = class(TFileDescPascalUnitWithResource)
|
|
|
public
|
|
|
constructor Create; override;
|
|
|
function GetInterfaceUsesSection: string; override;
|
|
@@ -67,7 +66,10 @@ implementation
|
|
|
|
|
|
procedure Register;
|
|
|
begin
|
|
|
-
|
|
|
+ FormEditingHook.RegisterDesignerMediator(TFresnelFormMediator);
|
|
|
+ RegisterComponents('Fresnel',[TFresnelDiv,TFresnelSpan,TFresnelLabel]);
|
|
|
+ RegisterProjectFileDescriptor(TFileDescPascalUnitWithFresnelForm.Create,
|
|
|
+ FileDescGroupName);
|
|
|
end;
|
|
|
|
|
|
{ TFresnelFormMediator }
|
|
@@ -167,6 +169,8 @@ end;
|
|
|
|
|
|
destructor TFresnelFormMediator.Destroy;
|
|
|
begin
|
|
|
+ if FDsgnForm<>nil then FDsgnForm.Designer:=nil;
|
|
|
+ FDsgnForm:=nil;
|
|
|
inherited Destroy;
|
|
|
end;
|
|
|
|
|
@@ -177,15 +181,9 @@ begin
|
|
|
LCLIntf.InvalidateRect(LCLForm.Handle,@ARect,Erase);
|
|
|
end;
|
|
|
|
|
|
-procedure TFresnelFormMediator.GetObjInspNodeImageIndex(
|
|
|
- APersistent: TPersistent; var AIndex: integer);
|
|
|
-begin
|
|
|
- inherited GetObjInspNodeImageIndex(APersistent, AIndex);
|
|
|
-end;
|
|
|
-
|
|
|
-{ TFileDescPascalUnitWithMyForm }
|
|
|
+{ TFileDescPascalUnitWithFresnelForm }
|
|
|
|
|
|
-constructor TFileDescPascalUnitWithMyForm.Create;
|
|
|
+constructor TFileDescPascalUnitWithFresnelForm.Create;
|
|
|
begin
|
|
|
inherited Create;
|
|
|
Name:='FresnelForm';
|
|
@@ -193,17 +191,17 @@ begin
|
|
|
UseCreateFormStatements:=true;
|
|
|
end;
|
|
|
|
|
|
-function TFileDescPascalUnitWithMyForm.GetInterfaceUsesSection: string;
|
|
|
+function TFileDescPascalUnitWithFresnelForm.GetInterfaceUsesSection: string;
|
|
|
begin
|
|
|
Result:='Classes, SysUtils, FresnelLCLControls, FresnelDOM, FresnelControls';
|
|
|
end;
|
|
|
|
|
|
-function TFileDescPascalUnitWithMyForm.GetLocalizedName: string;
|
|
|
+function TFileDescPascalUnitWithFresnelForm.GetLocalizedName: string;
|
|
|
begin
|
|
|
Result:='FresnelForm';
|
|
|
end;
|
|
|
|
|
|
-function TFileDescPascalUnitWithMyForm.GetLocalizedDescription: string;
|
|
|
+function TFileDescPascalUnitWithFresnelForm.GetLocalizedDescription: string;
|
|
|
begin
|
|
|
Result:='Create a new Fresnel form';
|
|
|
end;
|