Changeset 238 for oup/current/FileClasses
- Timestamp:
- Jul 14, 2007, 6:50:55 PM (17 years ago)
- Location:
- oup/current/FileClasses
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
oup/current/FileClasses/_EmptyFile.pas
r236 r238 8 8 type 9 9 TFile_Empty = class(TFile) 10 public11 procedure InitDataFields; override;12 10 end; 13 11 14 12 implementation 15 13 16 uses17 ConnectionManager, Math, Classes, TypeDefs, _DataTypes;18 19 procedure TFile_Empty.InitDataFields;20 begin21 inherited;22 FDataFields := TBlock.Create(Self, nil, 'Base', '', []);23 end;24 25 26 14 end. 27 15 -
oup/current/FileClasses/_FileTypes.pas
r237 r238 66 66 FChanged := False; 67 67 68 FDataFields := nil; 69 FEditor := nil; 70 68 71 if not (Self is TFile_Empty) then 69 begin70 FDataFields := nil;71 72 InitDataFields; 72 FEditor := nil;73 end74 else75 begin76 FEditor := nil;77 end;78 73 end; 79 74 … … 106 101 begin 107 102 if FDataFields <> nil then 108 Result := FDataFields.ChildCount; 103 Result := FDataFields.ChildCount 104 else 105 Result := 0; 109 106 end; 110 107 -
oup/current/FileClasses/_TreeElement.pas
r233 r238 11 11 private 12 12 public 13 property ConnectionID: Integer read FConnectionID; 13 14 property ChildCount: Integer read GetChildCount; 14 15 property Child[ID: Integer]: TTreeElement read GetChild;
Note:
See TracChangeset
for help on using the changeset viewer.