2007-02-20 18:20:07 +00:00
|
|
|
unit paradoxreg;
|
|
|
|
|
|
|
|
{$mode objfpc}{$H+}
|
|
|
|
|
|
|
|
interface
|
|
|
|
|
|
|
|
uses
|
2010-03-29 13:20:42 +00:00
|
|
|
Classes, SysUtils, LResources, Paradoxds, LazarusPackageIntf, PropEdits;
|
2007-02-20 18:20:07 +00:00
|
|
|
|
|
|
|
resourcestring
|
|
|
|
dbfsAllparadoxfiles = 'Paradox Files';
|
|
|
|
|
|
|
|
procedure Register;
|
|
|
|
|
|
|
|
implementation
|
|
|
|
|
2019-05-07 21:07:19 +00:00
|
|
|
{$R pdx_icons.res}
|
|
|
|
|
2007-02-20 18:20:07 +00:00
|
|
|
type
|
2019-05-10 23:03:21 +00:00
|
|
|
TParadoxFileNamePropertyEditor = class(TFileNamePropertyEditor)
|
|
|
|
public
|
2007-02-20 18:20:07 +00:00
|
|
|
function GetFilter: String; override;
|
|
|
|
end;
|
|
|
|
|
|
|
|
function TParadoxFileNamePropertyEditor.GetFilter: String;
|
|
|
|
begin
|
|
|
|
Result := dbfsAllParadoxFiles+' (*.db)|*.db;*.DB';
|
|
|
|
Result:= Result+ '|'+ inherited GetFilter;
|
|
|
|
end;
|
|
|
|
|
|
|
|
procedure RegisterUnitParadox;
|
|
|
|
begin
|
|
|
|
RegisterComponents('Data Access',[TParadoxDataSet]);
|
|
|
|
RegisterPropertyEditor(TypeInfo(AnsiString), TParadoxDataSet, 'TableName', TParadoxFileNamePropertyEditor);
|
|
|
|
end;
|
|
|
|
|
|
|
|
procedure Register;
|
|
|
|
begin
|
2010-03-29 13:20:42 +00:00
|
|
|
RegisterUnit('paradoxds',@RegisterUnitParadox);
|
2007-02-20 18:20:07 +00:00
|
|
|
end;
|
|
|
|
|
|
|
|
initialization
|
|
|
|
|
|
|
|
end.
|