Changeset 66 for trunk/IDE/UCore.pas


Ignore:
Timestamp:
Jul 19, 2012, 8:16:57 AM (12 years ago)
Author:
chronos
Message:
  • Added: Information text about completion of build process including elapsed time.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IDE/UCore.pas

    r65 r66  
    1313
    1414  TCustomCompiler = class(TCompiler)
     15    StartTime: TDateTime;
    1516    SourceFiles: TSourceFileManager;
    1617    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);
    1922    constructor Create; override;
    2023    destructor Destroy; override;
     
    4649    procedure ProjectNew;
    4750    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);
    5053  end;
    5154
     
    9497  LastOpenedFiles := TLastOpenedList.Create(nil);
    9598  LastOpenedFiles.OnChange := LastOpenedFilesChange;
     99
     100  ReopenLastOpenedFile := True;
     101  LogParsing := False;
    96102end;
    97103
     
    136142end;
    137143
    138 procedure TCore.LoadFromRegistry(Root: Integer; Key: string);
     144procedure TCore.LoadFromRegistry(Root: Integer; const Key: string);
    139145begin
    140146  with TGeneralRegistry.Create(nil) do
     
    162168end;
    163169
    164 procedure TCore.SaveToRegistry(Root: Integer; Key: string);
     170procedure TCore.SaveToRegistry(Root: Integer; const Key: string);
    165171begin
    166172  with TGeneralRegistry.Create(nil) do
     
    186192{ TCustomCompiler }
    187193
    188 procedure TCustomCompiler.LoadFromRegistry(Root: Integer; Key: string);
     194procedure TCustomCompiler.Init;
     195begin
     196  inherited;
     197  StartTime := Now;
     198end;
     199
     200function TCustomCompiler.ElapsedTime: TDateTime;
     201begin
     202  Result := Now - StartTime;
     203end;
     204
     205procedure TCustomCompiler.LoadFromRegistry(Root: Integer; const Key: string);
    189206var
    190207  I: Integer;
     
    208225end;
    209226
    210 procedure TCustomCompiler.SaveToRegistry(Root: Integer; Key: string);
     227procedure TCustomCompiler.SaveToRegistry(Root: Integer; const Key: string);
    211228var
    212229  I: Integer;
Note: See TracChangeset for help on using the changeset viewer.