Changeset 24 for trunk/Forms/FormBrowse.pas
- Timestamp:
- Apr 5, 2025, 9:45:07 PM (12 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/FormBrowse.pas
r23 r24 5 5 uses 6 6 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ComCtrls, 7 ExtCtrls, Menus, ActnList, FindFile, VCS, Generics.Collections,LazFileUtils;7 ExtCtrls, Menus, ActnList, FindFile, VCS, LazFileUtils; 8 8 9 9 type … … 45 45 Selected: Boolean); 46 46 private 47 FileList: TFileStatus List;47 FileList: TFileStatuses; 48 48 public 49 49 Directory: string; … … 118 118 ReloadList; 119 119 end else 120 if DirectoryExists UTF8(Directory + DirectorySeparator + Caption) then begin120 if DirectoryExists(Directory + DirectorySeparator + Caption) then begin 121 121 Directory := Directory + DirectorySeparator + ListView1.Selected.Caption; 122 122 ReloadList; … … 129 129 NewName: string; 130 130 begin 131 NewName := ''; 131 132 if InputQuery('Rename', 'Enter new name', NewName) then 132 133 Core.Core.Project.WorkingCopy.Move(Directory + DirectorySeparator + ListView1.Selected.Caption, NewName); … … 135 136 procedure TFormBrowse.FormCreate(Sender: TObject); 136 137 begin 137 FileList := TFileStatus List.Create;138 FileList := TFileStatuses.Create; 138 139 end; 139 140 … … 153 154 FoundFileList: TStrings; 154 155 I: Integer; 155 FileStatusList: TFileStatus List;156 FileStatusList: TFileStatuses; 156 157 NewFileItem: TFileStatus; 157 158 FS: TFileStatus; … … 160 161 FileList.Clear; 161 162 if Assigned(Core.Core.Project) then begin 162 FileStatusList := TFileStatus List.Create;163 FileStatusList := TFileStatuses.Create; 163 164 try 164 165 Core.Core.Project.WorkingCopy.GetStatus(Directory, FileStatusList); 165 166 166 if DirectoryExists UTF8(Directory) then begin167 if DirectoryExists(Directory) then begin 167 168 FindFile := TFindFile.Create(nil); 168 169 try
Note:
See TracChangeset
for help on using the changeset viewer.