Changeset 61 for trunk/UCore.pas


Ignore:
Timestamp:
Dec 4, 2014, 11:26:54 AM (10 years ago)
Author:
chronos
Message:
  • Added: Unit project which should handle all project related operations.
  • Fixed: TScaleDPI to handle also lower then default DPI and different horizontal and vertical DPI.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r60 r61  
    66
    77uses
    8   Classes, SysUtils, FileUtil, UApplicationInfo, ULastOpenedList,
     8  Classes, SysUtils, FileUtil, UApplicationInfo, ULastOpenedList, UProject,
    99  UCoolTranslator, UTarget, URegistry, Registry, XMLConf, Graphics, UScaleDPI;
    1010
     
    2222  public
    2323    ScaleDPI: TScaleDPI;
    24     Modified: Boolean;
    25     ProjectFileName: string;
     24    Project: TProject;
    2625    Targets: TTargetList;
    2726    OpenProjectOnStart: Boolean;
     
    4645procedure TCore.DataModuleCreate(Sender: TObject);
    4746begin
    48   ScaleDPI := TScaleDPI.Create;
     47  Project := TProject.Create;
     48  ScaleDPI := TScaleDPI.Create(nil);
    4949  Targets := TTargetList.Create;
    5050  Targets.Add(TTargetInterpretter.Create);
     
    6161  SaveToRegistry(HKEY(ApplicationInfo.RegistryRoot), ApplicationInfo.RegistryKey);
    6262  Targets.Free;
     63  Project.Free;
    6364  ScaleDPI.Free;
    6465end;
Note: See TracChangeset for help on using the changeset viewer.