Skip to content

Commit

Permalink
Register field classes after design package split
Browse files Browse the repository at this point in the history
  • Loading branch information
madorin committed Nov 14, 2019
1 parent a54b6ab commit 2e0bc47
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 91 deletions.
30 changes: 2 additions & 28 deletions FIBDataSet.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1591,44 +1591,18 @@ procedure Sort(DataSet: TFIBCustomDataSet; aFields: array of const;
);



const
SNoAction = 'No Action';




procedure Register;

implementation
uses StrUtil,FIBConsts,pFIBDataInfo,VariantRtn,IB_ErrorCodes,pFIBCacheQueries,DSContainer;

uses StrUtil,FIBConsts,pFIBDataInfo,VariantRtn,IB_ErrorCodes,pFIBCacheQueries,DSContainer;

const
DiffSizesRecData=SizeOf(TRecordData)-SizeOf(TSavedRecordData);
LocateParamPrefix='LOCATE_';

procedure Register;
begin
RegisterClass(TFIBStringField);
RegisterClass(TFIBIntegerField);
RegisterClass(TFIBSmallIntField);
RegisterClass(TFIBFloatField);
RegisterClass(TFIBBCDField);
RegisterClass(TFIBBooleanField);

{$IFDEF SUPPORT_ARRAY_FIELD}
RegisterClass(TFIBArrayField);
{$ENDIF}
RegisterClass(TFIBLargeIntField);
RegisterClass(TFIBGuidField);
RegisterClass(TFIBDateField);
RegisterClass(TFIBTimeField);
RegisterClass(TFIBDateTimeField);
RegisterClass(TFIBBlobField);
RegisterClass(TFIBWideStringField);
RegisterClass(TFIBMemoField);
end;

function IsSysField(const FieldName:string):boolean;
begin
Result:=False;
Expand Down
99 changes: 36 additions & 63 deletions RegFIBPlus.pas
Original file line number Diff line number Diff line change
Expand Up @@ -18,88 +18,61 @@
{ Please see the file License.txt for full license information }
{***************************************************************}


unit RegFIBPlus;

interface
{$I FIBPlus.inc}
uses

Classes,Sysutils,DB,
pFIBDataSet,pFIBDatabase,
pFIBQuery, DSContainer,pFIBSQLLog,SIBFIBEA,
pFIBMetadata,pFIBDataRefresh,pFIBExports,
{$IFNDEF NO_MONITOR}
FIBSQLMonitor,
{$ENDIF}
pFIBErrorHandler, pFIBStoredProc, pFIBProps
{$IFDEF INC_SERVICE_SUPPORT}
,IB_Services
{$ENDIF}
{$IFDEF IBINSTALL_SUPPORT}
, IB_Install
{$ENDIF}
;



{$I FIBPlus.inc}

uses
Classes, Sysutils, DB, pFIBDataSet, pFIBDatabase, pFIBQuery, DSContainer,
pFIBSQLLog, SIBFIBEA, pFIBMetadata, pFIBDataRefresh, pFIBExports,
{$IFNDEF NO_MONITOR} FIBSQLMonitor, {$ENDIF} pFIBErrorHandler,
pFIBStoredProc, pFIBProps {$IFDEF INC_SERVICE_SUPPORT}, IB_Services {$ENDIF}
{$IFDEF IBINSTALL_SUPPORT}, IB_Install{$ENDIF};

procedure Register;

implementation

uses //DsgnIntf,
{$IFNDEF NO_REGISTRY}
RegUtils,
{$ENDIF}
FIBDataSet,FIBQuery,FIBDatabase,SqlTxtRtns,StrUtil,
pFIBDataInfo, pFIBScripter;
uses
{$IFNDEF NO_REGISTRY} RegUtils, {$ENDIF} FIBDataSet, FIBQuery, FIBDatabase,
SqlTxtRtns, StrUtil, PFIBDataInfo, PFIBScripter;

const FIBPalette='FIBPlus';
const
pnFIBPlus = 'FIBPlus';
pnFIBPlusServices = 'FIBPlusServices';

{$R fibplus.dcr}

procedure Register;
begin

// RegisterComponents(FIBPalette, [TComponent1]);
RegisterComponents(FIBPalette,
[TpFIBDatabase,TpFIBDataSet,TpFIBTransaction,TpFIBQuery,TpFIBStoredProc,
TpFIBUpdateObject, TDataSetsContainer,
TpFibErrorHandler,TpFIBScripter,TpFIBDBSchemaExtract, TpFIBTableChangesReader
]
);

RegisterComponents(FIBPalette, [TFIBSQLLogger ,TSIBfibEventAlerter]);

{$IFNDEF NO_MONITOR}
RegisterComponents(FIBPalette, [TFIBSQLMonitor]);
{$ENDIF}

RegisterFields([TFIBStringField,TFIBIntegerField,TFIBSmallIntField,
TFIBFloatField,TFIBBCDField,TFIBBooleanField,TFIBDateField,TFIBTimeField,TFIBDateTimeField,
TFIBWideStringField]
);

{$IFDEF INC_SERVICE_SUPPORT}
RegisterComponents('FIBPlusServices', [
TpFIBServerProperties,
TpFIBConfigService,
TpFIBLicensingService,
TpFIBLogService,
TpFIBStatisticalService,
TpFIBBackupService,
TpFIBRestoreService,
TpFIBValidationService,
TpFIBSecurityService,
TpFIBNBackupService,
TpFIBNRestoreService
RegisterClasses([TFIBIntegerField, TFIBSmallIntField, TFIBLargeIntField,
TFIBBCDField, TFIBFloatField, TFIBBooleanField, TFIBDateTimeField,
TFIBDateField, TFIBTimeField, TFIBGuidField, TFIBStringField,
TFIBWideStringField, TFIBBlobField, TFIBMemoField
{$IFDEF SUPPORT_ARRAY_FIELD}, TFIBArrayField{$ENDIF}
]);
{$ENDIF}
{$IFDEF IBINSTALL_SUPPORT}
RegisterComponents('FIBPlusServices', [ TpFIBInstall, TpFIBUnInstall ]);

RegisterComponents(pnFIBPlus, [TpFIBDatabase, TpFIBDataSet, TpFIBTransaction,
TpFIBQuery, TpFIBStoredProc, TpFIBUpdateObject, TDataSetsContainer,
TpFibErrorHandler, TpFIBScripter, TpFIBDBSchemaExtract,
TpFIBTableChangesReader, TFIBSQLLogger, TSIBfibEventAlerter
{$IFNDEF NO_MONITOR}, TFIBSQLMonitor{$ENDIF}]);

{$IFDEF INC_SERVICE_SUPPORT}
RegisterComponents(pnFIBPlusServices, [TpFIBServerProperties,
TpFIBConfigService, TpFIBLicensingService, TpFIBLogService,
TpFIBStatisticalService, TpFIBBackupService, TpFIBRestoreService,
TpFIBValidationService, TpFIBSecurityService, TpFIBNBackupService,
TpFIBNRestoreService]);
{$ENDIF}

{$IFDEF IBINSTALL_SUPPORT}
RegisterComponents(pnFIBPlusServices, [TpFIBInstall, TpFIBUnInstall]);
{$ENDIF}

end;

end.

0 comments on commit 2e0bc47

Please sign in to comment.