Ignore:
Timestamp:
Jul 14, 2007, 6:50:55 PM (17 years ago)
Author:
alloc
Message:
 
Location:
oup/current/FileClasses
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • oup/current/FileClasses/_EmptyFile.pas

    r236 r238  
    88type
    99  TFile_Empty = class(TFile)
    10     public
    11       procedure InitDataFields; override;
    1210  end;
    1311
    1412implementation
    1513
    16 uses
    17   ConnectionManager, Math, Classes, TypeDefs, _DataTypes;
    18 
    19 procedure TFile_Empty.InitDataFields;
    20 begin
    21   inherited;
    22   FDataFields := TBlock.Create(Self, nil, 'Base', '', []);
    23 end;
    24 
    25 
    2614end.
    2715
  • oup/current/FileClasses/_FileTypes.pas

    r237 r238  
    6666  FChanged := False;
    6767
     68  FDataFields := nil;
     69  FEditor := nil;
     70
    6871  if not (Self is TFile_Empty) then
    69   begin
    70     FDataFields := nil;
    7172    InitDataFields;
    72     FEditor := nil;
    73   end
    74   else
    75   begin
    76     FEditor := nil;
    77   end;
    7873end;
    7974
     
    106101begin
    107102  if FDataFields <> nil then
    108     Result := FDataFields.ChildCount;
     103    Result := FDataFields.ChildCount
     104  else
     105    Result := 0;
    109106end;
    110107
  • oup/current/FileClasses/_TreeElement.pas

    r233 r238  
    1111    private
    1212    public
     13      property ConnectionID: Integer read FConnectionID;
    1314      property ChildCount: Integer read GetChildCount;
    1415      property Child[ID: Integer]: TTreeElement read GetChild;
Note: See TracChangeset for help on using the changeset viewer.