unit UPASObju;
{ Generated by MakeComp 1.03 from UPASTYPE.PAS. Don't modify manually !!! }
interface
uses Classes, SysUtils, Graphics, UlanType, ULRecTyp, ULObju, 
  UPAVType,UPACType,
  UPASType;

type
  TUPASObj = class(TULObj)
  protected
    function GetActionsName: TULPrgActionsName;
    procedure SetActionsName(AActionsName: TULPrgActionsName);
    function GetMinRecLen: TULRecLen; override;
  public
    constructor Create(AOwner:TULObj);
    function GetULRecDesc: PULRecDesc; override;
  published
    property ActionsName: TULPrgActionsName
      read GetActionsName write SetActionsName;
  end;

const
  UPASChildRecIDs: array[0..1] of TULRecID = (
    UPAVID,UPACID
  );
  UPASFldDescs: array[0..0] of TULFldDesc = (
    (
     Caption: 'Actions Set Name';
     Hint: '';
     EditWidth: 0;
     BrowseWidth: 0;
     Flags: 4097;
     UserCoef: 0.00;
     NumDec: 0;
     ValuesSourceRecID: 0;
     FieldColorCount : 0;
     FieldColors : nil;
     Filter: '';
     DefDir: '';
     StripPrefix: '';
     EditMask: '';
     MaxID: 0;
     FieldName: 'ActionsName';
     KeyFieldName: '';
     ListFieldName: '';
     Typ: '';
     VarSize: false;
     PasType: 'TULPrgActionsName';
    )
  );

  UPASRecDesc: TULRecDesc = (
    Caption: 'Actions Set';
    ChildRecIDsStr: 'UPAVID,UPACID';
    ChildRecIDs: @UPASChildRecIDs;
    ChildRecIDCount: 2;
    FldCount: 1;
    Flds: @UPASFldDescs;
    Flags: rfChildAllowed OR rfHasRecName OR rfEnabled OR rfVisible;
    SortExp: '';
    EditFieldList: '';
    BrowseFieldList: '';
    MenuFieldList: '';
    BrowseChildRecIDs: '';
    NameProp: '';
    MainProp: '';
    DefDir: '';
    OpenFilter: '';
    SaveFilter: '';
    Table: '';
    Indexes: ''
   );

implementation

{TUPASObj}
function TUPASObj.GetMinRecLen: TULRecLen;
begin
  GetMinRecLen := sizeof(TUPASRec);
end;

constructor TUPASObj.Create(AOwner: TULObj);
begin
  inherited Create(TComponent(AOwner), UPASID);
end;

function TUPASObj.GetULRecDesc: PULRecDesc;
begin
  Result := @UPASRecDesc;
end;

procedure TUPASObj.SetActionsName(AActionsName: TULPrgActionsName);
begin
  if PUPASRec(Rec)^.ActionsName <> AActionsName then begin
    PUPASRec(Rec)^.ActionsName := AActionsName;
    if UPASFldDescs[0].VarSize then 
      ClearFieldsLen;
    DoChange;
  end;
end;

function TUPASObj.GetActionsName: TULPrgActionsName;
begin
  GetActionsName := PUPASRec(Rec)^.ActionsName;
end;

{/TUPASObj}

end.
