Changeset 38 for trunk/IDE/UProject.pas
- Timestamp:
- Feb 25, 2012, 6:04:21 PM (13 years ago)
- Location:
- trunk/IDE
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IDE
- Property svn:ignore
-
old new 5 5 Transpascal.exe 6 6 heaptrclog.trc 7 Transpascal
-
- Property svn:ignore
-
trunk/IDE/UProject.pas
r37 r38 53 53 TProjectGroup = class(TProjectNode) 54 54 Items: TListProjectNode; 55 procedure DumpFileList(Files: TListString); 55 56 constructor Create; 56 57 destructor Destroy; override; … … 88 89 { TProjectGroup } 89 90 91 procedure TProjectGroup.DumpFileList(Files: TListString); 92 var 93 I: Integer; 94 begin 95 for I := 0 to Items.Count - 1 do 96 if TProjectNode(Items[I]) is TProjectGroup then 97 TProjectGroup(Items[I]).DumpFileList(Files) 98 else Files.Add(GetDir(True) + TProjectFile(Items[I]).Name); 99 end; 100 90 101 constructor TProjectGroup.Create; 91 102 begin … … 230 241 function TProjectNode.GetDir(IncludeRoot: Boolean = False): string; 231 242 begin 232 if Assigned(Parent) then Result := Parent.GetDir(IncludeRoot) + Name + '/'233 else Result := Name + '/';243 if Assigned(Parent) then Result := Parent.GetDir(IncludeRoot) + Name + DirectorySeparator 244 else Result := Name + DirectorySeparator; 234 245 end; 235 246
Note:
See TracChangeset
for help on using the changeset viewer.