Changeset 90 for trunk/UCore.pas


Ignore:
Timestamp:
Feb 2, 2022, 2:55:58 PM (3 years ago)
Author:
chronos
Message:
  • Modified: Build under Lazarus 2.2.0.
  • Modified: Updated Common package.
  • Added: Read Me file with app description and development information.
  • Added: Test form available in debug mode from Tools menu with list of test cases to better support app testability.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r82 r90  
    1717    AAbout: TAction;
    1818    AboutDialog1: TAboutDialog;
     19    ATest: TAction;
    1920    AFind: TAction;
    2021    AFileSplit: TAction;
     
    5758    procedure AHomePageExecute(Sender: TObject);
    5859    procedure ASettingsExecute(Sender: TObject);
     60    procedure ATestExecute(Sender: TObject);
    5961    procedure DataModuleCreate(Sender: TObject);
    6062    procedure DataModuleDestroy(Sender: TObject);
     
    102104uses
    103105  UFormMain, UFormSettings, UContact, UFormContacts, UFormFindDuplicity,
    104   UFormGenerate, UFormError, UFormFind;
     106  UFormGenerate, UFormError, UFormFind, UFormTest;
    105107
    106108resourcestring
     
    264266end;
    265267
     268procedure TCore.ATestExecute(Sender: TObject);
     269begin
     270  with TFormTest.Create(nil) do
     271  try
     272    ShowModal;
     273  finally
     274    Free;
     275  end;
     276end;
     277
    266278procedure TCore.AFileNewExecute(Sender: TObject);
    267279begin
     
    512524  AFindDuplicate.Enabled := Assigned(DataFile);
    513525  AGenerate.Enabled := Assigned(DataFile);
     526  {$IFOPT D+}
     527  ATest.Enabled := True;
     528  {$ENDIF}
     529  {$IFOPT D-}
     530  ATest.Enabled := False;
     531  {$ENDIF}
     532  ATest.Visible := ATest.Enabled;
    514533end;
    515534
Note: See TracChangeset for help on using the changeset viewer.