Changeset 66 for trunk/IDE/UCore.pas
- Timestamp:
- Jul 19, 2012, 8:16:57 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IDE/UCore.pas
r65 r66 13 13 14 14 TCustomCompiler = class(TCompiler) 15 StartTime: TDateTime; 15 16 SourceFiles: TSourceFileManager; 16 17 TargetFiles: TSourceFileManager; 17 procedure LoadFromRegistry(Root: Integer; Key: string); 18 procedure SaveToRegistry(Root: Integer; Key: string); 18 procedure Init; override; 19 function ElapsedTime: TDateTime; 20 procedure LoadFromRegistry(Root: Integer; const Key: string); 21 procedure SaveToRegistry(Root: Integer; const Key: string); 19 22 constructor Create; override; 20 23 destructor Destroy; override; … … 46 49 procedure ProjectNew; 47 50 procedure CompilerDebugLog(Text: string); 48 procedure LoadFromRegistry(Root: Integer; Key: string);49 procedure SaveToRegistry(Root: Integer; Key: string);51 procedure LoadFromRegistry(Root: Integer; const Key: string); 52 procedure SaveToRegistry(Root: Integer; const Key: string); 50 53 end; 51 54 … … 94 97 LastOpenedFiles := TLastOpenedList.Create(nil); 95 98 LastOpenedFiles.OnChange := LastOpenedFilesChange; 99 100 ReopenLastOpenedFile := True; 101 LogParsing := False; 96 102 end; 97 103 … … 136 142 end; 137 143 138 procedure TCore.LoadFromRegistry(Root: Integer; Key: string);144 procedure TCore.LoadFromRegistry(Root: Integer; const Key: string); 139 145 begin 140 146 with TGeneralRegistry.Create(nil) do … … 162 168 end; 163 169 164 procedure TCore.SaveToRegistry(Root: Integer; Key: string);170 procedure TCore.SaveToRegistry(Root: Integer; const Key: string); 165 171 begin 166 172 with TGeneralRegistry.Create(nil) do … … 186 192 { TCustomCompiler } 187 193 188 procedure TCustomCompiler.LoadFromRegistry(Root: Integer; Key: string); 194 procedure TCustomCompiler.Init; 195 begin 196 inherited; 197 StartTime := Now; 198 end; 199 200 function TCustomCompiler.ElapsedTime: TDateTime; 201 begin 202 Result := Now - StartTime; 203 end; 204 205 procedure TCustomCompiler.LoadFromRegistry(Root: Integer; const Key: string); 189 206 var 190 207 I: Integer; … … 208 225 end; 209 226 210 procedure TCustomCompiler.SaveToRegistry(Root: Integer; Key: string);227 procedure TCustomCompiler.SaveToRegistry(Root: Integer; const Key: string); 211 228 var 212 229 I: Integer;
Note:
See TracChangeset
for help on using the changeset viewer.