Changeset 162 for trunk/Core.pas


Ignore:
Timestamp:
Jun 30, 2023, 10:01:24 PM (11 months ago)
Author:
chronos
Message:
  • Modified: Updated Common package.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Core.pas

    r158 r162  
    66  Classes, SysUtils, FileUtil, Controls, ActnList, Forms, Dialogs, ExtCtrls,
    77  LastOpenedList, ApplicationInfo, PersistentForm, ScaleDPI, Common,
    8   Translator, DataFile, VCard, Menus, RegistryEx, Theme, AboutDialog,
     8  Translator, DataFile, VCard, Menus, RegistryEx, Theme,
    99  Registry, VCardFile;
    1010
     
    1515  TCore = class(TDataModule)
    1616    AAbout: TAction;
    17     AboutDialog1: TAboutDialog;
    1817    AFileExport: TAction;
    1918    ANormalize: TAction;
     
    132131uses
    133132  FormMain, FormSettings, FormFindDuplicity, FormCompare, TestCase, FormNormalize,
    134   FormGenerate, FormError, FormFind, FormTest, FormSource, TestCases, FormExport;
     133  FormGenerate, FormError, FormFind, FormSource, TestCases, FormExport, FormEx,
     134  FormAbout, FormTests;
    135135
    136136resourcestring
     
    214214
    215215procedure TCore.AAboutExecute(Sender: TObject);
    216 begin
    217   AboutDialog1.Show;
     216var
     217  FormAbout: TFormAbout;
     218begin
     219  FormAbout := TFormAbout.Create(nil);
     220  FormAbout.ApplicationInfo := ApplicationInfo1;
     221  FormAbout.ShowModal;
     222  FreeAndNil(FormAbout);
    218223end;
    219224
     
    342347procedure TCore.ATestExecute(Sender: TObject);
    343348begin
    344   with TFormTest.Create(nil) do
     349  with TFormTests.Create(nil) do
    345350  try
    346351    TestCases := InitTestCases;
     
    451456    ApplicationInfo1.RegistryKey + '\RecentFiles');
    452457
     458  TFormEx.ScaleDPI := ScaleDPI1;
     459  TFormEx.Translator := Translator;
     460  TFormEx.ThemeManager := ThemeManager1;
     461  TFormEx.PersistentForm := PersistentForm1;
     462
    453463  FormMain := TFormMain.Create(nil);
     464//  FormMain.Translator.POFilesFolder := 'Languages;Packages/Common/Languages';
    454465  FormMain.Show;
    455466end;
Note: See TracChangeset for help on using the changeset viewer.