unit ULMFObju;
{ Generated by MakeComp 1.02 from ULMFTYPE.PAS. Don't modify manually !!! }
interface
uses Classes, UlanType, ULRecTyp, ULObju, 
  ULMFType;

type
  TULMFObj = class(TULObj)
  protected
    function GetFilterName: TFilterName;
    procedure SetFilterName(AFilterName: TFilterName);
    function GetFilterType: TFilterType;
    procedure SetFilterType(AFilterType: TFilterType);
    function GetAvgPointCount: longint;
    procedure SetAvgPointCount(AAvgPointCount: longint);
    function GetFilter1: TFilterCoef;
    procedure SetFilter1(AFilter1: TFilterCoef);
    function GetMinRecLen: TULRecLen; override;
  public
    constructor Create(AOwner:TULObj);
    function GetULRecDesc: PULRecDesc; override;
  published
    property FilterName: TFilterName
      read GetFilterName write SetFilterName;
    property FilterType: TFilterType
      read GetFilterType write SetFilterType;
    property AvgPointCount: longint
      read GetAvgPointCount write SetAvgPointCount;
    property Filter1: TFilterCoef
      read GetFilter1 write SetFilter1;
  end;

const
  ULMFFldDescs: array[0..3] of TULFldDesc = (
    (
     Caption: '';
     Hint: '';
     EditWidth: 0;
     BrowseWidth: 0;
     Flags: 1;
     UserCoef: 0.00;
     NumDec: 0;
     ValuesSourceRecID: 0
    ),
    (
     Caption: '';
     Hint: '';
     EditWidth: 0;
     BrowseWidth: 0;
     Flags: 1;
     UserCoef: 0.00;
     NumDec: 0;
     ValuesSourceRecID: 0
    ),
    (
     Caption: '';
     Hint: '';
     EditWidth: 0;
     BrowseWidth: 0;
     Flags: 1;
     UserCoef: 0.00;
     NumDec: 0;
     ValuesSourceRecID: 0
    ),
    (
     Caption: '';
     Hint: '';
     EditWidth: 0;
     BrowseWidth: 0;
     Flags: 1;
     UserCoef: 0.00;
     NumDec: 0;
     ValuesSourceRecID: 0
    )
  );
  ULMFRecDesc: TULRecDesc = (
    Caption: 'Filter';
    ChildRecIDsStr: '';
    ChildRecIDs: nil;
    ChildRecIDCount: 0;
    FldCount: 4;
    Flds: @ULMFFldDescs;
    Flags: rfEnabled + rfVisible;
    SortExp: '';
    EditFieldList: '';
    BrowseFieldList: ''
   );

implementation

{TULMFObj}
function TULMFObj.GetMinRecLen: TULRecLen;
begin
  GetMinRecLen := sizeof(TULMFRec);
end;

constructor TULMFObj.Create(AOwner: TULObj);
begin
  inherited Create(TComponent(AOwner), ULMFID);
end;

function TULMFObj.GetULRecDesc: PULRecDesc;
begin
  Result := @ULMFRecDesc;
end;

procedure TULMFObj.SetFilterName(AFilterName: TFilterName);
begin
  if PULMFRec(Rec)^.FilterName <> AFilterName then begin
    PULMFRec(Rec)^.FilterName := AFilterName;
    DoChange;
  end;
end;

function TULMFObj.GetFilterName: TFilterName;
begin
  GetFilterName := PULMFRec(Rec)^.FilterName;
end;

procedure TULMFObj.SetFilterType(AFilterType: TFilterType);
begin
  if PULMFRec(Rec)^.FilterType <> AFilterType then begin
    PULMFRec(Rec)^.FilterType := AFilterType;
    DoChange;
  end;
end;

function TULMFObj.GetFilterType: TFilterType;
begin
  GetFilterType := PULMFRec(Rec)^.FilterType;
end;

procedure TULMFObj.SetAvgPointCount(AAvgPointCount: longint);
begin
  if PULMFRec(Rec)^.AvgPointCount <> AAvgPointCount then begin
    PULMFRec(Rec)^.AvgPointCount := AAvgPointCount;
    DoChange;
  end;
end;

function TULMFObj.GetAvgPointCount: longint;
begin
  GetAvgPointCount := PULMFRec(Rec)^.AvgPointCount;
end;

procedure TULMFObj.SetFilter1(AFilter1: TFilterCoef);
begin
  if PULMFRec(Rec)^.Filter1 <> AFilter1 then begin
    PULMFRec(Rec)^.Filter1 := AFilter1;
    DoChange;
  end;
end;

function TULMFObj.GetFilter1: TFilterCoef;
begin
  GetFilter1 := PULMFRec(Rec)^.Filter1;
end;

{/TULMFObj}

end.
