Changeset 135 for trunk/UProject.pas
- Timestamp:
- Mar 5, 2022, 9:44:18 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UProject.pas
r68 r135 6 6 7 7 uses 8 Classes, SysUtils ;8 Classes, SysUtils, fgl; 9 9 10 10 type 11 TProjectItem = class 12 Name: string; 13 end; 14 15 TProjectItems = class(TFPGObjectList<TProjectItem>) 16 end; 17 18 TProjectFile = class(TProjectItem) 19 end; 20 21 TProjectDirectory = class(TProjectItem) 22 end; 11 23 12 24 { TProject } … … 17 29 procedure SetOpenned(AValue: Boolean); 18 30 public 31 Items: TProjectItems; 19 32 Modified: Boolean; 20 33 FileName: string; 34 constructor Create; 35 destructor Destroy; override; 21 36 property Openned: Boolean read FOpenned write SetOpenned; 22 37 end; 38 39 const 40 LazFuckProjectExt = '.lfp'; 41 23 42 24 43 implementation … … 37 56 end; 38 57 58 constructor TProject.Create; 59 begin 60 Items := TProjectItems.Create; 61 end; 62 63 destructor TProject.Destroy; 64 begin 65 FreeAndNil(Items); 66 inherited; 67 end; 68 39 69 end. 40 70
Note:
See TracChangeset
for help on using the changeset viewer.