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

git-svn-id: trunk@65432 -
This commit is contained in:
ondrej 2021-07-09 15:51:04 +00:00
parent 51044e806b
commit b6a0c5b23d

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;