Merged revision(s) 65432 #b6a0c5b23d from trunk:

IDE: add unit DB to uses when TBufDataset or TCSVDataset are added. Issue #29733, patch from Sven Barth
........

git-svn-id: branches/fixes_2_2@65445 -
This commit is contained in:
maxim 2021-07-13 21:41:23 +00:00
parent 8cd0a0724b
commit ecf86397ec

View File

@ -42,16 +42,28 @@ uses
ServiceManager,
{$endif}
Classes, SysUtils, Process, DB, BufDataset, csvdataset, SimpleIPC, XMLConf, EventLog,
UTF8Process;
UTF8Process, ComponentEditors;
procedure RegisterFCLBaseComponents;
procedure RegisterLazUtilsComponents;
implementation
type
TDatasetRequirements = class(TComponentRequirements)
procedure RequiredUnits(Units: TStrings); override;
end;
procedure TDatasetRequirements.RequiredUnits(Units: TStrings);
begin
{ the DB unit is nearly always required for working comfortably with datasets }
Units.Add('DB');
end;
procedure RegisterDB;
begin // this bites dbflaz
RegisterComponents('Data Access',[TDatasource, TBufDataset, TCSVDataset]);
RegisterComponentRequirements([TBufDataset, TCSVDataset], TDatasetRequirements);
end;
procedure RegisterSimpleIPC;